Check when button is enabled, then run setup script to configure custom status labels?

Is there a way to configure custom status labels when a feature button is enabled?