cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Q104413
Q103319
Q104413
Q103319
Labels (1)
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Dec 03, 2007 01:50 PM
Updated by: