title: Impersonating different users during install in WiX setup
body: <p>I've just created a WiX v3.5 installer to install my Web application to IIS7. I have custom actions to allow the user to choose which website and app pool they want and to name the Virtual directory via the dialogs. </p>
  
  <p>But now I've come to authentication and I'm stumped. I am trying to enable impersonation and allow the user to enter their impersonation login and password. I had this working fine in my Visual Studion 2010 setup projects so now I need to replicate the same in WiX.</p>
  
  <p>Aparently this can be done via an appcmd as per this question: <a href="https://stackoverflow.com/questions/15252934/is-setting-asp-net-impersonation-possible-using-wix-3-x-with-iisextension">Is setting &quot;ASP.NET Impersonation&quot; possible using WiX 3.x with IISExtension?</a> but I can't seem to get this working. Can i add this in my product.wxs and wrap it in a custom action? Any ideas anyone? Any help would be appreciated?</p>
  
  <pre><code>appcmd set config /commit:WEBROOT/section:identity /impersonate:true
  </code></pre>