/build/static/layout/Breadcrumb_cap_w.png

error 1720 when place vbscript

Hi,

I' m trying to put vbscript to uninstall by old application inside my msi... script work just fine when placed it out side the msi.. it comes up with error 1720 .. any ideas why ? thanks

0 Comments   [ + ] Show comments

Answers (7)

Posted by: spartacus 18 years ago
Black Belt
0
The one thing you could check for straightaway (if you haven't already) is whether your code has any lines containing

Wscript.CreateObject

if so, these should be replaced by just CreateObject This is required due to the different object model used by Windows Installer.

Failing that, you should enable verbose logging and inspect the windows installer log file for more information about the reason for the failure. Any chance you could post your CA code here ?


Regards,

Spartacus
Posted by: aa006 18 years ago
Senior Purple Belt
0
Set objShell = CreateObject("WScript.Shell")


Run "C:\DOCUME~1\ALLUSE~1\APPLIC~1\\AUTOIN~1\INSTAL~1\~03330.exe"

WScript.Sleep 199
Send "%N"
Sleep 1000

Send "{YES} {NO}"

Set WshShell = Nothing
WScript.Quit ' Exit

Sub Run(file)
file = chr(34) & file & chr(34)
WshShell.Run file & " cfg=C:\DOCUME~1\ALLUSE~1\APPLIC~1\~1\INSTAL~1\{2875~1\UNINST~1.CFG /all"
End Sub

Sub Send(text)
WshShell.Sendkeys text
End Sub

Sub Sleep(amount)
WScript.Sleep amount
End Sub
Posted by: aa006 18 years ago
Senior Purple Belt
0
forget to mention where i place my script just before the InstallFinalize or removefolders.. it comes with error
Error 1720 : there is a probleom with this windows installer package. A script required for this install to complete could not be run . Contact your support or vendor any ideas..
Posted by: spartacus 18 years ago
Black Belt
0
In your MSI custom action vbscript is not "hosted" by wscript.exe
or cscript.exe for that matter, so you wont be able to use Windows Scripting Host's builtin WScript object

You will need to recode your CA eliminating the WScript.Sleep and WScript.Quit statements and replacing them with equivalent code that doesn't rely on wscript.exe.

Regards,

Spartacus
Posted by: aa006 18 years ago
Senior Purple Belt
0
thanks i'm all set now..
Posted by: noodles187 18 years ago
Orange Belt
0
Hi Spartacus, Can you pls explain how to disable the wscript command in my CA, i'm also getting this error 1720.Thanks
Posted by: AngelD 18 years ago
Red Belt
0
noodles187, what does your CA look like?
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