srosenth
July 2nd, 2003, 11:01 AM
Created a setup project using VS.NET (2002). Added Custom Action to invoke a VBS that starts with the following:
Set wshell = WScript.CreateObject("WScript.Shell")
Set wargv = WScript.Arguments
The VBS runs just fine when invoked from Windows. However, when running the resulting MSI, I receive the following:
MSI (s) (E8:EC): Product: MyProd -- Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action _7E1305B0_BE3B_4D80_8D14_E080DB8F2C24 script error -2146827864, Microsoft VBScript runtime error: Object required: 'WScript' Line 1, Column 1,
This occurs on any reference through "WScript". That is, I can get around the error by changing the first line to:
Set wshell = CreateObject("WScript.Shell")
but then the problem just reoccurs when I try to reference the Arguments property (which has no work-around).
The fact that I can run this VBS from Windows suggests that the problem is either in the creation or invocation of the MSI.
Any suggestions or insights?
Set wshell = WScript.CreateObject("WScript.Shell")
Set wargv = WScript.Arguments
The VBS runs just fine when invoked from Windows. However, when running the resulting MSI, I receive the following:
MSI (s) (E8:EC): Product: MyProd -- Error 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action _7E1305B0_BE3B_4D80_8D14_E080DB8F2C24 script error -2146827864, Microsoft VBScript runtime error: Object required: 'WScript' Line 1, Column 1,
This occurs on any reference through "WScript". That is, I can get around the error by changing the first line to:
Set wshell = CreateObject("WScript.Shell")
but then the problem just reoccurs when I try to reference the Arguments property (which has no work-around).
The fact that I can run this VBS from Windows suggests that the problem is either in the creation or invocation of the MSI.
Any suggestions or insights?