4.5

Table Of Contents
VMware, Inc. 81
Chapter 5 Configuring Package Parameters
TheWorkingDirectoryparametersetstheinitialvalueoftheworkingdirectorybutthedirectoryisdynamic
asyounavigatetootherlocations.
Examples
IfyouhaveanapplicationonaUSBdrive,youcanmodifytheWorkingDirectoryvaluefromthedefaultUSB
locationtotheMy Documentsdirectoryonthedesktop.
[<app>.exe]
WorkingDirectory=%Personal%
ThelocationoftheMy Documentsdirectorydependsontheisolationmodesetting.Ifyouwanttomapthe
workingdirectorytotheMy Documentsdirectoryonthephysicalsystem,usetheMergedisolationmode
setting.Ifyouwanttomaptheworkingdirectorytothesandboxonthelocalmachine,usethe
WriteCopyor
Fullisolationmodesetting.
Configuring Dependent Applications with Application Link
TheApplicationLinkutilitykeepssharedcomponentsordependentapplicationsinseparatepackages.Inthe
Package.inifile,youcanusetheOptionalAppLinksandRequiredAppLinksentriestodynamically
combineThinApppackagesatruntimeonendusercomputers.Thisprocessenablesyoutopackage,deploy,
andupdatecomponentpiecesseparatelyandretainthe
benefitsofapplicationvirtualization.
ThinAppcanlinkupto250packagesatatime.Eachpackagecanbeanysizeandthelinksmustpointtothe
primarydatacontainerofapackage.
Sandboxchangesfromlinkedpackagesarenotvisibletothebasepackage.Forexample,youcaninstall
Acrobat
ReaderasastandalonevirtualpackageandasalinkedpackagetothebaseFirefoxapplication.When
youstartAcrobatReaderasastandaloneapplicationbyrunningthevirtualpackageandyoumakechanges
tothepreferences,ThinAppstoresthechangesinthesandboxforAcrobatReader.WhenyoustartFirefox,
FirefoxcannotdetectthosechangesbecauseFirefoxhasitsownsandbox.Openinga.pdffilewithFirefoxdoes
notreflectthepreferencechangesthatexistinthestandaloneAcrobatReaderapplication.
FormoreinformationabouttheApplicationLinkutility,see“A p p l i c a t i o n LinkUpdates”onpage 46,
“OptionalAppLinks”onpage 83,and“RequiredAppLinks”
onpage 82.
Application Link Path Name Formats
TheApplicationLinkutilitysupportsthefollowingpathnameformats:
Pathnamescanberelativetothebaseexecutablefile.Forexample,
RequiredAppLinks=..\SomeDirectoryresultsinC:\MyDir\SomeDirectorywhenyoudeploythe
baseexecutablefiletoc:\MyDir\SubDir\ Dependency.exe.
Pathnamescanbeabsolutepathnames.AnexampleisRequiredAppLinks=C:\SomeDirectory.
PathnamescanuseanetworkshareoraUNCpath.Anexampleis
RequiredAppLinks=\\share\somedir\Dependency.exe.
Pathnamescancontainenvironmentvariablesanddynamicallyexpandtoanyoftheprecedingpath
names.AnexampleisRequiredAppLinks=%MyEnvironmentVariable%\Package.dat.
Theriskofusingenvironmentvariablesisthatausermightchangethevaluesbeforestartingthe
applicationandcreateanApplicationLinkdependencyotherthantheonethattheadministrator
setup.
PathnamescancontainThinAppfoldermacros.Anexampleis
RequiredAppLinks=%SystemSystem%\Package.dat.
Pathnamescanspecifymultiplelinksordependencieswithasemicolonthatseparatesindividual
filenames.AnexampleisRequiredAppLinks=Dependency1.exe; Dependency2.exe;.