title: Running WiX on build services in Visual Studio Team Services (was VS Online), Error LGHT0217, ICE01-07
body: <p>I have a solution hosted in Team Services and using its build services.</p>
  
  <p>The solution also includes a project to build a MSI file using the WiX toolset.
  This works great locally and I have integrated the toolset binaries into the repository to enable it on the build server too as described <a href="http://wixtoolset.org/documentation/manual/v3/msbuild/daily_builds.html" rel="nofollow noreferrer">in this guide</a>.</p>
  
  <p>But the build process reports the project to fail to build:</p>
  
  <blockquote>
    <p>light.exe (0, 0) Error executing ICE action 'ICE01'. The most common
    cause of this kind of ICE failure is an incorrectly registered
    scripting engine. See <a href="http://wixtoolset.org/documentation/error217/" rel="nofollow noreferrer">http://wixtoolset.org/documentation/error217/</a>
    for details and how to solve this problem. The following string format
    was not expected by the external UI message logger: "The Windows
    Installer Service could not be accessed. This can occur if the Windows
    Installer is not correctly installed. Contact your support personnel
    for assistance.".</p>
  </blockquote>
  
  <p>This repeats from ICE01 to ICE07 and is followed by:</p>
  
  <blockquote>
    <p>light.exe (0, 0) An unexpected Win32 exception with error code 0x643
    occurred: Action - 'ICE09' Fatal error during installation</p>
  </blockquote>
  
  <p>I have also tried to <a href="https://stackoverflow.com/questions/20418361/building-wix-on-visual-studio-online-results-in-incorrectly-registered-scriptin">supress the validations as mentioned in this SO question</a>. This is basically about adding the following to the wix project file:</p>
  
  <pre><code>&lt;PropertyGroup&gt;
      &lt;SuppressValidation&gt;true&lt;/SuppressValidation&gt;
  &lt;/PropertyGroup&gt;
  </code></pre>
  
  <p>This works - but I am courious if this is the best way as it does not feel quite right. What is the correct way to run WiX in Visual Studio Team Services?</p>