Install service to server 2012

Raed Alsaleh picture Raed Alsaleh · Jan 28, 2016 · Viewed 7.6k times · Source

I developed new service using .net 4.0 c#, I want now to install to hosting server which does not contain visual studio command promot and installUtil.exe . How can Install the service to the server? It is required to install the VS version ?

Answer

Recev Yildiz picture Recev Yildiz · Jul 20, 2018
  1. Go to "C:\Windows\System32"

  2. Right click on "cmd.exe" and "Run as administrator"

  3. And run "InstallUtil.exe" like that:

    "C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe" "C:\src\Service.exe"

    • The first parameter is the full path of InstallUtil.exe

      For 64 bit executables use following:

      C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe

      For 32 bit executables use following:

      C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe

    • The second parameter is the full path of Service.exe to be installed.