title: Prerequisite installer (setup.exe) results in 'Unable to locate application file [file].msi' after restart
body: <p>I'm using msbuild to create a Setup.exe that installs the prerequisites for my application. It works great, but when the prerequisites require a reboot, once Windows is back up I get an error that the MSI could not be found: "Unable to locate application file '[file].msi'.</p>
  
  <p>This is my msbuild config file:</p>
  
  <pre><code>&lt;Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"&gt;
    &lt;ItemGroup&gt;
      &lt;BootstrapperFile Include=".NETFramework,Version=v4.0"&gt;
          &lt;Visible&gt;False&lt;/Visible&gt;
          &lt;ProductName&gt;Microsoft .NET Framework 4.0&lt;/ProductName&gt;
          &lt;Install&gt;true&lt;/Install&gt;
      &lt;/BootstrapperFile&gt;
      &lt;BootstrapperFile Include="Microsoft.Windows.Installer.4.5"&gt;
        &lt;Visible&gt;False&lt;/Visible&gt;
        &lt;ProductName&gt;Windows Installer 4.5&lt;/ProductName&gt;
        &lt;Install&gt;true&lt;/Install&gt;
      &lt;/BootstrapperFile&gt;
      &lt;BootstrapperFile Include="Windows.Imaging.Component"&gt;
        &lt;Visible&gt;False&lt;/Visible&gt;
        &lt;ProductName&gt;Windows Imaging Component&lt;/ProductName&gt;
        &lt;Install&gt;true&lt;/Install&gt;
      &lt;/BootstrapperFile&gt;    
    &lt;/ItemGroup&gt;
  
    &lt;Target Name="Bootstrapper"&gt;
      &lt;GenerateBootstrapper
        ApplicationFile="myAppInstaller.msi"
        ApplicationName="MyApp"
        BootstrapperItems="@(BootstrapperFile)"
        OutputPath=".\"
        ComponentsLocation="HomeSite"
        Culture="en"/&gt;
    &lt;/Target&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>Any idea why and how to fix it?</p>
  
  <p>Thanks!</p>