Major improvements to the installation and uninstallation routines.