runProgram in OSX failed when nothing returned.

Comments

3 comments

  • Avatar
    michiel

    Hi Jason,

    Grep will exit with exitcode 1 if it does't return any output. You can use the following tags to prevent the message from showing and the installer from exiting:

     <runProgram>
       ...
      <abortOnError>0</abortOnError>
      <showMessageOnError>0</showMessageOnError>
       ...
    </runProgram>

    Best regards,

    Michiel

    0
    Comment actions Permalink
  • Avatar
    Jason

    If I set it to not show error message for this purpose (grep returns nothing), will it prevent the other errors from showing? In case other errors happen, I would still want to know it.

    Jason

    0
    Comment actions Permalink
  • Avatar
    michiel

    Hi Jason,

    disabling showMessageOnError will only prevent error messages related to this runProgram action from showing. Disabling abortOnError will prevent the installer from exiting if an error occurs during the execution of this runProgram action.

    Regards,

    Michiel

    0
    Comment actions Permalink

Please sign in to leave a comment.