4.7.3

Table Of Contents
ThinApp User’s Guide
80 VMware, Inc.
Examples
MsgBbox "The package source EXE is " + GetEnvironmentVariable("TS_ORIGIN")
RemoveSandboxOnExit
TheRemoveSandboxOnExit(YesNo)functionsettogglesthatdeterminewhethertodeletethesandboxwhen
thelastchildprocessexits.
IfyousettheRemoveSandboxOnExitparameterto1inthePackage.inifile,thedefaultcleanupbehaviorfor
thepackagewithisYes.YoucanchangethecleanupbehaviortoNobycalling
RemoveSandboxOnExitwith
thevalueof0.IfyoudonotmodifytheRemoveSandboxOnExit=1entryinthePackage.inifile,thedefault
cleanupbehaviorforthepackageisNo.YoucanchangethecleanupbehaviortoYesbycalling
RemoveSandboxOnExitwiththevalueof1.
Parameters
Yes No
[in]Doyouwanttocleanupwhenthelastprocessshutsdown?1=Yes,0=No
Examples
Thefollowingexampleturnsoncleanup.
RemoveSandboxOnExit 1
Thefollowingexampleturnsoffcleanup.
RemoveSandboxOnExit 0
SetEnvironmentVariable
TheSetEnvironmentVariable(Name, Value)functionsetthevalueofanenvironmentvariable.
Parameters
Name
[in]Thenameoftheenvironmentvariabletostorethevalue.
Value
[in]Thevaluetostore.
Examples
SetEnvironmentVariable "PATH", "C:\Windows\system32"
SetfileSystemIsolation
TheSetfile systemIsolation(Directory, IsolationMode)functionsetstheisolationmodeofa
directory.
Parameters
Directory
[in]Fullpathofthedirectorywhoseisolationmodeistobeset.
IsolationMode
[in]Isolationmodetoset.
1=WriteCopy
2=Merged
3=Full