Windows services

References

Introduction
Walkthrough

Steps

1. Create a service
New Project - Installed - Templates - Visual C# - Windows - Classic Desktop - Windows service
2. Add Installers to the service
Go to the designer of the service - Right click: Add Installer
https://msdn.microsoft.com/en-us/library/zt39148a%28v=vs.110%29.aspx#BK_AddInstallers
3. Build the service
4. Install the service
In the Developer Command Prompt:
installutil.exe MyNewService.exe (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe name_of_service.exe)
5. Start and run the service
In the Developer Command Prompt:
services.msc
In the Services window, right click on your service and select Start…

Debugging

https://msdn.microsoft.com/en-us/library/7a50syb3%28v=vs.110%29.aspx

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License