Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Both files do the same thing, but one is for installing with an internet connection and the other is for installing offline locally from the installation media, useful when your internet sucks or your machine has to be with no internet at all.

These files were generated with ChatGPT, so credits go to it.
  • Loading branch information
SH4D0WBROK3R authored Jul 2, 2023
0 parents commit b202507
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Install .NET Framework 3.5 locally no internet.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@echo off

setlocal enabledelayedexpansion

echo Interactive .NET Framework 3.5 Offline Enablement
echo.

set /p "source_path=Enter the path to the Windows installation media (e.g., D:\): "
echo.

echo Enabling .NET Framework 3.5...
dism /online /enable-feature /featurename:NetFx3 /all /Source:"%source_path%" /LimitAccess

if %errorlevel% equ 0 (
echo.
echo .NET Framework 3.5 has been successfully enabled.
) else (
echo.
echo An error occurred while enabling .NET Framework 3.5.
)

echo.
pause
13 changes: 13 additions & 0 deletions Install .NET Framework 3.5.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@echo off

echo Installing .NET Framework 3.5...
echo.

REM Enable .NET Framework 3.5 installation from the internet
dism /online /enable-feature /featurename:NetFx3 /all /LimitAccess /source:"https://go.microsoft.com/fwlink/?LinkId=2085159" /norestart

echo.
echo .NET Framework 3.5 installation completed.
echo.
echo *** Please restart your computer to apply the changes. ***
pause

0 comments on commit b202507

Please sign in to comment.