Manage Return Codes

Applies to: Patch My PC Publisher Available at level: Product Available on tab: Updates, ConfigMgr Apps, Intune Apps, Intune Updates

Overview

The Manage Return Codes option allows you to control how installer exit codes are interpreted for a product in the Publisher. Each return code can be mapped to a specific code type to influence how the installation result is reported and how restart behavior is handled on the client.

Manage Return Codes

This feature is commonly used to suppress reboot behavior or to ensure that non standard success codes are correctly treated as successful installations.

circle-exclamation

Return Code Mapping

Each return code returned by the installer is associated with a code type. The code type determines how the Patch My PC ScriptRunner, which managers the installation, and the management platform interpret the result.

Return Code Values

The following return codes are commonly used by default:

Return Code
Code Type
Meaning

0

Success

Installation completed successfully

1707

Success

Product is already installed or no action was required

3010

SoftReboot

Installation succeeded and a reboot is recommended

1641

HardReboot

Installation succeeded and triggered an immediate reboot

1618

Retry

Another installation is in progress and the deployment should retry

Custom Return Codes

Some installers return non standard exit codes even when the installation succeeds. In these cases, you can add a custom return code and map it to Success.

For example, Brave Browser always exits with return code 19 on a successful installation. Because 19 is not treated as a success code by default, it is mapped to Success so the deployment is reported correctly.

Custom Return Codes

Last updated

Was this helpful?