5.0

Table Of Contents
ThinApp User’s Guide
64 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.
Twonewoptionsareintroduced
invregtool.exe, PrintKeysandSysCompareas‐X86and‐X64.These
flagscanbeusedforviewingthemodifiedvirtualregistrychangesto32‐bitand64‐bitregistries.Ifnoneof
theseflagsareprovided,thecompleteregistryviewwillbedisplayed.
Sandbox Compatibility between ThinApp 4.x and 5.x
SandboxofApplicationsbuiltusingThinApp4.xareisnotcompatiblewithThinApp5.0Sandboxes.Ifthe
applicationruntimeisupgradedfromThinApp4.xtoThinApp5.0(byusingRelink,Rebuildingthepackageor
anyotherupgrademechanism),theoldsandboxneedstoberemovedbeforeusingtheupgradedapplication.
However,Iftheuserrequiresto
preservethesettingsmadetoexistingThinAppapplication,SBMerge.exetool
canbeutilizedtomergethesandboxtothepackageitself.ThispackagecanberebuiltusingThinApp5.0to
upgradetheApplicationRuntime.Forinformationaboutthesbmerge.exeutility,seeUpdatingApplications
withRuntimeChanges