hjjung
Level 2

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....
Labels (1)
0 Kudos
1 Reply
hidenori
Level 17

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.
0 Kudos