.NET Framework 2/3 Installation on Windows 8 Release Preview

Trouble getting applications developed using .NET Framework 2 or 3 to install on Windows 8 Release Preview? “Error message 0x800f0906:  “Windows couldn’t connect to the Internet to download necessary files. Make sure that you’re connected to the Internet, and click Retry to try again.”?  Me too…

Windows 8 features a new “install on demand” model for optional OS features.  In Win7 and Vista, all optional components were cached on the hard drive for later install.  With Win8, all optional components are on the DVD, and available at install time.  However, if you want to enable features later, they will be downloaded from “the cloud” via Windows Update.  One problem… it does not work with WSUS (at least, not yet?).

There is a page on this on MSDN:

Their suggestion? “Please ask your administrator to enable the policy to use Windows Update instead of WSUS.”  Um… I don’t think so.

Instead, insert the Win 8 DVD (or mount the ISO, using the native Explorer right-click “mount” option… THANK YOU MICROSOFT!), then run the following command:

Dism /online /enable-feature /featurename:NetFx3 /All /Source:x:\sources\sxs /LimitAccess

(where you use your DVD drive letter in place of “X:”)

Now I will need to look into enabling .NET framework 2-3.5 using unattend.xml. I don’t want everyone at UVM to have to do this, too.