romko2004
9th October 2004 12:31 UTC
How to set CUSTOM error code in installer
Hello All
I run some silent patch installers from updater tool and need to know:
What patch need reboot?
What patch was failed?
What patch was success?
I try to find How to set custom error/return code in installer.
Comm@nder21
9th October 2004 16:33 UTC
you can check for errors right after any other command (e.g. the File command) with IfErrors. ClearErrors is self-explainig.
also, you can check for the reboot-flag to be set, which is automatically done after any process that need to be run on reboot.
if there's neither the error nor the reboot flag set, the command executed successfully.
got it?
romko2004
11th October 2004 09:53 UTC
Originally posted by Comm@nder21
you can check for errors right after any other command (e.g. the File command) with IfErrors. ClearErrors is self-explainig.
also, you can check for the reboot-flag to be set, which is automatically done after any process that need to be run on reboot.
if there's neither the error nor the reboot flag set, the command executed successfully.
got it?
I need check CUSTOM error code from C++ application. No reboot flag, No IfErrors
kichik
11th October 2004 11:43 UTC
Both ExecWait and nsExec give you an option to check the return code/error level. To set the return code/error level for your own installer, use the latest CVS version and SetErrorLevel.
romko2004
11th October 2004 15:41 UTC
Originally posted by kichik
Both ExecWait and nsExec give you an option to check the return code/error level. To set the return code/error level for your own installer, use the latest CVS version and SetErrorLevel.
Ok Thanks