VMware ThinApp 5.0 User guide

Category
Development software
Type
User guide
ThinApp User’s Guide
ThinApp 5.0
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-000400-03
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 7
1 InstallingThinApp 9
ThinAppRequirements 9
OperatingSystems,Applications,andSystemsThatThinAppSupports 9
ApplicationsThatThinAppCannotVirtualize 10
RecommendationsforInstallingThinApp 10
UsingaCleanComputer 10
UsingtheEarliestOperatingSystemRequiredforUsers 11
InstallThinAppSoftware 11
CheckingThinAppInstallationFiles 11
2 CapturingApplications 13
PhasesoftheCaptureProcess 13
PreparingtoCaptureApplications 13
CapturingApplicationswiththeSetupCaptureWizard 14
CreateaSystemImageBeforetheApplicationInstallation 14
RescantheSystemwiththeInstalledApplication 14
DefiningEntryPointsasShortcutsintotheVirtualEnvironment 15
SetEntryPoints 15
ManagewithVMwareHorizonApplicationManager 15
SetUserGroups 16
DefiningIsolationModes
forthePhysicalFileSystem 16
SetFileSystemIsolationModes 18
StoringApplicationChangesintheSandbox 18
CustomizetheSandboxLocation 18
SendAnonymousStatisticstoVMware 18
CustomizeThinAppProjectSettings 19
DefiningPackageSettings 19
CustomizePackageSettings 20
OpeningProjectandParameterFiles 20
BuildVirtualApplications 21
AdvancedPackageConfiguration 21
ModifyingSettingsinthePackage.iniFile 21
ModifyingSettingsinthe##Attributes.ini
File 22
CapturingInternetExplorer6onWindowsXP 22
RequirementsforCapturingInternetExplorer6onWindowsXP 23
CaptureInternetExplorer6onWindowsXPbyUsingtheSetupCaptureWizard 23
ExtractingandRegisteringThinDirect 24
CapturingMultipleApplicationInstallerswithThinAppConverter 24
ThinAppConverterProcess 24
SystemRequirementsforRunningThinAppConverter 25
PreparingtheConfigurationFile
forThinAppConverter 25
PredefinedEnvironmentVariables 31
3 DeployingApplications 33
ThinAppDeploymentOptions 33
DeployingThinAppwithDeploymentTools 33
ThinApp User’s Guide
4 VMware, Inc.
DeployingThinAppintheVMwareViewEnvironment 33
DeployingThinApponNetworkShares 34
DeployingThinAppUsingExecutableFiles 34
EstablishingFileTypeAssociationswiththethinreg.exeUtility 34
ApplicationSyncEffectonthethinreg.exeUtility 34
Runthethinreg.exeUtility 35
Optionalthinreg.exeParameters 35
BuildinganMSIDatabase 37
CustomizingMSIFileswithPackage.iniParameters 37
ModifythePackage.iniFiletoCreate
MSIFiles 37
ControllingApplicationAccesswithActiveDirectory 39
Package.iniEntriesforActiveDirectoryAccessControl 39
StartingandStoppingVirtualServices 40
AutomaticStartupforVirtualServices 40
UsingThinAppPackagesStreamedfromtheNetwork 41
HowThinAppApplicationStreamingWorks 41
RequirementsandRecommendationsforStreamingPackages 42
StreamThinAppPackagesfromtheNetwork 43
UsingCapturedApplicationswithOtherSystem
Components 43
PerformingPasteOperations 43
AccessingPrinters 43
AccessingDrivers 43
AccessingtheLocalDisk,theRemovableDisk,andNetworkShares 43
AccessingtheSystemRegistry 44
AccessingNetworkingandSockets 44
UsingSharedMemoryandNamedPipes 44
UsingCOM,DCOM,andOutofProcessCOMComponents 44
StartingServices 44
UsingFileTypeAssociations 44
SampleIsolationModeConfigurationDependingonDeploymentContext 45
Viewof
IsolationModeEffectontheWindowsRegistry 45
4 UpdatingandLinkingApplications 47
ApplicationUpdatesThattheEndUserTriggers 47
ApplicationSyncUpdates 47
ApplicationLinkUpdates 50
ApplicationUpdatesThattheAdministratorTriggers 54
ForcinganApplicationSyncUpdateonClientMachines 55
UpdatingApplicationswithRuntimeChanges 55
AutomaticApplicationUpdates 56
DynamicUpdatesWithoutAdministratorRights 57
UpgradingRunningApplicationsonaNetworkShare 57
FileLocks 57
UpgradeaRunningApplication 57
SandboxConsiderationsfor
UpgradedApplications 58
UpdatingtheThinAppVersionofPackages 58
relinkExamples 58
5 LocatingtheThinAppSandbox 59
SearchOrderfortheSandbox 59
ControllingtheSandboxLocation 61
StoretheSandboxontheNetwork 61
StoretheSandboxonaPortableDevice 61
SandboxStructure 62
MakingChangestotheSandbox 62
VMware, Inc. 5
Contents
ListingVirtualRegistryContentswithvregtool 62
6 CreatingThinAppSnapshotsandProjectsfromtheCommandLine 63
MethodsofUsingthesnapshot.exeUtility 63
CreatingSnapshotsofMachineStates 63
CreatingtheTemplatePackage.inifilefromTwoSnapshotFiles 64
CreatingtheThinAppProjectfromtheTemplatePackage.iniFile 64
DisplayingtheContentsofaSnapshotFile 65
Samplesnapshot.exeCommands 65
CreateaProjectWithouttheSetupCaptureWizard 65
Customizingthesnapshot.iniFile 66
7 ThinAppFileSystemFormatsandMacros 67
VirtualFileSystemFormats 67
ThinAppFolderMacros 67
ListofThinAppMacros 68
Processing%SystemRoot%inaTerminalServicesEnvironment 69
8 CreatingThinAppScripts 71
CallbackFunctions 71
ImplementScriptsinaThinAppEnvironment 72
.batExample 72
TimeoutExample 72
ModifytheVirtualRegistry 73
.regExample 73
StoppingaServiceExample 73
CopyingaFileExample 73
AddaValuetotheSystemRegistry 74
APIFunctions 75
AddForcedVirtualLoadPath 75
ExitProcess 75
ExpandPath 76
ExecuteExternalProcess 76
ExecuteVirtualProcess 77
GetBuildOption 77
GetFileVersionValue 77
GetCommandLine 78
GetCurrentProcessName 78
GetOSVersion 79
GetEnvironmentVariable 80
RemoveSandboxOnExit 80
SetEnvironmentVariable 80
SetfileSystemIsolation 81
SetRegistryIsolation 81
WaitForProcess 81
9 MonitoringandTroubleshootingThinApp 83
ProvidingInformationtoTechnicalSupport 83
LogMonitorOperations 83
TroubleshootActivitywithLogMonitor 84
PerformAdvancedLogMonitorOperations 84
LogFormat 86
TroubleshootingSpecificApplications 90
TroubleshootRegistrySetupforMicrosoftOutlook 90
ViewingAttachmentsinMicrosoftOutlook 90
ThinApp User’s Guide
6 VMware, Inc.
StartingExplorer.exeintheVirtualEnvironment 91
TroubleshootingJavaRuntimeEnvironmentVersionConflict 91
Glossary 93
Index 97
VMware, Inc. 7
TheThinAppUser’sGuideprovidesinformationabouthowtoinstallThinApp™,captureapplications,deploy
applications,andupgradeapplications.You canrefertothisguidetocustomizeparametersandperform
scripting.
Intended Audience
ThisbookisintendedforanyonewhoinstallsThinAppanddeployscapturedapplications.Typicalusersare
systemadministratorsresponsibleforthedistributionandmaintenanceofcorporatesoftwarepackages.
VMware ThinApp Documentation
ThecompletedocumentationsetforVMwareThinAppconsistsofthefollowingdocuments.
ThinAppUsersGuide.Conceptualandproceduralinformationtohelpyoucompleteatask.
ThinApp5.0ReleaseNotes.Latebreakingnewsanddescriptionsofknownissuesandworkarounds.
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.
About This Book
ThinApp User’s Guide
8 VMware, Inc.
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.
Legal Notice
ThinAppusestheregularexpressionlibraryoriginallywrittenbyHenrySpencer.
Copyright(c)1986,1993,1995byUniversityofToronto.
WrittenbyHenrySpencer.Notderivedfromlicensedsoftware.
Permissionisgrantedtoanyonetousethissoftwareforanypurposeonanycomputersystem,andto
redistributeitinanyway,
subjecttothefollowingrestrictions:
1Theauthorisnotresponsiblefortheconsequencesofuseofthissoftware,nomatterhowawful,evenif
theyarisefromdefectsinit.
2Theoriginofthissoftwaremustnotbemisrepresented,eitherbyexplicitclaimorbyomission.
3Alteredversionsmustbeplainlymarked
assuch,andmustnotbemisrepresented(byexplicitclaimor
omission)asbeingtheoriginalsoftware.
4Thisnoticemustnotberemovedoraltered.
VMware, Inc. 9
1
YoucanuseThinApptoisolateapplications,simplifyapplicationcustomization,deployapplicationsto
differentoperatingsystems,andeliminateapplicationconflict.
Thisinformationincludesthefollowingtopics:
“ThinAppRequirements”onpage 9
“RecommendationsforInstallingThinApp”onpage 10
“InstallThinAppSoftware”onpage 11
“CheckingThinAppInstallationFiles”onpage 11
ThinApp Requirements
ReviewtherequirementsforoperatingsystemsandcapturedapplicationsbeforeinstallingThinApp.
Operating Systems, Applications, and Systems That ThinApp Supports
ThinAppsupportsvariousoperatingsystems,applications,andsystems.
32bitplatformsincludeWindows8,Windows2000,Windows XP,WindowsXPE,Windows2003Server,
WindowsVista,WindowsServer2008,Windows7
64bitplatformsincludeWindows8,Windows864bit,WindowsXP64bit,Windows200364bit,
WindowsVista64 bit,Windows Server 2008 64bit,Windows Server 2008 R2 64bit,Windows 7 64 bit
16bitapplicationsrunningon32bitWindowsoperatingsystems
32bitapplicationsrunningon32bitand64bitWindowsoperatingsystems
64bitapplicationsrunningon64bitWindowsoperatingsystems
TerminalServerandCitrixXenapp
ThinAppsupportsJapaneseapplicationscapturedandrunonJapaneseoperatingsystems.
CertainoperatingsystemsandapplicationsarenotsupportedbyThinApp.
16bitornonx86platformssuchasWindowsCE
64bitapplicationsrunningon32bitWindowsoperatingsystems
16bitapplicationsrunningon64bitWindowsoperatingsystems
Installing ThinApp
1
ThinApp User’s Guide
10 VMware, Inc.
Applications That ThinApp Cannot Virtualize
ThinAppcannotconvertsomeapplicationsintovirtualapplicationsandmightblockcertainapplicationfunctions.
Youmustusetraditionalinstallationtechnologiestodeploysomeapplicationtypes.
Applicationsthatdonotnativelysupportthedeploymentoperatingsystem.
Ifanoperatingsystemdoesnotsupportthenativeinstallationofanapplication,thatoperatingsystemis
notasupportedThinAppdeploymentplatformforthatapplication.
Applicationsrequiringinstallationofkernelmodedevicedrivers
ODBCdriversworkbecausetheyareusermodedrivers.
Antivirusandpersonalfirewalls
Scannerdriversandprinterdrivers
SomeVPNclients
Device Drivers
ApplicationsthatrequiredevicedriversdonotworkwhenpackagedwithThinApp.Youmustinstallthose
devicedriversintheiroriginalformatonthehostcomputer.BecauseThinAppdoesnotsupportvirtualized
devicedrivers,youcannotuseThinApptovirtualizeantivirus,VPNclients,personalfirewalls,anddiskand
volumemountingrelated
utilities.
IfyoucaptureAdobeAcrobat,youcanmodifyandsavePDFfiles,butyoucannotusethePDFprinterdriver
thatenablesyoutosavedocumentstoPDFformat.
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
systeminstalled.Inacorporateenvironmentwhereyouhaveabasedesktopimage,thebasedesktopimage
isyourclean
computer.Thedesktopcomputermightalreadyhavesomecomponentsandlibrariesinstalled.
VMware, Inc. 11
Chapter 1 Installing ThinApp
Applicationinstallersskipfilesthatalreadyexistonthecomputer.Iftheinstallerskipsfiles,theThinApp
packagedoesnotincludethemduringtheapplicationcaptureprocess.Theapplicationmightfailtorunon
othercomputerswherethefilesdonotexist.Acleancomputerenablesthecaptureprocesstoscan
the
computerfilesystemandregistryquickly.
Ifyouinst al lThinAppandcaptureanapplicationonacompu te r thathasMicrosoft.NET2.0already
installed,.NET2.0isnotincludedintheThinApppackage.Thecapturedapplicationrunsonlyoncomputers
thathave.NET2.0alreadyinstalled.
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 Software
UsetheThinAppexecutablefiletoinstallThinApp.
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.
Logging64.dllGenerates.tracefilesfor64bitapplications.
dll_dump.exeListsallcapturedapplicationsthatarecurrentlyrunningonasystem.
log_monitor.exeDisplaystheexecutionhistoryanderrorsofanapplication.
ThinApp User’s Guide
12 VMware, Inc.
relink.exeUpdatesexistingpackagestothelatestThinAppversioninstalledonthesystem.
sbmerge.exeMergesruntimechangesrecordedintheapplicationsandboxwiththeThinAppproject
andupdatesthecapturedapplication.
SetupCapture.exeCapturesandconfiguresapplicationsthroughawizard.
snapshot.exeComparesthepreinstallationenvironmentandpostinstallationenvironmentduringthe
applicationcaptureprocess.
Snapshot64.exe
ThinAppstartsthisutilityduringthesetupcaptureprocess.
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.
ThinDirect.AdmxIsaWindowsgrouppolicyfile,ThinDirectusesitto identifythechangesinWindows
registrywhenagrouppolicysettingischanged.
ThinDirect.AdmThinDirect.admallowsyoutochangeThinDirect.txtfilesthathavealreadybeen
deployedtousermachines.
ThinDirect.msiInstallsandregisterstheThinDirectpluginandthelauncherforthevirtualbrowser.
ThinDirect.AdmlThinAppusesthisfiletospecifythelanguagesettingsforMicrosoftWindowsor
MicrosoftOffice.
VMware, Inc. 13
2
Youcancaptureapplicationstopackageanapplicationintoavirtualenvironment.
TheSetupCapturewizardisthemainmethodtocaptureapplicationsandsetinitialapplicationparameters.
Advanceduserswhomustcaptureapplicationsfromthecommandlinecanusethesnapshot.exeutility
insteadoftheSetupCapturewizard.
Thissectionincludes
thefollowingtopics:
“PhasesoftheCaptureProcess”onpage 13
“PreparingtoCaptureApplications”onpage 13
“CapturingApplicationswiththeSetupCaptureWizard”onpage 14
“A d v a n c e d PackageConfiguration”onpage 21
“CapturingInternetExploreronWindowsXP”onpage 22
“CapturingMultipleApplicationInstallerswithThinAppConverteronpage 24
Phases of the Capture Process
Capturinganapplicationinvolvessystemscans,applicationconfiguration,packageconfiguration,and
generationofthevirtualapplicationfordistribution.
TheSetupCapturewizardsetsinitialparametersfortheapplication.Youcancustomizethefullsetof
parametersoutsideofthewizard.
Preparing to Capture Applications
Preparingforthecaptureprocessinvolvesunderstandingtheneedsanddependenciesoftheapplication.
Fortargetapplicationsthathavedependenciesonotherapplications,libraries,orframeworks,youcancapture
thedependenciesorusetheApplicationLinkutilitytolinkseparatevirtualapplicationsatruntime.
Fortargetapplicationsthatrequirelocaleformats,
suchasaspecificdateformat,youcancapturetheminan
environmentwiththerequiredlocalesetting.ThinApprunsvirtualapplicationsaccordingtotheregionaland
languagesettingsonthecapturesystemratherthanthesettingsonthesystemthatrunstheapplication.
Althoughyoucanmodifythedefaultlocale
settingbycommentingouttheLocaleIdentifierparameterin
thePackage.inifileandrebuildingtheapplication,youcanavoidcomplicationsinthecaptureenvironment.
Capturing Applications
2
ThinApp User’s Guide
14 VMware, Inc.
Capturing Applications with the Setup Capture Wizard
Thecaptureprocesspackagesanapplicationandsetsinitialapplicationparameters.Ifyouuseavirtual
machine,considertakingasnapshotbeforeyourunthewizard.Asnapshotoftheoriginalcleanstateenables
youtoreverttothesnapshotwhenyouwanttocaptureanotherapplication.
ThisinformationusesMozilla
Firefoxasakeyexampleforapplicationcapture.
Create a System Image Before the Application Installation
TheSetupCapturewizardstartsthecaptureprocessbyscanningthesystemtoassesstheenvironmentand
createabaselinesystemimage.
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.
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)IfyouarecapturingInternetExplorer,intheInstallApplicationpage,clickInternetExplorer,
tocompleteadditionalstepsbeforeinstallingthebrowser.
IfyouarecapturingInternetExplorer6onWindowsXP,see“Capturing
InternetExploreronWindows
XP”onpage 22.
Formoreinformationaboutentrypoints,see“DefiningEntryPointsasShortcutsintotheVirtual
Environment”onpage 15.
3 (Optional)Makeanynecessaryconfigurationchangestocomplywithyourcompanypolicies,suchas
usingspecificsecuritysettingsoraparticularhomepage.
Ifyoudo
notmakeconfigurationchangesatthistime,eachusermustmakechanges.
4 (Optional)Starttheapplicationandrespondtoanymessagesforinformationbeforeyoucontinuewith
theSetupCapturewizard.
Ifyoudonotrespondtoanymessagesatthistime,eachuserwhousestheapplicationmustdoso
during
theinitialstart.
VMware, Inc. 15
Chapter 2 Capturing Applications
5Closetheapplication.
6 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.exeStartsacommandpromptinavirtualcontextthatenablesyoutoviewthevirtualfilesystem.
regedit.exeStartstheregistryeditorinavirtualcontextthatenablesyoutoviewthevirtualregistry.
Entrypointsstartnativeexecutablefilesinavirtualcontext.Entrypointsdonotcreatevirtualpackagesof
cmd.exeandregedit.exe.
Ifyoucannotpredicttheneedfordebuggingortroubleshootingtheenvironment,you
canusetheDisabled
parameterinthePackage.inifileatalatertimetoactivatetheseentrypoints.
Set Entry Points
Youcandesignatetheexecutablefilesthatmakeupthelistofentrypoints.ThinAppinstallstheexecutable
filesduringthecaptureprocess.
Set entry points in the Setup Capture wizard
1OntheEntryPointspage,selectthecheckboxesforuseraccessibleentrypoints.
Thewizarddisplaystheexecutablefilesthatweredirectlyaccessiblethroughthedesktop
orStartmenu
shortcuts.
2 (Optional)Todebugyourenvironment,selecttheShowentrypointsusedfordebuggingcheckboxto
displaytheregedit.exe, andcmd.exetroubleshootingoptions.
Manage with VMware Horizon Application Manager
YoucanuseVMwareHorizonApplicationManagertomanagethedeploymentandentitlementofThinApp
packages.SeeUsingVMwareHorizonApplicationManagertoManagetheDeploymentandEntitlementofThinApp
Packages,availablefromtheThinAppdownloadsite.
Set User Groups
ThinAppcanuseActiveDirectorygroupstoauthorizeaccesstothevirtualapplication.Youcanrestrictaccess
toanapplicationtoensurethatusersdonotpassittounauthorizedusers.
ThinApp User’s Guide
16 VMware, Inc.
ActiveDirectoryDomainServicesdefinesecuritygroupsanddistributiongroups.ThinAppcanonlysupport
nestedsecuritygroups.
Set user groups in the Setup Capture wizard
1OntheGroupspage,limittheuseraccesstotheapplication.
a SelectOnlythefollowingActiveDirectorygroups.
bClickAddtospecifyActiveDirectoryobjectandlocationinformation.
2 (Optional)Changethemessagethatappearsfor
usersthatThinAppcannotauthorize.
Defining Isolation Modes for the Physical File System
Isolationmodesdeterminethelevelofreadandwriteaccesstothenativefilesystemoutsideofthevirtual
environment.Youmightadjustisolationmodesettingsdependingontheapplicationandtherequirementsto
protectthephysicalsystemfromchanges.
Theselectionofisolationmodesinthecaptureprocessdeterminesthe
valueoftheDirectoryIsolationMode
parameterinthePackage.inifile.Thisparametercontrolsthedefaultisolationmodeforthefilescreatedby
thevirtualapplicationexceptwhenyouspecifyadifferentisolationmodeinthe##Attributes.inifilefor
anindividualdirectory.
Theselectionofadirectoryisolationmodedoesnotaffectthe
followingareas:
ThinApptreatswriteoperationstonetworkdrivesaccordingtotheSandboxNetworkDrivesparameter
inthePackage.inifile.Thisparameterhasadefaultvaluethatdirectswriteoperationstothephysical
drive.ThinApptreatswriteoperationstoremovabledisksaccordingtotheSandboxRemovableDisk
parameterinthePackage.inifile.Thisparameterhasadefault
valuethatdirectswriteoperationstothe
physicaldrive.
IfyousavedocumentstothedesktoporMy Documentsfolder,ThinAppsavesthedocumentstothe
physicalsystem.ThinAppsetstheisolationmodeinthe##Attributes.inifilesin%Personal%and
%Desktop%toMergedevenwhenyouselectWriteCopyisolationmode.
Applying Merged Isolation Mode for Modifications Outside the Package
WithMergedisolationmode,applicationscanreadandmodifyelementsonthephysicalfilesystemoutside
ofthevirtualpackage.SomeapplicationsrelyonreadingDLLsandregistryinformationinthelocalsystem
image.
TheadvantageofusingMergedmodeisthatdocumentsthatuserssaveappearonthephysicalsystem
inthe
locationthatusersexpect,insteadofinthesandbox.Thedisadvantageisthatthismodemightclutterthe
systemimage.Anexampleofthecluttermightbefirstexecutionmarkersbysharewareapplicationswritten
torandomcomputerlocationsaspartofthelicensingprocess.
WhenyouselectMergedisolation,
ThinAppcompletesthefollowingoperations:
SetstheDirectoryIsolationModeparameterinthePackage.inifiletoMerged.
SetsupexceptionsthatapplyWriteCopyisolationtothefollowingdirectoriesandtheirsubdirectories:
%AppData%
Option Description
ObjectTypes Specifiesobjects.
Locations Specifiesalocationintheforest.
CheckNames Verifyobjectnames.
Advanced LocatesusernamesintheActiveDirectoryforest.
CommonQueries(underAdvanced)Searchesforgroupsaccordingtonames,descriptions,disabledaccounts,
passwords,anddayssincelastlogin.
VMware, Inc. 17
Chapter 2 Capturing Applications
%Common AppData%
%Local AppData%
%Program Files Common%
%ProgramFilesDir%
%SystemRoot%
%SystemSystem%
ThinAppretainsMergedisolationmodeforthe%SystemSystem%\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.
WhenyouselectWriteCopyisolationintheSetupCapturewizard,ThinAppcompletesanumberof
operations.
SetstheDirectoryIsolationModeparameterinthePackage.inifiletoWriteCopy.
SetsupexceptionsthatapplyMergedisolationtothesedirectories
%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”and“RegistryIsolationMode”inThinApp
Package.iniParameters
ReferenceGuide.
Set file system isolation modes in the Setup Capture wizard
OntheIsolationpage,selecttheisolationmodeforthephysicalfilesystem.
ThinApp User’s Guide
18 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.
Anetworklocationisusefulforbackingupthesandboxandforuserswhologintoanycomputerandkeep
theirapplicationsettings.Usetheabsolutepathtothelocation,
suchas\\thinapp\sandbox\Firefox.You
canselectanetworklocationevenifanapplicationisinstalledonalocalmachine.
Aportabledevicelocationisusefultokeepthesandboxdataonthedevicewheretheapplicationresides.
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.
Send anonymous statistics to VMware
OntheUsageStatisticspage,clicktheYes‐Sendanonymoususagestatistics
toVMwareoptionbuttonto
confirmthedatacollectionstatus.
Customize ThinApp Project Settings
Aprojectisthedatathatthecaptureprocesscreates.Youcannotrunordeploythecapturedapplicationuntil
youbuildapackagefromtheprojectfiles.
Settinguptheprojectinvolvesdeterminingtheinventorynameandtheprojectlocation.Theinventoryname
facilitatesinternaltrackingoftheapplicationanddetermines
thedefaultprojectdirectoryname.
Option Description
Fullwriteaccesstononsystemdirectories
(Mergedisolationmode)
Allowstheapplicationtoreadresourcesonandwritetothelocalmachine.
Restrictedwriteaccess(WriteCopy
isolationmode)
Allowstheapplicationtoreadresourcesonthelocalmachineandto
restrictmostmodificationstothesandbox.
ThinAppcopiesfilesystemchanges
tothesandboxtoensurethat
ThinApponlymodifiescopiesoffilesinsteadoftheactualphysicalfiles.
VMware, Inc. 19
Chapter 2 Capturing Applications
Customize project settings in the Setup Capture wizard
1OntheProjectSettingspage,changetheinventoryname.
Usingthethinreg.exeutilityordeployingthecapturedapplicationasanMSIfilecausestheinventory
nametoappearintheAddorRemoveProgramsdialogboxforWindows.
2 ChangethedirectorywhereyouwanttosavetheThinAppproject.
Ifyoukeep
thedefaultdirectoryandcaptureFirefox2.0.0.3,thepathmightappearasC:\Program
Files\VMware\VMware ThinApp\Captures\Mozilla Firefox (2.0.0.3).
Defining Package Settings
ApackageistheexecutablefileorMSIfilewithexecutablefilesthatyouusetorunordeployacaptured
application.Youbuildapackagefromtheprojectfiles.
Settingupthepackageduringthecaptureprocessinvolvesspecifyinginformationaboutthemainvirtual
applicationfilethatservesasthe
primarydatacontainer,MSIgeneration,andcompression.
Defining the Primary Data Container
TheprimarydatacontaineristhemainvirtualapplicationfilethatincludestheThinAppruntimeandthe
readonlyvirtualfilesystemandvirtualregistry.Theprimarydatacontainerfileisa.exeora.datfilethat
residesinthesame/bindirectorywithanysubordinateapplicationexecutablefiles.Entry
pointsreference
theinformationintheprimarydatacontainer.
Toidentifytheprimarydatacontainerafteryoucaptureanapplication,checktheReadOnlyDataparameter
inthePackage.inifile.
Generating MSI Packages in the Capture Process
YoucancaptureanapplicationanddeployitasanMSIWindowsinstallationpackage.TheMSIinstallation
placestheapplicationintheC:\Program Filesdirectory.
AtypicalFirefoxapplicationdoesnotrequireanMSIinstallation.Otherapplications,suchasMicrosoftOffice,
thatintegratewithapplicationdeliverytools,workwellasanMSI
package.MSIgenerationrequiresyouto
installtheMSIonthetargetdevicebeforeyoucanusetheapplicationpackage.
MSIpackagesautomatetheprocessofregisteringfiletypeassociations,registeringdesktopandStartmenu
shortcuts,anddisplayingcontrolpanelextensions.IfyouplantodeployThinAppexecutablefilesdirectlyon
eachcomputer,youcanaccomplishthesameregistrationbyusingthethinreg.exeutility.
Compressing Packages in the Capture Process
Compressingapackageinthecaptureprocessdecreasesthesizeofanexecutablepackagebutdoesnotaffect
MSIpackages.
Compressioncanreducetheondiskstoragerequirementby50percentbutslowstheapplicationperformance
whenThinAppuncompressesinitialblocksthatstarttheapplication.VMwaredoesnotrecommend
compressionfor
testbuildsbecausecompressionincreasesthebuildtime.
Customize Package Settings
Thecaptureprocessincludesinitialsettingsfortheprimarydatacontainer,MSIpackages,andexecutable
packagecompression.
Customize package settings in the Setup Capture wizard
1OnthePackageSettingspage,selecttheprimarydatacontainerfromthelistthatisbasedonyour
executablefileentrypoints.
Ifthesizeoftheprimarycontainerissmallerthan200MB,ThinAppcreatesa.exefileastheprimary
container.ForasmallapplicationsuchasFirefox,any.exefilecanserveasthemaindatacontainer.
ThinApp User’s Guide
20 VMware, Inc.
Ifthesizeoftheprimarycontainerislargerthan200MB,ThinAppcreatesaseparate.datfileasthe
primarycontainerbecauseWindowsXPandWindows2000cannotshowshortcuticonsforlarge
.exefiles.Generatingseparatesmall.exefilestogetherwiththe.datfilefixestheproblem.
Ifthesizeoftheprimarycontainerisbetween200MBand1.5GB,ThinAppcreatesthedefault.dat
fileunlessyouselecta.exefiletooverridethedefault.datfile.
2 (Optional)Ifyouselecta.exefiletooverridethedefault.datfilewhenthesizeoftheprimarycontainer
is
between200MBand1.5GB,ignorethegeneratedwarning.
Selectinga.exefileenablesallapplicationstoworkproperlybutmightpreventtheproperdisplayof
icons.
3 (Optional)Ifyoucannotselectaprimarydatacontainer,typeaprimarydatacontainernametogenerate
a.datfile.
Ifyouplantousethe
ApplicationSyncutilitytoupdateacapturedapplication,ThinAppusestheprimary
datacontainernameduringtheprocess.Youmustusethesamenameacrossmultipleversionsofthe
application.Youmightnotbeabletoselectthesameprimarydatacontainernamefromthelist.
For example,MicrosoftOffice2003and
MicrosoftOffice2007donothavecommonentrypointnames.
4 (Optional)SelecttheGenerateMSIpackagecheckboxandchangetheMSIfilename.
5 (Optional)TocreateasmallerexecutablepackageforlocationssuchasaUSBdevice,selecttheCompress
virtualpackagecheckbox.
6ClickSave.
Opening Project and Parameter Files
Thecaptureprocessprovidesanopportunitytoreviewtheprojectfilestoupdatesettingsbeforebuildingthe
executablepackageorMSIpackage.
Forexample,ifyoucaptureFirefox2.0.0.3,youmightbrowsetheC:\Program Files\VMware\VMware
ThinApp\Captures\Mozilla Firefox 2.0.0.3directorytoupdateasetting,suchasanActiveDirectory
specification,inthePackage.inifilethatcontains
theparameterssetduringthecaptureprocess.For
informationaboutupdatingsettings,seeAdvancedPackageConfiguration”onpage 21.
Theprojectincludesfolders,suchas%AppData%,thatrepresentfilesystempathsthatmightchangelocations
whenrunningondifferentoperatingsystemsorcomputers.Mostfoldershave##Attributes.inifilesthat
specifythe
isolationmodeatthefolderlevel.
Build Virtual Applications
Youcanadjustprojectfilesandbuildtheapplicationfordeployment.
Build virtual applications in the Setup Capture wizard
1 (Optional)OntheReadytoBuildpage,scanorchangetheprojectfiles.
2 (Optional)Topreventabuildfromtakingplace,selecttheSkipthebuildprocesscheckbox.
Youcanbuildthepackageatalatertimewiththebuild.bat
fileinthevirtualapplicationfolder.For
example,aFirefox2.0.0.3pathtothebuild.batfilemightbeC:\Program Files\VMware\VMware
ThinApp\Captures\Mozilla Firefox 2.0.0.3\build.bat.
3ClickBuildtobuildanexecutablepackageorMSIpackagecontainingthefilesyouinstalledduringthe
captureprocess.
Option Description
EditPackage.ini Modifyapplicationparametersfortheentirepackage.
Openprojectfolder BrowseThinAppprojectfilesinWindowsExplorer.
  • 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

VMware ThinApp 5.0 User guide

Category
Development software
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