Export (0) Print
Expand All

Uninstalling a Driver Package

A DIFxAPI uninstall operation removes a driver package from the system and the DIFx driver store.

To perform an uninstall operation, an installation application calls the DriverPackageUninstall function and supplies the following information:

  • The fully qualified path of the INF file of the driver package to uninstall. For more information about supplying an INF file path, see Specifying a Driver Package INF File.

  • Optional flag values that modify the uninstall operation.

  • If the driver package was associated with an application when the driver package was installed, information about the associated application.

  • An output parameter that the function sets to indicate whether a system restart is necessary to complete an installation.

By default, DriverPackageUninstall performs the same core uninstall operation that Driver Install Frameworks for Applications (DIFxApp) and Driver Package Installer (DPInst) perform. However, because DriverPackageInstall does not create an entry that represents the driver package, in Programs and Features in Control Panel, DriverPackageUninstall also does not delete such a Programs and Features entry.

An installation application can modify the default uninstall operation by specifying flag values that do the following:

  • Delete binary files that were copied to the system when the driver package was installed (for example, a driver file that was copied to the %SystemRoot%\system32\drivers directory).

  • Force uninstalling the driver package regardless of whether the package is currently associated with an application or is installed on devices in the device tree.

  • Perform a quiet uninstall operation, which is also referred to as a silent uninstall operation. This type of uninstall operation suppresses the wizard pages, user dialog boxes, and other user messages that DIFxAPI and Windows generate. If a user dialog box is required to complete the uninstall operation, the uninstall operation will fail without displaying a user message.

For examples of how to call DriverPackageUninstall, see the following topics:

Perform a Default DIFxAPI Uninstall Operation

Force a DIFxAPI Uninstall Operation

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft