Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
Odin

%1% variable listings ?

Recommended Posts

What is the %foobar% or %12345% variable used to mean the local copy of the CD root that was copied to the %SystemDrive% (C:) during the text mode install part, for example like C:\$win_nt$.~ls\ where the directory C:\$win_nt$.~ls\i386 exists of a PXE based RIS installation ?

Or more usefuly I am looking for a reference of all the value %99999% like environment substitutions that various Microsoft platforms have, ideally with which version of OS support each, what they mean, examples of what they expand too.

What are they technically called by Microsoft ? I have seen EXPAND use in Registry types and also variable substitution. Maybe if I knew the correct phrase I could research some more.

Share this post


Link to post
Share on other sites

Guest

TxtSetup.sif uses the numbers as defined in the [WinntDirectories] section of that file. This information may be what you seek. Gosh has more information about that file here on MSFN.

Pertaining to INFs: Microsoft's guide to Using DirIDs, as specifically requested. Gosh also has a guide on MSFN—more informative, though not quite as well written. DirIDs are sometimes called LDIDs, or Local Directory IDentifiers.

Take note that these numeric IDs are valid only in INFs, not in REG files or at a command prompt.

Edited by 5eraph

Share this post


Link to post
Share on other sites

1 = <Location of running inf>
10 = %SystemRoot%
11 = %SystemRoot%\system32
12 = %SystemRoot%\system32\DRIVERS
17 = %SystemRoot%\INF
18 = %SystemRoot%\help
20 = %SystemRoot%\fonts
21 = %SystemRoot%\system32\viewers
23 = %SystemRoot%\system32\spool\drivers\color
24 = %SystemDrive%\
25 = Shared directory
30 = <Root directory of the boot disk>\
50 = %SystemRoot%\SYSTEM
51 = %SystemRoot%\system32\spool
52 = %SystemRoot%\system32\spool\DRIVERS\W32X86 ;(x86 systems only)
52 = %SystemRoot%\system32\spool\DRIVERS\x64 ;(x64 systems only)
53 = %UserProfile%
54 = <Directory where bootmgr.exe is located>\
55 = %SystemRoot%\system32\spool\PRTPROCS\W32X86 ;(x86 systems only)
55 = %SystemRoot%\system32\spool\PRTPROCS\x64 ;(x64 systems only)

16384 = %UserProfile%\Desktop
16386 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
16389 = %UserProfile%\Documents
16390 = %UserProfile%\Favorites
16391 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
16392 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Recent
16393 = %UserProfile%\AppData\Roaming\Microsoft\Windows\SendTo
16395 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu
16397 = %UserProfile%\Music
16398 = %UserProfile%\Videos
16400 = %UserProfile%\Desktop
16403 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Network Shortcuts
16404 = %SystemRoot%\Fonts
16405 = %UserProfile%\AppData\Roaming\Microsoft\Windows\Templates
16406 = %AllUsersProfile%\Microsoft\Windows\Start Menu
16407 = %AllUsersProfile%\Microsoft\Windows\Start Menu\Programs
16408 = %AllUsersProfile%\Microsoft\Windows\Start Menu\Programs\Startup
16409 = %Public%\Desktop (%UserProfile%\..\Public\Desktop)
16410 = %AppData%
16411 = %AppData%\Microsoft\Windows\Printer Shortcuts
16412 = %LocalAppData%
16413 = %AppData%\Microsoft\Windows\Start Menu\Programs\Startup
16414 = %AllUsersProfile%\Microsoft\Windows\Start Menu\Programs\Startup
16415 = %UserProfile%\Favorites
16416 = %LocalAppData%\Microsoft\Windows\Temporary Internet Files
16417 = %AppData%\Microsoft\Windows\Cookies
16418 = %LocalAppData%\Microsoft\Windows\History
16419 = %ProgramData%
16420 = %SystemRoot%
16421 = %SystemRoot%\system32
16422 = %ProgramFiles%
16423 = %UserProfile%\Pictures
16424 = %UserProfile%
16425 = %SystemRoot%\SysWOW64 ;(x64 systems only)
16426 = %ProgramFiles(x86)% ;(x64 systems only)
16427 = %CommonProgramFiles%
16428 = %CommonProgramFiles(x86)% ;(x64 systems only)
16429 = %AllUsersProfile%\Microsoft\Windows\Templates
16430 = %Public%\Documents (%UserProfile%\..\Public\Documents)
16431 = %AllUsersProfile%\Microsoft\Windows\Start Menu\Programs\Administrative Tools
16432 = %AppData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools
16437 = %Public%\Music (%UserProfile%\..\Public\Music)
16438 = %Public%\Pictures (%UserProfile%\..\Public\Pictures)
16439 = %Public%\Videos (%UserProfile%\..\Public\Videos)
16440 = %SystemRoot%\resources
16441 = %SystemRoot%\resources\0409
16442 = %AllUsersProfile%\OEM Links
16443 = %LocalAppData%\Microsoft\Windows\Burn\Burn

Expanded for 64 bit

Share this post


Link to post
Share on other sites

Thanks for your replies most helpful.

I do want to run it from a *.BAT/*.CMD (called from i386\svcpack.inf) however I could write an EXE tool to expand the "%1%" if there was suitable API to do this.

It doesn't appear there exists either DirId or environment variable which cover what I am after, which is the C:\$win_nt$.~ls which is the location of the copied installation files done during the last part of the textmode part of installation.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...