Pairing a driver with a Universal Windows Platform (UWP) app

Starting in Windows 10 version 1709, you can specify that a Universal Windows Platform (UWP) app should only load if a specific driver is present. The app can further constrain loading to a particular driver version or date. This topic describes the steps required in both the app and driver to create such a requirement.

Steps in the app

To cause a UWP app to load only when a specific driver is present, add two XML elements to the manifest XML (.appx) file for the app:

In particular, use these elements to specify at least one driver dependency containing at least one driver constraint. See further details on use of these elements on the reference pages linked to above. The latter page contains an example.

Steps in the driver

Next, do the following in the driver's INF file:

  1. Specify the INF AddSoftware Directive.
  2. Set the SoftwareType entry to 2.
  3. Provide a Package Family Name (PFN) in the SoftwareID entry.

In addition to matching the most recent app and driver versions, the system also tries to match previous app and driver versions. For example, if app version 2 specifies minimum driver version 2, and app version 1 specifies minimum driver version 1, a system that has driver version 1 will successfully load app version 1.

See Also