Windows - Install .NET using command line
Sometimes you need to install .NET 3.5 or 4 using the graphical interface and gets an error.
For .NET 3 you can use this command, do not forget to change the path for your media folder.
Dism /online /enable-feature /featurename:NetFx3 /All /Source:"f:\sources\sxs" /LimitAccess
This is example to install .NET 4 online.
DISM.exe /Online /enable-feature /featurename:NetFx4 /all
Just change the parameters to install .NET 3.5 online or .NET 4 using media.
For .NET 3 you can use this command, do not forget to change the path for your media folder.
Dism /online /enable-feature /featurename:NetFx3 /All /Source:"f:\sources\sxs" /LimitAccess
This is example to install .NET 4 online.
DISM.exe /Online /enable-feature /featurename:NetFx4 /all
Just change the parameters to install .NET 3.5 online or .NET 4 using media.
Comments
Post a Comment