Reputation: 5038
How do I remotely install a Windows service using C#? (I prefer not calling sc.exe / psexec / powershell remoting).
Thanks! Yuval
Upvotes: 2
Views: 1655
Reputation: 2644
You should take a look at the TopShelf project. They make deployment of windows services pretty painless. XCopy and invoke with any of these command line options and you should be good to go.
Upvotes: 6