4.7.3

Table Of Contents
ThinApp User’s Guide
62 VMware, Inc.
3Iftheapplicationandsandboxoriginallyranfromanotherlocation,suchasacomputerlocalharddrive,
andyouneedthesamesandboxonaportabledevice,copytheThinstalldirectoryfrom%AppData%to
thedirectorywheretheexecutablefileresidesonthedevice.
ThinAppnolongerusesthesandboxin
theoriginallocation.
Sandbox Structure
ThinAppstoresthesandboxusingafilestructurealmostidenticaltothebuildprojectstructure.ThinAppuses
macronamesforshellfolderlocations,suchas%AppData%,insteadofhardcodedpaths.Thisstructureenables
thesandboxtomigratetodifferentcomputersdynamicallywhentheapplicationrunsfromnewlocations.
The
sandboxcontainsthefollowingregistryfiles:
Registry.rw.tvrContainsallregistrymodificationsthattheapplicationmakes.
Registry.rw.lckPreventsothercomputersfromsimultaneouslyusingaregistrylocatedonanetwork
share.
Registry.tvr.backupContainsabackupofthe.tvrfilethatThinAppuseswhentheoriginal.tvr
fileiscorrupted.
Inadditiontotheseregistryfiles,thesandboxcontainsdirectoriesthatinclude%AppData%,
%ProgramFilesDir%,and%SystemRoot%.Eachofthesefolderscontainsmodificationstorespectivefolders
inthecapturedapplication.
Making Changes to the Sandbox
ThinAppstoresfilesysteminformationinthevirtualregistry.ThevirtualregistryenablesThinAppto
optimizefilesystemaccessinthevirtualenvironment.For example,whenanapplicationtriestoopenafile,
ThinAppdoesnothavetoconsulttherealfilesystemfortherealsystemlocationandagainforthe
sandbox
location.Instead,ThinAppcancheckfortheexistenceofthefilebyconsultingonlythevirtualregistry.This
abilityincreasestheThinAppruntimeperformance.
VMwaredoesnotsupportmodifyingoraddingfilesdirectlytothesandbox.Ifyoucopyfilestothesandbox
directory,thefilesarenotvisible
totheapplication.Ifthefilealreadyexistsinthesandbox,youcanoverwrite
andupdatethefile.VMwarerecommendsthatyouperformallmodificationsfromtheapplicationitself.
Listing Virtual Registry Contents with vregtool
Becausethesandboxcontainsthemodificationstotheregistry,youmightneedthevregtoolutilitytoview
modifiedvirtualregistrychanges.YoumusthaveaccesstothevregtoolutilityinC:\Program
Files\VMware\VMware ThinApp.
Asamplecommandtolistthecontentsofavirtualregistryfileisvregtool registry.rw.tvr printkeys.