.net – Force installation of .Net Framework 3.5 under Windows 8

installationnetwindows 8

We have an application that runs under .Net 3.5, and customers (it's freely available on our website) can download it.

In the installer, we check if the registry key "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5" exists, and if it doesn't, we install "DotNetFx35ClientSetup.exe /qb /norestart".

Under Windows 8, this installer prompts the user to know if he REALLY wants to install this feature that is needed by the software he's trying to run (you, know, just in case he wants to install software just to use some disk space) :

.net 3.5 prompt

Obviously, as any of you who has worked with end user knows, when they see a popup, many of them reflex-click on anything that looks like "no" or "cancel", so the software doesn't work and they complain.

Do you know of any way to force the installation of .Net 3.5 under Windows 8, without prompting the user for this ?

Best Answer

You can't use the DotNetFx35ClientSetup.exe in Windows 8. In Windows 8 run this command to install .Net 3.5

DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs

D:\ is here the DVD drive with the Windows 8 DVD/ mounted ISO.

Related Topic