added code to show appropraite error message in case of error in installation