Monday, 23 June 2014

Install / UnInstall .NET Windows Service (C#)

In this article i explain how to install or Uninstall a .NET Windows Service.



Install Service Using InstalUtil.exe

This exe is the following Location based on the Microsoft .NET Framework Version.
C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstalUtil.exe

To Install the Service, Open the command Prompt in Administrator Mode and Enter the Following Command

C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstalUtil.exe “ D:\MyService.exe” –i

To Uninstall the Service, Open the Command Prompt in Administrator Mode and Enter the Following Command

C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstalUtil.exe “ D:\MyService.exe” –u





No comments:

Post a Comment