title: Failed to install and start Windows services in WiX installer
body: <p>I am creating an MSI package for installing and starting Windows services using WiX v3.8. The code as follows:</p>
  
  <pre><code>&lt;Component Id="INSTALLAPSSERVICE" Guid="991D5F82-0E77-4FE3-B1D8-4C941B84C7CD" Win64="yes"&gt;
     &lt;File Id="ApsService.exe"
           Name="ApsService.exe"
           Source="Resource\ApsService.exe"
           KeyPath="yes"
           Vital="yes"
           DiskId="1"&gt;&lt;/File&gt;
     &lt;ServiceInstall Id="ApsServiceInstaller"
                     Name="ApsService"
                     DisplayName="ApsService"
                     Type="ownProcess"
                     Start="auto"
                     ErrorControl="normal"
                     Description="A monitor service for windows application."
                     Account="[SERVICEACCOUNT]"
                     Password="[SERVICEPASSWORD]"
                     Vital="yes"
                     Interactive="no"&gt;&lt;/ServiceInstall&gt;
      &lt;ServiceControl Id="StartService"
                      Start="install"
                      Stop="both"
                      Remove="uninstall"
                      Name="ApsService"
                      Wait="yes"/&gt;
  &lt;/Component&gt;
  </code></pre>
  
  <p>But install fails with the following errors in the log:</p>
  
  <pre><code>Executing op: ServiceControl(,Name=ApsService,Action=1,Wait=1,)
  StartServices: Service: ApsService
  Error 1920. Service 'ApsService' (ApsService) failed to start. Verify that you have      sufficient privileges to start system services.
  MSI (s) (F0:D0) [15:57:28:630]: I/O on thread 3676 could not be cancelled. Error: 1168
  MSI (s) (F0:D0) [15:57:28:630]: I/O on thread 1888 could not be cancelled. Error: 1168
  MSI (s) (F0:D0) [15:57:28:630]: I/O on thread 1764 could not be cancelled. Error: 1168
  MSI (s) (F0:D0) [15:57:28:630]: I/O on thread 3504 could not be cancelled. Error: 1168
  MSI (s) (F0:D0) [15:57:28:630]: I/O on thread 2100 could not be cancelled. Error: 1168
  MSI (s) (F0:D0) [15:57:28:630]: I/O on thread 2752 could not be cancelled. Error: 1168
  MSI (s) (F0:D0) [15:57:28:630]: I/O on thread 3672 could not be cancelled. Error: 1168
  MSI (s) (F0:D0) [15:57:28:630]: I/O on thread 3876 could not be cancelled. Error: 1168
  MSI (s) (F0:D0) [15:57:28:630]: I/O on thread 1400 could not be cancelled. Error: 1168
  MSI (s) (F0:C0) [15:57:28:630]: Product: WinApsSetup64 -- Error 1920. Service 'ApsService' (ApsService) failed to start. Verify that you have sufficient privileges to start system services.
  </code></pre>
  
  <p>How can I fix the errors?</p>