I have installed a Windows service using the sc create
method, then I later used the sc delete
method to get rid of it, it then marked the service for deletion.
I made changes to the service and recompiled it, then I tried to recreate it using sc create
but it said: The service has been marked for deletion
So I thought I'd give it some time.
Now 1 day later and it's still marked for deletion. Can't do anything with the service.
I then tried the same thing using installutil
with a different service and the first couple of times it added and removed it successfully, then it eventually also got stuck. Now I've got 2 services marked for deletion, installed using different methods and they were also marked for deletion using different methods.
If installutil
and sc
can't immediately remove my services, what other options do I have? (Excluding 3rd party components) Or is there a way I could forcibly remove these services?