4.6.1

Table Of Contents
VMware, Inc. 91
Chapter 5 Configuring Package Parameters
WorkingDirectory
TheWorkingDirectoryparameterdeterminesthefirstlocationinwhichanapplicationlooksforfilesand
placesfiles.
ThinAppdoesnotincludethisparameterbydefaultinthePackage.inifilebecauseThinappassumesthe
workingdirectoryisthedirectorywheretheexecutablefileresides.ThetypicallocationinaThinApp
environmentisonth
edesktopofthedeploymentmachine.
Youcansettheworkingdirectoryforindividualapplications.Theworkingdirectorycanexistinthevirtual
filesystem,thesandbox,orthephysicalsystemdependingontheisolationmodesetting.Youcanusefolder
macrosforthepathnameconventions.
TheWorkingDirectoryparametersetstheiniti
alvalueoftheworkingdirectorybutthedirectoryisdynamic
asyounavigatetootherlocations.
Examples
IfyouhaveanapplicationonaUSBdrive,youcanmodifytheWorkingDirectoryvaluefromthedefaultUSB
locationtotheMy Documentsdirectoryonthedesktop.
[<app>.exe]
WorkingDirectory=%Personal%
ThelocationoftheMy Documentsdirectorydependsontheisolationmodesetting.Toma ptheworking
directorytotheMy Documentsdirectoryonthephysicalsystem,usetheMergedisolationmodesetting.Tomap
theworkingdirectorytothesandboxonthelocalmachine,usethe WriteCopyorFullisolationmodesetting.
Configuring Dependent Applications with Application Link
TheApplicationLinkutilitykeepssharedcomponentsordependentapplicationsinseparatepackages.Inthe
Package.inifile,youcanusetheOptionalAppLinksandRequiredAppLinksentriestodynamically
combineThinApppackagesatruntimeonendusercomputers.Thisprocessenablesyoutopackage,deploy,
andupdatecomponentpiecesseparatelyandkeepthebe
nefitsofapplicationvirtualization.
ThinAppcanlinkupto250packagesatatime.Eachpackagecanbeanysize.Thelinksmustpointtothe
primarydatacontainerofapackage.
Sandboxchangesfromlinkedpackagesarenotvisibletothebasepackage.Forexample,youcaninstall
AcrobatReaderasast
andalonevirtualpackageandasalinkedpackagetothebaseFirefoxapplication.When
youstartAcrobatReaderasastandaloneapplicationbyrunningthevirtualpackageandyouchangethe
preferences,ThinAppstoresthechangesinthesandboxforAcrobatReader.WhenyoustartFirefox,Firefox
cannotdetectthosech
angesbecauseFirefoxhasitsownsandbox.Openinga.pdffilewithFirefoxdoesnot
reflectthepreferencechangesthatexistinthestandaloneAcrobatReaderapplication.
FormoreinformationabouttheApplicationLinkutility,see“A p p l i c a t i o n LinkUpdates”onpage 56,
“OptionalAppLinks”onpage 93,and“RequiredAppLinks”onpage 92.
Application Link Pathname Formats
TheApplicationLinkutilitysupportsthefollowingpathnameformats:
Pathnamescanberelativetothebaseexecutablefile.Forexample,
RequiredAppLinks=..\SomeDirectoryresultsinC:\MyDir\SomeDirectorywhenyoudeploythe
baseexecutablefiletoc:\MyDir\SubDir\ Dependency.exe.
Pathnamescanbeabsolutepathnames.AnexampleisRequiredAppLinks=C:\SomeDirectory.
PathnamescanuseanetworkshareoraUNCpath.Anexampleis
RequiredAppLinks=\\share\somedir\Dependency.exe.