如何以编程方式打开.NET 2.0。它是否正确?是否正确、方式、NET

2023-09-05 04:17:18 作者:疲惫放大了寂寞

我试图以编程方式打开(安装)在。NET 2.0框架的 Windows功能的。 (B / C的Windows 7及以上不会让你的.NET手动安装和我的客户是永远不会能够启用从控制面板)。 Windows 7包含.NET 2.0但Windows 8不会(至少在我的测试)

I'm trying to programatically turn on (install) the .Net 2.0 Framework Windows feature. (B/c Windows 7 and above doesn't let you install .net manually and my customers are never going to be able to enable that from the control panel.). Windows 7 includes .net 2.0 but Windows 8 does not (at least in my testing)

我想答案是:

dism.exe /online /enable-feature /featurename:NetFX3

基于很多帖子的包括这一项。

是安装.NET 3.0框架[最]正确的方法是什么? 有没有办法安装的只是的的.NET 2.0 框架? Is the [most] correct way to install the .net 3.0 framework? Is there any way to install just the .net 2.0 framework?

我已经试过;

使用dism.exe的/获取功能,让它可以开启所有功能。唯一的.NET上市是netfx3

推荐答案

您也可以触发的 Windows功能的需求用户的experiance 直接小应用程序,而无需启动一个.NET可执行程序或安装程序。这仅支持仅适用于Windows 8(每这张图)

You can also trigger the Windows Features on Demand User Experiance applet directly without having to start a .Net executable or the setup. This is supported only only Windows 8 (per this chart)

fondue.exe /enable-feature:NetFx3