Picture out the following scenario:
You just deployed a new Windows Server 2012 R2 machine in order to test SharePoint 2013, this machine does not need internet access since is just for demonstration porpuses.
Many applications developed in old OS versions require the .NET framework v3.5. These applications will not run unless you’ll install the required version. When you try to run any such applications, Windows Server will prompt you to download and install .NET framework 3.5 from the Internet and guess what, we don’t have the internet access.
During the installation of one of the dependencies, the following message pops up.
You’ve probably thought about it, ” how am I supposed to get .NET 3.5 without the internet access? don’t stress out, let me show you how easy is to install .NET 3.5 using the installation ISO or DVD.
First of all, map the ISO or insert the installation DVD into the machine.
Open up ‘This PC’ note the drive letter of the installation media you have inserted. In this case, the DVD is D:
Run the command prompt as Administrator
Run the following command
Dism /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess
Keep in mind your DVD could have another letter depending on how many devices you have connected, if that is your case then just replace the letter D with the one that corresponds o you DVD.
The .NET installation will start
Once completed you’ll be able to continue with your application installation, in my case Share Point 2013,
Here is a little gift for you guys, if you think that this process is too complicated, well go ahead and download the following Batch file that will save your time and will detect the inserted installation media automatically.
Here is the content of the Batch file:
@echo off Title .NET Framework 3.5 Offline Installer for %%I in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist "%%I:\\sources\install.wim" set setupdrv=%%I if defined setupdrv ( echo Found drive %setupdrv% echo Installing .NET Framework 3.5... Dism /online /enable-feature /featurename:NetFX3 /All /Source:%setupdrv%:\sources\sxs /LimitAccess echo. echo .NET Framework 3.5 should be installed echo. ) else ( echo No installation media found! echo Insert DVD or USB flash drive and run this file once again. echo. ) pause
Download the file, extract to your Desktop, right click run it as administrator. The file will install .NET Framework 3.5 automatically after finding the drive letter of your Windows Server 2012 R2 installation media