Check installation errors

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