Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm writing a deployment application that should install all required components before load main module. But I has an issue with dotnet 3.5 SP1 installation on Windows 7. Windows 7 incorporate the dotnet 3.5 SP1, but some times that component disabled by user/manufacturer/... User can enable it from the Control Panel, but I can't ask him to do that. How can I enable it from my software, I should exclude a all manual configuration from the deployment process.

like image 815
Viacheslav Smityukh Avatar asked Oct 31 '11 09:10

Viacheslav Smityukh


1 Answers

I found a way by myself, through ocsetup.exe.

The final command is:

%systemroot%\system32\ocsetup.exe NetFx3

Update:

ocsetup is not available at Winodws 8+, you should use dism to achive the same result. For Winodws 8+ you have to use the following command:

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
like image 146
Viacheslav Smityukh Avatar answered Sep 28 '22 05:09

Viacheslav Smityukh