How do I change a Windows Service's startup type in .NET (post-install)?

Viewed 56803

I have a program that installs a service, and I'd like to be able to give the user the option later on to change the startup type to "Automatic".

The OS is XP - if it makes any difference (Windows APIs?).

How can I do this in .NET? C# if possible! :)

9 Answers
Related