title: How do I install an ASP.Net MVC application on IIS 7 using Wix?
body: <p>For IIS6 I can use the IIS helpers in Wix to install a web application like this:</p>
  
  <pre><code>&lt;iis:WebAppPool 
      Id="AP_MyApp" 
      Name="My Application Pool" 
      Identity="networkService" /&gt;
  &lt;iis:WebApplication 
      Id="WA_MyApp" 
      Name="MyApp" 
      WebAppPool="AP_MyApp"&gt;
      &lt;iis:WebApplicationExtension
          CheckPath="no"
          Executable="[NETFRAMEWORK20INSTALLROOTDIR]aspnet_isapi.dll"
          Verbs="GET,HEAD,POST"/&gt;
  &lt;/iis:WebApplication&gt;
  </code></pre>
  
  <p>Unfortunately, this doesn't work for IIS7. We don't want to use the aspnet_isapi.dll mechanism, and instead want the integrated pipeline to handle the request routing. The app pool created by this script is in Classic mode not Integrated mode so none of the handlers get run correctly.</p>
  
  <p>How can I correctly install an MVC app on IIS 7?</p>