Class Install Section

[ClassInstall]
AddReg=<Add-registry-section>[,<Add-registry-section>]...
Copyfiles=<file-list-section>[,<file-list-section>]...
Delfiles=<File-list section>[,<File-list-section>]...
DelReg=<Del-registry-section>[,<Del-registry-section>]...
Renfiles=<File-list-section>[,<File-list-section>]...
UpdateInis=<Update-ini-section>[,<Update-ini-section>]...
UpdateIniFields=<Update-inifields-Section>[,<Update-inifields-section>]...
 

Installs a new class for a device in the class section of the registry.

Not all the item types shown in the preceding syntax are needed or required. Typically a ClassInstall section will use AddReg-type items to add a class description and a class icon to the registry. These will be visible in the Windows 95 user interface.

In addition a class install section can specify a property provider and exert control over how the class is handled in the Windows 95 user interface.

Every device installed in Windows 95 has a class associated with it even if the class is UNKNOWN and every class has a class installer associated with it.

The installer processes the ClassInstall section if one of the devices defined in an INF file is about to be installed and the class is not built into Windows 95. Following is a list of the hardware class names that are built into Windows 95:

The relative key is your class section. The Device Manager will create a class entry then you have a normal install section in here.

This example creates the class Sample and registers the description, installer, and icon for the class:

[ClassInstall]
Addreg=SampleClassReg
CopyFiles=@Sample.cpl

[SampleClassReg]
HKR,,,,%SampleClassDesc%
HKR,,Installer,,Sample.cpl
HKR,,Icon,HEX,00,00

[Strings]
SampleClassDesc=Sample
 

The following special controls over the class can be registered by adding one or more of the following items in the AddReg-type item referred to by the ClassInstall section:

HKR,,NoUseClass,,1        ;Class will not be seen anywhere
HKR,,NoInstallClass,,1    ;Class is not shown in New Device Wizard
HKR,,NoDisplayClass,,1    ;Class will not be displayed by Device Manager
HKR,,SilentInstall,,1    ;Class is installed without any user interaction