<<

Using IExpress Wizard to Create a DPInst Installation Package You can use Windows IExpress Wizard to create a self-extracting DPInst installation package. IExpress Wizard is a tool that is provided in the Administration Kit (IEAK).

Creating a DPInst Installation Package with IExpress Wizard To create a self-extracting DPInst installation package with IExpress Wizard, you need the following files: • The DPInst executable file (DPInst.exe). • The driver package files. • An optional DPInst descriptor file. A DPInst descriptor file must be named "DPInst.xml". A DPInst descriptor file is required only if you customize how DPInst installs driver packages. • An optional command-line script file. A command-line script file is required only if the driver package INF files are configured to locate source files in directories other than the directory that contains the INF files. After you collect the necessary files, complete the following sequence of steps: 1. Click Start, click Run, type IExpress in the Open box, and click OK. 2. On the Welcome to IExpress 2.0 page, select Create new Self Extraction Directive file, and then click Next. 3. On the Package purpose page, select Extract files and run an installation command, and then click Next. 4. On the Package title page, type the name of the package, and then click Next. 5. On the Confirmation prompt page, select No prompt, and then click Next. 6. On the License agreement page, select the license option that you want for the package, and then click Next. 7. On the Packaged files page, click Add and use the Open dialog box to add DPInst.exe, DPInst.xml, and the driver package files. If you need to supply a command-line script file to create a subdirectory structure, add the command-line script file. After adding all of the installation files, click Next. 8. On the Install Program to Launch page, if you do not need to supply a command-line script file to create a subdirectory structure, type DPInst.exe in the Install Program box and do not type anything in the Post Install Command box. If you need to supply a command-line script file to create a subdirectory structure, type the name of the command-line script file in the Install Program box and type DPInst.exe in the Post Install Command box. After entering the appropriate file names, click Next. 9. On the Show window page, select how the installation program window will be displayed, and then click Next. 10.On the Finished message page, select No message, and then click Next. 11.On the Package Name and Options page, enter the target path and filename name for the installation package. In the Options area, select the options that you want for the package, and then click Next. 12.On the Configure restart page, select if and how you want a computer to restart after the end of the installation program and whether the user will be prompted before the restart, and then click Next. 13.On the Save Self Extraction Directive page, select whether you want to save a file that contains the options you selected for the installation package for later use, and then click Next. 14.On the Create package page, click Next. After the wizard informs you that it finished creating the installation program, click Finish.

Creating a Command-Line Script If the driver package INF files are configured to find source files in subdirectories other than the directory that contains the INF files, you must include a command-line script file that creates the subdirectory structure and copies the files to the subdirectories. This file is required because IExpress Wizard does not maintain the subdirectory structure of the files that you add to the installation program. Instead, IExpress Wizard treats all of the files as if they came from the same directory. INF files are commonly configured to find binary executable files in subdirectories with names such "i386" and "AMD64". The following code example shows the contents of a simple command-line script (a .cmd file) that creates an i386 subdirectory and then copies files to the subdirectory. @md i386 @xcopy /q /y toastva.exe i386\. @xcopy /q /y tostrcls.dll i386\. @xcopy /q /y tostrco2.dll i386\. @xcopy /q /y toaster.sys i386\.

For more information about how to configure the installation program to run a simple command- line script of this type before the installation program runs DPInst, see steps 6 and 7 in Creating a DPInst Installation Package with IExpress Wizard.