Offline Installation of .NET 3.5 in Windows 10

February 3rd 2017 .NET Framework Windows

Windows 10 by default doesn't come with .NET Framework 3.5 installed, however some older applications still require it. There is no standalone .NET Framework 3.5 installation package for Windows 10. Instead, you can install it by enabling the corresponding feature in the Turn Windows features on or off dialog.

.NET Framework 3.5 (includes .NET 2.0 and 3.0) feature

However, you need to be online for this to work, or you'll be greeted with the following error message:

The following feature couldn't be installed:

.NET Framework 3.5 (includes .NET 2.0 and 3.0)

Error code: 0x800F081F

In my case, the same error happened although the machine was connected to internet just fine. It was probably related to the problem that for some reason Windows Update service couldn't connect to update servers either:

We couldn't check for updates, because you aren't connected to the internet. Make sure you have a cellular data or Wi-Fi connection and try again.

Since I couldn't resolve the issue even by following the troubleshooting guide, I resorted to installing .NET framework in offline mode to at least solve my immediate issue.

To do that, you'll need a Windows 10 DVD or ISO image. If you installed Windows 10 as an upgrade for Windows 7 or 8, there's a high probability you don't have one at hand. Fortunately, there's a simple way to download a copy using the media creation tool. Just make sure, you select the option to Create installation media for another PC and choose ISO file as your preferred media.

Once the file downloads, you can simply mount it by double clicking it. Now open an admin command prompt and use DISM.exe to install .NET Framework 3.5 (replace D with the drive letter that your Windows 10 ISO image was mounted to):

DISM.EXE /Online /Add-Package /PackagePath:"D:\sources\sxs\Microsoft-Windows-NetFx3-OnDemand-Package.cab"

Once the command completes, you can check that .NET Framework 3.5 was successfully installed by reopening the Turn Windows features on or off dialog.

Get notified when a new blog post is published (usually every Friday):

Copyright
Creative Commons License