4.0.4

Table Of Contents
VMware, Inc. 83
Appendix A Configuring Package Parameters
Examples
YoucancreateashortcutintheMicrosoftOfficefolderoftheStartmenutotheMicrosoftWord 2003
application.
[Microsoft Office Word 2003.exe]
ReadOnlyData=bin\Package.ro.tvr
Source=%ProgramFilesDir%\Microsoft Office\OFFICE11\WINWORD.EXE
Shortcuts=%Programs%\Microsoft Office
Source
TheSourceparameterpointstotheexecutablefilethatThinApploadswhenyouuseashortcutexecutable
file.Theparameterprovidesthepathtotheexecutablefileinthevirtualorphysicalfilesystem.IfThinApp
cannotlocatethesourceexecutablefileinthevirtualfilesystem,ThinAppsearchesthephysical
filesystem.
Forexample,ifyouusenativeInternetExplorerfromthevirtualenvironment,ThinApploadsthesource
executablefilefromthephysicalfilesystem.
ThinAppspecifiesthesourceforeachexecutablefile.Ifanapplicationsuitehasthreeuserentrypoints,such
asWinword.exe,Powerpnt.exe,andExcel.exe,the
Package.inifileliststhreeapplicationentries.
Each entryhasauniquesourceentry.
TheSourceparameterandthe/bindirectoryintheprojectarenotrelatedtoeachother.The/bindirectory
storesthegeneratedexecutablefileandtheSourcepathleadstotheinstalledexecutablefilestoredinthe
readonly
virtualfilesystem.
DonotaltertheSourcepath.Thecaptureprocessdeterminesthepathbasedonwheretheapplicationinstaller
placestheexecutablefileinthephysicalfilesystemofthecapturemachine.ThinAppcreatesavirtualfile
systempathbasedonthephysicalfilesystempath.
Examples
ThinAppcancreateanentrypointforanapplicationinC:\Program Files\<base_app>\<app>.exe.
[<app>.exe]
Source=%ProgramFilesDir%\<base_app>\<app>.exe
WorkingDirectory
TheWorkingDirectoryparametersetsthecurrentworkingdirectorybeforetheapplicationstarts.
The workingdirectoryisthefirstplaceinwhichanapplicationlooksforfilesandplacesfiles.
ThinAppdoesnotincludethisparameterbydefaultinthePackage.inifilebecauseThinappassumesthe
workingdirectoryisthedirectorywherethe
executablefileresides.ThetypicallocationinaThinApp
environmentisonthedesktopofthedeploymentmachine.
Youcansettheworkingdirectoryforindividualapplications.Theworkingdirectorycanexistinthevirtual
filesystem,thesandbox,orthephysicalsystemdependingontheisolationmodesetting.Youcan
usefolder
macrosforthepathnameconventions.
TheWorkingDirectoryparametersetstheinitialvalueoftheworkingdirectorybutthedirectoryisdynamic
asyounavigatetootherlocations.
Examples
YoumightchangetheworkingdirectoryforanapplicationonaUSBdrivefromthedefaultUSBlocationto
theMy Documentsdirectoryonthedesktop.
[<app>.exe]
WorkingDirectory=%Personal%
ThelocationoftheMy Documentsdirectorydependsontheisolationmodesetting.Ifyouwanttomapthe
workingdirectorytotheMy Documentsdirectoryonthephysicalsystem,usetheMergedisolationmode
setting.Ifyouwanttomaptheworkingdirectorytothesandboxonthelocalmachine,useWriteCopy
orFull
isolationmode.See“DirectoryIsolationModeonpage 64.