I am trying to properly terminate an MSI from installing,
if a custom action I wrote in VBScript fails. However,
even though I am passing back a exit code, the MSI keeps
going like nothing happened.
In my VBScript Custom Action I have the following
happening when there is a failure:
Set objRecord = Session.Installer.CreateRecord(0)
objRecord.StringData(0) = "The name of this computer, " &
objNet.ComputerName & ", is not registered to install Open
Systems."
Session.Message msiMessageTypeError, objRecord
intExitCode = 1603
....
WScript.Quit(intExitCode)
Isn't 1603 the exit code for ERROR_INSTALL_FAILURE - A
fatal error occurred during installation?
What am I doing wrong?
Thanks,
Kent