Wednesday 23 December 2015

[Solved] How to install / uninstall windows service using installutil.exe?

How to install / uninstall windows service using installutil.exe?
By using installutil.exe we could install any windows services easily by using command line.
First of all, where we will find installutil.exe?
Well you could found installutil.exe in these path of your computer.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\
or
C:\Windows\Microsoft.NET\Framework\v4.0.30319\

Now i found installutil.exe in 2nd location. So our command line to install service would be
C:\Windows\Microsoft.NET\Framework\v4.0.30319>installutil.exe "E:\Ourfolder\ExecutableWinSerivices.exe"


Again we could uninstall using this command
C:\Windows\Microsoft.NET\Framework\v4.0.30319>installutil.exe /u "E:\Ourfolder\ExecutableWinSerivices.exe"