Using DPInst to Uninstall Driver Packages
Driver Package Installer (DPInst) version 2.1 is a component of Driver Install Frameworks (DIFx) version 2.1 that simplifies and customizes the installation of driver packages for devices that have not yet been installed in a computer (commonly known as a software-first installation). DPInst also automatically updates the drivers for any installed devices that are supported by the newly installed driver packages.
DPInst also supports uninstalling the driver packages that it installs. This topic describes how to uninstall driver packages by using DPInst.
For more information about uninstalling driver and driver packages, see How Devices and Driver Packages are Uninstalled.
Uninstalling the Device
For more information about how to uninstall device nodes (devnodes), see Using Device Manager to Uninstall Devices and Driver Packages and Using SetupAPI to Uninstall Devices and Driver Packages.
Deleting a Driver Package from the Driver Store
By default, DPInst adds an entry to Programs and Features in Control Panel for each driver package that it installs. You can remove the driver package by using Programs and Features in the following way:
In Control Panel, double-click Programs and Features.
Click the entry for the driver package.
Click Uninstall/Change to uninstall the package.
Note In versions of Windows earlier than Windows Vista, the Programs and Features in Control Panel was named Add or Remove Programs.
You can also delete the driver package by running DPInst from the command line with the /u switch. The following command removes the driver package whose INF file is specified by InfFilePath:
DPInst.exe /u InfFilePath
Note The path that is specified by InfFilePath is in relation to the directory that contains DPInst.exe.
Deleting the Binary Files of the Installed Driver
By default, when you uninstall a device by using Programs and Features in Control Panel, you remove only the driver package and not the driver's binary files. To have Programs and Features also remove the binary files, set the deleteBinaries XML element in the DPInst descriptor file to ON.
You can also have DPInst delete driver binaries by running DPInst from the command line with the /d switch. The following command removes the driver package and associated binaries:
DPInst.exe /u InfFilePath /d
Note Starting with Windows 7, both the deleteBinaries XML element and the /d switch are 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.