WiX: .Net 3.5 prerequisite
- by Mike Pateras
I have a WiX installer that I would like to check for .Net 3.5, and install it if it does not exist. I have the following lines in my wixproj file:
<BootstrapperFile Include="Microsoft.Net.Framework.3.5">
<ProductName>.NET Framework 3.5</ProductName>
</BootstrapperFile>
<BootstrapperFile Include="Microsoft.Windows.Installer.3.1">
<ProductName>WIndows Installer 3.1</ProductName>
</BootstrapperFile>
When I create the installer, a DotNetFX35 folder is created, and in it are 4 different versions of .Net (including 3.5), and an installer file.
I have two questions:
How do I have it only bring in version 3.5 (so that the user doesn't have to install 100+ MB of files)?
How do I tell WiX to package these files up into the MSI file, so that the user only has to download 1 file?