Using DIFxApp to Uninstall Driver Packages

Driver Install Frameworks for Applications (DIFxApp) version 2.1 is a component of Driver Install Frameworks (DIFx) version 2.1. With DIFxApp, Microsoft Windows Installer can be used to install signed driver packages that are associated with applications in a Windows Installer installation package. DIFxApp is designed for vendors who either already have a Windows Installer installation package for their applications or plan to create one.

DIFxApp supports many installation scenarios, and also supports uninstalling the driver packages that it installs. This topic describes how to uninstall driver packages by using DIFxApp.

For more information about uninstalling driver and driver packages, see How Devices and Driver Packages are Uninstalled.

Uninstalling the Device

You cannot use DIFxApp to uninstall a device. To perform this action, you must either use Device Manager or a device installation application that calls SetupAPI functions.

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, DIFxApp adds an entry to Programs and Features in Control Panel for each driver package that it installs. Use the following steps to remove the driver package:

  1. In Control Panel, double-click Programs and Features.

  2. Click the entry for the driver package.

  3. Click Uninstall/Change to uninstall the package.

Note In versions of Windows earlier than Windows Vista, Programs and Features in Control Panel was named Add or Remove Programs.

Deleting the Binary Files of the Installed Driver

By default, when you uninstall a driver package with the Programs and Features in Control Panel, you remove the driver package from the DIFx driver store, but you do not remove the driver's binary files. There are two ways to have Programs and Features remove the binary files:

  • Set the corresponding DIFxApp configuration flag to remove installed files.

  • Use the Windows Installer XML (WiX) tools to create an installation package. In the corresponding WiX XML source file, set the DriverDeleteFiles attribute to yes for the component that represents the driver package.

Note Starting with Windows 7, the DIFxApp configuration flag to remove installed files, together with the DriverDeleteFiles attribute, 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 DIFxApp.