windows servis from console app
myservice.exe install -servicename "MyService" -displayname "My Service" -description "This is my service."
Source: stackoverflow.com
myservice.exe install -servicename "MyService" -displayname "My Service" -description "This is my service."