Combining only part of the prerequisites with ClickOnce

Can I customize a ClickOnce installation to require .Net Framework and VSTO, but only include VSTO binaries and load .Net Framework if necessary?

Including VSTO in the package is not a problem, but the 350MB.Net Framework is what I would do away with if possible. (The Dynamics CRM SDK depends on some features of the non-client profile, so I need a full one.)

In most cases, users have a .Net Framework, so in these cases you can leave the .Net Framework away. Is it possible for the published setting to load the framework if it is not on the user's computer.

“Download prerequisites from the component vendor’s website” seems to refuse the local VSTO package, while “Prerequisites for downloading from the same location as my application” will require the .Net Framework in the deployment kit.

+3
source share
2 answers

You need a VSTO Runtime, there is no way around this, it cannot be deployed locally. As for the PIA, you also need those that are not needed for .NET 4. If you use .NET 4, it will automatically insert the hte PIA bit that you need.

.NET, 350 , " - ", .

, , , Microsoft .NET 3.5 Windows,% , , 90%. .

+1

, , , .NET 4.0, NoPIA .

+1

Source: https://habr.com/ru/post/1760264/


All Articles