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
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)
Please log in to answer
Posted by:
spartacus
18 years ago
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
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
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
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
Posted by:
spartacus
18 years ago
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
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:
noodles187
18 years ago
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.