How To Un-Install A Service From The Command Line In Windows



TODO:

Have you ever installed a service you built, and want to un-install it via command line?

 

SOLUTION:

  • Open a Visual Studio Command Window
  • Navigate to your EXE folder of the service.
  • Execute the following command:
    • C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil /u .\YourService.exe


NOTES:

This assume .Net version 4