C# about Windows service -


What would be a small example with a Windows service and how to install it and run it?

I have searched the Internet, but nothing on which I have tried was written on the initial method. Also, when I try to install it, the error keeps going up to OpenSCManager .

  1. Install on C: \ wINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ InstallUtil.exe

  2. then run InstallUtil.exe "c: \ myservice.exe"

  3. Go to

    services.msc and then locate and start your service < / Html>

Comments