Install windows service without InstallUtil.exe
Posted
by annelie
on Stack Overflow
See other posts from Stack Overflow
or by annelie
Published on 2010-05-18T11:22:23Z
Indexed on
2010/05/18
11:30 UTC
Read the original article
Hit count: 239
Hi,
I'm trying to deploy a windows service but not quite sure how to do it right. I built it as a console app to start with, I've now turned it into a windows service project and just call my class from the OnStart method in the service.
I now need to install this on a server which doesn't have Visual Studio on it, which if I've understood it correctly means I can't use the InstallUtil.exe and have to create an installer class instead. Is this correct?
I did have a look at a previous question, http://stackoverflow.com/questions/255056/install-a-net-windows-service-without-installutil-exe, but I just want to make sure I've understood it correctly.
If I create the class that question's accepted answer links to, what is the next step? Upload MyService.exe and MyService.exe.config to the server, double click the exe file and Bob's my uncle?
The service will only ever be installed on one server.
Thanks,
Annelie
© Stack Overflow or respective owner