Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>We use this:</p> <p>First determine the .Net framework root directory from the registry:</p> <pre><code>&lt;Property Id="FRAMEWORKROOT"&gt; &lt;RegistrySearch Id="FrameworkRootDir" Root="HKLM" Key="SOFTWARE\Microsoft\.NETFramework" Type="directory" Name="InstallRoot" /&gt; &lt;/Property&gt; </code></pre> <p>Then, inside the component that installs your website in IIS:</p> <pre><code>&lt;!-- Create and configure the virtual directory and application. --&gt; &lt;Component Id='WebVirtualDirComponent' Guid='{GUID}' Permanent='no'&gt; &lt;iis:WebVirtualDir Id='WebVirtualDir' Alias='YourAlias' Directory='InstallDir' WebSite='DefaultWebSite' DirProperties='DirProperties'&gt; &lt;iis:WebApplication Id='WebApplication' Name='YourAppName' WebAppPool='AppPool'&gt; &lt;!-- Required to run the application under the .net 2.0 framework --&gt; &lt;iis:WebApplicationExtension Extension="config" CheckPath="yes" Script="yes" Executable="[FRAMEWORKROOT]v2.0.50727\aspnet_isapi.dll" Verbs="GET,HEAD,POST" /&gt; &lt;iis:WebApplicationExtension Extension="resx" CheckPath="yes" Script="yes" Executable="[FRAMEWORKROOT]v2.0.50727\aspnet_isapi.dll" Verbs="GET,HEAD,POST" /&gt; &lt;iis:WebApplicationExtension Extension="svc" CheckPath="no" Script="yes" Executable="[FRAMEWORKROOT]v2.0.50727\aspnet_isapi.dll" Verbs="GET,HEAD,POST" /&gt; &lt;/iis:WebApplication&gt; &lt;/iis:WebVirtualDir&gt; &lt;/Component&gt; </code></pre> <p>For an x64 installer (<strong>THIS IS IMPORTANT</strong>) Add Win64='yes' to the registry search, because the 32 bits environment on a 64 bits machine has a different registry hive (and a different frameworkroot)</p> <pre><code>&lt;RegistrySearch Id="FrameworkRootDir" Root="HKLM" Key="SOFTWARE\Microsoft\.NETFramework" Type="directory" Name="InstallRoot" Win64='yes' /&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload