Thursday, September 18, 2014

Windows 8.1 dotnet 3.5 Install

Ever had to install dotnet 3.5 or below on a windows 8 machine or server 2012 machine? Kind of difficult sometimes if your organization uses WSUS and doesn't have the proper files/updates approved. The install will just kick out and say it can't download the required files. You then have to start googling for ways around this which will bring you to this command

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

Where you can substitute the source for your cdrom drive and your windows 8 disk are located. Unless of course you have either of these two windows updates (KB2966826 or KB2966828) installed which will only result in the command erring out saying it can't find the source files.

Uninstalled those updates and reboot and you can run the above command again from an administrative command prompt. I ended up copying the sources\sxs folder from my disk to a usb drive because it went about 20 times faster than the cdrom.

I'm not sure why I had a security update for dotnet 3.5 installed before I actually had 3.5 installed but MS threw it in there for some reason.

Thanks to Stephen Tomback in this thread for figuring this out.