title: how to use bundle in inside wix tag?
body: <p>I am trying to use bundle to install .netframework in my wix installer,</p>
  
  <p>steps I followed is I have added reference for WixNetFxExtension .</p>
  
  <p>and below is my code for wix in which I couldnot add  tag</p>
  
  <p>as far as I know, bundle should be the direct child of  tag, but I m not able to use bundle in my below code.</p>
  
  <p>here is the code what I have.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt;
     &lt;?define engage.client.app_TargetDir=$(var.engage.client.app.TargetDir)?&gt;
     &lt;Product Id="67b9d26d-ae22-451b-adba-3e62ffda836e" Name="EngageSetupCreator" Language="1033" Version="1.0.0.0" Manufacturer="hbj" UpgradeCode="965f64e1-f1a1-4755-8358-ae3ac36d3e98"&gt;
        &lt;Package InstallerVersion="200" Platform="x64" Compressed="yes" InstallScope="perMachine" InstallPrivileges="elevated" AdminImage="yes" /&gt;
        &lt;MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /&gt;
        &lt;MediaTemplate /&gt;
        &lt;Feature Id="ProductFeature" Title="EngageSetupCreator" Level="1"&gt;
           &lt;ComponentGroupRef Id="ProductComponents" /&gt;
        &lt;/Feature&gt;
     &lt;/Product&gt;
     &lt;Fragment&gt;
        &lt;SetDirectory Id="INSTALLFOLDER" Value="[WindowsVolume]Engage" /&gt;
        &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
           &lt;Directory Id="WINDOWSVOLUME"&gt;
              &lt;Directory Id="SUB_FOLDER" Name="Engage"&gt;
                 &lt;Directory Id="INSTALLFOLDER" Name="EngageSetupCreator" /&gt;
              &lt;/Directory&gt;
           &lt;/Directory&gt;
        &lt;/Directory&gt;
     &lt;/Fragment&gt;
     &lt;Fragment&gt;
        &lt;ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"&gt;
           &lt;Component Id="engage.client.app.exe" Guid="80597c63-7062-41c9-ac15-d51fef42f0fd"&gt;
              &lt;File Id="engage.client.app.exe" Name="engage.client.app.exe" Source="$(var.engage.client.app_TargetDir)engage.client.app.exe" /&gt;
           &lt;/Component&gt;
        &lt;/ComponentGroup&gt;
        &lt;UI&gt;
           &lt;UIRef Id="WixUI_Minimal" /&gt;
           &lt;Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication"&gt;WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed&lt;/Publish&gt;
        &lt;/UI&gt;
        &lt;CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" /&gt;
     &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>and I want to use this particular section of bundle in my above code.</p>
  
  <pre><code>&lt;Bundle Name="Prog" Version="1.0.0.0" Manufacturer="my Corporation" UpgradeCode="*"&gt;
     &lt;Chain&gt;
        &lt;PackageGroupRef Id="Netfx45FullPackage" /&gt;
     &lt;/Chain&gt;
  &lt;/Bundle&gt;
  &lt;Fragment&gt;
     &lt;PackageGroup Id="Netfx45FullPackage"&gt;
        &lt;ExePackage Id="Netfx45Xxx" Cache="no" Compressed="no" PerMachine="yes" Permanent="yes" Vital="no" InstallCommand="/q" SourceFile="..\SetupProject\dotnetfx45_full_x86_x64.exe" /&gt;
        &lt;MsiPackage Id="MyProg" Cache="no" Compressed="no" DisplayInternalUI="yes" Vital="yes" SourceFile="$(var.installerPath)\MyProgCore.msi" /&gt;
     &lt;/PackageGroup&gt;
  &lt;/Fragment&gt;
  </code></pre>
  
  <p>where I should exactly use this piece of code to get worked?</p>