Skip to main content
Setting the Windows Installer Private Property DriverFlags.component-name

Because the Flags entry for a component in the MsiDriverPackages custom table is set statically when a Windows Installer installation package is created, the Flags entry by itself does not support the capability of an installation package to dynamically set the configuration flags for a driver package at run time.

To overcome this limitation, DIFxApp also supports the following Windows Installer private property for a driver package component in an installation package. If an installation package dynamically sets this property before DIFxApp executes, DIFxApp applies the configuration flags that are specified by the property to the corresponding component.

DriverFlags.component-name

A string that specifies the decimal representation of the sum of the flag values that are set for the component, where component-name is the value of the Component entry for a driver package in the MsiDriverPackages custom table. The configuration flags, and their corresponding values, that can be set dynamically at run time by this property are the same as those that can be set statically by the Flags entry of a component.

If this property is set by an installation package for a component before DIFxApp executes, the configuration flags that are specified by this property replace the static flags that are set in the Flags entry of a component.

If this property is not present when DIFxApp executes, DIFxApp applies the configuration flags that were statically set in the Flags entry for the component.

The following are examples of how to set the string value of DriverFlags.component-name:

  • To set the flag that configures DIFxApp to perform a forced installation, set the string to 1, which is the decimal number that corresponds to the Flags entry binary value of 0001.

  • To set the flags that configure DIFxApp to perform a forced installation and suppress the prompt to connect a device, set the string to 3, which is the decimal number that corresponds to the Flags entry binary value of 0011.

  • To set the flags that configure DIFxApp to perform a forced installation, suppress the prompt to connect a device, and install a legacy driver, set the string to 11, which is the decimal number that corresponds to the Flags entry binary value of 1011.

 

 

Send comments about this topic to Microsoft