Hello world,
I try to call a VBS script as a custom action from within an MSI
installation. But when I access the WScript object in my script, it will not
run, and the MSI installer will exit with an error message (even if the
script runs fine when called directly via wscript.exe).
I now suspect that the Windows Installer MSI system has its own scripting
host and does not use WSH so that the WScript object is not available. Am I
right?
The point why I wanted to access WScript is that I need access to the
"CustomActionData" that the MSI passes to my script. (I believed that the
"CustomActionData" is passed in form of command line arguments, and
therefore wanted to access it via WScript.Arguments.)
Could anyone please tell me how to go to access the "CustomActionData" that
is passed from MSI installers to VBS scripts? Is there a working alternative
for the WScript object?
Jens