deactivate before activate, installation script update