@grappler correct. The constant is only set during uninstall and not during activation or deactivation tasks.