4.6.1

Table Of Contents
ThinApp User’s Guide
106 VMware, Inc.
Sandbox Structure
ThinAppstoresthesandboxusingafilestructurealmostidenticaltothebuildprojectstructure.ThinAppuses
macronamesforshellfolderlocations,suchas%AppData%,insteadofhardcodedpaths.Thisstructureenables
thesandboxtomigratetodifferentcomputersdynamicallywhentheapplicationrunsfromnewlocations.
Thesandboxin
cludesvirtualregistryfilesthatare configuredtoensurethatdatacorruptiondoesnotoccurif
anapplicationintentionallyorunintentionallyterminates.
Thesandboxcontainsthefollowingregistryfiles:
Registry.rw.tvrContainsallregistrymodificationsthattheapplicationmakes.
Registry.rw.lckPreventsothercomputersfromsimultaneouslyusingaregistrylocatedonanetwork
share.
Registry.tvr.backupContainsabackupofthe.tvrfilethatThinAppuseswhentheoriginal.tvr
fileiscorrupted.
Registry.rw.tvr.transactRealtimecachethatcontainsalltransactionsfromthetimethattheyare
written,regardlessofwhethertheyarecommittedtotherealregistryfile.
Registry.tlog.cacheRealtimecachethatcontainsalltransactionsthatarenotyetcommittedtothe
realregistryfile.
Registry.tlogTransactionlogthatcontainsalltransactionsduringtheperiodthattheyarebeing
writtentotherealregistrylog.Followingsuccessfulwritingtotherealregistrylog,thetransactionsare
removedfromthisfile.
Inadditiontotheseregistryfiles,thesandboxcontainsdirectoriesthatinclude%AppData%,
%ProgramFilesDir%,and%Sy
stemRoot%.Eachofthesefolderscontainsmodificationstorespectivefolders
inthecapturedapplication.
Making Changes to the Sandbox
ThinAppstoresfilesysteminformationinthevirtualregistry.ThevirtualregistryenablesThinAppto
optimizefilesystemaccessinthevirtualenvironment.For example,whenanapplicationtriestoopenafile,
ThinAppdoesnothavetoconsulttherealfilesystemfortherealsystemlocationandagainforthesa
ndbox
location.Instead,ThinAppcancheckfortheexistenceofthefilebyconsultingonlythevirtualregistry.This
abilityincreasestheThinAppruntimeperformance.
VMwaredoesnotsupportmodifyingoraddingfilesdirectlytothesandbox.Ifyoucopyfilestothesandbox
directory,thefilesarenotvisibletotheappl
ication.Ifthefilealreadyexistsinthesandbox,youcanoverwrite
andupdatethefile.VMwarerecommendsthatyouperformallmodificationsfromtheapplicationitself.
Listing Virtual Registry Contents with vregtool
Becausethesandboxcontainsthemodificationstotheregistry,youmightneedthevregtoolutilitytoview
modifiedvirtualregistrychanges.YoumusthaveaccesstothevregtoolutilityinC:\Program
Files\VMware\VMware ThinApp.
Asamplecommandtolistthecontentsofavirtualregistryfileisvregtool registry.rw.tvr printkeys.