Exit code for packages and installers

Exit code meaning

The exit code is the code returned by a terminating package or installer to the invoker. This is generally useful for batch process, command line execution.

The exit code of a package or installer made with Paquet Builder is automatically configured depending on whether the package exited successfully or if an error occurred. The table below shows you possible values.

You can set the exit code yourself with custom actions by setting the %EXITCODE% global variable: set the value of this variable using Perform operation on a variable and varAssign.

Default exit code values for Paquet Builder packages

ValueMeaning
-3This program has got corrupted data (error while decompressing data) (initialization error from loader)
-2Cannot create runtime DLL (initialization error from loader)
-1Cannot create temporary folder (initialization error from loader)
0No error
1Error while decompressing files
2Aborted by end user
3Unexpected error - Fatal Windows Error (uncommon)

© G.D.G. Software 2018. All rights reserved.