4.6.1

Table Of Contents
VMware, Inc. 69
Chapter 5 Configuring Package Parameters
WithMergedisolationmode,applicationscanreadandmodifyelementsonthephysicalfilesystemoutside
ofthevirtualpackage.SomeapplicationsrelyonreadingDLLsandregistryinformationinthelocalsystem
image.TheadvantageofusingMergedmodeisthatdocumentsthatuserssaveappearonthephysicalsystem
intheloc
ationthatusersexpect,insteadofinthesandbox.Thedisadvantageisthatthismodemightclutter
thesystemimage.Anexampleofthecluttermightbefirstexecutionmarkersbysharewareapplications
writtentorandomcomputerlocationsaspartofthelicensingprocess.
WithWriteCopyisolationmode,ThinAppcaninterc
eptwriteoperationsandredirectthemtothesandbox.
YoucanuseWriteCopyisolationmodeforlegacyoruntrustedapplications.Althoughthismodemightmake
itdifficulttofinduserdatafilesthatresideinthesandboxinsteadofthephysicalsystem,thismodeisuseful
forlockeddowndesktopswher
eyouwanttopreventusersfromaffectingthelocalfilesystem.
WithFullisolationmode,ThinAppblocksvisibilitytosystemelementsoutsidethevirtualapplication
package.Thismoderestrictsanychangestofilesorregistrykeystothesandboxandensuresthatno
interactionexistswiththeenvironmentoutsidethevi
rtualapplicationpackage.Fullisolationprevents
applicationconflictbetweenthevirtualapplicationandapplicationsinstalledonthephysicalsystem.Donot
usetheFullisolationmodeinthePackage.inifilebecausethatmodeblockstheabilitytodetectandload
systemDLLs.YoucanuseFullisolationmodeasanov
erridemechanisminthe##Attributes.inifiles.
ThinAppcachestheisolationmodesfortheregistryandthefilesystematruntimeinthesandbox.Ifyou
changetheisolationmodefortheprojectandrebuildtheexecutablefile,youmightdeletethesandboxforthe
changetotakeeffect.
Formoreinformationaboutthede
finitionsandeffectofisolationmodes,see“DefiningIsolationModesfor
thePhysicalFileSystem”onpage 18.
Examples
YoucanmodifytheDirectoryIsolationModeparameterwithWriteCopyisolationtoensurethatthe
applicationcanreadresourcesonthelocalmachine,butnotwritetothehostcomputer.Thisisthedefault
settingforthesnapshot.exeutility.Youmustplacetheparameterunderan[Isolation]heading.
[Isolation]
DirectoryIsolationMode=WriteCopy
YoucanassignMergedisolationmodetoensurethattheapplicationcanreadresourcesonandwritetoany
locationonthecomputerexceptwherethepackagespecifiesotherwise.ThisisthedefaultsettingfortheSetup
Capturewizard.
[Isolation]
DirectoryIsolationMode=Merged
RegistryIsolationMode
TheRegistryIsolationModeparametercontrolstheisolationmodeforregistrykeysinthepackage.This
settingappliestotheregistrykeysthatdonothaveexplicitsettings.
Thecaptureprocessdoesnotsetthevalueofthisparameter.Youcanconfiguretheregistryisolationmode
onlyinthePackage.inifile.ThinAppsetstheiniti
alregistryisolationmodetoWriteCopy.Forinformation
aboutisolationmodeoptions,see“DirectoryIsolationMode”onpage 68.
DonotusetheFullisolationmodeinthePackage.inifilebecausethatmodeblockstheabilitytodetectand
loadsystemDLLs.YoucanuseFullisolationmodeasanoverridemechanism.Youcanplaceexce
ptionstothe
configuredRegistryIsolationModeparameterintheregistrykeytextfilesintheprojectdirectory.An
exceptionmightappearinafile,suchasHKEY_CURRENT_USER.txt,asisolation_full
HKEY_CURRENT_USER\Software\Macromedia.
Allruntimemodificationstovirtualfilesinthecapturedapplicationarestoredinthesandbox,regardlessof
theisolationmodese
tting.Atruntime,virtualandphysicalregistryfilesareindistinguishabletoan
application,butvirtualregistryfilesalwayssupersedephysicalregistryfileswhenbothexistinthesame
location.Ifvirtualandphysicalentriesexistatthesamelocation,isolationmodesdonotaffectaccesstothese
entriesbecausetheapplicationalw
aysinteractswithvirtualelements.