in Windows Server

Manually removing a windows service

I was working on a small project which involved building a .NET WorkFlow library and a windows service that invokes the WF library to perform a number of sequence activities.   After building the application I also had to build the installer so that I could install the service automatically on the production server.

The thing I missed was to put a custom action in the installer to remove the service.   So, when I uninstalled the application on the production server the service still existed.
Easiest way to remove a service is to open regedt32 and navigate to this path:


Find the service you are looking for and delete it.

I did attempt to use the command from the command prompt “sc delete <service_name>” but this failed to remove it.