A Debuggable, Self-Installing Windows Service Template based onJames Michael Hare's excellent blogposts:
This project template helps you hit the fround running to start a quick self-hosting service that can easily be installed/uninstalled (use the -install or -uninstall arguments to execute your executable, make sure you have sufficient permissions to install a service when you do so!). Next, implement any of the provided OnStart(), OnStop(), OnPause(), OnContinue(), OnShutDown() and OnCustomCommand() methods to control your service and you're done! Gear-icon courtesy of iconarchive |