This post gives insight why can’t we use WScript within the MSI….
http://bonemanblog.blogspot.com/2004/08/why-cant-i-use-wscript-in-my-msi.html
But how can we use values read from the custom UI screens or from the msiexec commandline?
Use Session.Property(“CustomActionData”)
Example:
Imagine you are reading values from 4 boxes, do the following
- Create a custom action, add the .vbs file
- Edit properties of that .vbs custom action
3. CustomActionData has your values with ; delimited
4. Below is the tiny .vbs script to realize these values, values are read from Session.Property
CuActionData = split(Session.Property(“CustomActionData”),”;”)
Msgbox CuActionData(0)
Msgbox CuActionData(1)
Msgbox CuActionData(2)
Msgbox CuActionData(3)

frenky
May 7, 2011 at 7:01 pm
Vl1xkQ http://gdjI3b7VaWpU1m0dGpvjRrcu9Fk.com