I want to install Dot net framework 4.5 as a prerequisite for my application, where possible. Since the minimum OS requirement for dot net framework 4.5 is Windows Vista SP2.I would like to install dot net framework 4.5 on an OS or higher of Windows Vista Service Pack 2 and Dot net 4.0 below Windows Vista Sp2 (i.e. Windows Xp machine). I am using the code below.
<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 he gives an error like
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 cannot install DotnetFramework4 and DotnetFramework 4.5 using the WixNetFxExtension library. What choice to make now, should I realize it? Do I have to manually write a PackageGroup to install Dot net Framework 4.5 so that the OS version is compatible for installing it.
source share