This post will show you how to install .NET Framework 3.5 in Windows 11 offline from an installation media with DISM. By default, Windows 11 only includes .NET Framework 4.8. However, there are still a huge number of useful apps built against the .NET framework v3.5.
Such apps were created for Windows 7 and even for Windows Vista, where version 3.5 was available out of the box. Once you try to run such an app, you will see a prompt to install the missing component from the Internet.
This method has a number of disadvantages. First of all, it is your Internet traffic, and it can be limited. Secondly, the download process is not reliable and can fail. If your Internet connection is unstable, it turns into hell. Finally, you can simply work offline.
That's why it is important to know how to offline install .NET Framework 3.5 in Windows 11. You will only need an installation media of Windows 11, such as ISO file, bootable flash drive, or its DVD disk, so no Internet connection will be required.
To offline install .NET Framework 3.5 in Windows 11, do the following.
Install .NET Framework 3.5 in Windows 11 Offline
- Double click the Windows 11 ISO image, or plug your bootable flash drive or insert DVD disk with Windows 11.
- Open File Explorer (press Win + E) and navigate to the This PC folder. Note the drive letter of your installation media have inserted. My drive is
G:
. - Now open Windows Terminal as Administrator by selecting Windows Terminal (Admin) from the Start button's right-click menu.
- Switch Windows Terminal to the Command Prompt profile; press Ctrl + Shift + 2 or the arrow menu button.
- In the command prompt tab, type the following command:
Dism /online /enable-feature /featurename:NetFX3 /All /Source:G:\sources\sxs /LimitAccess
. Replace G: with your Windows 11 setup media's drive letter and hit Enter.
You are good to go! This will install .NET framework 3.5 in Windows 11 without using any Internet connection.
Now you can run any older apps coded in C#, VB.NET, and C++ that are built around older versions of the software platform. Note that .NET Framework 3.5 also includes .NET 2.0, which is also the runtime version.
Using a batch file
To save your time, I have created an easy-to-use simple batch file which automates the above method. It will automatically find your Windows 11 installation DVD disk or USB drive.
To install .NET Framework 3.5 on Windows 11 with a batch file, do the following.
- Download this ZIP file.
- Extract the CMD file it from the ZIP archive to the Desktop.
- Connect or insert your Windows 11 installation disk.
- Now, right-click the cmd file and select Run as administrator from the menu.
- The cmd file will auto-detect Windows 11 setup disk and instantly add .NET Framework 3.5 automatically.
You are done. The file is compatible with both install.wim
and install.esd
- based setup media types of Windows 11, so you can use any! The official one comes with install.esd
by default.
Batch file contents
The contents of the batch file are listed below.
@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\boot.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
Tip: You can easily find what versions of the .NET framework software you have installed using the following guide. It will give you ideas what apps will work on your computer without installing additional system components.
Finally, if you don't have the installation media for Windows 11, and also have no troubles with the Internet, you can give the online .NET Framework installation a try. Since we have already mentioned it in the post, let's review it for the sake of completeness.
Install .NET Framework 3.5 with Optional Features
- Press Win + R to open the Run box and type
optionalfeatures
. - In the Windows Features window, select the .NET Framework 3.5 (includes .NET 2.0 and 3.0) entry.
- Enable it by placing a check box and click on the OK button.
- Wait for Windows 11 to download and install the components.
You are done. So, as you can see, it is an optional component of Windows, so you can manage it like any other optional feature. Microsoft also recommends using this method by default.
That's it.
Support us
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
Add option to iso context menu:
@echo off
explorer “%1”
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\boot.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
Copy .bat file to folder C:\Windows\System32\ShellExt
And registry item to iso context menu:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Windows.IsoFile\shell\Install DotnNet3]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Windows.IsoFile\shell\Install DotnNet3\command]
@=”\”C:\\Windows\\System32\\ShellExt\\Install .NET Framework 3.5 via DISM.cmd\” \”%1\””
batch works wonderful THX
thanks for the info
i think you are taking a long root, no use to open terminal window. u just have to open the cmd with admin elevation then copy the below command and change the path for OS then hit enter. Its similar to windows 10
Dism /online /enable-feature /featurename:NetFX3 /All /Source:G:\sources\sxs /LimitAccess.
Great Content. Thanks for sharing
works great!
Does not work !!! I’m sick and tired of MS stupidness !!! Win is getting like linux in the past. Have reinstall Win11 4x time jut this year due various not solved problems with it. And it seams it will be 5th time due crap donnet 3.5 install problems. For all of u having this kind of problem the only solution is to Find Modified aka Hacked Win11 ISO online in which god damn dotnet 3.5 installs and being enabled by default upon install procedure coz everything else just don’t work ! Microsoft getting unusable for serious work more and more. Why u think people modify and hack OS so much ? Coz it is problematic and MS have user un-friendly ideas and OS is getting worse and worse ! We would be better of if Microsoft would not even exist !