title: Windows Installer XML (WiX)
body: <p>My application needs .Net Framework 3.5, Crystal Report 10.5 and SQLServer Express 2005 as pre-requisites. For this purpose I created a wix setup project and added the msbuild task for prerequisites. 
  My current problem
  When installing the kit to an user machine, crystal report trying to install before .net framework 3.5. 
  How can I change the order of the prerequisites?</p>
  
  <p>My current msbuild task code is given below;</p>
  
  <pre><code>  &lt;ItemGroup&gt;
  &lt;BootstrapperFile Include="Microsoft.Net.Framework.3.5"&gt;
    &lt;ProductName&gt;.NET Framework 3.5&lt;/ProductName&gt;
  &lt;/BootstrapperFile&gt;
  &lt;BootstrapperFile Include="Microsoft.Windows.Installer.3.1"&gt;
    &lt;ProductName&gt;Windows Installer 3.1&lt;/ProductName&gt;
  &lt;/BootstrapperFile&gt;
  &lt;BootstrapperFile Include="BusinessObjects.CrystalReports.10.5"&gt;
    &lt;ProductName&gt;Crystal Reports Basic for Visual Studio 2008 (x86, x64)&lt;/ProductName&gt;
  &lt;/BootstrapperFile&gt;
  &lt;BootstrapperFile Include="Microsoft.Sql.Server.Express.9.2"&gt;
    &lt;ProductName&gt;SQL Server 2005 Express Edition SP2 (x86)&lt;/ProductName&gt;
  &lt;/BootstrapperFile&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>  &lt;Target Name="AfterBuild"&gt;
  &lt;GenerateBootstrapper ApplicationFile="$(TargetFileName)" 
  ApplicationName="Business Software" 
  BootstrapperItems="@(BootstrapperFile)" 
  ComponentsLocation="Relative" 
  CopyComponents="True" 
  OutputPath="$(OutputPath)\en-us\" 
  Path="C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\" /&gt;
  </code></pre>
  
  <p></p>