捆绑的prerequisites使用ClickOnce的一部分prerequisites、ClickOnce

2023-09-05 02:10:43 作者:蜡笔没有小新

是否有可能配置的ClickOnce安装,这样它需要.NET Framework和VSTO,但仅包括VSTO二进制文件和下载.Net框架,如果有必要吗?

Is it possible to configure the ClickOnce installation so that it requires .Net Framework and VSTO but includes only the VSTO binaries and downloads .Net Framework if necessary?

包括在包的VSTO不是太大的问题,但350MB的.Net Framework是什么我想弄死如果可能的话。 (动态CRM SDK依赖于一些非客户端配置文件功能,因此我需要完整的。)

Including the VSTO in the package isn't too much of a problem but the 350MB .Net Framework is something I'd do away with if possible. (Dynamics CRM SDK depends on some non-client profile features so I need the full one.)

在大多数情况下,用户必须安装所以在这些情况下,这是可以离开.Net框架客场.Net框架。难道还要让发布的设置下载的框架,如果它缺少用户的计算机上。

In most cases the users have the .Net Framework installed so in these cases it's okay to leave the .Net Framework away. Is it still possible to make the published setup download the framework if it's missing on the user computer.

从组件供应商的网站下载prerequisites似乎放弃了当地的VSTO包,同时将需要.Net框架中部署捆绑了从同一地点为我的应用程序下载prerequisites。

"Download prerequisites from the component vendor's web site" seems to forgo the local VSTO package while the "Download prerequisites from the same location as my application" would require the .Net Framework in the deployment bundle.

推荐答案

您需要的VSTO运行时,还有周围没有办法,就无法在本地部署。对于PIA的,你需要的,除非你是如果你使用.NET 4的目标.NET 4,这将嵌入兴田PIA的,你需要的比特,自动。

You need the VSTO Runtime, there's no way around that, it can not be deployed locally. As for the PIAs, you need those as well, unless you are targeting .NET 4. If you use .NET 4, it will embed the bits of hte PIAs that you need, automatically.

对于.NET,不下载350MB的软件包,如果你选择'从供应商的网站上安装,但它的增量只是它所需要的位的安装。

As for .NET, it doesn't download the 350MB package, if you choose 'install from vendor's website', it does an incremental install of just the bits it needs.

顺便说一句,我们在客户跟踪这一点,在微软开始推出.NET 3.5作为一个重要的Windows更新,安装了它谁是我们的客户的%上升到90%。所以在大多数情况下,人们已经安装它。

By the way, we track this in our customers, and after Microsoft started pushing .NET 3.5 as a critical Windows Update, the % of our customers who have it installed went up to 90%. So in most cases, people will already have it installed.