Hey All
I have a vbs script that I want to run as a custom action when my solution installer runs. The script runs fine on it's own and updates the path of my PC but when the installer tries to run it it throws an error???? The error is visible in the event log stating that an object is required... WScript even though everything is declared.
Any thoughts would be apprecitated!!!
Dim WshShell
Dim WshPath
Dim strPath
Set WshShell = WScript.CreateObject("WScript.Shell")
Set WshPath = WshShell.Environment("System")
strPath = WshPath("Path")
strPath = strPath & "Path to Append"
WshShell.RegWrite "Reg Key to Update", strPath, "REG_EXPAND_SZ"
Product: ********** -- 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 _E35ED6C6_C660_497A_9692_CED84AE584E7 script error -2146827864, Microsoft VBScript runtime error: Object required: 'WScript'
I have a vbs script that I want to run as a custom action when my solution installer runs. The script runs fine on it's own and updates the path of my PC but when the installer tries to run it it throws an error???? The error is visible in the event log stating that an object is required... WScript even though everything is declared.
Any thoughts would be apprecitated!!!
Dim WshShell
Dim WshPath
Dim strPath
Set WshShell = WScript.CreateObject("WScript.Shell")
Set WshPath = WshShell.Environment("System")
strPath = WshPath("Path")
strPath = strPath & "Path to Append"
WshShell.RegWrite "Reg Key to Update", strPath, "REG_EXPAND_SZ"
Product: ********** -- 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 _E35ED6C6_C660_497A_9692_CED84AE584E7 script error -2146827864, Microsoft VBScript runtime error: Object required: 'WScript'