How to "install" / "Enable" .Net 3.5 SP1 under Windows 7?

I am writing a deployment application that should install all the necessary components in front of the main load module. But I have a problem installing dotnet 3.5 SP1 on Windows 7. Windows 7 includes dotnet 3.5 SP1, but in some cases this component is disabled by the user / manufacturer / ... The user can enable it from the control panel, but I can not ask him to do it . How can I enable it from my software, I have to exclude all manual configuration from the deployment process.

+4
source share
2 answers

I found a way myself, through ocsetup.exe.

Last command:

%systemroot%\system32\ocsetup.exe NetFx3 

Update:

ocsetup is not available in Winodws 8+, you must use your mind to get the same result. For Winodws 8+, you should use the following command:

 DISM /Online /Enable-Feature /FeatureName:NetFx3 /All 
+4
source

As a Win7 user who had endless problems with .NET 3.5, and would prefer that he stay disconnected because he is corrupted, it doesn’t work anyway, and once in this state is not fixed in Win7 without a new, new installation of Windows, I want the programmers to simply NOT require its installation .. NET 4.1+ is compatible with versions 3.5.1 and if you write your code correctly, so that you are looking for functionality 3.5, not 3.5, it works, and if you encoded it correctly, you could just install 4.2 instead of 3.5 and this will work, but I have a small handful of programs, including all of your own MS mail applications (such as outlook), which simply insist on using .NET 3.5, and you know what? None of them work on my system.

I would also like to add that if I installed some piece of software that turned Windows features on or off on my system without first asking permission, you would receive a hate letter from me and that software would be disconnected from my as fast as I could remove it and delete it.

0
source

All Articles