.NET Framework 3.5 Standalone Installer for Windows 10

Discussion in 'Windows 10' started by abbodi1406, Aug 7, 2015.

  1. ahmed3110c

    ahmed3110c MDL Novice

    Apr 12, 2018
    3
    0
    0
    #141 ahmed3110c, Apr 3, 2026
    Last edited: Apr 11, 2026
    I tested the new "dotNetFx35_WX_10_x86_x64_u" install package on 25H2
    It worked only after changing this line in the cmd file
    I hope this will be fixed in the next release
    @abbodi1406
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,947
    102,218
    340
    Updated with the fix, thanks
     
  3. ahmed3110c

    ahmed3110c MDL Novice

    Apr 12, 2018
    3
    0
    0
    Much appreciated :D
     
  4. longbatom

    longbatom MDL Novice

    Oct 1, 2009
    13
    3
    0
    Hi @abbodi1406

    Could you please add Windows Server 2022 (build 20348) into the package? Thank you very much~
     
  5. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,966
    3,254
    120
    #145 pm67310, Oct 23, 2026
    Last edited: Oct 24, 2026
    Nb I am the author of the script

    For windows server ? Use dism .... with net framework source from iso/usb of server 2022

    CMD script to install .NET Framework 3.5 on Windows Server 2022 using a mounted ISO, without downloading files from Windows Update.

    Save code as netfx3.5.bat script works for any server 2008 r2 up to 2025 and windows 8 up to 11

    Nb replace ISO=D with drive letter like D or others

    If drive are E become ISO=E
    Code:
    @echo off
    setlocal EnableExtensions
    
    title Install .NET Framework 3.5 - Windows Server 2022
    
    :: Check for administrator privileges
    net session >nul 2>&1
    if not "%errorlevel%"=="0" (
        echo ERROR: Please run this script as Administrator.
        pause
        exit /b 1
    )
    
    :: Drive letter of the mounted Windows Server ISO
    set "ISO=D:"
    
    :: Check whether the installation source exists
    if not exist "%ISO%\sources\sxs\" (
        echo ERROR: Source folder "%ISO%\sources\sxs" not found.
        echo Please update the ISO variable in this script.
        pause
        exit /b 2
    )
    
    echo.
    echo Installing .NET Framework 3.5...
    echo Source: %ISO%\sources\sxs
    echo.
    
    DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /Source:"%ISO%\sources\sxs" /LimitAccess
    
    if errorlevel 1 (
        echo.
        echo ERROR: Installation failed. DISM exit code: %errorlevel%
        pause
        exit /b 3
    )
    
    echo.
    echo Installation completed successfully.
    echo.
    echo Verifying feature status...
    
    DISM /Online /Get-FeatureInfo /FeatureName:NetFx3
    
    pause
    exit /b 0
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    56,339
    132,314
    450
    Why don't you leave the answering of specific questions to the starter and dev of the thread, the question was a request to add something, not getting a script who knows from where that is nicked..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,966
    3,254
    120
    I am the author of the script
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. erpsterm35

    erpsterm35 MDL Guru

    May 27, 2013
    2,436
    2,860
    90
    and you are telling us this now instead of back then? what took you so long?
     
  9. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,966
    3,254
    120
    I don't think that's necessary, especially since the script is easy to understand.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    18,947
    102,218
    340