4.0.4

Table Of Contents
ThinApp User’s Guide
92 VMware, Inc.
Youcanusethesameinventorynameacrossdifferentversionsofthesameapplicationtoensurethatonlythe
mostrecentversionappearsinAddorRemoveProgramslist.Theapplicationsoverwriteeachotherinthe
AddorRemoveProgramslistandpreventyoufromuninstallingalloftheregisteredpackages.
Ifyouwantto
uninstallmorethanoneversion,useadifferentinventorynameforeachversion.Forexample,useMicrosoft
Office2003andMicrosoftOffice2007asinventorynamesratherthanjustMicrosoftOffice.Whenyou
maintaindifferentversionsofavirtualapplicationinthesameenvironment,youmight
wanttochangethe
SandboxNameparametertoensurethatanewversionhasisolatedusersettingsinadifferentsandbox.
Ifyouhaveapackagethatincludesotherapplications,youmightupdatetheinventorynamemanuallyto
reflectthetruecontentsofthepackage.Forexample,ifyoucapturetheSuperApp
applicationandthepackage
includesJavaRuntime,theInventoryNamevaluemightappearasJava Runtime Environment 1.5instead
ofSuperApp.TheAddorRemoveProgramslistdisplaysthefirstapplicationinstalledwithinthepackage.
Examples
YoucansettheinventorynametoMicrosoftOffice2003.
[BuildOptions]
InventoryName=Microsoft Office 2003
RemoveSandboxOnExit
TheRemoveSandboxOnExitparameterdeletesthesandboxandresetstheapplicationwhenthelastchild
processexits.
ThinAppstoresallapplicationchangestotheregistryandfilesystemlocationswithWriteCopyorFull
isolationinthesandbox.Bydefault,thesandboxdirectorykeepsconsistentsettingsacrossmultiplerunsof
theapplication.You
mightwanttodeletethesandboxeachtimetheapplicationexits.
Iftheapplicationcreateschildprocesses,ThinAppdoesnotdeletethesandboxuntilallchildprocessesexit.
Applicationsmightbedesignedtoleavechildprocessesinplacethatcanblockthecleanupoperation.
For example,MicrosoftOffice2003leavesthectfmon.exe
process.Youmightneedtouseascripttoendthe
ctfmon.exeprocessandchildprocessestoforcethecleanupoperationtooccur.
YoucandecideatruntimewhethertousetheRemoveSandboxOnExitscriptAPIfunctiontodeletethe
sandboxonexit.
Examples
Youcandeletethesandboxwhentheapplicationexits.
[BuildOptions]
RemoveSandboxOnExit=1
Youcanleavethesandboxinplacewhentheapplicationexits.Thisisthedefaultbehavior.
[BuildOptions]
RemoveSandboxOnExit=0
SandboxName
TheSandboxNameparametersetsthenameofthedirectorythatstoresthesandbox.
Whenyouupgradeanapplication,thesandboxnamehelpsdeterminewhetherusersretainpreviouspersonal
settingsorrequirenewsettings.Changingthesandboxnamewithnewdeploymentsaffectstheneedtocreate
anewsandboxwithdifferentsettings
orretainsthesamesandbox.
Examples
YoucanmakeMy Application 1.0thesandboxdirectoryname.
[BuildOptions]
SandboxName=My Application 1.0