How to install/uninstall Windows service

If you need to install your .exe file as Windows service using command prompt (not the Visual Studio command prompt) here is how you can do this in x32 and x64 versions of Windows.

Windows x32

  1. Run the command prompt as Administrator
  2. Navigate to the installutil.exe in your .NET folder (for .NET 4 it’s C:\Windows\Microsoft.NET\Framework\v4.0.30319 for example)
  3. Run

You can also run this command with absolute path to installutil.exe like this:

Windows x64

  1. Run the command prompt as Administrator
  2. Navigate to the installutil.exe in your .NET folder (for .NET 4 it’s C:\Windows\Microsoft.NET\Framework64\v4.0.30319 for example)
  3. Run

You can also run this command with absolute path to installutil.exe like this:

To uninstall Windows service run:

Want me to do this for you? Drop me a line: itgalaxyzzz {at} gmail [dot] com