4.0.4

Table Of Contents
ThinApp User’s Guide
72 VMware, Inc.
Configuring Storage
YoucanuseThinAppparameterstoconfigurefilestorageandsetupvirtualdrives.
CachePath
TheCachePathparametersetsthepathtothecachedirectorythatstoresfontfilesandstubexecutablefiles.
Youcanusethisparametertoforcethecachedirectorytoresideonadifferentdrive.
Thisparametercancontainmacros,suchas%Local AppData%,thatexpandbeforeuse.Ifthepathisrelative,
ThinAppinterpretsthepathrelativetothedirectorywherethepackageisstored.
YoucanusetheTHINSTALL_CACHE_DIRenvironmentvariabletooverridethisparameteratruntime.
IfneithertheCachePathparameternorthe THINSTALL_CACHE_DIRenvironmentvariableispresent,ThinApp
usesadefaultlocation.Thedefaultlocationdependsonthepresenceof
aSandboxPathparameterinthe
Package.inifile.IftheSandboxPathparameterexistsandthepathsettingisrelative,CachePathdefaultsto
thesamepath.IftheSandboxPathsettingexistsandthepathsettingisabsolute,CachePathdefaultsto
%Local AppData%\Thinstall\Cache\Stubs.
Examples
YoucansetthecachedirectorytoC:\VirtCache.
CachePath=C:\VirtCache
IfthepackageresidesinC:\VirtAppsandtheCachePathparameterhasavalueofCache,thecachedirectory
isC:\VirtApps\Cache.
UsingaUSBkeymightinvolveforcingthesandboxontotheUSBkey.Ifyoustorepackagesinthe\VirtApps
directoryontheUSBkey,youcanforcethe
cachedirectorytoresideontheUSBkey.
CachePath=Sandbox
UpgradePath
TheUpgradePathparameterspecifiesthelocationofinformationandfilesforupdates.ApplicationSyncand
integerupdatesusethislocation.
Bydefault,theApplicationSyncutilityplacesitslogandcachefilesinthesamelocationastheapplication
executablefileonthelocalmachine.Integerupdatesoperateinasimilar
way.Ifthedefaultlocationhaslimited
spaceoryouwanttoisolateupgradesfromtheapplicationexecutablefile,usetheUpgradePathparameterto
specifyanalternativelocation.Youcanuseenvironmentvariablesinthepath.Donotusefoldermacros.
WhentheApplicationSyncutilitydownloadsanupdatefroma
server,itstorestheupdatewithatemporary
nameintheUpgradePathlocation.Thenexttimetheapplicationstarts,ThinApprenamesthetemporaryfile
witha.1extensionora.2 extensiondependingonwhether.1alreadyexists.ThinAppattemptstochangethe
namewiththe.1extensiontotheoriginalname
ofthefilethatmightresideinanotherdirectory.IfThinApp
cannotmakethischange,thefilekeepsthe.1extensionintheUpgradePathlocation.Runningtheoriginal
applicationaccessesthatfile.
ForinformationabouttheApplicationSyncutility,seeApplicationSyncUpdatesonpage 39.
Examples
Insteadofstoringupdatefilesinthedefaultlocationwiththeapplicationexecutablefile,youcaninstruct
ThinApptodetectapplicationupdatesinC:\Program Files\MyAppUpgrades.
[BuildOptions]
UpgradePath=C:\Program Files\MyAppUpgrades