From b6e8e00f2312244fc9c73ef04898705d0e494c91 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 3 Apr 2025 00:46:13 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/install.sh b/src/install.sh index 100b02d..9c42bd7 100644 --- a/src/install.sh +++ b/src/install.sh @@ -10,6 +10,7 @@ EFISYS="efi/microsoft/boot/efisys_noprompt.bin" skipInstall() { local iso="$1" + local method="" local magic byte local boot="$STORAGE/windows.boot" local previous="$STORAGE/windows.base" @@ -20,8 +21,15 @@ skipInstall() { if [ -n "$previous" ]; then if [[ "${STORAGE,,}/${previous,,}" != "${iso,,}" ]]; then if [ -f "$boot" ] && hasDisk; then - if [[ "$previous" != "windows."* ]]; then - info "Detected that the version was changed, but ignoring this because Windows is already installed." + if [[ "${iso,,}" == "${STORAGE,,}/windows."* ]]; then + method="your custom .iso file" + else + if [[ "${previous,,}" != "windows."* ]]; then + method="the VERSION variable" + fi + fi + if [ -n "$method" ]; then + info "Detected that $method was changed, but ignoring this because Windows is already installed." info "Please start with an empty /storage folder, if you want to install a different version of Windows." fi return 0