http://www.codeproject.com/KB/tips/EasyDebugWindowsServices.aspx
http://stackoverflow.com/questions/3474198/windows-service-setting-user-account
http://stackoverflow.com/questions/820899/creating-an-msi-installer-for-a-windows-service
Walkthrough: Creating a Windows Service Application in the Component Designer
b))
b) is backed-up by Lukas Beeler’s experience: Always close services.msc when installing or upgrading programs!
Manually creating a service
How to manually install a service in Windows
NOTE: uses the command-line tool sc
- Uninstall the old service (if exists)
sc delete "<service name>"
- Install the new service
sc create "<service name>" binPath= "\\path\to\service.exe"- note the upper-case P and the space after the equals
- Configure user credentials
- this will be with
services.mscas per usual
- this will be with
- Configure auto-start and restart
Use the Windows Task Scheduler !?
Wikipedia:Windows_Task_Scheduler
Think about using the Windows Task Scheduler instead
launch from Start > run (or command-line):
taskschd.msc /s
Testing
Unit-test a core-dll, not the service. The service only exposes Start and Stop methods — testing that is an integration test. Build your unit-tests on the core-dll methods.




