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 Articles
Setting or Getting the Value of a Property Via a VBScript Custom Action 4Number of Views Deferred Execution Custom Action Cannot Retrieve a Property Value 8Number of Views Setting an MSI Property from VBScript Custom Action 5Number of Views VBScript Custom Action : Compare Serial number With User Input 4Number of Views How to retrieve and execute the SQL query used by a saved custom report 52Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago