How To Uninstall Drivers Using Dpinst.exe

In my recent struggles with using the Windows 7/8 PNPUtil.exe built-in utility, I went on a search for another means to handle installing my Plug and Play drivers. I’ve dabbled with the Devcon.exe utility in the past, but it is mostly meant for use with Windows XP and previous OSes. I then came across a utility that I’ve seen many times before. The DPInst.exe utility is one used by manufacturers for importing their drivers during installation. It is by far the most flexible and powerful utility of them all. Here is how I’ve come to use the utility and am very happy with the results.

  1. How To Uninstall Drivers Using Dpinst.exe Windows 10
  2. Dpinst Exe 64 Bit

Script I use to call the proper DPInst.exe utility (x86 or x64):

Both the x86 and x64 versions can use the same DPInst.XML, which MUST be placed in the same directory as the .EXE files:

  • Second tip How to remove dpinst.exe from windows startup. From Asmwsoft Pc Optimizer main window select 'Startup manager' tool.; From startup manager main window find dpinst.exe process you want to delete or disable by clicking it then click right mouse button then select 'Delete selected item' to permanently delete it or select 'Disable selected item'.
  • Aug 30, 2011 dpinst.exe /sh The following command includes the /u command-line switch, followed by the A bc.inf INF file, and the /d command-line switch. The /u command-line switch uninstalls the driver package that is associated with the Abc.inf INF file from all of the devices on which the package is installed.
  • This will uninstall a driver package whose INF path is mentioned in the command line. The path is relative to the directory containing DPInst.exe For packaging purposes, the most used switches would be /sa /sw /se, and occasionally /f and /lm (in extreme scenarios).

* Settings for XML can be found here: http://msdn.microsoft.com/en-us/library/windows/hardware/ff553383(v=vs.85).aspx

Lastly, I toss all of my drivers in sub-folders. DPInstall is smart enough to re-curse through the directory tree and also install ONLY the drivers it needs (Matches a PNPID installed on the system).

Mar 16, 2012 As DIFxApp doesn't support x86 and x64 driver installation in one MSI package, I'm trying to use DPInst instead. Installing the drivers works fine, but is there a way to remove all drivers at once, instead of calling DPInst.exe /u 'path/xxx.inf' for each one? Calling dpinst /u for each driver works, but this solution is very cumbersome to. Jul 08, 2014 The image you show seems to indicate that you are running 64-bit windows and thus need the 64bit driver. If this is the case uninstalling the existing driver will not have any effect. Removing the installer executable does not uninstall the drivers. To uninstall the drivers go the control panel, Programs, Programs and features. Look for the driver.

It has exhibited issues installing Bluetooth and USB 3.0 drivers, but I believe that is because those devices have multiple sub-devices that appear after the initial driver is installed.

Download of DPInst.zip.

/Brian G

DPInst supports the following command-line switches that set the DPInst configuration flags that are described in Setting DPInst Configuration Flags and additional switches that further modify DPInst operation:
/a
Sets the installAllOrNone flag to ON, which configures DPInst to install drivers in a driver package only if all of the drivers in the installation package can be installed.
/c
Configures DPInst, if DPInst is called at a command prompt, to display the text of log messages in the Command Prompt window.
/d
Sets the deleteBinaries flag to ON, which configures DPInst to delete the binary files that were copied to a system when a driver package was installed.
Note Starting with Windows 7, the /d switch is ignored by the operating system. Binary files, which were copied to a system when a driver package was installed, can no longer be deleted by using DPInst.
/el
Sets the enableNotListedLanguages flag to ON, which configures DPInst to enable all of the supported languages that are not explicitly enabled by language XML elements in a DPInst descriptor file.
/f
Sets the forceIfDriverIsNotBetter flag to ON, which configures DPInst to install a driver on a device even if the driver that is currently installed on the device is a better match than the new driver.
/h, /?, or /help
Configures DPInst to display help information about DPInst command-line options. If DPInst was called at a command prompt, DPInst displays the help text in the Command Prompt window; otherwise, DPInst displays the help text in a message box.
/l language-ID
Configures DPInst to display the text, bitmaps, and icon for the language that is specified by a language-ID value. The language-ID value can be specified in either hexadecimal or decimal format. For a list of the languages and corresponding language identifiers, see DPInst Localization Support.
If DPInst supports the specified language and runs on a Windows operating system in which the language is installed, DPInst will use the specified language. For more information about how to use the /L switch, see Testing Language Customization.
/lm
Sets the legacyMode flag to ON. In legacy mode, DPInst accepts unsigned driver packages without performing signature verification. However, be aware that Windows driver signing requirements apply to the installation of a driver package from the DIFx driver store. These requirements depend on the Windows version, the signature type, the driver package type, and the driver signing options that are set for a computer.
/q or /s
Sets the quietInstall flag to ON, which suppresses the display of wizard pages, user dialog boxes, and other user messages that DPInst and Windows generate. ThequietInstall flag works with the presence of an end-user license agreement (EULA) page and the suppressEulaPage flag.
/p
Sets the promptIfDriverIsNotBetter flag to ON, which configures DPInst to display a user dialog box if a new driver is not a better match to a device than a driver that is currently installed on the device. The user dialog box informs a user of this situation and provides an option to replace the driver that is currently installed on the device with the new driver.
/path DPInst-working-directory
Sets the DPInst working directory to DPInst-working-directory. DPInst searches for driver packages in the DPInst working directory and in subdirectories under the working directory that are specified by subDirectory XML elements in a DPInst descriptor file. For more information about how to set the DPInst working directory and specifying subdirectories under the working directory, see Specifying the Location of a Driver Package.
/sa
Sets the suppressAddRemovePrograms flag to ON, which configures DPInst to suppress the addition of entries to Programs and Features in Control Panel. These entries represent the driver packages and driver package groups that DPInst installs.
Note In versions of Windows earlier than Windows Vista, DPInst added the entry for the driver package or driver package group to Add or Remove Programs in Control Panel.
/se
Sets the suppressEulaPage flag to ON, which configures DPinst to suppress the display of a EULA page. The suppressEulaPage flag works with the quietInstall flag and the suppressWizard flag.
/sh
Sets the scanHardware flag to ON, which configures DPInst to install a driver package for a Plug and Play (PnP) function driver only if the driver package matches a device that is currently configured in a computer and if the driver package is a better match for the device than the driver package that is currently installed on the device.
/sw
Sets the suppressWizard flag to ON, which suppresses the display of wizard pages and other user messages that DPInst generates. The suppressWizard flag works with the presence of a EULA page and the suppressEulaPage flag.
/u inf-file-path
Configures DPInst to uninstall a driver package whose INF file is specified by inf-file-path. The path that is specified by inf-file-path is relative to the directory that containsDPInst.exe.

Examples

The following command includes the /q and /se command-line switches, which configure DPInst to operate in quiet-install mode, whether a

How To Uninstall Drivers Using Dpinst.exe Windows 10

eula XML element is included in a DPInst descriptor file. This command suppresses all of the wizard pages, user dialog boxes, and other user messages that DPInst and Windows generate.
The following command includes the /q command-line switch, which configure DPInst to operate in quiet-install mode. However, DPInst will operate in quiet-install mode only if aeula XML element is not included in a DPInst descriptor file. If a eula element is included, DPInst does not operate in quiet-install mode.


The following command includes a /se command-line switch, which suppresses the display of only the EULA page.
The following command includes the /q and /se

Dpinst Exe 64 Bit

command-line switches, which configure DPInst to operate in quiet-install mode, including suppressing the EULA page. The command also includes the /f command-line switch, which forces the installation of a new driver package for a device that is configured in a computer, even if the driver package that is currently installed on the device is a better match for the device than the new driver package.
The following command includes the /sh command-line switch, which configures DPInst to install a driver package on a device that is configured in a computer only if the new driver package is a better match for the device than the driver package that is currently installed on the device. This command facilitates using an installation package to batchinstall driver packages for devices that are configured in a computer. Although the installation package might contain a large number of driver packages, DPInst will install only driver packages that are better matches for the devices than the driver packages that are currently installed on the devices.


UninstallHow
The following command includes the /u command-line switch, followed by the Abc.inf INF file, and the /d command-line switch. The /u command-line switch uninstalls the driver package that is associated with the Abc.inf INF file from all of the devices on which the package is installed. The /d command-line switch deletes the binaries that were copied to the system when the package was installed and deletes the package from the DIFx driver store. If the driver package is signed, the corresponding catalog file must be present in the same directory in which Abc.inf is located.