Exit code for packages and installers¶
Exit code meaning¶
The exit code is the value returned by a terminating package or installer to the invoker. This is particularly useful in batch processing or when executing commands from the command line.
Packages and installers created with Paquet Builder automatically set their exit codes based on the execution outcome (success or error). The table below lists the possible default values.
You can also manually set the exit code using custom actions. This can be done by assigning a value to the %EXITCODE% global variable using the Perform operation on a variable (varAssign) custom action.
Default exit code values for Paquet Builder packages¶
Value | Meaning |
---|---|
-3 | Corrupted data detected (error while decompressing data; initialization error from loader). |
-2 | Cannot create runtime DLL (initialization error from loader). |
-1 | Cannot create temporary folder (initialization error from loader). |
0 | No error (execution successful). |
1 | Error while decompressing files. |
2 | Aborted by the end user. |
3 | Unexpected error - Fatal Windows error (rare). |