The DestinationDirs section defines the destination directories for the operations specified in file-list sections (Copy Files, Rename Files, or Delete Files). Optionally, a default destination directory may be specified for any Copy Files, Rename Files, or Delete Files sections in the INF file that are not explicitly named in the DestinationDirs section.
[DestinationDirs]
file-list-section=drid[,subdir]
.
.
.
[DefaultDestDir=drid[,subdir]]
file-list-section
Name of a Copy Files, Rename Files, or Delete Files section. This name must be referred to in a CopyFiles, RenFiles, or DelFiles item in an Install section.
drid
A directory identifier (DRID). Can be one of these values:
-01Absolute path (32-bit).
0xffffAbsolute path (16-bit).
01SourceDrive:\pathname. The directory from which the INF
file was installed.
10Windows directory.
11System directory. This is %windir%\system32 on
Windows NT and %windir%\system on Windows 95.
12Drivers directory. This is %windir%\system32\drivers on
Windows NT.
17INF file directory.
18Help directory.
20Fonts directory.
21Viewers directory.
24Applications directory.
25Shared directory.
30Root directory of the boot drive.
50%windir%\system directory.
51Spool directory.
52Spool drivers directory.
53User Profile directory.
54Directory where ntldr.exe and osloader.exe are located.
subdir
Name of the directory, within the directory named by drid, to be the destination directory.
The optional DefaultDestDir item provides a default destination for any CopyFiles items that use the direct copy (@filename) notation or any Copy Files, Rename Files, or Delete Files sections not specified in the DestinationDirs section. If a DefaultDestDir is not used in a DestinationDirs section, the default directory is set to drid_system.
This example sets the default directory for all the sections of the INF file to the drivers directory:
[DestinationDirs]
DefaultDestDir = 12