可再发行的.NET Framework安装程序安装程序、再发、NET、Framework

2023-09-03 22:23:16 作者:守护あ娃娃

有没有可再分发网络安装的.NET框架4.0? preferably,它会检测到正确的语言版本,安装和从互联网上下载它。

Is there a redistributable web installer for .net framework 4.0? Preferably, it'd detect the correct language version to install and download it from the internet.

我要捆绑这个网站安装与我的4.0应用程序,从而使安装包的下载大小尽可能小(完全离线安装40MB可能会吓跑用户),再加上我不想应付检测必要的版本(X86,X64的语言)来安装。

I want to bundle this web installer with my 4.0 application, so that the download size of setup package is as small as possible (40MB of full offline installer could scare users), plus I don't want to deal with detecting the necessary version (x86, x64, which language) to install.

编辑: 至于我是如何创建安装。我会去的最简单的选择。我的应用程序,真是小巫见大巫。我只需要复制一些文件,并在开始菜单/桌面快捷方式。 什么是最简单的/最快的解决办法?安装项目,可以建立与VS(我使用VS 2010)。

As to how I create the setup. I'll go for the easiest option. My application is really trivial. I just need to copy some files and make shortcuts in Start Menu / Desktop. What's the simplest/fastest solution to this? The setup project that can be build with VS (I'm using VS 2010).

推荐答案

在你的安装项目,你应该嵌入.NET 4的框架。但是,而不是添加离线完整版,你只需要下载并嵌入这个网站安装。它会检查当前正在运行的机器只下载所需的文件。所以大家谁已经有安装了.NET Framework刚刚得到的死亡数据,870KB您的设置(多数民众赞成在网络安装程序的大小)和其他人下载不亚于需要对当前的机器。

Within your setup project you should embed the .Net 4 Framework. But instead of adding the full offline version you simply download and embed this web installer. It checks the currently running machine and downloads only the necessary files. So everyone who already has the .Net framework installed just gets 870kb of death data with your setup (thats the size of the web installer) and anybody else downloads as much as needed for the current machine.