views:

833

answers:

3

I created and installed a .NET Windows Service and now that I deleted its executable file I can't remove it from services.msc anymore with

InstallUtil.exe /u executablefilename.exe

How do I remove it?

+1  A: 

Try to install the executable again and then remove it.

OR: Delete it in your Registry

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

and restart.

Henrik P. Hessel
+3  A: 

At the command line:

sc delete "service_name"
spoulson
A: 

You can try to do theses step in a command line:

>NET STOP YouServiceName
>InstallUtil.exe /u YouServiceName.exe
>sc delete YouServiceName

And, if all these doesn't work, try to kill the executable process with Ctrl+Alt+Del.

Daok