How to install a windows service

Use installutil to install a windows servcie

http://www.devopsonwindows.com/install-a-windows-service/