I am using Visual Studio 2010 to create a WiX project. I want to install .net 3.5 for my software and .net 4.0 for WiX. I used the bootstrappers available with VS2010. It worked for the 4.0 version, but I have problems with the 3.5 version. Here are some lines from my code :
<BootstrapperFile Include=".NETFramework,Version=v4.0" >
<ProductName>.NET Framework 4.0</ProductName>
</BootstrapperFile>
<BootstrapperFile Include="Microsoft.Net.Framework.3.5.SP1" >
<ProductName>.NET Framework 3.5 SP1</ProductName>
</BootstrapperFile>
<GenerateBootstrapper ApplicationFile="$(TargetFileName)"
ApplicationName="My Application Name"
BootstrapperItems="@(BootstrapperFile)"
ComponentsLocation="Relative"
CopyComponents="True"
OutputPath="$(OutputPath)"
Path="C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\"/>
First I had the error :
The install location for prerequisites has not been set to ‘component vendor’s web site’ and the file ‘dotNetFx35setup.exe’ in item ‘Microsoft.Net.Framework.3.5.SP1’ cannot be located on disk.
I followed the instructions found here :
But now I have a new warning :
Item 'Microsoft.Net.Framework.3.5.SP1' could not be located in 'C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\'.
I don’t understand what happens. I googled a lot and looked at similar questions, but didn’t find any precise answer… Does anybody have a solution, or is there another way to install prerequisites with WiX on VS2010 ?
Thanks !
<Product
tag fromC:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\DotNETFX35SP1\product.xml
? – heavyd