MSFN Forums: List of Dirids (for INF installations) - MSFN Forums

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

List of Dirids (for INF installations) Includes Dirids not listed on MSDN Rate Topic: -----

#1 Posted 26 November 2003 - 03:28 PM

User is offline   gtaylor 
  • Member
  • PipPip
  • Group: Members
  • Posts: 109
  • Joined: 11-November 03
Comprehensive List of Dirids for Windows XP Pro

1 SourceDrive:\pathname (the directory from which the INF file was installed)
10 Windows directory. This is equivalent to %windir%.
11 System directory. This is equivalent to %windir%\system32 for NT-based systems, and to %windir%\system for Windows 9x/Me.
12 Drivers directory. This is equivalent to %windir%\system32\drivers for NT-based platforms, and to %windir%\system\IoSubsys on Windows 9x/Me platforms. 
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 (C:\WINDOWS)
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. This is equivalent to %windir%\system (NT-based systems only). 

51 Spool directory (not used for installing printer drivers)
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

16384 Current User\Desktop
16386 Current User\Start Menu\Programs
16389 Current User\My Documents
16390 Current User\Favorites
16391 Current User\Start Menu\Programs\Startup
16392 Current User\Recent
16393 Current User\SendTo
16395 Current User\Start Menu
16397 Current User\My Documents\My Music
16398 Current User\My Documents\My Videos
16400 Current User\Desktop
16403 Current User\NetHood
16404 C:\WINDOWS\Fonts
16405 Current User\Templates
16406 All Users\Start Menu
16407 All Users\Start Menu\Programs
16408 All Users\Start Menu\Programs\Startup
16409 All Users\Desktop
16410 Current User\Application Data
16411 Current User\PrintHood
16412 Current User\Local Settings\Application Data
16415 All Users\Favorites
16416 Current User\Local Settings\Temporary Internet Files
16417 Current User\Cookies
16418 Current User\Local Settings\History
16419 All Users\Application Data
16420 System Root (C:\WINDOWS)
16421 C:\WINDOWS\System32
16422 Program Files
16423 Current User\My Documents\My Pictures
16424 Current User
16425 C:\WINDOWS\System32
16427 C:\Program Files\Common Files
16429 All Users\Templates
16430 All Users\Documents
16431 All Users\Start Menu\Programs\Administrative Tools
16432 Current User\Start Menu\Programs\Administrative Tools
16437 All Users\Documents\My Music
16438 All Users\Documents\My Pictures
16439 All Users\Documents\My Videos
16440 C:\WINDOWS\resources
16441 C:\WINDOWS\resources409
16443 Current User\Local Settings\Application Data\Microsoft\CD Burning


If you are aware of any not listed here (or any which are incorrect) please post them here. I only tested these in Windows XP Pro. I cannot guarantee that these are the same in other versions of Windows. For those wanting their INF to work in Windows 98 only dirids 1 to 30 are supported.

This post has been edited by gtaylor: 02 April 2007 - 12:46 AM



#2 Posted 26 November 2003 - 03:30 PM

User is offline   gosh 
  • gosh 2.0
  • Group: Patrons
  • Posts: 2,338
  • Joined: 03-October 03
  • Gender:Male
  • OS:none specified
  • Country: Country Flag
Where did you get that list from? Good work :thumbup

-gosh

#3 Posted 26 November 2003 - 04:24 PM

User is offline   gtaylor 
  • Member
  • PipPip
  • Group: Members
  • Posts: 109
  • Joined: 11-November 03
I used a brute force method. First I used an INF file to place all possible values of all dirids into the registry. Then I exported that registry key, cleaned out the empty values and formatted to make it readable.

;ListDirids.inf
[Version]
Signature=$CHICAGO$

[DefaultInstall]
AddReg=ListDirids.Reg

[ListDirids.Reg]
HKLM,"Software\Dirids","1",,%1%
HKLM,"Software\Dirids","2",,%2%
HKLM,"Software\Dirids","3",,%3%
;etc, up to 64,768


The difficult part was making the list of dirads in the ListDirads.Reg section. I used excel to create a comma delimited file of the registry entries.

#4 Posted 26 November 2003 - 05:15 PM

User is offline   Spooky 
  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 718
  • Joined: 12-November 03
Great! Just what I needed

#5 Posted 26 November 2003 - 07:00 PM

User is offline   gosh 
  • gosh 2.0
  • Group: Patrons
  • Posts: 2,338
  • Joined: 03-October 03
  • Gender:Male
  • OS:none specified
  • Country: Country Flag
I added the dirids and profileitems to my install.inf. Install.inf also has some minor changes since i last uploaded it. It also has a working ramdrive install section.

install.inf

I also uploading my current unattend file, it's a huge mess.

winnt.sif

-gosh

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users




All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2010 msfn.org
Privacy Policy