views:

62

answers:

2

I have a windows service (.exe) file. How to install it as a service from the windows command prompt in a deployment system?

+2  A: 

Check out InstallUtil :)

Noon Silk
Should we have to download it seperately? The deployment environment wont have any sdk's available..
bdhar
No, I just include it in the release of the service; it can be run as-is.
Noon Silk
+5  A: 

See:

Using SC to deploy Windows services

http://msdn.microsoft.com/en-us/library/ms810435.aspx

The "SC" (Service Controller) utility should be on any Windows system, really.

marc_s
+1 . This is how we do it in our environment.
David Stratton
Thanks. This one helps..
bdhar