We have written a service-based VB.Net program that installs a service to Windows Services. However, while installing the service we want that the program changes Recovery attributes of the service other then default provided by Windows.
First Failure: Restart Service
Second Failure: Restart Service
Subsequent Failures: Restart the Service.
Reset Fail Count After: 0 Days
Restart Service After: 0 Minutes
Thanks in advance.