VMware ThinApp 4.5 User guide

Category
Software manuals
Type
User guide
ThinApp User’s Guide
ThinApp 4.5
This document supports the version of each product listed and
supports all subsequent versions until the document is replaced
by a new edition. To check for more recent editions of this
document, see http://www.vmware.com/support/pubs.
EN-000219-00
VMware, Inc.
3401 Hillview Ave.
Palo Alto, CA 94304
www.vmware.com
2 VMware, Inc.
ThinApp User’s Guide
You can find the most up-to-date technical documentation on the VMware Web site at:
http://www.vmware.com/support/
The VMware Web site also provides the latest product updates.
If you have comments about this documentation, submit your feedback to:
docfeedback@vmware.com
Copyright © 2010 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and
intellectual property laws. VMware products are covered by one or more patents listed at
http://www.vmware.com/go/patents.
VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks
and names mentioned herein may be trademarks of their respective companies.
VMware, Inc. 3
Contents
AboutThisBook 9
1 InstallingThinApp 11
ThinAppRequirements 11
OperatingSystems,Applications,andSystemsThatThinAppSupports 11
ApplicationsThatThinAppCannotVirtualize 12
RecommendationsforInstallingThinApp 12
UsingaCleanComputer 12
UsingtheEarliestOperatingSystemRequiredForUsers 13
InstallThinApp 13
CheckingThinAppInstallationFiles 13
2 CapturingApplications 15
PhasesoftheCaptureProcess 15
PreparingtoCaptureApplications 15
CapturingApplicationswiththeSetupCaptureWizard 16
CreateaSystemImageBeforetheApplicationInstallation 16
RescantheSystemwiththeInstalledApplication 16
DefiningEntryPointsasShortcutsintotheVirtualEnvironment 17
SetEntryPoints 17
SetUserGroups 17
DefiningIsolationModesforthePhysicalFileSystem 18
Set
FileSystemIsolationModes 19
StoringApplicationChangesintheSandbox 20
CustomizetheSandboxLocation 20
SendAnonymousStatisticstoVMware 20
CustomizeThinAppProjectSettings 20
DefiningPackageSettings 21
CustomizePackageSettings 21
OpeningProjectandParameterFiles 22
BuildVirtualApplications 22
AdvancedPackageConfiguration 23
ModifyingSettingsinthePackage.iniFile 23
ModifyingSettingsinthe##Attributes.iniFile 23
GuidelinesforPackagingMicrosoftOffice
2007 24
RequirementsforPackagingMicrosoftOffice2007 24
CapturingMicrosoftOffice2007 24
ConfigureMicrosoftOffice2007 26
3 DeployingApplications 29
ThinAppDeploymentOptions 29
DeployingThinAppWithDeploymentTools 29
DeployingThinAppintheVMwareViewEnvironment 29
DeployingThinApponNetworkShares 30
DeployingThinAppUsingExecutableFiles 30
EstablishingFileTypeAssociationswiththethinreg.exeUtility 30
ApplicationSyncEffectonthethinreg.exeUtility 30
ThinApp User’s Guide
4 VMware, Inc.
Runthethinreg.exeUtility 31
Optionalthinreg.exeParameters 31
BuildinganMSIDatabase 33
CustomizingMSIFileswithPackage.iniParameters 33
ModifythePackage.iniFiletoCreateMSIFiles 33
ControllingApplicationAccesswithActiveDirectory 35
Package.iniEntriesforActiveDirectoryAccessControl 35
StartingandStoppingVirtualServices 36
UsingThinAppPackagesStreamedfromtheNetwork 36
HowThinAppApplicationStreamingWorks 36
Requirements
andRecommendationsforStreamingPackages 37
StreamThinAppPackagesfromtheNetwork 38
UsingCapturedApplicationswithOtherSystemComponents 38
PerformingPasteOperations 38
AccessingPrinters 38
AccessingDrivers 38
AccessingtheLocalDisk,theRemovableDisk,andNetworkShares 39
AccessingtheSystemRegistry 39
AccessingNetworkingandSockets 39
UsingSharedMemoryandNamedPipes 39
UsingCOM,DCOM,andOutof
ProcessCOMComponents 39
StartingServices 39
UsingFileTypeAssociations 39
SampleIsolationModeConfigurationDependingonDeploymentContext 40
ViewofIsolationModeEffectontheWindowsRegistry 40
4 UpdatingandLinkingApplications 43
ApplicationUpdatesThattheEndUserTriggers 43
ApplicationSyncUpdates 43
ApplicationLinkUpdates 46
ApplicationUpdatesThattheAdministratorTriggers 50
ForcinganApplicationSyncUpdateonClientMachines 51
UpdatingApplicationswithRuntimeChanges 51
AutomaticApplicationUpdates 52
DynamicUpdatesWithoutAdministratorRights 53
UpgradingRunningApplicationsonaNetworkShare 53
FileLocks 53
UpgradeaRunningApplication 53
SandboxConsiderationsfor
UpgradedApplications 54
UpdatingtheThinAppVersionofPackages 54
relinkExamples 54
5 ConfiguringPackageParameters 55
Package.iniFileStructure 56
ParametersthatApplytoPackage.inior##Attributes.iniFiles 56
ConfiguringtheThinAppRuntime 56
NetRelaunch 56
RuntimeEULA 57
VirtualComputerName 57
Wow64 58
QualityReportingEnabled 58
ConfiguringIsolation 58
DirectoryIsolationMode 58
RegistryIsolationMode 59
VMware, Inc. 5
Contents
ConfiguringFileandProtocolAssociations 60
FileTypes 60
Protocols 60
ConfiguringBuildOutput 60
ExcludePattern 60
Icon 61
OutDir 61
RetainAllIcons 62
ConfiguringPermissions 62
AccessDeniedMsg 62
AddPageExecutePermission 62
PermittedGroups 63
UACRequestedPrivilegesLevel 63
UACRequestedPrivilegesUIAccess 64
ConfiguringObjectsandDLLFiles 64
ExternalCOMObjects 64
ExternalDLLs 64
ForcedVirtualLoadPaths 65
IsolatedMemoryObjects 65
IsolatedSynchronizationObjects 66
NotificationDLLs 66
NotificationDLLSignature 67
ObjectTypes 67
SandboxCOMObjects 67
VirtualizeExternalOutOfProcessCOM 68
ConfiguringFileStorage 68
CachePath 68
UpgradePath 69
VirtualDrives 69
ConfiguringProcessesandServices 71
AllowExternalKernelModeServices 71
AllowExternalProcessModifications 71
AllowUnsupportedExternalChildProcesses 71
AutoShutdownServices 72
AutoStartServices 72
ChildProcessEnvironmentDefault 72
ChildProcessEnvironmentExceptions 73
ConfiguringSizes 73
BlockSize 73
CompressionType 73
MSICompressionType 74
OptimizeFor 75
ConfiguringLogging 75
DisableTracing 75
LogPath 76
ConfiguringVersions 76
CapturedUsingVersion 76
StripVersionInfo 76
Version.XXXX 77
ConfiguringLocales 77
AnsiCodePage 77
LocaleIdentifier 77
LocaleName 77
ConfiguringIndividualApplications 78
CommandLine 78
Disabled 78
ThinApp User’s Guide
6 VMware, Inc.
ReadOnlyData 79
ReserveExtraAddressSpace 79
Shortcut 79
Shortcuts 80
Source 80
WorkingDirectory 80
ConfiguringDependentApplicationswithApplicationLink 81
ApplicationLinkPathNameFormats 81
RequiredAppLinks 82
OptionalAppLinks 83
ConfiguringApplicationUpdateswithApplicationSync 83
AppSyncClearSandboxOnUpdate 83
AppSyncExpireMessage 84
AppSyncExpirePeriod 84
AppSyncURL 84
AppSyncUpdateFrequency 85
AppSyncUpdatedMessage 85
AppSyncWarningFrequency 85
AppSyncWarningMessage 85
AppSyncWarningPeriod 85
ConfiguringMSIFiles 86
MSIArpProductIcon 86
MSIDefaultInstallAllUsers 86
MSIFilename 87
MSIInstallDirectory 87
MSIManufacturer 87
MSIProductCode 88
MSIProductVersion 88
MSIRequireElevatedPrivileges 88
MSIUpgradeCode 89
MSIUseCabs 89
ConfiguringSandboxStorageandInventoryNames 90
InventoryName 90
RemoveSandboxOnExit 90
SandboxName 91
SandboxNetworkDrives 91
SandboxPath 91
SandboxRemovableDisk 92
6 LocatingtheThinAppSandbox 93
SearchOrderfortheSandbox 93
ControllingtheSandboxLocation 95
StoretheSandboxontheNetwork 95
StoretheSandboxonaPortableDevice 95
SandboxStructure 96
MakingChangestotheSandbox 96
ListingVirtualRegistryContentswithvregtool 96
7 CreatingThinAppSnapshotsandProjectsfromtheCommandLine 97
MethodsofUsingthesnapshot.exeUtility 97
CreatingSnapshotsofMachineStates 97
CreatingtheTemplatePackage.inifilefromTwoSnapshotFiles 98
CreatingtheThinAppProjectfromtheTemplatePackage.iniFile 98
DisplayingtheContentsofaSnapshotFile 99
Samplesnapshot.exeCommands 99
VMware, Inc. 7
Contents
CreateaProjectWithouttheSetupCaptureWizard 99
Customizingthesnapshot.iniFile 100
8 ThinAppFileSystemFormatsandMacros 101
VirtualFileSystemFormats 101
ThinAppFolderMacros 101
ListofThinAppMacros 102
Processing%SystemRoot%inaTerminalServicesEnvironment 103
9 CreatingThinAppScripts 105
CallbackFunctions 105
ImplementScriptsinaThinAppEnvironment 106
.batExample 106
TimeoutExample 106
ModifytheVirtualRegistry 107
.regExample 107
StoppingaServiceExample 107
CopyingaFileExample 107
AddaValuetotheSystemRegistry 108
APIFunctions 109
AddForcedVirtualLoadPath 109
ExitProcess 109
ExpandPath 110
ExecuteExternalProcess 110
ExecuteVirtualProcess 111
GetBuildOption 111
GetFileVersionValue 111
GetCommandLine 112
GetCurrentProcessName 112
GetOSVersion 113
GetEnvironmentVariable 114
RemoveSandboxOnExit 114
SetEnvironmentVariable 114
SetfileSystemIsolation 115
SetRegistryIsolation 115
WaitForProcess 115
10 MonitoringandTroubleshootingThinApp 117
ProvidingInformationtoTechnicalSupport 117
LogMonitorOperations 117
TroubleshootActivitywithLogMonitor 118
PerformAdvancedLogMonitorOperations 118
LogFormat 120
TroubleshootingSpecificApplications 124
TroubleshootRegistrySetupforMicrosoftOutlook 124
ViewingAttachmentsinMicrosoftOutlook 124
StartingExplorer.exeintheVirtualEnvironment 125
TroubleshootingJavaRuntimeEnvironmentVersionConflict 125
Glossary 127
Index 131
ThinApp User’s Guide
8 VMware, Inc.
VMware, Inc. 9
TheThinAppUser’sGuideprovidesinformationabouthowtoinstallThinApp™,captureapplications,deploy
applications,andupgradeapplications.You canrefertothisguidetocustomizeparametersandperform
scripting.
Intended Audience
ThisbookisintendedforanyonewhoinstallsThinAppanddeployscapturedapplications.Typicalusersare
systemadministratorsresponsibleforthedistributionandmaintenanceofcorporatesoftwarepackages.
Document Feedback
VMwarewelcomesyoursuggestionsforimprovingourdocumentation.Ifyouhavecomments,sendyour
feedbacktodocfeedback@vmware.com.
Technical Support and Education Resources
Thefollowingsectionsdescribethetechnicalsupportresourcesavailabletoyou.To accessthecurrentversion
ofthisbookandotherbooks,gotohttp://www.vmware.com/support/pubs.
Online and Telephone Support
Touseonlinesupporttosubmittechnicalsupportrequests,viewyourproductandcontractinformation,and
registeryourproducts,gotohttp://www.vmware.com/support.
Customerswithappropriatesupportcontractsshouldusetelephonesupportforthefastestresponseon
priority1issues.Gotohttp://www.vmware.com/support/phone_support.
Support Offerings
TofindouthowVMw aresupportofferingscanhelpmeetyourbusinessneeds,goto
http://www.vmware.com/support/services.
VMware Professional Services
VMwareEducationServicescoursesofferextensivehandsonlabs,casestudyexamples,andcoursematerials
designedtobeusedasonthejobreferencetools.Coursesareavailableonsite,intheclassroom,andlive
online.Foronsitepilotprograms andimplementationbestpractices,VMwareConsultingServicesprovides
offeringsto helpyouassess,plan,
build,andmanageyourvirtualenvironment.To accessinformationabout
educationclasses,certificationprograms,andconsultingservices,gotohttp://www.vmware.com/services.
About This Book
ThinApp User’s Guide
10 VMware, Inc.
VMware, Inc. 11
1
YoucaninstallThinApptoisolateapplications,simplifyapplicationcustomization,deployapplicationsto
differentoperatingsystems,andeliminateapplicationconflict.
Thisinformationincludesthefollowingtopics:
“ThinAppRequirements”onpage 11
“RecommendationsforInstallingThinApp”onpage 12
“InstallThinApp”onpage 13
“CheckingThinAppInstallationFiles”onpage 13
ThinApp Requirements
ReviewtherequirementsforoperatingsystemsandcapturedapplicationsbeforeinstallingThinApp.
Operating Systems, Applications, and Systems That ThinApp Supports
ThinAppsupportsthefollowingoperatingsystems,applications,andsystems:
32bitplatformsincludeWindowsNT,Windows2000,Windows XP,WindowsXPE,Windows2003
Server,WindowsVista,WindowsServer2008,Windows7
64bitplatformsincludeWindowsXP64bit,Windows200364bit,WindowsVista64 bit,
Windows Server 2008 64bit,Windows Server 2008 R2 64bit,Windows 7 64 bit
16bitapplicationsrunningon32bitWindowsoperatingsystems
32bitapplicationsrunningon32bitand64bitWindowsoperatingsystems
TerminalServerandCitrixXenapp
ThinAppsupportsJapaneseapplicationscapturedandrunonJapaneseoperatingsystems.
ThinAppdoesnotsupporttheseoperatingsystemsandapplications:
16bitornonx86platformssuchasWindowsCE
64bitapplicationsrunningon32bitor64bitWindowsoperatingsystems
16bitapplicationsrunningon64bitWindowsoperatingsystems
Installing ThinApp
1
ThinApp User’s Guide
12 VMware, Inc.
Applications That ThinApp Cannot Virtualize
ThinAppcannotconvertsomeapplicationsintovirtualapplicationsandmightblockcertainapplicationfunctions.
Youmustusetraditionalinstallationtechnologiestodeploythefollowingtypesofapplications:
Applicationsrequiringinstallationofkernelmodedevicedrivers
ODBCdriversworkbecausetheyareusermodedrivers.
Antivirusandpersonalfirewalls
Scannerdriversandprinterdrivers
SomeVPNclients
Device Drivers
ApplicationsthatrequiredevicedriversdonotworkwhenpackagedwithThinApp.Youmustinstallthose
devicedriversintheiroriginalformatonthehostcomputer.BecauseThinAppdoesnotsupportvirtualized
devicedrivers,youcannotuseThinApptovirtualizeantivirus,VPNclients,personalfirewalls,anddiskand
volumemountingrelated
utilities.
IfyoucaptureAdobeAcrobat,youcanmodifyandsavePDFfiles,butyoucannotusethePDFprinterdriver
thatallowsyoutosavedocumentstoPDFformat.
Shell Integration
SomeapplicationsthatprovideshellintegrationhavereducedfunctionswhentheyexistinaThinApp
package.Forexample,avirtualapplicationthatintegrateswithWindowsExplorercannotaddspecificentries
totheWindowsExplorercontextmenus.
DCOM Services that are Accessible on a Network
ThinAppisolatesCOMandDCOMservices.ApplicationsthatinstallDCOMservicesareaccessibleonthe
localcomputeronlybyothercapturedapplicationsrunninginthesameThinAppsandbox.ThinAppsupports
virtualDCOMandCOMonthesamecomputerbutdoesnotsupportnetworkDCOM.
Global Hook Dynamic Link Libraries
SomeapplicationsusetheSetWindowsHookExAPIfunctiontoaddaDLLfiletoallprocessesonthehost
computer.TheDLLinterceptsWindowsmessagestocapturekeyboardandmouseinputfromother
applications.ThinAppignoresrequestsfromapplicationsthatusetheSetWindowsHookExfunctiontotryto
installglobalhookDLLs.ThinApp
mightreducetheapplicationfunctions.
Recommendations for Installing ThinApp
WhenyouinstallThinApp,considertherecommendationsandbestpracticesforthesoftware.
Using a Clean Computer
VMwarerecommendsusingacleancomputertoinstallThinAppbecausetheenvironmentaffectsthe
applicationcaptureprocess.AcleancomputerisaphysicalorvirtualmachinewithonlyaWindowsoperating
system.Inacorporateenvironmentwhereyouhaveabasedesktopimage,thebasedesktopimageisyour
cleancomputer.
Thedesktopcomputermightalreadyhavesomecomponentsandlibrariesinstalled.
Applicationinstallersskipfilesthatalreadyexistonthecomputer.Iftheinstallerskipsfiles,theThinApp
packagedoesnotincludethemduringtheapplicationcaptureprocess.Theapplicationmightfailtorunon
othercomputerswherethefilesdo
notexist.Acleancomputerallowsthecaptureprocesstoscanthecomputer
filesystemandregistryquickly.
Ifyouinst al lThinAppandcaptureanapplicationonacompu te r thathasMicrosoft.NET2.0alreadyinstalled,
.NET2.0isnotincludedintheThinApppackage.Thecapturedapplicationrunsonlyon
computersthathave
.NET2.0alreadyinstalled.
VMware, Inc. 13
Chapter 1 Installing ThinApp
Using Virtual Machines for Clean Computers
Theeasiestwaytosetupacleancomputeristocreateavirtualmachine.YoucaninstallWindowsonthe
virtualmachineandtakeasnapshotoftheentirevirtualmachineinitscleanstate.Afteryoucapturean
application,youcanrestorethesnapshotandrevertittoa
cleanvirtualmachinestatethatisreadyforthenext
applicationcapture.
YoucanuseVMwareWorkstationorotherVMwareproductstocreatevirtualmachines.Forinformation
aboutVMwareproducts,seetheVMwareWebsite.
Using the Earliest Operating System Required For Users
InstallThinApponacleancomputerwiththeearliestversionoftheoperatingsystemyouplantosupport.
In mostcases,theearliestplatformisWindows 2000orWindows XP.MostpackagescapturedonWindowsXP
workonWindows2000.In somecases,WindowsXPincludessomeDLLsthatWindows2000lacks.ThinApp
excludesthese
DLLSfromthecapturedapplicationpackageiftheapplicationtypicallyinstallstheseDLLs.
AfteryoucreateaThinAppapplicationpackage,youcanoverwritefilesinthepackagewithupdatedversions
andrebuildtheapplicationwithoutthecaptureprocess.
Install ThinApp
UsetheThinAppexecutablefiletoinstallThinApp.
To install ThinApp software
1 DownloadThinApptoacleanphysicalorvirtualWindowsmachine.
2DoubleclicktheThinAppexecutablefile.
3InthePatentListsdialogbox,clickNext.
4Acceptthelicense,typetheserialnumber,andtypealicensedisplaynamethatappearswhenyouopen
applicationsthat
ThinAppcaptures.
5ClickInstall.
ThinAppisinstalled.
Checking ThinApp Installation Files
TheThinAppinstallationgeneratestheVMwareThinAppdirectoryinC:\Program Files\VMware. Youmight
checkthefilesinthisdirectorytoperformoperationssuchasstartingtheLogMonitorutilitytoviewrecent
activity.
ThefollowingkeyfilesintheVMwareThinAppdirectoryaffectThinAppoperations:
AppSync.exeKeepscapturedapplicationsuptodatewiththelatestavailableversion.
logging.dllGenerates.tracefiles.
dll_dump.exeListsallcapturedapplicationsthatarecurrentlyrunningonasystem.
log_monitor.exeDisplaystheexecutionhistoryanderrorsofanapplication.
relink.exeUpdatesexistingpackagestothelatestThinAppversioninstalledonthesystem.
sbmerge.exeMergesruntimechangesrecordedintheapplicationsandboxwiththeThinAppproject
andupdatesthecapturedapplication.
SetupCapture.exeCapturesandconfiguresapplicationsthroughawizard.
snapshot.exeComparesthepreinstallationenvironmentandpostinstallationenvironmentduringthe
applicationcaptureprocess.
ThinAppstartsthisutilityduringthesetupcaptureprocess.
ThinApp User’s Guide
14 VMware, Inc.
snapshot.iniStoresentriesforthevirtualregistryandvirtualfilesystemthatThinAppignoresduring
theprocessofcapturinganapplication.
Thesnapshot.exefilereferencesthesnapshot.inifile.Advancedusersmightmodifythe
snapshot.inifiletoensurethatThinAppdoesnotcapturecertainentrieswhencreatinganapplication
package.
template.msiBuildstheMSIfiles.
Youcancustomizethistemplatetoensurethatthe.msifilesgeneratedbyThinAppadheretocompany
deploymentproceduresandstandards.Forexample,youcanaddregistrysettingsthatyouwant
ThinApptoaddtoclientcomputersaspartoftheinstallation.
thinreg.exeRegisterscapturedapplicationsonacomputer.
ThisregistrationincludessettingupshortcutsandtheStartmenuandsettingupfiletypeassociations
thatallowyoutoopenapplications.
tlink.exeLinkskeymodulesduringthebuildprocessofthecapturedapplication.
vftool.exeCompilesthevirtualfilesystemduringthebuildprocessofthecapturedapplication.
vregtool.exeCompilesthevirtualregistryduringthebuildprocessofthecapturedapplication.
VMware, Inc. 15
2
Youcancaptureapplicationstopackageanapplicationintoavirtualenvironment.
TheSetupCapturewizardisthemainmethodtocaptureapplicationsandsetinitialapplicationparameters.
Advanceduserswhomustcaptureapplicationsfromthecommandlinecanusethesnapshot.exeutility
insteadoftheSetupCapturewizard.
Thisinformationincludes
thefollowingtopics:
“PhasesoftheCaptureProcess”onpage 15
“PreparingtoCaptureApplications”onpage 15
“CapturingApplicationswiththeSetupCaptureWizard”onpage 16
“A d v a n c e d PackageConfiguration”onpage 23
“GuidelinesforPackagingMicrosoftOffice2007”onpage 24
Phases of the Capture Process
Capturinganapplicationinvolvessystemscans,applicationconfiguration,packageconfiguration,and
generationofthevirtualapplicationfordistribution.
TheSetupCapturewizardsetsinitialparametersfortheapplication.Youcancustomizethefullsetof
parametersoutsideofthewizard.
Preparing to Capture Applications
Preparingforthecaptureprocessinvolvesunderstandingtheneedsanddependenciesoftheapplication.
Fortargetapplicationsthathavedependenciesonotherapplications,libraries,orframeworks,youcancapture
thedependenciesorusetheApplicationLinkutilitytolinkseparatevirtualapplicationsatruntime.For
informationabouttheApplicationLinkutility,
seeApplicationLinkUpdates”onpage 46.
Fortargetapplicationsthatrequirelocaleformats,suchasaspecificdateformat,youcancapturetheminan
environmentwiththerequiredlocalesetting.ThinApprunsvirtualapplicationsaccordingtotheregionaland
languagesettingsonthecapturesystemratherthanthesettingson
thesystemthatrunstheapplication.
AlthoughyoucanmodifythedefaultlocalesettingbycommentingouttheLocaleIdentifierparameterin
thePackage.inifileandrebuildingtheapplication,youcanavoidcomplicationsinthecaptureenvironment.
ForinformationabouttheLocaleIdentifierparameter,see“LocaleIdentifieronpage 77.
Capturing Applications
2
ThinApp User’s Guide
16 VMware, Inc.
Capturing Applications with the Setup Capture Wizard
Thecaptureprocesspackagesanapplicationandsetsinitialapplicationparameters.Ifyouuseavirtual
machine,considertakingasnapshotbeforeyourunthewizard.Asnapshotoftheoriginalcleanstateallows
youtoreverttothesnapshotwhenyouwanttocaptureanotherapplication.
ThisinformationusesMozilla
Firefoxasakeyexampleforapplicationcapture.Forinformationabout
MicrosoftOffice2007thatextendsbeyondthebasiccaptureprocess,see“GuidelinesforPackagingMicrosoft
Office2007”onpage 24.
Create a System Image Before the Application Installation
TheSetupCapturewizardstartsthecaptureprocessbyscanningthesystemtoassesstheenvironmentand
createabaselinesystemimage.
To create a system image before the application installation
1 Downloadtheapplicationstocapture.
Forexample,downloadFirefoxSetup2.0.0.3.exeandcopyittothecleancomputeryouareworking
with.
2Closeanyapplications,suchasvirusscans,that
mightchangethefilesystemduringthecaptureprocess.
3Fromthedesktop,selectStart>Programs>VMware>ThinAppSetupCapture.
4 (Optional)IntheReadytoPrescandialogbox,clickAdvancedScanLocationstoselectthedrivesand
registryhivestoscan.
Youmightwanttoscanaparticularlocation
otherthantheC:\driveifyouinstallapplicationstoa
differentdriv e.Inrarecases,youmightwanttoavoidscanningaregistryhiveifyouknowthatthe
applicationinstallerdoesnotmodifytheregistry.
5ClickPrescantoestablishabaselinesystemimageoftheharddriveandregistry
files.
Thescanningprocesstakesabout10secondsforWindowsXP.
Rescan the System with the Installed Application
YoucaninstalltheapplicationtovirtualizebeforetheSetupCapturewizardrescansthesystemandassess
changesfromtheinitialsystemimage.
To install the application and rescan the system
1WhentheInstallApplicationpageappears,minimizetheSetupCapturewizardandinstallthe
applicationstocapture.
Forexample,doubleclickFirefoxSetup2.0.0.3.exe to installFirefox.Iftheapplication
needsto
restartaftertheinstallation,restartthesystem.TheprocessrestartstheSetupCapturewizard.
2 (Optional)Makeanynecessaryconfigurationchangestocomplywithyourcompanypolicies,suchas
usingspecificsecuritysettingsoraparticularhomepage.
Ifyoudonotmakeconfigurationchangesatthistime,eachuser
mustmakechanges.
3 (Optional)Starttheapplicationandrespondtoanymessagesforinformationbeforeyoucontinuewith
theSetupCapturewizard.
Ifyoudonotrespondtoanymessagesatthistime,eachuserwhousestheapplicationmustdosoduring
theinitialstart.
VMware, Inc. 17
Chapter 2 Capturing Applications
4Closetheapplication.
5 MaximizetheSetupCapturewizard,clickPostscantoproceedwithanotherscanofthecomputer,and
clickOKtoconfirmthepostscanoperation.
ThinAppstoresthedifferencesbetweenthefirstbaselineimageandthisimageinavirtualfilesystemand
virtualregistry.
Defining Entry Points as Shortcuts into the Virtual Environment
Entrypointsaretheexecutablefilesthatactasshortcutsintothevirtualenvironmentandstartthevirtual
application.Theentrypointsyoucanchoosefromdependontheexecutablefilesthatyourcaptured
applicationcreatesduringinstallation.
Forexample,ifyouinstallMicrosoftOffice,youcanselectentrypointsfor
MicrosoftWord,MicrosoftExcel,
andotherapplicationsthatareinstalledduringaMicrosoftOfficeinstallation.IfyouinstallFirefox,youmight
selectMozilla Firefox.exeandMozilla Firefox (SafeMode).exeifusersrequiresafemodeaccess.
DuringthebuildprocessthatoccursattheendoftheSetupCapturewizard,ThinAppgeneratesone
executablefilefor
eachselectedentrypoint.IfyoudeploytheapplicationasanMSIfileorusethe
thinreg.exeutility,thedesktopandStartmenushortcutscreatedonuserdesktopspointtotheseentry
points.
Entry Points for Troubleshooting
ThinAppprovidesentrypointstotroubleshootyourenvironment.
Debugginganapplicationmightinvolvethefollowingentrypoints:
cmd.exeStartsacommandpromptinavirtualcontextthatallowsyoutoviewthevirtualfilesystem.
regedit.exeStartstheregistryeditorinavirtualcontextthatallowsyoutoviewthevirtualregistry.
iexplore.exeStartsiexplore.exeinavirtualcontextthatallowsyoutotestvirtualized
ActiveX controls.
Entrypointsstartnativeexecutablefilesinavirtualcontext.Entrypointsdonotcreatevirtualpackagesof
cmd.exe,regedit.exe,oriexplore.exe.
Ifyoucannotpredicttheneedfordebuggingortroubleshootingtheenvironment,you
canusetheDisabled
parameterinthePackage.inifileatalatertimetoactivatetheseentrypoints.
Set Entry Points
Youcandesignatetheexecutablefilesthatmakeupthelistofentrypoints.ThinAppinstallstheexecutable
filesduringthecaptureprocess.
To set entry points in the Setup Capture wizard
1OntheEntryPointspage,selectthecheckboxesforuseraccessibleentrypoints.
Thewizarddisplaystheexecutablefilesthatweredirectlyaccessiblethroughthedesktopor
Startmenu
shortcuts.
2 (Optional)Todebugyourenvironment,selecttheShowentrypointsusedfordebuggingcheckboxto
displaytheiexplore.exe,regedit.exe,andcmd.exetroubleshootingoptions.
Set User Groups
ThinAppcanuseActiveDirectorygroupstoauthorizeaccesstothevirtualapplication.Youcanrestrictaccess
toanapplicationtoensurethatusersdonotpassittounauthorizedusers.
ActiveDirectoryDomainServicesdefinesecuritygroupsanddistributiongroups.ThinAppcanonlysupport
nestedsecuritygroups.
ThinApp User’s Guide
18 VMware, Inc.
To set user groups in the Setup Capture wizard
1OntheGroupspage,limittheuseraccesstotheapplication.
a SelectOnlythefollowingActiveDirectorygroups.
bClickAddtospecifyActiveDirectoryobjectandlocationinformation.
2 (Optional)ChangethemessagethatappearsforusersthatThinAppcannotauthorize.
Defining Isolation Modes for the Physical File System
Isolationmodesdeterminethelevelofreadandwriteaccesstothenativefilesystemoutsideofthevirtual
environment.Youmightadjustisolationmodesettingsdependingontheapplicationandtherequirementsto
protectthephysicalsystemfromchanges.
Theselectionofisolationmodesinthecaptureprocessdeterminesthe
valueoftheDirectoryIsolationMode
parameterinthePackage.inifile.Thisparametercontrolsthedefaultisolationmodeforthefilescreatedby
thevirtualapplicationexceptwhenyouspecifyadifferentisolationmodeinthe##Attributes.inifilefor
anindividualdirectory.
Theselectionofadirectoryisolationmodedoesnotaffectthe
followingareas:
ThinApptreatswriteoperationstonetworkdrivesaccordingtotheSandboxNetworkDrivesparameterin
thePackage.inifile.Thisparameterhasadefaultvaluethatdirectswriteopera tio nstothephysicaldrive.
ThinApptreatswriteoperationstoremovabledisksaccordingtotheSandboxRemovableDiskparameterin
thePackage.inifile.Thisparameterhasadefault
valuethatdirectswriteoperationstothephysicaldrive.
IfyousavedocumentstothedesktoporMy Documentsfolder,ThinAppsavesthedocumentstothe
physicalsystem.ThinAppsetstheisolationmodeinthe##Attributes.inifilesin%Personal%and
%Desktop%toMergedevenwhenyouselectWriteCopyisolationmode.
Applying Merged Isolation Mode for Modifications Outside the Package
WithMergedisolationmode,applicationscanreadandmodifyelementsonthephysicalfilesystemoutsideof
thevirtualpacka ge.SomeapplicationsrelyonreadingDLLsandregistryinformationinthelocalsystemimage.
TheadvantageofusingMergedmodeisthatdocumentsthatuserssaveappearonthephysicalsystem
inthe
locationthatusersexpect,insteadofinthesandbox.Thedisadvantageisthatthismodemightclutterthe
systemimage.Anexampleofthecluttermightbefirstexecutionmarkersbysharewareapplicationswritten
torandomcomputerlocationsaspartofthelicensingprocess.
WhenyouselectMergedisolation,
ThinAppcompletesthefollowingoperations:
SetstheDirectoryIsolationModeparameterinthePackage.inifiletoMerged.
SetsupexceptionsthatapplyWriteCopyisolationtothefollowingdirectoriesandtheirsubdirectories:
%AppData%
%Common AppData%
%Local AppData%
%Program Files Common%
%ProgramFilesDir%
Option Description
ObjectTypes Specifiesobjects.
Locations Specifiesalocationintheforest.
CheckNames Verifyobjectnames.
Advanced LocatesusernamesintheActiveDirectoryforest.
CommonQueries(underAdvanced)Searchesforgroupsaccordingtonames,descriptions,disabledaccounts,
passwords,anddayssincelastlogin.
VMware, Inc. 19
Chapter 2 Capturing Applications
%SystemRoot%
%SystemSystem%
ThinAppretainsMergedisolationmodeforthe%SystemSytem%\spoolsubdirectorybycreatingan
exceptiontothe%SystemSystem%parentdirectoryisolationmode.
Betweentheprescanandpostscancaptureoperations,assignsFullisolationmodetoanydirectoriesthat
theapplicationcreatesduringtheinstallation.Thisprocessisunrelatedtotheisolationmodeofanynew
directoriesthattherunningvirtualapplicationcreates.
MergedisolationmodeintheSetupCapturewizardhasthesameeffect
asMergedisolationmodeinthe
Package.inifile,includingthedirectoryexceptionsthatspecifyWriteCopyisolationmode.TheSetup
Capturewizardandmanualcaptureprocesswiththesnapshot.exe utilityconfigurethedirectory
exceptionsforyouwiththe##Attributes.inifileswithinthedirectories.
Applying WriteCopy Isolation Mode To Prevent Modifications Outside of the Package
WithWriteCopyisolationmode,ThinAppcaninterceptwriteoperationsandredirectthemtothesandbox.
YoucanuseWriteCopyisolationmodeforlegacyoruntrustedapplications.Althoughthismodemightmake
itdifficulttofinduserdatafilesthatresideinthesandboxinsteadofthephysicalsystem,thismodeis
useful
forlockeddowndesktopswhereyouwanttopreventusersfromaffectingthelocalfilesystem.
WhenyouselectWriteCopyisolationinthe SetupCapturewizard,ThinApp completesthefollowingoperations:
SetstheDirectoryIsolationModeparameterinthePackage.inifiletoWriteCopy.
SetsupexceptionsthatapplyMergedisolationtothefollowingdirectories:
%Personal%
%Desktop%
%SystemSystem%\spool
Betweentheprescanandpostscancaptureoperations,assignsFullisolationmodetoanydirectoriesthat
theapplicationcreatesduringtheinstallation.Thisprocessisunrelatedtotheisolationmodeofanynew
directoriesthattherunningvirtualapplicationcreates.
WriteCopyisolationmodeintheSetupCapturewizardhasthesameeffect
asWriteCopyisolationmodeinthe
Package.inifile,includingthedirectoryexceptionsthatspecifyMergedisolationmode.TheSetupCapture
wizardandsnapshot.exeutilityconfigurethedirectoryexceptionsforyouwiththe##Attributes.inifiles
withinthedirectories.
Set File System Isolation Modes
Thecaptureprocesssetsthelevelofreadandwriteaccesstothephysicalfilesystemtodeterminewhich
directoriesarevisibleandwritablebythevirtualapplication.
For informationaboutFullisolationandregistryisolationthatareavailableonlyoutsideoftheSetupCapture
wizard,see“DirectoryIsolationMode”onpage 58and“RegistryIsolationMode”
onpage 59.
To set file system isolation modes in the Setup Capture wizard
OntheIsolationpage,selecttheisolationmodeforthephysicalfilesystem.
Option Description
Fullwriteaccesstononsys temdirectories
(Mergedisolationmode)
Allowstheapplicationtoreadresourcesonandwritetothelocalmachine.
Restrictedwriteaccess(WriteCopy
isolationmode)
Allowstheapplicationtoreadresourcesonthelocalmachineandtorestrict
mostmodificationstothesandbox.
ThinAppcopiesfilesystemchanges
tothesandboxtoensurethat
ThinApponlymodifiescopiesoffilesinsteadoftheactualphysicalfiles.
ThinApp User’s Guide
20 VMware, Inc.
Storing Application Changes in the Sandbox
Thesandboxisthedirectorywhereallchangesthatthecapturedapplicationmakesarestored.Thesandbox
isruntimemodificationstorageandisnotacache.Thenexttimeyouopentheapplication,thosechangesare
incorporatedfromthesandbox.
Whenyoudeletethesandboxdirectory,theapplicationrevertstoits
capturedstate.Youmightdeletea
sandboxwhenanapplicationhasaproblemandyouwanttoreverttheapplicationbacktotheworking
originalstate.
Customize the Sandbox Location
Youcandeploythesandboxtoalocalusermachine,carryitonamobileUSBdevice,orstoreitinanetwork
location.
Ifyoudeploythesandboxtoalocalmachine,usetheusersprofileasthesandboxlocation.Thedefault
locationofthesandboxforFirefoxmightbe
%AppData%\Thinstall\Mozilla Firefox 3.0.Thetypical
%AppData%locationisC:\Documents and Settings\<user_name>\Application Data.Theusersprofile
isthedefaultlocationbecauseofthewriteaccess.
Anetworklocationisusefulforbackingupthesandboxandforuserswhologintoanycomputerandretain
theirapplicationsettings.Usetheabsolutepathtothelocation,
suchas\\thinapp\sandbox\Firefox.You
canselectanetworklocationevenifanapplicationisinstalledonalocalmachine.
Aportabledevicelocationisusefultokeepthesandboxdataonthedevicewheretheapplicationresides.
To customize the sandbox location in the Setup Capture wizard
OntheSandboxpage,selecttheusersprofile,applicationdirectory,orcustomlocationfor
thesandbox.
Send Anonymous Statistics to VMware
ToimproveThinAppsupportforapplications,VMwareusesthecaptureprocesstoconfirmwhethertocollect
anonymousdataaboutdeployedThinApppackages.Thedataincludestheapplicationstarttime,total
runningtime,andnumberofrunsfortheapplication.
To send anonymous statistics to VMware
OntheUsageStatisticspage,clicktheYes‐Sendanonymoususagestatistics
toVMwareradiobuttonto
confirmthedatacollectionstatus.
Customize ThinApp Project Settings
Aprojectisthedatathatthecaptureprocesscreates.Youcannotrunordeploythecapturedapplicationuntil
youbuildapackagefromtheprojectfiles.
Settinguptheprojectinvolvesdeterminingtheinventorynameandtheprojectlocation.Theinventoryname
facilitatesinternaltrackingoftheapplicationanddetermines
thedefaultprojectdirectoryname.
To customize project settings in the Setup Capture wizard
1OntheProjectSettingspage,changetheinventoryname.
Usingthethinreg.exeutilityordeployingthecapturedapplicationasanMSIfilecausestheinventory
nametoappearintheAddorRemoveProgramsdialogboxforWindows.
2 Changethedirectorywhereyouwanttosave
theThinAppproject.
IfyoukeepthedefaultdirectoryandcaptureFirefox2.0.0.3,thepathmightappearasC:\Program
Files\VMware\VMware ThinApp\Captures\Mozilla Firefox (2.0.0.3).
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136

VMware ThinApp 4.5 User guide

Category
Software manuals
Type
User guide

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI