c# windows service, how to install on different machine?

  • Thread starter Thread starter S Moran
  • Start date Start date
S

S Moran

so i can use installutil to install the service on the machine the service
was written on, but how can i take the EXE and install on another computer
that doesnt have installutil?

am i limited to the ms command line utilities that normally install exe's as
services?
 
Every setup tool I've ever seen has a way to install a service, and that
includes VS 2005 setup&deployment projects, so I'd start there.
 
You could give your exe a "-install" command line argument.

.... at which point, it would go out and register itself as a service. No
trouble.

The Service class has everything you need to install / uninstall a service.
 
so i can use installutil to install the service on the machine the service
was written on, but how can i take the EXE and install on another computer
that doesnt have installutil?

am i limited to the ms command line utilities that normally install exe's as
services?

If the target machine has the .Net framework properly installed, then
InstallUtil will be present there.

Chris
 
Back
Top