Offline install.NET 3.5 with Windows 10

net

I have a work computer running windows 10, and with the way win10 does everything for you under the hood I would like clarification/help on the following because it seems like I am at a point of this cannot be done and I find it hard to believe.

  • When installing 3rd party software and drivers for test equipment, it prompts saying .NET Framework 3.5 is required cannot continue- retry this install after you have installed .NET 3.5. And in win10 it conveniently pops up saying do you want to download from Microsoft.
  • The location of my win10 pc does not have internet connection and I am for the most part prohibited from an internet connection. I thought an offline install should be possible but…
  • is this correct: https://dotnet.microsoft.com/download/dotnet-framework/net35-sp1 which provides dotnetfx35.exe @ 231MB all that is needed?
  • In running this dotnetfx35.exe it still prompts to "Download & Install".

How does one do an offline install of .NET Framework 3.5?

from https://docs.microsoft.com/en-us/dotnet/framework/install/dotnet-35-windows-10

If you're not relying on Windows Update as the source for installing the .NET Framework 3.5, you must ensure to strictly use sources from the same corresponding Windows operating system version. Using a source path that doesn't correspond to the same version of Windows won't prevent a mismatched version of .NET Framework 3.5 from being installed. However, this will cause the system to be in an unsupported and unserviceable state.

that sounds bad, like I should not be doing an "offline" install?

Best Answer

If you have the install media, you can use powershell to install offline using the Install-WindowsFeature commandlet. Mount the .iso or insert the disc and then open powershell as an admin and run:

Install-WindowsFeature Net-Framework-Core -source d:\sources\sxs

where d: is the drive letter for the install media.

This microsoft article documents the method, though it is using a network share as the source instead of the install media.

Edit: An alternative method if Install-WindowsFeature is unavailable is Enable-WindowsOptionalFeature. Use the following syntax:

Enable-WindowsOptionalFeature -FeatureName "NetFx3" -Source d:\sources\sxs