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 Forum
- :
- Why empty Session.Property( ALL ) in Custom Action(VBScript)?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 13, 2014
08:18 PM
Why empty Session.Property( ALL ) in Custom Action(VBScript)?
Hi.
Express Project.
I was add custom action using VBScript.
But, All return is empty.
MsgBox "111 : " & Session.Property("SETUPEXEDIR")
MsgBox "222 : " & Session.Property("SourceDir")
MsgBox "333 : " & Session.Property("INSTALLDIR")
MsgBox "444 : " & Session.Property("APPDIR")
MsgBox "555 : " & Session.Property("TARGETDIR")
MsgBox "666 : " & Session.Property("SRCDIR")
MsgBox "777 : " & Session.Property("VersionNT")
MsgBox "888 : " & Session.Property("ProductName")
What's wrong?
Hope help anyone~ please....
Express Project.
I was add custom action using VBScript.
But, All return is empty.
MsgBox "111 : " & Session.Property("SETUPEXEDIR")
MsgBox "222 : " & Session.Property("SourceDir")
MsgBox "333 : " & Session.Property("INSTALLDIR")
MsgBox "444 : " & Session.Property("APPDIR")
MsgBox "555 : " & Session.Property("TARGETDIR")
MsgBox "666 : " & Session.Property("SRCDIR")
MsgBox "777 : " & Session.Property("VersionNT")
MsgBox "888 : " & Session.Property("ProductName")
What's wrong?
Hope help anyone~ please....
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 14, 2014
01:16 PM
Deferred, commit, and rollback custom actions have access to only some of the built-in Windows Installer properties. If you want your custom action to access any other properties, you can pass them as CustomActionData. See the Accessing or Setting Windows Installer Properties Through Deferred, Commit, and Rollback Custom Actions help topic for more information.