Uninstall a windows service

The issue

I have installed a windows service that is crashing on startup.

When I uninstall the software the service is left installed and “Disabled” in the services list.

I need to uninstall it manually

The solution

Pre-requisite is to have Visual Studio installed with the developer tools cmd prompt, in my case called _x64_x86 Cross Tools Command Prompt for VS2022.

Launch this in Administrator mode, by pressing the windows key, type cmd, and click on the side arrow and choose “Run As Administrator”

Issue the command

sc delete "The Name of My Service"

This suggests the access was denied but the service was marked for deletion.

If you have the services window open choosing “Refresh” doesn’t cause it to disappear from the list.

Close the services window, re-open and the service is not listed.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.