[DestinationDirs]
[DefaultDestDir=dirid[,subdir]]
[file-list-section=dirid[,subdir]] ...
A DestinationDirs section specifies the target destination directory or directories for all copy, delete, and/or rename operations on files referenced by name elsewhere in the INF file.
This section is required in any INF file that uses an INF CopyFiles directive or that references a file-list-section, whether with a CopyFiles, DelFiles, or RenFiles directive.
The optional DefaultDestDir entry provides a default destination for copy, rename, and delete file operations that appear elsewhere in the INF file:
Because all WDM drivers must be installed in the %windir%\system32\drivers directory, their dual-OS INF files must specify the dirid value 10 with an explicit subdir path as system32\drivers either as the DefaultDestDir entry, if any, or in the given file-list-section(s) (referenced elsewhere in the INF with the CopyFiles directive) that list the WDM driver images to be copied to the target.
This example sets the default target directory for all copy-file, delete-file, and rename-file operations. Such a simple DestinationDirs section is common to INF files for new peripheral devices, because such an INF usually just copies a set of source files into a single directory on the target machine.
[DestinationDirs] DefaultDestDir = 12 ; dirid = \Drivers on WinNT platforms
This example shows a fragment of the DestinationDirs section of the INF for display/video drivers.
[DestinationDirs] DefaultDestDir = 11 ; dirid = \system32 on WinNT platforms ; ... ; list of per-Manufacturer, per-Models, per-DDInstall-section, and ; CopyFiles-referenced xxx.Miniport/xxx.Display sections omitted here ; along with several other miniport/display paired drivers ; ... vga.Miniport = 12 vga.Display = 11 xga.Miniport = 12 xga.Display = 11 ; all video miniports copied into \system32\drivers on WinNT platforms ; all paired display drivers copied into \system32
ClassInstall32, CopyFiles, DDInstall, DelFiles, RenFiles, SourceDisksFiles, SourceDisksNames, Version