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
In the wixproj file, add the following structure. Note that the tags must reside in the the first node, along with the rest of what's usually there.
...
$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets
$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets
...
Windows Installer 3.1
Microsoft .NET Framework 4.0 (x86 and x64)
$(ProgramFiles)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\