/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (4)

Posted by: brenthunter2005 18 years ago
Fifth Degree Brown Belt
0
Yeah, if a script is failing it should be reported in the Application Event Log.
Posted by: bheers 18 years ago
Second Degree Blue Belt
0
does the script work as a standalone before inserting it into the package ?
in installshield you have an option to insert vbscripts in the custom action wizard.
when do you want the script to run ? before instalfinalise or at a perticular location.
Posted by: manikanta 18 years ago
Yellow Belt
0
I have included it as a vbscipt inside custom action, it does work well as a standalone. There is some format that installshield vbscript follows, my code is a combination of vbscript and wmi. Is that a problem.....


Thanks
Mani
Posted by: plangton 18 years ago
Second Degree Blue Belt
0
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ