Download

Setup custom cursor for windows exit codes

When installing Custom Cursor, the Setup program may return one of several exit codes to indicate the success or failure of the installation process. These exit codes are:

  • 0 Indicates that the setup was successfully run to completion or the user used the /HELP or /? command line parameter
  • 1 Indicates that the setup failed to initialize..
  • 2 Indicates that the user clicked Cancel in the wizard before the actual installation started, or chose "No" on the opening "This will install..." message box.
  • 3 Indicates that a fatal error occurred while preparing to move to the next installation phase. This may occur under unusual circumstances, such as running out of memory or Windows resources.
  • 4 Indicates that a fatal error occurred during the actual installation process.

    Note that errors that cause an Abort-Retry-Ignore box to be displayed are not fatal errors. If the user chooses Abort at such a message box, exit code 5 will be returned.

  • 5 Indicates that the user clicked Cancel during the actual installation process, or chose Abort at an Abort-Retry-Ignore box.
  • 6 Indicates that the Setup process was forcefully terminated by the debugger (Run | Terminate was used in the Compiler IDE).
  • 7 Indicates that the Preparing to Install stage determined that Setup cannot proceed with installation.
  • 8 Indicates that the Preparing to Install stage determined that Setup cannot proceed with installation, and that the system needs to be restarted in order to correct the problem.

It's important to note that any non-zero exit code indicates that Setup was not run to completion. Before returning an exit code of 1, 3, 4, 7, or 8, an error message explaining the problem will normally be displayed.

Additionally, future versions of Custom Cursor Setup may return additional exit codes, so applications that check the exit code should be programmed to handle unexpected exit codes gracefully.

Community