I was working on a project at work and had been informed that our code had been branced. I was moving over to the branch in which our ongoing work was to occur and started of with using installutil.exe to unregister a service that was part of the project. When I looked back at the e-mail that listed which branch should be used for what I realized that the branch I was had been working in previously was the one that I needed to keep working in. So I attempted to use installutil.exe to reregister the service. The registration failed. I looked in teh install log and saw a nebulous error message.
"System.ComponentModel.Win32Exception: The specified service has been marked for deletion"
Unfortunatly that error message doesn't tell you what you need to do to resolve the problem. But as it turns out if you had the services console open while you were unregistering the service this error message will occur. To get around it you only need to close any service console windows that you have open. After closing them I was able to reregister the service without any obstacles.