为什么 .net 2.0 dotnetfx.exe 下载而 .net 4.0 dotnetf4.exe 不下载?

发布于 2024-11-05 14:59:52 字数 219 浏览 0 评论 0原文

我们的应用程序有一个安装程序,其中包含 dotnetfx.exe 文件,当安装程序运行该文件时,您会收到一条消息,表明正在下载 microsoft.net 框架。

现在我们使用 .net 4.0,可再发行的大小为 49MB,并且不下载任何内容。我假设这可以解释尺寸。

我想知道的是...是否有一个 .net 4.0 安装程序,其尺寸较小,并且这种“下载”数据的方式与 .net 2.0 一样?

We have an installer for our application that has the file dotnetfx.exe when the installer runts this file is executed and you get a message saying that the microsoft.net framework is being downloaded.

Now we are using .net 4.0 and the redistrubutable for it is 49MB and it doesnt download anything. Im assuming that explains the size.

What im wondering is...is there a .net 4.0 installer that that is smaller in size and does this 'downloading' of data like the .net 2.0 one does?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

成熟稳重的好男人 2024-11-12 14:59:52

这是 .net 4 可再发行框架的正确大小。 .net 3.5 比这个大得多,微软非常努力地将 4.0 版本的大小缩小到这个大小。 3.5 绝对是巨大的,在我看来,由于它的大小,实际上无法用于重新分发。

.net 2 大约为 23-26 meg,因此 .net 4 框架版本并不比 2.0 框架大很多。

我通过软件安装重新分发 2.0 框架,并且在安装过程中没有任何类型的“下载”消息。我在安装程序中包含了 23 meg dot net 2 框架文件,这增加了我们软件设置的大小~23 meg。

如果您使用 2.0 框架的最后一个安装程序没有包含 23 meg 文件,而是下载了它,那么这很可能是您的安装脚本/安装软件本身的一个功能,我不认为它与 . NET 2.0 框架重新分发文件本身。

如果您有权访问安装脚本,请务必查看安装脚本,您很可能会发现您喜欢的“下载 2.0”功能只是您的安装工具/软件的一个功能。

因此,如果您喜欢此功能,我假设您很可能可以在安装脚本中进行设置,这样您的 4.0 框架也可以下载,而不是直接包含在安装中(如果您喜欢这种安装方法)。

一定要检查你的安装脚本。我希望这有帮助。 :)

That is the correct size of the .net 4 redistributable framework. .net 3.5 was much, larger than this and microsoft worked very hard to cut the size down to this for the 4.0 release. 3.5 was absolutely huge and in my opinion practically unusable for redistribution because of its size.

.net 2 was around 23-26 meg and so the .net 4 framwork release is not terribly larger than the 2.0 framework.

I redistribute the 2.0 framework with a software installation and I do not have a "downloading" message of any kind during my installation. I include the 23 meg dot net 2 framework file in the installer which increases the size of our software setup ~23 meg.

If your last installer which used the 2.0 framework did not have the 23 meg file included and instead downloaded it, this was most likely a feature of your installation script / installation softtware itself and I do not believe that it has anything to do with the .net 2.0 framework redistribution file itself.

If you have access to your install script, definitely review the installation script and and you will most likely find that the "downloading of 2.0" feature that you like is just a feature of your installation tool / software.

So, if you like this feature, I would assume you can most likely set this up in your installation script so that your 4.0 framework also can be downloaded rather than included in the setup directly if you prefer this method of installation.

Definitely check your install script. I hope this helps. :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文