Figure 1. Set Service Properties.
Use the Service Control Manager (SCM) to control your Windows service applications. You use the .NET Framework's command-line InstallUtil to install your service app so you can control it with SCM (or to uninstall it). You can also write a custom service-control app to control and send custom commands to your service.