views:

52

answers:

1

Hi guys,

I want to install and start (2. Button Stop and Deinstall) a service from code in C#.Net Windows Forms.

Can someone help me?

+3  A: 

Use the ServiceController class, documented here to stop and start it.

To install, you can use InstallUtil.exe, have a look here.

Fiona Holder