The Install section identifies the sections in the INF file that contain descriptions of the device and instructions for installing files and information needed by the device driver(s).
The name of this section must be listed in a Device section that is associated with a Manufacturer section.
[install-section-name] LogConfig=log-config-section-name[,log-config-section-name]... Copyfiles=file-list-section-name[,file-list-section-name]... Renfiles=file-list-section-name[,file-list-section-name]... Delfiles=file-list-section-name[,file-list-section-name]... UpdateInis=update-ini-section-name[,update-ini-section-name]... UpdateIniFields=update-inifields-section-name[,update-inifields-section-name]... AddReg=add-registry-section-name[,add-registry-section-name]... DelReg=del-registry-section-name[,del-registry-section-name]... Ini2Reg=ini-to-registry-section-name[,ini-to-registry-section-name]...
Not all the types of items shown in the syntax are needed or required in an Install section. Section names must consist of printable characters. More than one section name can be listed in an item; each additional name must be preceded with a comma. Items must specify the name of the corresponding section in the INF file. The only exception to this is the CopyFiles item, which need not specify a section if only one file is being copied.
You can use a special notation in the CopyFiles item to copy a single file directly from the CopyFiles line. An individual file can be copied by prefixing the filename with an @ symbol. The destination for any file copied using this notation is the DefaultDestDir, as defined in a DestinationDirs section.
By appending an extension to the name of the Install section, you can have different Install sections for different operating systems or platforms if necessary. The following extensions are recognized by the Setup functions:
.win |
Windows 9x |
.nt |
Windows NT (all platforms) |
.ntx86 |
Windows NT (x86 only) |
.ntmips |
Windows NT (MIPS only) |
.ntalpha |
Windows NT (Alpha only) |
.ntppc |
Windows NT (PPC only) |
The extensions are not case sensitive. The following example Install section consists of a single line that lists two Copy Files sections:
[Ser_Inst] CopyFiles=Ser_CopyFiles, mouclass_CopyFiles [Ser_CopyFiles] sermouse.sys [mouclass_CopyFiles] mouclass.sys