This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Knowledge Base
- :
- Retrieve and Set Properties in a VBScript Custom Action
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Retrieve and Set Properties in a VBScript Custom Action
Retrieve and Set Properties in a VBScript Custom Action
Summary
This article discusses how to retrieve and set properties, such as INSTALLDIR, in a VBScript custom action.Synopsis
This article discusses how to retrieve and set properties, such as INSTALLDIR, in a VBScript custom action.
Discussion
The Session Object can be used to set and retrieve information in a MSI database. InstallShield recommends using the Session Object to retrieve and set properties if using VBScript.
The following line retrieves the INSTALLDIR property:
szInstallDir = Session.Property("INSTALLDIR")
The following line sets the value of the INSTALLDIR property:
Session.Property("INSTALLDIR") = szInstallDir
Additional Information
Properties can be retrieved or set within VBScript using this method.
Microsoft Platform SDK: Windows Installer:
Related KB Articles
Q104413Q103319
Q104413
Q103319
No ratings