title: Wix & Burn – PackageGroupRef Condition. Is it possible?
body: <p>I have a bootstrapper project for my installer. The bootstrapper installs the .NET, SQLExpress, IIS, and my app. I'd like to install the .NET4.5, if the OS is Windows Vista, or higher, and the .NET4.0 if it's XP.</p>
  
  <p>I use a simple <code>PackageGroupRef</code> in the <code>&lt;Chain&gt;</code> element, using the WixNetFxExtension dll:</p>
  
  <pre><code>&lt;Chain&gt;
    &lt;PackageGroupRef Id="NetFx45Web"/&gt;
    &lt;PackageGroupRef Id="DotNetInstall"/&gt;
  &lt;/Chain&gt;
  </code></pre>
  
  <p>Is there a way, to insert a condition to the <code>PackageGroupRef</code>? Or I have to write my own .NET installer package?</p>
  
  <p>Thanks!</p>