C# service: setup returns error 1001. Source MyService already exists on the local computer. EventID 11001 <p>Currently I try to create a C# (2010) service.</p> <p>I have created a visual studio setup project. Whenever I try to install the service I get the message</p> <pre><code>Error 1001. Source MyService already exists on the local computer. </code></pre> <p>In the eventlog I find the following info:</p> <pre><code>- System - Provider [ Name] MsiInstaller - EventID 11001 [ Qualifiers] 0 Level 2 Task 0 Keywords 0x80000000000000 - TimeCreated [ SystemTime] 2013-10-28T14:28:23.000000000Z EventRecordID 206256 Channel Application Computer &lt;MyComputer&gt; - Security [ UserID] S-1-5-21-703477020-2137377117-2121179097-8027 - EventData Product: MyServiceSetup -- Error 1001. Error 1001. Source MyService already exists on the local computer. (NULL) (NULL) (NULL) (NULL) (NULL) 7B30353636304544462D374645372D344243312D414442422D4534424244343645393646457D </code></pre> <p>I have tried the following commands (in a command window with admin-rights):</p> <pre><code>InstallUtil /u MyService.exe </code></pre> <p>and</p> <pre><code>sc delete MyService </code></pre> <p>But I keep getting this error. I install with sufficient rights. And I have absolutely no idea where I have to look for the solution.</p> <p>Can somebody please help me? I have almost no hair left to pull out...</p> <p>Thanx!!!</p>