如何将 .NET Framework 4.0 Client Profile 附加到我的安装项目?
默认情况下,.NET Framework 4 客户端配置文件(x86 和 x64)的先决条件的安装位置来自 Microsoft 网站,这要求安装期间客户端网络可用。
我只是想知道,有没有一种方法可以让我们无需从供应商的网站下载即可安装 .NET Framework 4 Client Profile(x86 和 x64)
?我认为第二个选项“从与我的应用程序相同的位置下载先决条件”是我应该在这里查看的内容。但我不是100%确定。
另外,我应该将可再发行文件 dotNetFx40_Client_x86_x64.exe
放置在哪个文件夹中?
By default, the install location for prerequisites of .NET Framework 4 Client Profile (x86 and x64)
is from the Microsoft web site, which requires the client network to be available during installation.
I am just wondering, is there a way that we can install .NET Framework 4 Client Profile (x86 and x64)
without downloading from the vendor's web site? I assume the second option, "Download prerequisites from the same location as my application", is something I should be looking at here. But I am not 100% sure.
Also, in which folder should I place the redistributable file, dotNetFx40_Client_x86_x64.exe
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,您可以选择第二个选项“从与我的应用程序相同的位置下载先决条件”来安装 .NET Framework 4 Client Profile,而无需从网站下载。但是您需要为该先决条件设置路径,如下面的链接所示。
参考: Error_7_先决条件的安装位置尚未设置为“组件供应商的网站”且文件无法在磁盘上找到项目“Microsoft .NET Framework 4(x86 和 x64)”中的“DotNetFX40\dotNetFx40LP_Full_x86_x64fr.exe”。
更新:您需要进行以下设置.NET Framework 4.0 客户端配置文件的路径:
Yes, you can select second option "Download prerequisites from the same location as my application" to install .NET Framework 4 Client Profile without downloading it from website. But you need to set path for that prerequisites as it done in below link.
Ref: Error_7_The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX40\dotNetFx40LP_Full_x86_x64fr.exe' in item 'Microsoft .NET Framework 4 (x86 and x64)' can not be located on disk.
UPDATE: You need to set below path for .NET Framework 4.0 Client Profile:
通用安装项目和 ClickOnce 支持 .NetFX 部署。查看 MSDN 页面面向开发人员的 .NET Framework 部署指南。
The common setup project and ClickOnce support .NetFX deployment. Have a look at MSDN page .NET Framework Deployment Guide for Developers.