【问题标题】:Using wix, how to install Dot net framework 4.5 for Windows 7/8 and dot net 4.0 from Xp and vista使用 wix,如何从 Xp 和 vista 安装 Dot net framework 4.5 for Windows 7/8 和 dot net 4.0
【发布时间】:2014-02-05 06:07:18
【问题描述】:

我想尽可能安装 Dot net framework 4.5 作为我的应用程序的先决条件。因为 dot net framework 4.5 的最低操作系统要求是 Windows Vista SP2。我想在操作系统或更高版本上安装 dot net framework 4.5 Windows Vista SP2 和Dot net framework 4.0 低于Windows Vista Sp2(即Windows Xp 机器)。我正在使用下面的代码。

<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>

但它给出了错误

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.

我认为我们不能使用 WixNetFxExtension 库同时安装 DotnetFramework4 和 DotnetFramework 4.5。我现在有什么选择来实施它?我是否必须手动编写一个 PackageGroup 来安装 Dot net Framework 4.5,检查操作系统版本是否兼容以安装它。

【问题讨论】:

    标签: wix wix3.7 wix3.8


    【解决方案1】:

    Wix 有使用 Burn 将 .Net 框架安装到您的应用程序的文档。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-12
      • 2011-01-09
      • 2011-01-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多