# Automatic Variable Substitution Chart

System/Environment data

%Variable% | NT v5.x (XP/2K/2K3) | NT v6.x (Vista/7) NT v10.x (Win 10/11)
%SystemDrive% | C: | C:
%SystemRoot% | C:\Windows | C:\Windows
%WinDir% | C:\Windows | C:\Windows
%SystemDir% 1 | C:\Windows\System32 | C:\Windows\System32
%ProgramFiles% | C:\Program Files | C:\Program Files
%ProgramFiles(x86)% 2 | C:\Program Files (x86) | C:\Program Files (x86)
%CommonProgramfiles% | %ProgramFiles%\Common Files | %ProgramFiles%\Common Files
%CommonProgramfiles(x86)% 2 | %ProgramFiles(x86)%\Common Files | %ProgramFiles(x86)%\Common Files
%ComputerName% | {computername} | {computername}
%Comspec% | %WinDir%\System32\cmd.exe | %WinDir%\System32\cmd.exe
%Path% | {system paths};{program paths} | {system paths};{program paths}

1 SetupS-only generated.

2 Variables with (x86) are only available with x64 architectures.

"Current User" data

%Variable% | NT v5.x (XP/2K/2K3) | NT v6.x (Vista/7) NT v10.x (Win 10/11)
%Username% | {username} | {username}
%HomeDrive% | C: | C:
%HomePath% | \Documents and Settings\{username} | \Users\{username}
%UserProfile% | C:\Documents and Settings\{username} | C:\Users\{username}
%Temp% | %UserProfile%\Local Settings\Temp | %UserProfile%\AppData\Local\Temp
%Tmp% | %Temp% | %Temp%
%AppData% | %UserProfile%\Application Data | %UserProfile%\AppData\Roaming
%Desktop% | %UserProfile%\Desktop | %UserProfile%\Desktop
%Favorites% | %UserProfile%\Favorites | %UserProfile%\Favorites
%MyDocuments% | %UserProfile%\{username}'s Documents | %UserProfile%\Documents
%StartMenu% | %UserProfile%\Start Menu | %AppData%\Microsoft\Windows\Start Menu
%Programs% | %StartMenu%\Programs | %StartMenu%\Programs
%Startup% | %Programs%\Startup | %Programs%\Startup
%SendtoPath% | %UserProfile%\SendTo | %AppData%\Microsoft\Windows\SendTo
%QuickLaunch% | %AppData%\Microsoft\Internet Explorer\Quick Launch | %AppData%\Microsoft\Internet Explorer\Quick Launch
%LocalAppData% | %UserProfile%\Local Settings\Application Data 1 | %UserProfile%\AppData\Local

1 SetupS-simulated.

"All Users" data

%Variable% | NT v5.x (XP/2K/2K3) | NT v6.x (Vista/7) NT v10.x (Win 10/11)
%AllUsersProfile% | C:\Documents and Settings\All Users | C:\ProgramData
%AppDataCommon% | %AllUsersProfile%\Application Data | %AllUsersProfile%\Application Data
%DesktopCommon% | %AllUsersProfile%\Desktop | %Public%\Desktop
%DocumentsCommon% | %AllUsersProfile%\Documents | %Public%\Documents
%FavoritesCommon% | %AllUsersProfile%\Favorites | %Public%\Favorites
%StartMenuCommon% | %AllUsersProfile%\Start Menu | %AllUsersProfile%\Microsoft\Windows\Start Menu
%ProgramsCommon% | %StartMenuCommon%\Programs | %StartMenuCommon%\Programs
%StartupCommon% | %ProgramsCommon%\Startup | %ProgramsCommon%\Startup
%SendtoCommon% | %AllUsersProfile%\SendTo 1 | %AllUsersProfile%\SendTo
%Public% | %AllUsersProfile%\..\Public 1 | C:\Users\Public

1 SetupS-simulated.

SetupS data

%Variable% | Description
%INIpath% | Same as %SourcePath% (legacy).
%SourcePath% | Full path (drive + folder) to the .app or .ppg file.
%SourceDrive% | Drive only of the .app or .ppg file.
%SourceFolder% | Folder only path to the .app or .ppg file.
%ppApps% | Full path (drive + folder) to the system's "x:\ppApps\" folder.
%ppAppsDrive% | Drive only of the system's "x:\ppApps\" folder.
%ppGames% | Full path (drive + folder) to the system's "x:\ppGames\" folder.
%ppGamesDrive% | Drive only of the system's "x:\ppGames\" folder.
%Tools% | Full path (drive + folder) to SetupS's Tools folder.
%ToolsDrive% | Drive only of SetupS's Tools folder.
%ToolsFolder% | Folder only path to SetupS's Tools folder.
%InstalledPath% | Same as %AppPath%.
%AppPath% | Full path (drive + folder) to the App's or Game's actual installed-to folder.
%AppDrive% | Drive only of the App's or Game's actual installed-to folder.
%AppFolder% | Folder only path to the App's or Game's actual installed-to folder.
%CDROM% | Same as %CDDRIVE%.
%CDDRIVE% | Drive only of the system's optical drive (real or virtual).
%ssTekResources% | For "%WinDir%\ssTek" (ie, "C:\Windows\ssTek").

SetupS Component Tools.

%AddonInstaller% {path\filename} : Process Addons such as ones from Kel or RyanVM.

Exactly equivalent to: 'AddonInstaller.exe {path\filename}'

%ProcessKill% {filename} : To force a process/task to close from a given filename.

Exactly equivalent to: 'ProcessKill.exe {filename}'

%AddToHosts% {IP address} {host name} : Sets mappings of IP addresses to host names.

Exactly equivalent to: 'AddToHosts.exe {IP address} {host name}'

%WaitForIt% {path\filename}|{filename} : Force SetupS to pause until a specific file or process is created.

Shortcut files (.lnk) are recommended because they are often created last by installers.

Exactly equivalent to: 'WaitForIt.exe {path\filename}|{filename}'

%Extract% {archive} -o{destination path} : Extract an archive to a specified destination path.

Exactly equivalent to: '7z x -y -aoa {archive} -o{destination path}'

SetupS Directives. Note: Except for Gate Directives (#Is_x64#, #Is_NT6#, etc.) these are for the <Assembly> section ONLY.

#Is_x86# : Process this line for 32-bit OS-Architectures (x86) only. May also be used in any of the following:

<Assembly>, <Script>, <Registry>, <Extensions>, <InstallFonts>, <RegisterDLL>; and <ShortcutS> with the Flags definition.

#Is_x64# : Process this line for 64-bit OS-Architectures (x64) only. May also be used in any of the following:

<Assembly>, <Script>, <Registry>, <Extensions>, <InstallFonts>, <RegisterDLL>; and <ShortcutS> with the Flags definition.

#Is_NT5# : Process this line for NT5.x OS's only (Windows 2000/XP/2003). May also be used in any of the following:

<Assembly>, <Script>, <Registry>, <Extensions>, <InstallFonts>, <RegisterDLL>; and <ShortcutS> with the Flags definition.

#Is_NT6# : Process this line for NT6.x OS's only (Windows Vista/7/2008). May also be used in any of the following:

<Assembly>, <Script>, <Registry>, <Extensions>, <InstallFonts>, <RegisterDLL>; and <ShortcutS> with the Flags definition.

#CMD# : Process this line as a command-line using the DOS console (aka, the Command-line Interpreter).

#ApplyRegistry# : Apply the <Registry> section. Skips it during Post-processing.

#RunScript# : Run the <Script> section with the Source folder as the 'Start In' or working folder. Skips it during Post-processing.

#RegisterDLL# : Process the <RegisterDLL> section. Skips it during Post-processing.

#InstallFonts# : Process the <InstallFonts> section. Skips it during Post-processing.

#ShortcutS# : Process the <ShortcutS> section... all shortcut/startmenu related tasks (w/ StartMenu Folder icons) AND File Association(s). Skips it during Post-processing.

#AppPathFolderIcon# : Install-path Folder Icon

Copyright © 2020, Vergitek Solutions

ssTek Forum: Tools for custom Operating Systems!