I\'m installing a Windows Service using the ServiceProcessInstaller and ServiceInstaller classes.
ServiceProcessInstaller
ServiceInstaller
I\'ve used the ServiceProcessInstal
ServiceProcessInstal
I found the following project which takes care of these settings, using only code and Win API calls: http://code.msdn.microsoft.com/windowsdesktop/CSWindowsServiceRecoveryPro-2147e7ac