Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Installing a Driver Package

Installing a driver package preinstalls the driver package in the DIFx driver store and then installs the driver in the system.

To install a driver package, an installation application calls the DriverPackageInstall function and supplies the following information:

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

  • Optional flag values that modify the installation operation.

  • Optional information about an application that is associated with the driver package.

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

By default, DriverPackageInstall does the following:

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

  • (Applies only to Plug and Play (PnP) function driver packages) Preinstall and install a driver package only if the driver package matches a device in the device tree and the driver package is a better match than the driver package that is currently installed for the device.

  • (Applies only to PnP function driver packages) Preinstall and install a driver package only if the driver matches a device in the device tree, regardless of whether the driver package is a better match than the driver that is currently installed for the device.

  • Preinstall and install a driver package that is unsigned or that has missing files. However, the Windows driver signing requirements apply to the subsequent installation of the 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.

    For more information about how DIFxAPI and Windows handle driver signing requirements, see DIFx Driver Package Requirements.

  • Preinstall a driver package even if the driver package is already preinstalled.

  • Perform a quiet installation, which is also referred to as silent installation. This type of installation suppresses the wizard pages, user dialog boxes, and other user messages that DIFxAPI and Windows generate. If a user dialog box is required to continue the installation in respond to a driver signing dialog box, for example, the installation will fail without displaying a user message.

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

Perform a Default DIFxAPI Installation

Perform a DIFxAPI Installation Only for Matching Devices

Associate an Application with a Driver Package

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft