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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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
Answered 06/08/2006 by: spartacus
Black Belt

Please log in to comment
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
Answered 06/08/2006 by: aa006
Senior Purple Belt

Please log in to comment
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..
Answered 06/08/2006 by: aa006
Senior Purple Belt

Please log in to comment
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
Answered 06/08/2006 by: spartacus
Black Belt

Please log in to comment
0
thanks i'm all set now..
Answered 06/08/2006 by: aa006
Senior Purple Belt

Please log in to comment
0
Hi Spartacus, Can you pls explain how to disable the wscript command in my CA, i'm also getting this error 1720.Thanks
Answered 09/20/2006 by: noodles187
Orange Belt

Please log in to comment
0
noodles187, what does your CA look like?
Answered 09/20/2006 by: AngelD
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity