How to make a windows service install itself

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