Skip to content

Instantly share code, notes, and snippets.

@bozhink
Created May 17, 2017 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bozhink/dd466b4511937b1d0d027ed76fec8f89 to your computer and use it in GitHub Desktop.
Save bozhink/dd466b4511937b1d0d027ed76fec8f89 to your computer and use it in GitHub Desktop.
Install and run Windows service
See https://msdn.microsoft.com/en-us/library/zt39148a(v=vs.110).aspx
Service lifecycle:
Install service: C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe TasksService.exe
Start service: NET START TasksRunnerService
Stop service: NET STOP TasksRunnerService
Uninstall service: C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /u TasksService.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment