Search code examples
.netservicesetup-project

How to remove a service when installation is incomplete and the service is 'marked for deletion'


Problem with developing and testing a service installer: result, the service is 'installed' and appears as such in the Services tool, but does not start and I cannot 'uninstall' it in the conventional way (files missing).

So I used the SC tool to delete the service. Now if I try to reinstall it, the installer reports that the service is 'marked for deletion'.

How can I recover from this?

TIA


Solution

  • Restart machine and service status should be cleared. It is an old inconvenience I remember from .NET 2.0 and Windows XP times, that seems still not to be resolved.