From 214a9f9f6fb9c8241937c00830aa1b17f16a6d7a Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 1 Feb 2024 13:24:34 +0100 Subject: [PATCH] Update install.sh --- src/install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/install.sh b/src/install.sh index b38ecb7..fce3baf 100644 --- a/src/install.sh +++ b/src/install.sh @@ -490,15 +490,16 @@ detectImage() { [ ! -f "$loc" ] && loc="$dir/sources/install.esd" if [ ! -f "$loc" ]; then + if [ -f "$dir/WIN51" ] || [ -f "$dir/SETUPXP.HTM" ]; then DETECTED="winxpx86" info "Detected: Windows XP" return 0 - else - warn "failed to locate 'install.wim' or 'install.esd' in ISO image, $FB" - BOOT_MODE="windows_legacy" - return 1 fi + + warn "failed to locate 'install.wim' or 'install.esd' in ISO image, $FB" + BOOT_MODE="windows_legacy" + return 1 fi tag="DISPLAYNAME"