Summary
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. For more information, see these articles on the Microsoft Learn website:
Related Articles
Setting or Getting the Value of a Property Via a VBScript Custom Action 5Number of Views Setting an MSI Property from VBScript Custom Action 6Number of Views Creating a Custom Action that Displays a Property 6Number of Views Deferred Execution Custom Action Cannot Retrieve a Property Value 9Number of Views VBScript Custom Action : Compare Serial number With User Input 5Number 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. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago