Q200449: Package configuration if non-zero return code is acceptable

Cause

During Deployment Manager package installation, if the external installer is configured to have "Treat all non-zero installer return codes as errors" option checked, and if the external installer command returns non-zero return code, Deployment Manager installation agent will treat it  as a failure and treat this package installation as failed.

 

Resolution

Sometimes the non-zero return code in the external installer command does not means the command failed. There are various reasons that it returns non-zero codes. If that is the case for this package, you have two options:
  1. You can un-check the option "Treat all non-zero installer return codes as errors". In this case, Deployment Manager installation agent will not check the return code at all, so it will treat the package installation as successful all the time. The draw back for this is the installation agent is not able to detect even when real error occurs.
  2. You can write a VB script to run the external installer command and capture any predicted non-zero return codes from the external installer and return zero to the Deployment Manager installation agent. So you can still check the option "Treat all non-zero installer return codes as errors" for the Deployment Manager installation agent to capture any unpredicted errors.

Comments

Powered by Zendesk