Check installation errors (resolves #422)

In case of error the command and status code will be shown.
If --install-error-action=abort the installation will be aborted.