Using wix, how to install Dot net framework 4.5 for Windows 7/8 and dot net 4.0 from Xp and vista
Asked Answered
P

1

8

I want to install Dot net framework 4.5 as a prerequisite for my application wherever it is possible.As minimum OS requirement for dot net framework 4.5 is Windows Vista SP2.I would like to install dot net framework 4.5 on OS on or above Windows Vista SP2 and Dot net framework 4.0 below Windows Vista Sp2 (i.e. Windows Xp machine). I am using below code.

<PropertyRef Id="NETFRAMEWORK40FULL" />
<PropertyRef Id="NETFRAMEWORK45" />
<Condition Message="This application requires .NET Framework 4.0 Full or .NETFramework 4.5. Please install the .NET Framework then run this installer again.">
  <![CDATA[Installed OR NETFRAMEWORK40FULL OR NETFRAMEWORK45]]>
</Condition>

<Chain>
  <PackageGroupRef Id="NetFx40Web" />
  <PackageGroupRef Id="NetFx45Web" />
  <PackageGroupRef Id="SqlServer2008R2" />
</Chain>

But it is giving error as

The Windows Installer XML variable 'WixMbaPrereqPackageId' is declared in morethan one location.
The Windows Installer XML variable 'WixMbaPrereqLicenseUrl' is declared in more than one location.

I think We can not install both DotnetFramework4 and DotnetFramework 4.5 using WixNetFxExtension library. What choices to do i have now to implement it?? Should i have to manually write a PackageGroup to install Dot net Framework 4.5 checking the OS version is compatible to install it.

Palmer answered 16/1, 2014 at 11:5 Comment(0)
G
1

Wix has documentation for installing the .Net framework with your applications using Burn.

http://wixtoolset.org/documentation/manual/v3/howtos/redistributables_and_install_checks/install_dotnet.html

Getraer answered 22/1, 2014 at 21:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.