title: Unable to start Service with WiX Installer
body: <p>I'm trying to do a WiX installer with a service install for my C# project. It's the first time I try and I don't understand why it doesn't work.</p>
  
  <p>I have set a ServiceInstall but when I run the setup, I'm blocked in this page :</p>
  
  <p><a href="https://i.stack.imgur.com/MQYun.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MQYun.png" alt="enter image description here"></a></p>
  
  <p>After a few seconds I got the error :</p>
  
  <p><a href="https://i.stack.imgur.com/VUAE5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VUAE5.png" alt="enter image description here"></a></p>
  
  <p>I created the WiX install from a Visual Studio Installer with the same parameters. There is the code :</p>
  
  <pre><code>&lt;Product ... /&gt;
  
  &lt;Feature Id="ProductFeature" Title="$(var.product)" Level="1"&gt;
      &lt;ComponentRef Id ="MyService"/&gt;
  &lt;/Feature&gt;
  
  &lt;UIRef Id="WixUI_InstallDir"/&gt;
  
  &lt;!-- Set install directory --&gt;
  &lt;Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER"/&gt;
  &lt;/Product&gt;
  
  &lt;Fragment&gt;
      &lt;Directory Id="ProgramFilesFolder"&gt;
          &lt;Directory Id="INSTALLFOLDER" Name="$(var.product)"&gt;
              &lt;Component Id="MyService" Guid="{GUID-HERE}" KeyPath="yes"&gt;        
                &lt;!-- service will need to be installed under Local Service --&gt;
  
                &lt;ServiceInstall
                  Id="MyService"
                  Type="ownProcess"
                  Vital="yes"
                  Name="MyService"
                  DisplayName="Service"
                  Description=""
                  Start="auto"
                  Account="NT AUTHORITY\LocalService"
                  ErrorControl="normal"/&gt;
                &lt;ServiceControl Id="StartDDService" Name="MyService" Start="install" Wait="no" /&gt;
                &lt;ServiceControl Id="StopDDService" Name="MyService" Stop="both" Wait="yes" Remove="uninstall" /&gt;
              &lt;/Component&gt;        
          &lt;/Directory&gt;
      &lt;/Directory&gt;
  &lt;/Fragment&gt;
  
    &lt;Fragment&gt;
      &lt;ComponentGroup Id="ProductComponents"&gt;
        &lt;Component Id="ProductComponent" Guid="{}" Directory="INSTALLFOLDER"&gt;
  
          &lt;File Id="MyService.exe" Source="$(var.MyService.TargetDir)\MyService.exe"/&gt;
        &lt;/Component&gt;
      &lt;/ComponentGroup&gt;
    &lt;/Fragment&gt;
  </code></pre>