Using the INSTALLDIR Property in a VBScript Custom Action
InstallShield 2022
Project:This information applies to the following project types:
• | Basic MSI |
• | DIM |
• | InstallScript MSI |
• | Merge Module |
• | MSI Database |
• | MSM Database |
• | Transform |
If you need to use the INSTALLDIR property in a VBScript custom action, use the Property property of the Session object. This object is accessible in every VBScript custom action.
Following is sample code:
szInstallDir = Session.Property("INSTALLDIR")
For more information, see Session Object in the Windows Installer Help Library.