title: WiX: .Net 3.5 prerequisite
body: <p>I have a WiX installer that I would like to check for .Net 3.5, and install it if it does not exist. I have the following lines in my wixproj file:</p>
  
  <pre><code>&lt;BootstrapperFile Include="Microsoft.Net.Framework.3.5"&gt;
      &lt;ProductName&gt;.NET Framework 3.5&lt;/ProductName&gt;
  &lt;/BootstrapperFile&gt;
  &lt;BootstrapperFile Include="Microsoft.Windows.Installer.3.1"&gt;
      &lt;ProductName&gt;WIndows Installer 3.1&lt;/ProductName&gt;
  &lt;/BootstrapperFile&gt;
  </code></pre>
  
  <p>When I create the installer, a DotNetFX35 folder is created, and in it are 4 different versions of .Net (including 3.5), and an installer file.</p>
  
  <p>I have two questions:</p>
  
  <ol>
  <li><p>How do I have it only bring in version 3.5 (so that the user doesn't have to install 100+ MB of files)?</p></li>
  <li><p>How do I tell WiX to package these files up into the MSI file, so that the user only has to download 1 file?</p></li>
  </ol>