Optimizations to the installer.

Error messages should now be more useful, as some provide verbose steps on how to fix the issue.