Windows Servis из приложения Console
myservice.exe install -servicename "MyService" -displayname "My Service" -description "This is my service."
Handsome Hedgehog
myservice.exe install -servicename "MyService" -displayname "My Service" -description "This is my service."