4.0.4

Table Of Contents
ThinApp User’s Guide
104 VMware, Inc.
Using Folder Macros
ThinAppusesmacrostorepresentfilesystempathlocationsthatmightchangewhenvirtualizedapplications
runondifferentWindowsoperatingsystemsorcomputers.Theuseofmacrosallowssharedapplication
profileinformationtoinstantlymigratetodifferentoperatingsystems.
Forexample,youmightcaptureanapplicationonasystemthathas
C:\WINNTastheWindowsdirectoryand
deploytheapplicationonasystemthathasC:\WindowsastheWindowsdirectory.ThinApptransparently
convertsC:\WINNTto%SystemRoot%duringthecaptureprocessforthat systemandexpands%SystemRoot%
toC:\Windowsduringruntimeforthatsystem.
IfanapplicationregistersDLLstoC:\winnt\system32whilerunning
onWindows 2000,theusercanquit
theapplicationandlogintoaWindowsXPmachine.OntheWindowsXPmachine,thefilesappeartoexistat
C:\windows\system32andallrelatedregistrykeyspointtoC:\windows\system32.
OnWindowsVista,ThinAppmovesWindowsSxSDLLsandpolicyinformationtomatchWindows
Vista
insteadofusingWindowsXPfilepathstyles.Thisfeatureallowsmostapplicationstomigratetoupdatedor
olderoperatingsystems.
ThinAppprovidesSxSsupportforapplicationsrunningonWindows2000eventhoughtheunderlying
operatingsystemdoesnot.ThissupportenablesmostapplicationscapturedonWindowsXPto
runon
Windows2000withoutchanges.
List of Folder Macros
ThinAppusestheshfolder.dllfiletoobtainthelocationofshellfolders.Olderversionsofthe
shfolder.dllfiledonotsupportsomemacronames.
Macrosrequiringshfolder.dllversion5.0orlaterinclude%ProgramFilesDir%,%Common AppData%,
%Local AppData%,%My Pictures%,and%Profile%.
Macrosrequiringshfolder.dllversion6.0orlaterinclude%My Videos%,%Personal%,
and%Profiles%.
Table D1liststheavailablefoldermacros.
Table D-1. Folder Macros
Macro Name Typical Location
%AdminTools% C:\Documents and Settings\<user_name>\Start
Menu\Programs\Administrative Tools
%AppData% C:\Documents and Settings\<user_name>\Application Data
%CDBurn Area% C:\Documents and Settings\<user_name>\Local Settings\Application
Data\Microsoft\CD Burning
%Common AdminTools% C:\Documents and Settings\All Users\Start Menu\Programs\Administrative
Tools
%Common AppData% C:\Documents and Settings\All Users\Application Data
%Common Desktop% C:\Documents and Settings\All Users\Desktop
%Common Documents% C:\Documents and Settings\All Users\Documents
%Common Favorites% C:\Documents and Settings\All Users\Favorites
%Common Programs% C:\Documents and Settings\All Users\Start Menu\Programs
%Common StartMenu% C:\Documents and Settings\All Users\Start Menu
%Common Startup% C:\Documents and Settings\All Users\Start Menu\Programs\Startup
%Common Templates% C:\Documents and Settings\All Users\Templates
%Cookies% C:\Documents and Settings\<user_name>\Cookies
%Desktop% C:\Documents and Settings\<user_name>\Desktop
%Drive_c% C:\
%Drive_m% M:\