Saturday, August 21, 2010

Install or UnInstall a .NET Windows Service

Open Visual Studio Command Prompt. It can be found inside Visual Studio Tools folder of respective version.

Type the following command to install the service.
InstallUtil "Path to exe file"
Eg: InstallUtil "C:\Projects\Application\WinService.exe"

Type the following command to uninstall the service.
InstallUtil /u "Path to exe file"
Eg: InstallUtil /u "C:\Projects\Application\WinService.exe"

No comments:

Post a Comment