Once you have thoroughly tested and debugged your device driver and virtual devices, create the distribution disk or disks from which users can install the driver.
Before you create a distribution disk, you must create an OEMSETUP.INF file. This file specifies the files and initialization file settings that need to be installed to support your driver. The OEMSETUP.INF file consists of one or more sections, depending on the type of driver.
Driver | Required | Optional |
Display | [disks] [display] [oemfonts] [sysfonts] [fixedfonts] [fonts] [386Grabber] | [AdditionalInfo] |
Pointing device | [disks] [pointing.device] | [AdditionalInfo] |
Keyboard | [disks] [keyboard.types] | [data] [keyboard.tables] |
Network | [disks] [network] | [WinIniSect] [SysIniSect] [Netname.versions] [work-section] |
Printer | [disks] [io.device] | [io.dependent] |
For more information about the OEMSETUP.INF file, see Microsoft Windows Device Driver Adaptation Guide.
·To create the distribution disk:
1.Copy the OEMSETUP.INF file to the distribution disk.
Do not compress this file.
2.Copy all required files to the distribution disks.
This includes any files from the Windows 3.1 retail Setup disks that your driver may require. As you copy these files, compress them using the COMPRESS program provided in the Microsoft Windows 3.1 Software Development Kit.
You must not require the user to use the Windows 3.1 retail disks to install files needed by your driver. Always provide all files needed for installation on your distribution disk. If you supply the files from the retail disks, always use the same filenames for these files as used by Windows. Proper maintenance and upgrades depend on preserving these filenames.
Make sure you provide explicit, step-by-step instructions for your customers to install all files (including MS-DOS device drivers and utilities) necessary to use your device with Windows.
If you create a distribution disk for a display driver, you need to copy files having the following extensions: DRV, FON, 3GR, 2GR, 386, LGO, and RLE. Never reference *vddvga in your OEMSETUP.INF file. If your driver requires the virtual display device for VGA, you must build and include the VDDVGA.386 file on your distribution disk.
For PostScript printers, Windows now installs the Windows Printer Description (WPD) files just like any other printer driver in Windows. For an example of what you need to add to the OEMSETUP.INF file for a WPD file, see the CONTROL.INF file in the Windows SYSTEM directory. For more informa-tion about the OEMSETUP.INF file, see the Microsoft Windows Printers and Fonts Kit.