Folder Macros
Previous  Top  Next

Thinstall uses macros to represent file system path locations that may relocate when running on different OSes or PCs. The table below list the available macros. When creating a new Thinstall project using Setup Capture, these macros will automatically hard-coded paths with macro forms. A typical project root directory will look something like this:

Typical project structure
(used to build EXE file)
Typical Sandbox Directory
(holds runtime modifications)
clip0031
clip0047



Macro Name
Shfolder.dll ID
*Ver
Typical location
%ProgramFilesDir%
CSIDL_PROGRAM_FILES
5.0
C:\Program Files
%Common StartMenu%
CSIDL_COMMON_STARTMENU

C:\Documents and Settings\All Users\Start Menu
%Common AppData%
CSIDL_COMMON_APPDATA
5.0
C:\Documents and Settings\All Users\Application Data
%Local AppData%
CSIDL_LOCAL_APPDATA
5.0
C:\Documents and Settings\username\Local Settings\Application Data
%AppData%
CSIDL_APPDATA
4.71
C:\Documents and Settings\username\Application Data
%Common Desktop%
CSIDL_COMMON_DESKTOPDIRECTORY

C:\Documents and Settings\All Users\Desktop
%Desktop%
CSIDL_DESKTOPDIRECTORY

C:\Documents and Settings\username\Desktop
%Common Startup%
CSIDL_COMMON_STARTUP

C:\Documents and Settings\All Users\Start Menu\Programs\Startup
%Startup%
CSIDL_STARTUP

C:\Documents and Settings\username\Start Menu\Programs\Startup
%Common Programs%
CSIDL_COMMON_PROGRAMS

C:\Documents and Settings\All Users\Start Menu\Programs
%Programs%
CSIDL_PROGRAMS

C:\Documents and Settings\username\Start Menu\Programs
%Common Favorites%
CSIDL_COMMON_FAVORITES

C:\Documents and Settings\All Users\Favorites
%Favorites%
CSIDL_FAVORITES

C:\Documents and Settings\username\Favorites
%SendTo%
CSIDL_SENDTO

C:\Documents and Settings\username\SendTo
%Templates%
CSIDL_TEMPLATES

C:\Documents and Settings\username\Templates
%Recent%
CSIDL_RECENT

C:\Documents and Settings\username\My Recent Documents
%NetHood%
CSIDL_NETHOOD

C:\Documents and Settings\username\NetHood
%Fonts%
CSIDL_FONTS

C:\Windows\Fonts
%My Pictures%
CSIDL_MYPICTURES
5.0
C:\Documents and Settings\username\My Documents\My Pictures
%My Videos%
CSIDL_MYVIDEO
6.0
C:\Documents and Settings\username\My Documents\My Videos
%Personal%
CSIDL_PERSONAL
6.0
C:\Documents and Settings\username\My Documents
%Profile%
CSIDL_PROFILE
5.0
C:\Documents and Settings\username
%Profiles%
CSIDL_PROFILES
6.0
C:\Documents and Settings
%SystemSystem%
CSIDL_SYSTEM

C:\Windows\System32
%SystemRoot%
CSIDL_WINDOWS

c:\Windows (***)
%Drive_c%


c:\
%Drive_m%


m:\


*Ver: Thinstall uses shfolder.dll to obtain the location of Shell folders. Older versions of shfolder.dll do not support some Macro Names, if there is a requirement for a specific version of shfolder.dll on the host OS, this has been listed.

*** Special processing for %SystemRoot%
When running in a Terminal Services environment, there are 2 "Windows" directories, a shared Windows directory (e.g. C:\Windows) and a private Windows directory
(e.g. C:\Documents and Settings\User\Windows). For Terminal Services environments, Thinstall will use the user-specific directory for %Systemroot%