Added install events to avoid sequential installs or uninstalls.