title: Installing windows service fails: service already exists
body: <p>I'm trying to reinstall a service I've written using C#.
  The first time this worked. I used installutil to handle the install and the service showed up in the list of services and I could start it.
  Then I made some updates to the code and uninstalled the service. After figuring out I had to close the services window, the service seemed to have disappeared (i.e. successfully uninstalled).
  However, upon trying to install the service again I got the message saying:</p>
  
  <pre><code>System.ComponentModel.Win32Exception: The specified service already exists
  </code></pre>
  
  <p>This seemed strange as I couldn't see it in the services window. I finally thought I found the problem after deleting a registry key regarding my service, but unfortunately this didn't solve anything.</p>
  
  <p>Also, uninstalling again doesn't do much to solve the problem as this results in the contradictory message:</p>
  
  <pre><code>System.ComponentModel.Win32Exception: The specified service does not exist as an installed service
  </code></pre>
  
  <p>What should I believe? Does or doesn't the service exists? I feel like a physicist trying to figure out whether the cat is dead or alive. I hope someone here knows something to help solve this problem.</p>