title: Wix Installer - bundle creating one file from multiple files
body: <p>This is the code for my bundle.wxs I have another project creating AppInstaller.msi file 
  and I have many 3rd parties like .NET 4.5 and c++ redistributable.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" 
       xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
       xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" 
       xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension"&gt;
  
   &lt;Bundle Name="APP" Version="0.0.0.60" 
           Manufacturer="me" UpgradeCode="PUT-GUID-HERE"&gt;
    &lt;Chain&gt;
        &lt;!-- TODO: Define the list of chained packages. --&gt;
        &lt;PackageGroupRef Id="Netfx45FullPackage" /&gt;
    &lt;/Chain&gt;
   &lt;/Bundle&gt;
  
    &lt;Fragment&gt;
      &lt;!--checking for matlab 2012a installation--&gt;
      &lt;util:RegistrySearch Id="MatlabPath" Variable="MatlabPathExists" Root="HKLM" Key="SOFTWARE\MathWorks\MATLAB\4.17" Result="exists" Win64="yes" /&gt;
      &lt;!--checking for matlab MCR 2012a 64 bit installation--&gt;
      &lt;util:RegistrySearch Id="MatlabMCRPath" Variable="MatlabMCRPathExists" Root="HKLM" Key="SOFTWARE\MathWorks\MATLAB Compiler Runtime\7.17" Result="exists" Win64="yes" /&gt;
      &lt;!--checking for c++ Redistributable 2010 x64--&gt;
      &lt;util:RegistrySearch Id="redistributable_2010_64" Variable="redist2010Exists" Root="HKLM" Key="\SOFTWARE\Microsoft\VisualStudio\10.0\VC\VCRedist\x64" Result="exists" Win64="yes" /&gt;
      &lt;!--checking for c++ Redistributable 2012 x64--&gt;
      &lt;util:RegistrySearch Id="redistributable_2012_64" Variable="redist2012Exists" Root="HKLM" Key="\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\11.0\VC\" Result="exists" Win64="yes" /&gt;
      &lt;PackageGroup Id="Netfx45FullPackage"&gt;
        &lt;ExePackage Id="vcredist_2012_x64" Cache="no" Compressed="no" PerMachine="yes" Permanent="yes" Vital="no" InstallCommand="/q" SourceFile="..\SetupProject\vcredist_x64_2012.exe" InstallCondition="(VersionNT &amp;gt;= v6.0 OR VersionNT64 &amp;gt;= v6.0)" DetectCondition="redist2012Exists" /&gt;
        &lt;ExePackage Id="vcredist_2010_x64" Cache="no" Compressed="no" PerMachine="yes" Permanent="yes" Vital="no" InstallCommand="/q" SourceFile="..\SetupProject\vcredist_x64_2010.exe" InstallCondition="(VersionNT &amp;gt;= v6.0 OR VersionNT64 &amp;gt;= v6.0)" DetectCondition="redist2010Exists" /&gt;
        &lt;ExePackage Id="Netfx45Xxx" Cache="no" Compressed="no" PerMachine="yes" Permanent="yes" Vital="no" InstallCommand="/q" SourceFile="..\SetupProject\dotnetfx45_full_x86_x64.exe" DetectCondition="(Netfx4FullVersion=&amp;quot;4.5.50709&amp;quot;) AND (NOT VersionNT64 OR (Netfx4x64FullVersion=&amp;quot;4.5.50709&amp;quot;))" InstallCondition="(VersionNT &amp;gt;= v6.0 OR VersionNT64 &amp;gt;= v6.0) AND (NOT (Netfx4FullVersion=&amp;quot;4.5.50709&amp;quot; OR Netfx4x64FullVersion=&amp;quot;4.5.50709&amp;quot;))" /&gt;
        &lt;ExePackage Id="MatlabMCR2012a64" Cache="no" Compressed="no" PerMachine="yes" Permanent="yes" Vital="no" InstallCommand="/q" SourceFile="..\SetupProject\MCR_R2012a_win64_installer.exe" DetectCondition="MatlabMCRPathExists OR MatlabPathExists" /&gt;
        &lt;MsiPackage Id="App" Cache="no" Compressed="no" DisplayInternalUI="yes" Vital="yes" SourceFile="$(var.installerPath)\APPInstaller.msi" /&gt;
      &lt;/PackageGroup&gt;
    &lt;/Fragment&gt;
  &lt;/Wix&gt;
  </code></pre>
  
  <p>1: How can I create one setup.exe file from all of the files?<br></p>
  
  <p>2: How Can I create a subfolder with all of the files?</p>
  
  <p>update: in order to createa subfolder just add the attribute Name=""</p>
  
  <p>so </p>
  
  <pre><code>&lt;MsiPackage Id="App" Cache="no" Compressed="no" DisplayInternalUI="yes" Vital="yes" SourceFile="$(var.installerPath)\APPInstaller.msi" /&gt;
  </code></pre>
  
  <p>becomes this:</p>
  
  <pre><code>&lt;MsiPackage Id="App" Cache="no" Name="Files\APPInstaller.msi" Compressed="no" DisplayInternalUI="yes" Vital="yes" SourceFile="$(var.installerPath)\APPInstaller.msi" /&gt;
  </code></pre>