title: Bootstrapper: How to compile the application and prerequisite in single .msi package?
body: <p>I am creating an .msi package for the application which has a prerequisite for installation.
  I am using the Visual Studio 2005 Bootstrapper for this task.
  To this end, I did the following:
  Located the folder C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ and created a folder for my prerequisite (made it same structure as 'dotnetfx'); created the 'product.xml' and 'package.xml' and placed them appropriately. I kept the xml files very simple so far to test the installation:</p>
  
  <p>product.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Product ProductCode="MyPrereq" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"&gt;
    &lt;PackageFiles CopyAllPackageFiles="false"&gt;
      &lt;PackageFile Name="MyPrereq.exe" /&gt;
    &lt;/PackageFiles&gt;
    &lt;InstallChecks&gt;
    &lt;/InstallChecks&gt;
    &lt;Commands Reboot="None"&gt;
      &lt;Command PackageFile="MyPrereq.exe" EstimatedInstallSeconds="90"&gt;
        &lt;InstallConditions&gt;
        &lt;/InstallConditions&gt;
        &lt;ExitCodes&gt;
      &lt;ExitCode Value="0" Result="Success"/&gt;
          &lt;DefaultExitCode Result="Fail" String="GeneralFailure" FormatMessageFromSystem="true" /&gt;
        &lt;/ExitCodes&gt;
      &lt;/Command&gt;
    &lt;/Commands&gt;
  &lt;/Product&gt;
  </code></pre>
  
  <p>package.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Package Name="MyPrereq" Culture="Culture" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"&gt;
    &lt;Strings&gt;
      &lt;String Name="Culture"&gt;en&lt;/String&gt;
      &lt;String Name="DisplayName"&gt;MyPrereq&lt;/String&gt;
      &lt;String Name="GeneralFailure"&gt;A fatal error occurred. The installation failed.&lt;/String&gt;
    &lt;/Strings&gt;
  &lt;/Package&gt;
  </code></pre>
  
  <p>Now I can add the prerequisite from the list and build my setup project.</p>
  
  <p>The problem:</p>
  
  <p>The build output is the 'setup.exe', the 'MyApp.msi' package, plus the subfolder called 'MyPrereq' which contains 'MyPrereq.exe'.</p>
  
  <p>I would like the build to create a 'setup.exe' and a single 'MyApp.msi', which would contain the 'MyPrereq' inside, with no additional files/directories.</p>
  
  <p>I know that the .NET framework is another prereq for my app, and it is included in the same .msi, so that should be possible somehow.</p>
  
  <p>How can I achieve this? </p>