-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
0 parents
commit b202507
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |