Caching local variables in the installation script, and generating an uninstallation script after we have performed the install.