Error 1720
Hi All,
I'm trying to insert the following script as a custom action in INSTALLSHIELD 9.0, but the installer is throwing 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.
Dim OShell
strComputer = "."
Set OShell = CreateObject("WScript.Shell")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = 'dllhost.exe'")
For Each objProcess in colProcessList
objProcess.Terminate()
OShell.Run "net stop Comsysapp",0,1
OShell.Run "net start Comsysapp",0,1
Next
I think there is some format that needs to be followed for writting scripts in INSTALLSHIELD, plz let me know where to find the infor regarding the formats.
Thanks
Manikanta
I'm trying to insert the following script as a custom action in INSTALLSHIELD 9.0, but the installer is throwing 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.
Dim OShell
strComputer = "."
Set OShell = CreateObject("WScript.Shell")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = 'dllhost.exe'")
For Each objProcess in colProcessList
objProcess.Terminate()
OShell.Run "net stop Comsysapp",0,1
OShell.Run "net start Comsysapp",0,1
Next
I think there is some format that needs to be followed for writting scripts in INSTALLSHIELD, plz let me know where to find the infor regarding the formats.
Thanks
Manikanta
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
brenthunter2005
19 years ago
Posted by:
bheers
19 years ago
Posted by:
manikanta
19 years ago
Posted by:
plangton
19 years ago
You did add this as a vbscript custom action, right? And not an Installshield Script custom action?
If so, what is the target OS? Some OS's don't ship with WMI, so you'll have to download it and install it.
Aldo, if you do a verbose log file of your install, it should tell you which line of your vbscript code is causing an error, this is very handy for debugging.
Hope that helps.
Rgds
Paul
If so, what is the target OS? Some OS's don't ship with WMI, so you'll have to download it and install it.
Aldo, if you do a verbose log file of your install, it should tell you which line of your vbscript code is causing an error, this is very handy for debugging.
Hope that helps.
Rgds
Paul
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.