4.6

Table Of Contents
ThinApp User’s Guide
100 VMware, Inc.
Configuring Sandbox Storage and Inventory Names
YoucanmodifyThinAppparameterstoconfigurethesandboxwhereallchangesthatthecapturedapplication
makesarestored.TheThinAppinventorynamemightaffecttheneedtochangethesandboxname.
Formoreinformationaboutthesandboxplacementandstructure,seeChapter 6,“LocatingtheThinApp
Sandbox,”onpage 103.
InventoryName
TheInventoryNameparameterisastringthatinventorytrackingutilitiesuseforpackageidentification.
This parameterdeterminesthedefaultnamesoftheprojectfolderandsandboxduringtheapplicationcapture
process.
TheapplicationcaptureprocesssetsadefaultvaluefortheInventoryNameparameterbasedonnewstrings
createdunderoneofthe
followinglocations:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Thethinreg.exeutilityandThinAppMSIfilesreferencetheinventorynametodeterminetheproductname
fordisplayintheAddorRemoveProgramscontrolpanel.Forexample,iftheinve nt o r ynameisSuperAppand
youinstallanMSIfileorregisterapackagewiththethinreg.exeutility,theAdd
orRemoveprogramslist
displaysaninstalledapplicationwiththeSuperApp (VMware ThinApp)string.ThinAppappendsVMware
ThinApptotheinventorynametodistinguishapplicationsthatarevirtualizedduringinventoryscans.
Youcanusethesameinventorynameacrossdifferentversionsofthesameapplicationtoensurethatonlythe
mostrecentversionappears
inAddorRemoveProgramslist.Theapplicationsoverwriteeachotherinthe
AddorRemoveProgramslistandpreventyoufromuninstallingalloftheregisteredpackages.Touninstall
morethanoneversion,useadifferentinventorynameforeachversion.Forexample,useMicrosoftOffice2003
andMicrosoft
Office2007asinventorynamesratherthanjustMicrosoftOffice.Whenyoumaintaindifferent
versionsofavirtualapplicationinthesameenvironment,youmightwanttochangetheSandboxName
parametertoensurethatanewversionhasisolatedusersettingsinadifferentsandbox.
Ifyouhaveapackagethat
includesotherapplications,youmightupdatetheinventorynamemanuallyto
reflectthetruecontentsofthepackage.Forexample,ifyoucapturetheSuperAppapplicationandthepackage
includesJavaRuntime,theInventoryNamevaluemightappearasJava Runtime Environment 1.5instead
ofSuperApp.TheAddorRemoveProgramslistdisplaysthe
firstapplicationinstalledwithinthepackage.
Examples
YoucanmodifytheInventoryNameparametertoMicrosoftOffice2003.
[BuildOptions]
InventoryName=Microsoft Office 2003
RemoveSandboxOnExit
TheRemoveSandboxOnExitparameterdeletesthesandboxandresetstheapplicationwhenthelastchild
processexits.
ThinAppstoresallapplicationchangestotheregistryandfilesystemlocationswithWriteCopyorFull
isolationmodeinthesandbox.ThinAppsetsaninitialvalueoftheRemoveSandboxOnExitparameterthat
maintainsconsistentsettingsfor
thesandboxdirectoryacrossmultipleapplicationruns.
Iftheapplicationcreateschildprocesses,ThinAppdoesnotdeletethesandboxuntilallchildprocessesexit.
Applicationsmightbedesignedtoleavechildprocessesinplacethatcanblockthecleanupoperation.
For example,MicrosoftOffice2003leavesthectfmon.exeprocess.Youcanuse
ascripttoendthe
ctfmon.exeprocessandchildprocessestoforcethecleanupoperationtooccur.
YoucandecideatruntimewhethertousetheRemoveSandboxOnExitscriptAPIfunctiontodeletethe
sandboxonexit.