I have a problem in that I can;t use WScript object directly: -
http://www.advancedinstaller.com/user-g ... question46
I have written a VBScript that I am intending to use in a Custom Action. The CA reads a number of fields from a table in a database. I need to check that it has completed various stages so I put in tests on Err.Number and write to event log: -
set WshShell = WScript.CreateObject("WScript.Shell")
'
'
'do open recorset
If Err.Number <> 0 then
WshShell.LogEvent cEVENTLOG_ERROR, cAppName + ": Unable to open recordset - Terminating."
' Quit with error level 4
WshShell.Quit 4
End if
What do I need to do to quit? It just carries on to the next statement. If I put WScript.Quit 4 it works fine external to AI.
Regards,
John
FOLLOW US
Get the latest news in Application Packaging