Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force uninstallation of windows service

People also ask

How do I force an uninstall?

Press down the CTRL+SHIFT+ESC keys together to open the Task Manager. It should already be on the processes tab. Select the Program or App you want to uninstall from the list under processes. Now try running the uninstall on the Program/App again.

How do I uninstall a disabled service?

First use Run and enter regedit then go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services . After that locate the service name in the left pane, right click it and delete. You will see result after rebooting your system.


One thing that has caught me out in the past is that if you have the services viewer running then that prevents the services from being fully deleted, so close that beforehand


You don't have to restart your machine. Start cmd or PowerShell in elevated mode.

sc.exe queryex <SERVICE_NAME>

Then you'll get some info. A PID number will show.

taskkill /pid <SERVICE_PID> /f

Where /f is to force stop.

Now you can install or launch your service.


well, you can use SC.EXE to delete any windows Service forcefully if un-install doesnt removes by any chance.

sc delete <Service_Name>

Read more on "MS Techno Blogging" Deleting Services Forcefully from Services MMC


I know this isn't going to help, but it might help someone in the future.

I've just had the same problem, closing and re-opening the services manager removed both the entry from the registry and completed the uninstall of the service.

Previous to that, refreshing the services manager hadn't helped.


sc delete sericeName

Just make sure the service is stopped before doing this. I have seen this work most times. There are times where I have seen windows get stuck on something and it insists on a reboot.