title: WiX bundle for installing .NET
body: <p>I'm trying to create a bundle for installing .NET Framework 4.0 if it needs to be installed. I realize there are similar questions, but all of the answers are just snippets and don't describe what file they go in, and how they're imported in to the .wxs file.</p>
  
  <p>This is what I have in a Bundle.wxs file. I get compiler warnings about multiple entry sections.</p>
  
  <p>Error   2   Multiple entry sections '{CF06625F-7B6B-4B6E-A24E-FDDCA7CFFFF4}' and '{0D1EE60A-FC4F-4083-8B1E-311E75A67B4C}' found.  Only one entry section may be present in a single target. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt;
    &lt;Bundle UpgradeCode="{C6FF478E-C3DA-4D78-929D-24C3F3307356}" Version="4.0"&gt;
      &lt;Chain&gt;
        &lt;PackageGroupRef Id="NetFx40Redist"/&gt;
      &lt;/Chain&gt;
    &lt;/Bundle&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>Most of the links on the WiX page are broken, and do not mention anything about attributes to use on the Bundle tag, and seem to interchange the Package/Product. I could not find mention on the Wix pages about setting a GUID for Bundles. Is that something new to Wix 3.7?</p>
  
  <p><a href="http://wix.sourceforge.net/manual-wix3/install_dotnet.htm">http://wix.sourceforge.net/manual-wix3/install_dotnet.htm</a></p>
  
  <ol>
  <li>How do I use the predefined .NET 4.0 PackageGroupRef/PayloadGroupRef</li>
  <li>Does it have to be in Bundle.wxs? Where does it get imported in to my main Product.wxs?</li>
  </ol>