title: How to install .NET framework 4.0 as part of installation?
body: <p>I created bootstrapper,it works 
  but it does not install NET Framework 4.0. After the installation completed my application does not start because no NET Framework 4.0. 
  Why it does not install NETF 4.0?</p>
  
  <pre><code>&lt;ItemGroup&gt;
      &lt;BootstrapperFile Include="Microsoft.Windows.Installer.4.5"&gt;
        &lt;ProductName&gt;Windows Installer 4.5&lt;/ProductName&gt;
      &lt;/BootstrapperFile&gt;
         &lt;BootstrapperPackage Include=".NETFramework,Version=v4.0"&gt;
              &lt;Visible&gt;True&lt;/Visible&gt;
              &lt;ProductName&gt;.NET Framework 4.0&lt;/ProductName&gt;
              &lt;Install&gt;True&lt;/Install&gt;
          &lt;Visible&gt;True&lt;/Visible&gt;
        &lt;/BootstrapperPackage&gt;
    &lt;/ItemGroup&gt;
    &lt;Import Project="$(WixTargetsPath)" /&gt;
    &lt;Target Name="AfterBuild"&gt;
      &lt;GenerateBootstrapper ApplicationFile="DOGInstaller.msi" 
      ApplicationName="DOG" 
      BootstrapperItems="@(BootstrapperFile)" 
      CopyComponents="True" 
      ComponentsLocation="HomeSite"
      OutputPath="$(OutputPath)\en-us\"
      Path="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper" 
      Culture="en" /&gt;
    &lt;/Target&gt;
  </code></pre>