title: Web application install with initial IIS settings; using WiX, need upgrade files, NOT changing IIS settings
body: <p>I have a WiX install project that includes IIS setings for virtual directory and application settings with an application pool. After initial install, the customer will change the application pool identity from default network service set in wxs.</p>
  
  <p>How can I build an update installer that can update web files, but not change the IIS settings, application pool identity back to network service?</p>
  
  <p>ComponentGroupRef Id="WebPublishCmp" is the initial heat output of the web files to publish.</p>
  
  <p>I have tried to build a minor upgrade using <a href="http://en.wikipedia.org/wiki/WiX#Burn" rel="noreferrer">Torch</a> and <a href="http://en.wikipedia.org/wiki/WiX#Pyro" rel="noreferrer">Pyro</a>, but I am having issues with Torch diff not detecting changes (this is another issue for another Stack&nbsp;Overflow question).</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
       xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension"&gt;
  
    &lt;?include Config.wxi ?&gt;
  
    &lt;Product
      Id="E3105F82-0460-4C3C-8F6C-778405E81F61"
      Name="Website"
      Language="1033"
      Version="1.0.0.1"
      Manufacturer="Website"
      UpgradeCode="E3105F82-0460-4C3C-8F6C-778405E81F61"&gt;
  
      &lt;Package
        InstallerVersion="200" Compressed="yes" /&gt;
  
      &lt;Media
        Id="1"
        Cabinet="media1.cab"
        EmbedCab="yes" /&gt;
  
      &lt;Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION" /&gt;
      &lt;UIRef Id="CustomWixUI_InstallDir"/&gt;
  
      &lt;FeatureRef Id="InitialFeature"/&gt;
  
    &lt;/Product&gt;
  
    &lt;Fragment&gt;
      &lt;Feature Id="InitialFeature" Title="Initial (Full)" Level="1"&gt;
        &lt;ComponentGroupRef Id="WebPublishCmp"/&gt;
        &lt;ComponentRef Id="IIS.Component"/&gt;
      &lt;/Feature&gt;
  
      &lt;Feature Id="WebFilesFeature" Title="Website (Files)" Level="1"&gt;
        &lt;ComponentGroupRef Id="WebPublishCmp"/&gt;
      &lt;/Feature&gt;
  
  
    &lt;/Fragment&gt;
  
    &lt;Fragment&gt;
      &lt;Component Id="IIS.Component" Guid="6FAD9EC7-D2B0-4471-A657-C8AF5F6F707F" KeyPath="yes" Directory="INSTALLLOCATION"&gt;
        &lt;iis:WebSite Id="DefaultWebSite" Description="$(var.WebSiteName)" Directory="INSTALLLOCATION" &gt;
          &lt;iis:WebAddress Id="AllUnassigned" Port="80"/&gt;
        &lt;/iis:WebSite&gt;
        &lt;iis:WebAppPool Id="WebsiteAppPool" Name="App" Identity="networkService" /&gt;
        &lt;iis:WebVirtualDir Id="My.VirtualDir" Alias="App" Directory="INSTALLLOCATION" WebSite="DefaultWebSite"&gt;
          &lt;iis:WebApplication Id="Application" Name="App" WebAppPool="WebsiteAppPool"/&gt;
        &lt;/iis:WebVirtualDir&gt;
      &lt;/Component&gt;
    &lt;/Fragment&gt;
  
    &lt;Fragment&gt;
      &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
        &lt;Directory Id="ProgramFilesFolder"&gt;
          &lt;Directory Id="INSTALLLOCATION" Name="Website"&gt;
          &lt;/Directory&gt;
        &lt;/Directory&gt;
      &lt;/Directory&gt;
    &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>I am using:</p>
  
  <ul>
  <li>WiX 3.5, 3.6</li>
  <li>Visual Studio 2010</li>
  </ul>