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)
I think the answer is:
dism.exe /online /enable-feature /featurename:NetFX3
based on many posts including this one.
- Is the [most] correct way to install the .net 3.0 framework?
- Is there any way to install just the .net 2.0 framework?
What I’ve tried;
- using the /get features of dism.exe to get all features it can turn on. The only .net listed was netfx3
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)