DestinationDirs
The DestinationDirs
section defines the destination directories for the operations specified in
file-list sections (Copy Files
[DestinationDirs]
file-list-section=drid[,subdir]
.
.
.
[DefaultDestDir=drid[,subdir]]
file-list-section
Name of a Copy
Files
drid
A directory
identifier (DRID). The installer replaces a DIRID with an actual name during
installation.
A DIRID has the form %dirid% where dirid is one of the
predefined identifiers or an identifier defined in the DestinationDirs
section. When using a DIRID, you should use the backslash in a path. For
example, %11%\card.ini can be used to reference card.ini in the system32
directory.
A DIRID can be one of the following values:
-01, |
The
directory from which the INF was installed. |
01 |
SourceDrive:\path. |
10 |
Windows
directory. |
11 |
System
directory. (%windir%\system on Windows 95, %windir%\system32 on Windows NT) |
12 |
Drivers
directory.(%windir%\system32\drivers on Windows NT) |
17 |
INF file
directory. |
18 |
Help
directory. |
20 |
Fonts
directory. |
21 |
Viewers directory. |
24 |
Applications
directory. |
25 |
Shared
directory. |
30 |
Root
directory of the boot drive. |
50 |
%windir%\system |
51 |
Spool
directory. |
52 |
Spool
drivers directory. |
53 |
User
Profile directory. |
54 |
Path to
ntldr or OSLOADER.EXE |
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 ; DIRID_DRIVERS