Creating the AddReg-type Section for the Miniport Driver

You can use the same method to add an AddReg-type section to the INF file that creates a registry entry for the Miniport driver at installation time. In this example, that section is named CX2590_RegEntries, but can be named anything as long as it is a unique section name in the INF file. The filename of the miniport driver is CX2590.MPD.

The AddReg-type section items that must be put into an INF file vary between classes of devices. One way to find out what entries are required is to look at the AddReg-type sections in the INF files for your class of device that are in the %WINROOT%\INF directory after Windows 95 is installed on your machine.

Adding References to the AddReg-Type Sections to the Install Section

For the AddReg-type sections you have built (named StdIOS_RegEntries and CX2590_RegEntries) to be recognized by the operating system installer, the names of the two sections have to be added to the Install section. To do this

  1. Double-click on the Install sections subfolder named CX2590.Install. A list of all the types of sections that can be referred to in an Install section will be displayed in the edit area on the right side of the screen.
  2. Since you want to add the names of AddReg-type sections to the Install section of the INF file, double-click the AddReg item in the edit box list. Use the Edit Section List dialog to move the two AddReg-type section names (StdIOS_RegEntries and CX2590_RegEntries in this example) from the Available Sections list box to the Included Sections list box and then click OK.

At this point, the edit display looks like this:

This display reflects that the two AddReg-type sections and two logical configuration sections have been put into the INF file and the names of all four sections have been added to the Install section script. Sections that enable files to be copied from an installation diskette to specific hard disk directories have to added to the INF file also.