Using Dirids in .inf files

Using Dirids @ Microsoft



Value
Destination Directory
01
SourceDrive:\pathname (the directory from which the INF file was installed)
10
Windows directory %windir%.
11
System directory %windir%\system32
12
Drivers directory %windir%\system32\drivers
17
INF file directory
18
Help directory
20
Fonts directory
21
Viewers directory
23
Color directory (ICM) (not used for installing printer drivers)
24
Root directory of the system disk.
This is the root directory of the disk on which Windows files are installed. For example, if dirid 10 is "C:\winnt", then dirid 24 is "C:\".
25
Shared directory
30
Root directory of the boot disk, also known as "ARC system partition," for NT-based systems. (This might or might not be the same directory as the one represented by dirid 24.)
50
System directory for NT-based operating systems %windir%\system
51
Spool directory (not used for installing printer drivers − see Printer Dirids)
52
Spool drivers directory (not used for installing printer drivers)
53
User profile directory
54
Directory where ntldr.exe and osloader.exe are located (NT-based systems only)
55
Print processors directory (not used for installing printer drivers)
-1
Absolute path

Dirid values from 16384 through 32767 are reserved for special shell folders. The following table shows dirid values for these folders.


Value
Shell Special Folder
16406
All Users\Start Menu
16407
All Users\Start Menu\Programs
16408
All Users\Start Menu\Programs\Startup
16409
All Users\Desktop
16415
All Users\Favorites
16419
All Users\Application Data
16422
Program Files
16425
%WinDir%\System32 (valid for Microsoft Win32 user-mode applications running under Windows on Windows (WOW64))
16426
Program Files (valid for Win32 user-mode applications running under WOW64)
16427
Program Files\Common
16428
Program Files\Common (valid for Win32 user-mode applications running under WOW64)
16429
All Users\Templates
16430
All Users\Documents

No comments:

Post a Comment