LastExitCode

Variable that is set to the exit code of the most recently run external process. Typically, a value of 0 (zero) indicates success, while nonzero values indicate a failure of some sort. The following actions set LastExitCode: Download File, Run Script, Run DLL, Run Program, Uninstall Product.

Usage

You can refer to this variable as <LastExitCode>. In conditional expressions you can omit the brackets and simply use LastExitCode as a test for failed execution or NOT LastExitCode for success. These are equivalent to the more explicit tests LastExitCode <> 0 and LastExitCode = 0, respectively. This variable is automatically set by InstallMate when an external program runs. However, you may want to reset it (to 0) under some circumstances.