From 583dc6955a89cbc316e3e3c0d0149206e8dd0862 Mon Sep 17 00:00:00 2001 From: Guofang Date: Fri, 16 Oct 2026 13:03:07 +0800 Subject: [PATCH] Add Qt 6 and NSIS installer batch files for the Windows 11 VM Co-Authored-By: Claude Sonnet 5.5 --- seediso/windows11/Install-NSIS.bat | 32 +++++++++++++++++++++++++++++ seediso/windows11/Install-Qt6.bat | 33 ++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 seediso/windows11/Install-NSIS.bat create mode 100644 seediso/windows11/Install-Qt6.bat diff --git a/seediso/windows11/Install-NSIS.bat b/seediso/windows11/Install-NSIS.bat new file mode 100644 index 0000000..2b95856 --- /dev/null +++ b/seediso/windows11/Install-NSIS.bat @@ -0,0 +1,32 @@ +@echo off +setlocal +title Install NSIS + +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 NSIS with winget... +winget install --id NSIS.NSIS --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% diff --git a/seediso/windows11/Install-Qt6.bat b/seediso/windows11/Install-Qt6.bat new file mode 100644 index 0000000..61a25a9 --- /dev/null +++ b/seediso/windows11/Install-Qt6.bat @@ -0,0 +1,33 @@ +@echo off +setlocal +title Install Qt 6 + +rem Qt is not available from winget, so this uses the standalone aqtinstall (aqt) to fetch it. +rem The msvc2022_64 build needs the MSVC Build Tools (see Install-MSVC2022-BuildTools.bat). + +set "QT_VERSION=6.8.3" +set "QT_ARCH=win64_msvc2022_64" +set "QT_ROOT=C:\Qt" +set "AQT=%TEMP%\aqt.exe" + +echo Downloading aqtinstall... +curl.exe -L --fail -o "%AQT%" https://github.com/miurahr/aqtinstall/releases/download/v3.3.0/aqt_x64.exe +if errorlevel 1 ( + echo Download failed. + pause + exit /b 1 +) + +echo Installing Qt %QT_VERSION% (%QT_ARCH%) to %QT_ROOT% ... +"%AQT%" install-qt windows desktop %QT_VERSION% %QT_ARCH% --outputdir "%QT_ROOT%" +set "RC=%ERRORLEVEL%" + +del "%AQT%" >nul 2>&1 + +if "%RC%"=="0" ( + echo Done. Use -DCMAKE_PREFIX_PATH=%QT_ROOT%\%QT_VERSION%\msvc2022_64 with CMake. +) else ( + echo aqt exited with code %RC%. +) +pause +exit /b %RC%