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?
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?
Try to install the executable again and then remove it.
OR: Delete it in your Registry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
and restart.
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.