I have somehow managed to half uninstall a windows service I was developing.
In no particular order
-
It won't delete if I use sc delete servicename
-
It gives an exception using installutil /u pathtoservice.exe
"specified service does not exist as an installed service"
-
And using the installer/uninstaller obviously doesn't work either
-
It's no longer in the Services listing
-
It's not shown if I use sc query
-
And I have rebooted
I don't know what else to do, but something still exists, because attempting to install fails because it already exists.
Please help.
UPDATE:
…Could it be the stuff in the registry elsewhere?
HKEY_CLASSES_ROOT\Installer\Assemblies\D:|Program Files|[path to].exe
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Assemblies\D:|Program Files|[path to].exe
HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\MUICache
HKEY_CLASSES_ROOT\Installer\Products…
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products…
etc…
Best Answer
I'd try downloading the sysinternals suite from Microsoft (free download) and run procmon and/or regmon and/or Filemon (although procmon is supposed to merge their functionality) and see where in the install process there's a fail or denied message and look there to hunt down why your installer thinks it's already installed. Hopefully it might give a clue as to what's going on.