title: Broken Windows Service installation
body: <p>I have a Service (and an installer) that I am developing and need to update it (which I've done many times pas half a year and all went most of the time fine). The problems probably started with a bug that prevented the service from starting and some common issue with Services app blocking the uninstall process.</p>
  <p>Now trying to uninstall from Programs I get error:</p>
  <ul>
  <li><code>The installed product does not match the installation source(s). Untill...</code></li>
  <li>When hit <code>Cancel</code> button, then another error shows up:
  <code>The installation resource have not been found</code></li>
  </ul>
  <p>I tried to apply this advice:</p>
  <pre><code>MsiExec.exe /I foo.msi REINSTALLMODE=voums REINSTALL=ALL
  </code></pre>
  <p>A Wizzard is opened and it offered me a <code>Repair</code> or <code>Removal</code>, but neither option seems to work fine. It shows some efforts to install/update files, than asks for credentials for the service and then throws an error:</p>
  <pre><code>Error 1001: Entered service already exists
  </code></pre>
  <p>Of course, I've been here before and tried <code>sc delete Service</code> a suggested in many posts.</p>
  <p>And then in the last wizzard page it says <code>The installer was interrupted before Service could be installed. You need to restart installer and try again</code>.</p>
  <p>I've been on this issue whole day. I once managed to get rid of the Service by manually removing all the related keys in registry and somehow installed it again only to run to the same issue. I tried every approach I found, but something is missing and it stays &quot;broken&quot;. I feel I might need a more low level approach to purge the installation and bring things to a clean state. Suggestion appreciated.</p>
  <p>Please note, that some of the messages were in native language and are translated into English and thus might not be exactly matching English Windows phrases.</p>