4.6.1

Table Of Contents
ThinApp User’s Guide
92 VMware, Inc.
Pathnamescancontainsystemoruserenvironmentvariablesthatdynamicallyexpandtoaspecific
locationforeachuserorcomputer.Anexampleis
RequiredAppLinks=%MyEnvironmentVariable%\Package.dat.
Theriskofusingenvironmentvariablesisthatausermightchangethevaluesbeforestartingthe
applicationandcreateanApplicationLinkdependencyotherthantheonethattheadministratorsetup.
PathnamescancontainThinAppfoldermacros.Anexampleis
RequiredAppLinks=%SystemSystem%\Package.dat.
Pathnamescanincludespaces.
Pathnamescanspecifymultiplelinksordependencieswithasemicolonthatseparatesindividual
filenames.AnexampleisRequiredAppLinks=Dependency1.exe; Dependency2.exe;.
Pathnamescancontainasteriskandquerywildcardcharacters(*and?)infilenamesanddirectorypaths.
Forexample,RequiredAppLinks=WildPath*\WildFilename*.dat.
Ifapathcontainingawildcardcharactermatchesmorethanonedirectoryinthefilesystem,each
matchingdirectorynamewillbereturned,toenableadditionalpathorfilenamematching.
Wi
ldcardsthatareusedincombinationwithenvironmentvariablescanprovidepowerfulcustomized
recursivesearchingfordependentapplications.Forexample,
OptionalAppLinks=%HOMEPATH%\OfficePlugins\*\*.
RequiredAppLinks
TheRequiredAppLinksparameterspecifiesalistofrequiredpackagestoimporttothebasepackageat
runtime.YoucanconfigurethisparameterinthePackage.inifileofthebasepackage.
Iftheimportoperationforanydependentpackagefails,anerrormessageappearsandthebaseexecutablefile
exits.Youcanuseth
eOptionalAppLinksparameterinsteadtocontinueevenwhenloaderrorsoccur.Ifyou
useawildcardpatterntospecifyapackageandfilesdonotmatchthewildcardpattern,ThinAppdoesnot
generateanerrormessage.
Importingpackagesinvolvesthefollowingoperations:
RunningVBScriptsfromimportedpackages
Startingautostartservicesfromimportedpackages
Registeringfontsfromimportedpackages
RelocatingSxSDLLfilesfromWindowsXPtoWindowsVista
Youmustcreatealinktotheprimarydatacontainerofapackage.Youcannotlinktoothershortcutpackages.
Pathnamesareonthedeploymentmachinebecausethelinkingtakeseffectatruntimeontheclientmachine.
Usesemicolonstoseparatetheli
nkedpackages.Forinformationaboutpathnameformats,seeApplication
LinkPathnameFormatsonpage 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