4.6

Table Of Contents
ThinApp User’s Guide
92 VMware, Inc.
RequiredAppLinks
TheRequiredAppLinksparameterspecifiesalistofrequiredpackagestoimporttothebasepackageat
runtime.YoucanconfigurethisparameterinthePackage.inifileofthebasepackage.
Iftheimportoperationforanydependentpackagefails,anerrormessageappearsandthebaseexecutablefile
exits.Youcan
usetheOptionalAppLinksparameterinsteadtocontinueevenwhenloaderrorsoccur.Ifyou
useawildcardpatterntospecifyapackageandfilesdonotmatchthewildcardpattern,ThinAppdoesnot
generateanerrormessage.
Importingpackagesinvolvesthefollowingoperations:
RunningVBScriptsfromimportedpackages
Startingautostartservicesfromimportedpackages
Registeringfontsfromimportedpackages
RelocatingSxSDLLfilesfromWindowsXPtoWindowsVista
Youmustcreatealinktotheprimarydatacontainerofapackage.Youcannotlinktoothershortcutpackages.
Pathnamesareonthedeploymentmachinebecausethelinkingtakeseffectatruntimeontheclientmachine.
Usesemicolonstoseparate
thelinkedpackages.Forinformationaboutpathnameformats,seeApplication
LinkPathnameFormats”onpage 91.
Examples
Ifyoupackagethe.NETframeworkinthedotnet.exepackageandyouhavea.NETapplication,youcan
specifythattheapplicationneedstolinktothedotnet.exefilebeforeitcanstart.
RequiredAppLinks=C:\abs\path\dotnet.exe
Youcanspecifyarelativepath.
RequiredAppLinks=<relative_path>\dotnet.exe
YoucanspecifyaUNCpath.
RequiredAppLinks=\\server\share\dotnet.exe
YoucanuseThinAppfoldermacrosinthepathvalue.
RequiredAppLinks=%SystemSystem%\Package.dat
Youcanuseenvironmentvariablesinthepathvalue.Theriskofusingenvironmentvariablesisthatauser
mightchangethevaluesbeforestartingtheapplicationandcreateanApplicationLinkdependencyotherthan
theonethattheadministratorsetup.
RequiredAppLinks=%MyEnvironmentVariable%\Package.dat
Youcanimportasinglepackagelocatedinthesamedirectoryasthebaseexecutablefile.
RequiredAppLinks=Plugin.exe
Youcanimportasinglepackagelocatedinasubdirectoryofthebaseexecutablefile.
RequiredAppLinks=plugins\Plugin.exe
Youcanimportallexecutablefileslocatedinthedirectoryforpluginfiles.IfThinAppcannotimportany
executablefilebecausethefileisnotavalidThinapppackageorbecauseasecurityproblemexists,thebase
executablefilefailstoload.
RequiredAppLinks=plugins\*.exe
Youcanimportallexecutablefileslocatedatthen:\pluginsabsolutepath.
RequiredAppLinks=n:\plugins\*.exe