I don't think it's part of the .NET API, but this might help:
A ServiceInstaller Extension That Enables Recovery and Autostart Configuration
Philip Wallace
2009-10-27 20:26:25
I don't think it's part of the .NET API, but this might help:
A ServiceInstaller Extension That Enables Recovery and Autostart Configuration