Keep previous installation intact, build before switching the symlink, improve error handling and add service and issuer checks.