Prevent installer from running multiple times during upgrade