- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- 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
- Email to a Friend
- 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.
