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?
<ItemGroup>
<BootstrapperFile Include="Microsoft.Windows.Installer.4.5">
<ProductName>Windows Installer 4.5</ProductName>
</BootstrapperFile>
<BootstrapperPackage Include=".NETFramework,Version=v4.0">
<Visible>True</Visible>
<ProductName>.NET Framework 4.0</ProductName>
<Install>True</Install>
<Visible>True</Visible>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(WixTargetsPath)" />
<Target Name="AfterBuild">
<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" />
</Target>
Best Answer
In the wixproj file, add the following structure. Note that the
<WixTargetsPath>
tags must reside in the the first<PropertyGroup>
node, along with the rest of what's usually there.