Cara install .Net Framework 3.5 Offline

Walau .Net framework udah sampai versi .Net Core 2. Kadang kita masih butuh .Net versi lawas untuk satu dan lain hal, seperti game atau ngoding di C# versi jadoel.

Di Windows 10 agak sedikit tricky cara install nya, dan aslinya udah ada di installer windowsnya.

Caranya, mount dulu installer windows, baik dari DVD, Flash Disk, atau mungkin virtual drive. Trus ketik di command prompt:

Dism /online /enable-feature /featurename:NetFX3 /All /Source:D:\sources\sxs /LimitAccess

sesuaikan D:\source  dengan drive installer windowsnya, tunggu beberapa saat:

kalau udah kayak gitu, .net versi lawas nya udah ke install.

kalau ga mau repot, bikit .bat file aja dengan script di bawah ini:

@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

source:

https://winaero.com/blog/offline-install-of-net-framework-3-5-in-windows-10-using-dism/

Also read...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.