4.6.1

Table Of Contents
VMware, Inc. 75
Chapter 5 Configuring Package Parameters
Examples
WhenyoutroubleshootaproblemwithVMwaresupportanddeterminethatanapplicationimplementsCOM
objectsthatisnotcompatiblewithThinApp,youcanmodifytheExternalCOMObjectsparametertorunthe
COMobjectsoutsideofthevirtualenvironment.YoucanlisttheCLSIDkeys.
[BuildOptions]
ExternalCOMObjects={8BC3F05E-D86B-11D0-A075-00C04FB68820};{7D096C5F-AC08-4F1F-BEB7-5C22C517CE39}
ExternalDLLs
TheExternalDLLsparametercanforceWindowstoloadspecificDLLfilesfromthevirtualfilesystem.
ThinAppsetsaninitialvaluethatloadsDLLfilesfromthevirtualfilesystemandpassestheloadingprocess
toWindowsforDLLfilesonthephysicalfilesystem.In somecircumstances,WindowsmustloadaDLLf
ile
inthevirtualfilesystem.YoumighthaveaDLLfilethatinsertsitselfintootherprocessesusingWindows
hooks.TheDLLfilethatimplementsthehookmustbeavailableonthehostfilesystemandWindowsmust
loadthatfile.WhenyouspecifyaDLLfileintheExt
ernalDLLsparameter,ThinAppextractsthefilefromthe
virtualfilesystemtothesandboxandinstructsWindowstoloadit.
Virtualdictationsoftwareisatypeofsoftwarethatmightinterfacewithnativeapplicationsthatpass
informationbetweenDLLs.ThinAppcanpasstheloadingofDLLsinthevirtualenvironmenttoWi
ndowsto
ensurethatlocalapplicationscaninterfacewiththeDLLs.
TheExternalDLLsparameterdoesnotsupportaDLLfilethatdependsonotherDLLfilesinthevirtualfile
system.Inthiscase,WindowscannotloadtheDLLfile.
Examples
YoucanmodifytheExternalDLLsparametertoforceWindowstoloadtheinject.dllandinjectme2.dll
filesfromthevirtualfilesystem.
[BuildOptions]
ExternalDLLs=inject.dll;injectme2.dll
ForcedVirtualLoadPaths
TheForcedVirtualLoadPathsparameterinstructsThinApptoloadDLLfilesasvirtualDLLfilesevenifthe
filesresideoutsidethepackage.ThisparameterisusefulwhentheapplicationmustloadexternalsystemDLL
filesthatdependonDLLfileslocatedinthepackage.
TheDLLpathscancontainmacros.Usesemicolonstose
paratemultiplepaths.
ThisparameterachievesthesameresultastheAddForcedVirtualLoadPathAPIfunction.See
AddForcedVirtualLoadPath”onpage 119.
Examples
YoucanmodifytheForcedVirtualLoadPathsparameterwhenyouhaveanapplicationthatdependson
externalDLLfiles.WhenyoucaptureMicrosoftOfficewithoutMicrosoftOutlookandanativeversionof
MicrosoftOutlookexistsonthelocalsystem,youcannotsendemailfromthevirtualversionofMicrosoftExcel
becausethenativeenvel
ope.dllfilethatisinstalledwithMicrosoftOutlookdependsonthemso.dllfile
thatThinApploadsinthevirtualenvironment.YoucanforceThinApptoloadtheenvelope.dllfileinthe
virtualenvironmentinsteadofinthenativeenvironment.
[BuildOptions]
ForcedVirtualLoadPaths=%ProgramFilesDir%\Microsoft Office\Office10\envelope.dll