简体   繁体   English

如何将.NET Framework 4.0 Client Profile附加到我的安装项目?

[英]How to attach .NET Framework 4.0 Client Profile to my setup project?

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. 默认情况下, .NET Framework 4 Client Profile (x86 and x64)先决条件的安装位置来自Microsoft网站,该网站要求客户端网络在安装期间可用。

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? 我只是想知道,有没有一种方法可以安装.NET Framework 4 Client Profile (x86 and x64)而无需从供应商的网站下载? 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 ? 另外,我应该在哪个文件夹中放置可再发行文件dotNetFx40_Client_x86_x64.exe

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. 是的,您可以选择第二个选项“从与我的应用程序相同的位置下载先决条件”来安装.NET Framework 4 Client Profile,而无需从网站下载。 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. 参考: Error_7_先决条件的安装位置尚未设置为“组件供应商的网站”,并且“Microsoft .NET Framework 4(x86和x64)”项中的文件“DotNetFX40 \\ dotNetFx40LP_Full_x86_x64fr.exe”无法位于磁盘上。

UPDATE: You need to set below path for .NET Framework 4.0 Client Profile: 更新:您需要在.NET Framework 4.0 Client Profile下设置以下路径:

C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0A\\Bootstrapper\\Packages\\DotNetFX40Client\\dotNetFx40_Client_x86_x64.exe C:\\ Program Files \\ Microsoft SDKs \\ Windows \\ v7.0A \\ Bootstrapper \\ Packages \\ DotNetFX40Client \\ dotNetFx40_Client_x86_x64.exe

The common setup project and ClickOnce support .NetFX deployment. 常见的安装项目和ClickOnce支持.NetFX部署。 Have a look at MSDN page .NET Framework Deployment Guide for Developers . 查看MSDN页面.NET Framework开发人员部署指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 .NET Framework 4.0客户端配置文件与.NET Framework 4.0 - .NET Framework 4.0 Client Profile vs .NET Framework 4.0 .NET Framework兼容性:3.5 SP1和4.0客户端配置文件 - .NET framework compatibility: 3.5 SP1 & 4.0 Client Profile Microsoft .NET 4.0 完整框架和客户端配置文件之间的差异 - Differences between Microsoft .NET 4.0 full Framework and Client Profile Visual Studio 2010和.NET 4.0客户端配置文件 - Visual Studio 2010 and .NET 4.0 Client Profile .NET 4.0完整包含客户端配置文件? - .NET 4.0 Full include Client Profile? 即使项目针对3.5 Client Profile,安装程序也会安装.NET framework 4 Client Profile - Installer installing .NET framework 4 Client Profile even though project targets 3.5 Client Profile .NET Framework 4客户端配置文件与.NET Framework 3.5客户端配置文件 - .NET Framework 4 Client Profile vs .NET Framework 3.5 Client Profile 是否可以从.NET 4.0客户端配置文件项目中引用Azure SDK 1.1 Microsoft.WindowsAzure。*程序集? - Is it possible to reference the Azure SDK 1.1 Microsoft.WindowsAzure.* assemblies from a .NET 4.0 Client Profile project? .NET Framework 4 客户端配置文件是否安全? - Is .NET Framework 4 Client profile secure? 混合.NET程序集(.NET 3.5和.NET 4.0客户端配置文件) - Mixing .NET assemblies (.NET 3.5 and .NET 4.0 Client profile)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM