c# - Install windows service without InstallUtil.exe -


I am trying to implement a windows service, but it is not certain how to do it correctly I created it as a console app to start, I have now converted it into a windows service project and call my class only with the on-turn method in the service.

Now I need to install it, there is no Visual Studio on the server, which if I understood it correctly, then that means I can not use InstallUtil.exe and instead a You must create the installer category. Is it true?

I have taken a look at the last question, but I want to ensure that I have understood it correctly.

If I accept the answer link for the square of that question, 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?

This service will only be installed on one server.

InstallUtil.exe in the tool bus against an installer component (s) Some reflection is a cover around the call service. As such, it does not really do much, but use the functionality that provides these installer components. Mark Gravel's solution provides only a means to do this from the command line, so that you do not have to trust InstallUtil.exe on the target machine.

Here is my step- step-by-step based on the solution of Mark-Gavarel.


Comments