| Reference information | |
|---|---|
| Applies to | Tarma Installer |
| Related topics | The following actions set LastExitCode: Run Script, Run DLL, Run Program, Uninstall Product. |
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.
| Usage | |
|---|---|
| How to set | This variable is automatically set by Tarma Installer when an external program runs. However, you may want to reset it (to 0) under some circumstances. |
| How to use |
You can refer to this variable as <LastExitCode> (Tarma native syntax, preferred) or [LastExitCode] (Windows Installer syntax). 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. |