install windows service application on windows server

C++
SC CREATE "MySVC" binpath= "D:\Me\Services\MySVC\MySVC.exe""C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe" "c:\myservice.exe"

Source

Also in C++: