Only print success message if installation was ok.

If installation was not successful, print error message.