Creating a device driver installation
|Article:HOWTO5108|||||Created: 2005-09-30|||||Updated: 2006-06-08|||||Article URL http://www.symantec.com/docs/HOWTO5108|
How do I creating a device driver installation?
You can create an installation that supports Microsoft's Driver Install Frameworks (DIFx). Microsoft created the Driver Install Frameworks to significantly improve the quality of device driver installations. For information on DIFx, search for "DIFx" in the MSDN Library (msdn.microsoft.com/library/).
The Microsoft DIFxApp merge module simplifies the process of creating installations that install device drivers. This merge module adds custom actions to the installation that are needed to install and uninstall the driver package using Driver Install Frameworks for Applications (DIFxApp). After you add the merge module, you add the files that make up the driver package and specify the DIFxApp options for installing the driver.
1. Make sure the device driver you are installing meets Microsoft's DIFx driver requirements.
2. Do one of the following to add the Microsoft DIFxApp merge module to the installation.
· Start a new installation and select the Device Driver icon on the New Installation File dialog. See Starting a New Installation. (In Visual Studio: start a new stand-alone installation and select the Device Driver icon on the New File dialog. See Creating a Stand-alone Installation.)
· For an existing installation, add the merge module on the Merge Modules page. See Adding a Merge Module to an Installation.
Note: Early versions of this merge module might be named "Binaries."
3. On the Features page, do the following.
· Add a feature for the installation's driver package. See a Adding a New Feature.
· Add the condition "VersionNT>=500" to the feature. This condition ensures that the driver package is installed only on systems running Windows 2000 or later. See Using Conditions With Features.
4. On the Files page, do the following. For details, see Adding Files to an Installation.
· Select the driver package feature.
· Create a unique directory for the driver package.
· Add the driver package's .INF file to the directory you created.
The driver package's .INF file must be the first file added to this directory so that it becomes the key path of the component.
· Add the other files that make up the driver package to the same directory that contains the .INF file.
· In the lower right list box, double-click the .INF file. The File Details dialog appears.
· Click the Driver tab and edit the DIFxAPP options. See Editing DIFxApp Options.
5. To add additional driver packages repeat the preceding steps, except for adding the DIFxApp merge module.
6. Continue developing the installation.
Article URL http://www.symantec.com/docs/HOWTO5108