I am referencing this answered question...
I see that one can manually configure a service to restart using Services control panel. Is there a way to set these values in code, either from the Service itself or, more likely, from the Service Installer?