

MsiDb.exe -t transform.mst -d $(TargetDir)\DriverInstall.msi

4 – Suppress adding an entry in Add/Remove Programs for driver.ĭriver will be uninstalled when main application is uninstalled.2 – Suppress message box telling user to plug in devices after the driver.1 – Force installation of driver, even if it the currently installed drivers isĪ better match than the driver being installed.

The following flags can be used (although some are ignored by Windows 7): Add the Component value into Component field. In the ‘File’ table, locate the INF file of the driver package you would like to install and copy the Component value.Ĭreate a new row in the MsiDriverPackages table.Run Orca and select the MSI package that needs to be modified.(The Windows SDK can be downloaded from Microsoft) The Orca installation is included in the Windows SDK in the ‘C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin’ directory.Use Orca to edit the MSI database table and add the INF component to the DIFxAPP merge modules table. Add the DIFxApp.msm to the setup project.In the setup folder, create a separate directory in the Application Folder for the driver package and add the driver files to the folder.Here are the steps to create an MSI with the DIFxAPP merge module: The merge module can be included in an MSI package and can be set to install multiple device drivers. (Read a good introduction to drivers in Windows, the use of INF files, and DIFxAPP.) The DIFxAPI merge module is included in the WDK in the ‘WDDK//redist\DIFx\DIFxApp\MergeModule\’ directory. So here is the relevant excerpt from the whole document: You'll need to watch out on 64-bit machines, though, as they have much stricter signing enforcement. In Windows 7, there is no prompt and the device installs just fine. However, with the following method it is possible to have the "Search" button in the wizard find your driver automatically. It appears that, unless you hardware/driver combination is WHQL signed, the Add New Hardware Wizard will always appear in Win XP. My colleague came up with an answer that is working very well.
