fix: Correct identifier for LTSC/IoT editions (#2109)

This commit is contained in:
Kroese
2026-08-08 04:42:37 +02:00
committed by GitHub
parent 4ae04facfa
commit 2170bc0f3c
2 changed files with 11 additions and 16 deletions
+8 -16
View File
@@ -50,49 +50,41 @@ parseVersion() {
"11e" | "win11e" | "windows11e" | "windows 11e" ) "11e" | "win11e" | "windows11e" | "windows 11e" )
VERSION="win11x64-enterprise-eval" ;; VERSION="win11x64-enterprise-eval" ;;
"11l" | "11ltsc" | "ltsc11" | "win11l" | "win11-ltsc" | "win11x64-ltsc" ) "11l" | "11ltsc" | "ltsc11" | "win11l" | "win11-ltsc" | "win11x64-ltsc" )
VERSION="win11x64-enterprise-ltsc-eval" VERSION="win11x64-enterprise-ltsc-eval" ;;
DETECTED="win11x64-ltsc" ;;
"11i" | "11iot" | "iot11" | "win11i" | "win11-iot" | "win11x64-iot" ) "11i" | "11iot" | "iot11" | "win11i" | "win11-iot" | "win11x64-iot" )
VERSION="win11x64-enterprise-iot-eval" VERSION="win11x64-enterprise-iot-eval" ;;
DETECTED="win11x64-iot" ;;
"10" | "10p" | "win10" | "pro10" | "win10p" | "windows10" | "windows 10" ) "10" | "10p" | "win10" | "pro10" | "win10p" | "windows10" | "windows 10" )
VERSION="win10x64" ;; VERSION="win10x64" ;;
"10e" | "win10e" | "windows10e" | "windows 10e" ) "10e" | "win10e" | "windows10e" | "windows 10e" )
VERSION="win10x64-enterprise-eval" ;; VERSION="win10x64-enterprise-eval" ;;
"10l" | "10ltsc" | "ltsc10" | "win10l" | "win10-ltsc" | "win10x64-ltsc" ) "10l" | "10ltsc" | "ltsc10" | "win10l" | "win10-ltsc" | "win10x64-ltsc" )
VERSION="win10x64-enterprise-ltsc-eval" VERSION="win10x64-enterprise-ltsc-eval" ;;
DETECTED="win10x64-ltsc" ;;
"10i" | "10iot" | "iot10" | "win10i" | "win10-iot" | "win10x64-iot" ) "10i" | "10iot" | "iot10" | "win10i" | "win10-iot" | "win10x64-iot" )
VERSION="win10x64-enterprise-iot-eval" VERSION="win10x64-enterprise-iot-eval" ;;
DETECTED="win10x64-iot" ;;
"8" | "8p" | "81" | "81p" | "pro8" | "8.1" | "win8" | "win8p" | "win81" | "win81p" | "windows 8" ) "8" | "8p" | "81" | "81p" | "pro8" | "8.1" | "win8" | "win8p" | "win81" | "win81p" | "windows 8" )
VERSION="win81x64" ;; VERSION="win81x64" ;;
"8e" | "81e" | "8.1e" | "win8e" | "win81e" | "windows 8e" ) "8e" | "81e" | "8.1e" | "win8e" | "win81e" | "windows 8e" )
VERSION="win81x64-enterprise-eval" ;; VERSION="win81x64-enterprise-eval" ;;
"7" | "win7" | "windows7" | "windows 7" ) "7" | "win7" | "windows7" | "windows 7" )
VERSION="win7x64" VERSION="win7x64" ;;
DETECTED="win7x64-ultimate" ;;
"7u" | "win7u" | "windows7u" | "windows 7u" ) "7u" | "win7u" | "windows7u" | "windows 7u" )
VERSION="win7x64-ultimate" ;; VERSION="win7x64-ultimate" ;;
"7e" | "win7e" | "windows7e" | "windows 7e" ) "7e" | "win7e" | "windows7e" | "windows 7e" )
VERSION="win7x64-enterprise" ;; VERSION="win7x64-enterprise" ;;
"7x86" | "win7x86" | "win732" | "windows7x86" ) "7x86" | "win7x86" | "win732" | "windows7x86" )
VERSION="win7x86" VERSION="win7x86" ;;
DETECTED="win7x86-ultimate" ;;
"7ux86" | "7u32" | "win7x86-ultimate" ) "7ux86" | "7u32" | "win7x86-ultimate" )
VERSION="win7x86-ultimate" ;; VERSION="win7x86-ultimate" ;;
"7ex86" | "7e32" | "win7x86-enterprise" ) "7ex86" | "7e32" | "win7x86-enterprise" )
VERSION="win7x86-enterprise" ;; VERSION="win7x86-enterprise" ;;
"vista" | "vs" | "6" | "winvista" | "windowsvista" | "windows vista" ) "vista" | "vs" | "6" | "winvista" | "windowsvista" | "windows vista" )
VERSION="winvistax64" VERSION="winvistax64" ;;
DETECTED="winvistax64-ultimate" ;;
"vistu" | "vu" | "6u" | "winvistu" ) "vistu" | "vu" | "6u" | "winvistu" )
VERSION="winvistax64-ultimate" ;; VERSION="winvistax64-ultimate" ;;
"viste" | "ve" | "6e" | "winviste" ) "viste" | "ve" | "6e" | "winviste" )
VERSION="winvistax64-enterprise" ;; VERSION="winvistax64-enterprise" ;;
"vistax86" | "vista32" | "6x86" | "winvistax86" | "windowsvistax86" ) "vistax86" | "vista32" | "6x86" | "winvistax86" | "windowsvistax86" )
VERSION="winvistax86" VERSION="winvistax86" ;;
DETECTED="winvistax86-ultimate" ;;
"vux86" | "vu32" | "winvistax86-ultimate" ) "vux86" | "vu32" | "winvistax86-ultimate" )
VERSION="winvistax86-ultimate" ;; VERSION="winvistax86-ultimate" ;;
"vex86" | "ve32" | "winvistax86-enterprise" ) "vex86" | "ve32" | "winvistax86-enterprise" )
+3
View File
@@ -51,6 +51,9 @@ selectWindowsImage() {
DETECTED="$VERSION" DETECTED="$VERSION"
fi fi
DETECTED="${DETECTED/-enterprise-iot/-iot}"
DETECTED="${DETECTED/-enterprise-ltsc/-ltsc}"
if [ -n "$DETECTED" ]; then if [ -n "$DETECTED" ]; then
if ! setImage; then if ! setImage; then