From 9adcf6acca2abdd568485cbf1a757df5c638de3b Mon Sep 17 00:00:00 2001 From: Guofang Date: Fri, 16 Oct 2026 12:59:31 +0800 Subject: [PATCH] Add Git for Windows installer batch file for the Windows 11 VM Co-Authored-By: Claude Sonnet 5.5 --- seediso/windows11/Install-Git.bat | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 seediso/windows11/Install-Git.bat diff --git a/seediso/windows11/Install-Git.bat b/seediso/windows11/Install-Git.bat new file mode 100644 index 0000000..97e70a2 --- /dev/null +++ b/seediso/windows11/Install-Git.bat @@ -0,0 +1,32 @@ +@echo off +setlocal +title Install Git for Windows + +fltmc >nul 2>&1 +if errorlevel 1 ( + echo Please right-click this file and choose "Run as administrator". + pause + exit /b 1 +) + +where winget.exe >nul 2>&1 +if errorlevel 1 ( + echo winget was not found. + pause + exit /b 1 +) + +echo Installing Git for Windows with winget... +winget install --id Git.Git --exact --source winget ^ + --accept-source-agreements --accept-package-agreements +set "RC=%ERRORLEVEL%" + +if "%RC%"=="0" ( + echo Done. Open a new terminal to pick up the updated PATH. +) else if "%RC%"=="3010" ( + echo Done. A reboot is required to finish the installation. +) else ( + echo winget exited with code %RC%. +) +pause +exit /b %RC%