Archive: How to set CUSTOM error code in installer


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.


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?


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

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.


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