x45WebLink和NetFx45RedistLink之间的区

x45WebLink和NetFx45RedistLink之间的区

本文介绍了NetFx45WebLink和NetFx45RedistLink之间的区别是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用维克斯3.7编写一个引导程序将安装.NET 4.5,然后再我的应用程序的MSI:

I used WiX 3.7 to write a bootstrapper which installs .net 4.5 first and then my application's MSI:

<Chain>
  <PackageGroupRef Id="NetFx45Redist"/>
  <MsiPackage Id="MainAppPackage"
              After="NetFx45Redist"
              SourceFile="..\bin\Debug\MyApp.msi"/>
</Chain>

借助 WiX的文档说, NetFx45Redist 是一个独立的设置,而 NetFx45Web 是一个网络设置。当我建有ID设置引导程序 NetFx45Redist 它有相同的尺寸相比,当我与 NetFx45Web 构建它标识指定。我很好奇,于是我下载了维克斯源(V3.7)。我很惊讶地看到,有两个 PackageGroup 元素之间的差别不大。

The WiX documentation says that NetFx45Redist is a standalone setup while the NetFx45Web is a web setup. After I built the bootstrapper with Id set to NetFx45Redist it had the same size compared to when I build it with NetFx45Web Id specified. I was curious so I downloaded the WiX sources (v3.7). I was surprised to see that there was little difference between the two PackageGroup elements.

DownloadUrl NetFx45Web 是的,而一个用于 NetFx45Redist http://go.microsoft.com/fwlink/?LinkId=225702 。按照 RemotePayload \ @Size 属性 NetFx45Web 为1005568字节, NetFx45Redist 为50352408个字节。

The DownloadUrl for NetFx45Web is http://go.microsoft.com/fwlink/?LinkId=225704, while the one for NetFx45Redist is http://go.microsoft.com/fwlink/?LinkId=225702. According to the RemotePayload\@Size attribute NetFx45Web is 1005568 bytes and NetFx45Redist is 50352408 bytes.

我预计 NetFx45Redist 将包括在我的引导程序的.NET 4.5的设置和无需下载是必需的。我认为这是错误的。其中 PackageGroup 我应该用那么,什么是下载.NET 4.5的安装2之间的区别是什么?

I expected that NetFx45Redist will include the .net 4.5 setup in my bootstrapper and no download will be required. I see that's wrong. Which PackageGroup should I use then and what is the difference between the 2 downloaded .net 4.5 installations?

推荐答案

这两个包组编写从微软下载的文件。两者都提供的Microsoft .NET 4.0框架的全面设置。较小的一个是引导程序的话刚下载系统丢失的碎片。较大的一个拥有所有的任何系统可能需要的作品。

Both package groups are authored to download the files from Microsoft. Both provide full setups of Microsoft .NET 4.0 frameworks. The smaller one is a bootstrapper that then downloads just the pieces the system is missing. The larger one has all the pieces any system might need.

这是一个有点令人惊讶的是WixNetFxExtension不提供非下载的包组。但是,既然你已经窥视到 NetFx4.5.wxs 源$ C ​​$ C,它应该是一个简单的事情,你想要的属性复制到自己的包组。

It is a bit surprising that WixNetFxExtension doesn't offer a non-download package group. But, since you have already peeked into the NetFx4.5.wxs source code, it should be a simple matter to copy the attributes that you want into your own package group.

编辑:

我还要指出,作为描述的引导程序需要命令行参数此处。 -layout DVD 将包下载到一个名为 DVD 文件夹,可用于离线安装。 (显然,NetFx45Web不宜于这一点。)

I should also point that a bootstrapper takes command-line arguments as described here. -layout dvd would download packages to a folder named dvd, which can be used for off-line installation. (Obviously, NetFx45Web wouldn't be appropriate for that.)

这篇关于NetFx45WebLink和NetFx45RedistLink之间的区别是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 23:32