4.5

Table Of Contents
VMware, Inc. 65
Chapter 5 Configuring Package Parameters
ThinAppsetsaninitialvaluethatloadsDLLfilesfromthevirtualfilesystemandpassestheloadingprocess
toWindowsforDLLfilesonthephysicalfilesystem.In somecircumstances,WindowsmustloadaDLLfile
inthevirtualfilesystem.YoumighthaveaDLLfilethatinsertsitself
intootherprocessesusingWindows
hooks.TheDLLfilethatimplementsthehookmustbeavailableonthehostfilesystemandWindowsmust
loadthatfile.WhenyouspecifyaDLLfileintheExternalDLLsparameter,ThinAppextractsthefilefromthe
virtualfilesystemtothesandboxand
instructsWindowstoloadit.
Virtualdictationsoftwareisatypeofsoftwarethatmightinterfacewithnativeapplicationsthatpass
informationbetweenDLLs.ThinAppcanpasstheloadingofDLLsinthevirtualenvironmenttoWindowsto
ensurethatlocalapplicationscaninterfacewiththeDLLs.
TheExternalDLLsparameterdoesnot
supportaDLLfilethatdependsonotherDLLfilesinsidethevirtual
filesystem.Inthiscase,WindowscannotloadtheDLLfile.
Examples
YoucanmodifytheExternalDLLsparametertoforceWindowstoloadtheinject.dllandinjectme2.dll
filesfromthevirtualfilesystem.
[BuildOptions]
ExternalDLLs=inject.dll;injectme2.dll
ForcedVirtualLoadPaths
TheForcedVirtualLoadPathsparameterinstructsThinApptoloadDLLfilesasvirtualDLLfilesevenifthe
filesresideoutsidethepackage.ThisparameterisusefulwhentheapplicationmustloadexternalsystemDLL
filesthatdependonDLLfileslocatedinsidethepackage.
TheDLLpathscancontainmacros.Usesemicolons
toseparatemultiplepaths.
ThisparameterachievesthesameresultastheAddForcedVirtualLoadPathAPIfunction.See
AddForcedVirtualLoadPath”onpage 109.
Examples
YoucanmodifytheForcedVirtualLoadPathsparameterwhenyouhaveanapplicationthatdependson
externalDLLfiles.WhenyoucaptureMicrosoftOfficewithoutMicrosoftOutlookandanativeversionof
MicrosoftOutlookexistsonthelocalsystem,youcannotsendemailfromthevirtualversionofMicrosoftExcel
becausethenative
envelope.dllfilethatisinstalledwithMicrosoftOutlookdependsonthemso.dllfile
thatThinApploadsinthevirtualenvironment.YoucanforceThinApptoloadtheenvelope.dllfileinthe
virtualenvironmentinsteadofinthenativeenvironment.
[BuildOptions]
ForcedVirtualLoadPaths=%ProgramFilesDir%\Microsoft Office\Office10\envelope.dll
IsolatedMemoryObjects
TheIsolatedMemoryObjectsparameterliststhesharedmemoryobjectstoisolatefromotherapplicationsor
fromsystemobjects.
ApplicationsthatuseCreateFileMappingandOpenFileMappingWindowsfunctionscreatesharedmemory
objects.Whenyoudonotisolatememoryobjects,conflictscanoccurbetweenvirtualapplicationsandnative
applicationssharingthoseobjects.Forexample,you
mighthaveatwoversionsofanapplicationwithone
versioninthenativeenvironmentandoneversioninthevirtualenvironment.Whentheseapplication
versionsuseinformationinthesamememoryobject,theapplicationscaninterferewitheachotherandfail.
Youmightwanttoisolatesharedmemoryobjectsto
ensurethatvirtualapplicationsandsystemobjectscannot
detecteachother.