« October 2006 | Main | February 2007 »
November 07, 2006
Using command line to install Windows Service
This usefull command is not the most intuitive command. The sc command allows you to install/delete Windows Services. I have used this nifty command quite often in the past project to remove erroneous Windows Service. Microsoft has a good KB article.
Things to watch out is the escaping of the binPath. If there are spaces in your binPath you must escape it using the " character which must be escaped again using the \ character.
For example:
c:\sc create MyService binPath= "\"c:\program files\my service\service.exe\""
Posted by vhadiant at 08:57 PM | Comments (1) | TrackBack
