From d8d940f954f817fafe8c30ee441138f43f6a90fd Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Thu, 23 May 2024 10:14:49 +0300 Subject: [PATCH] Installer: Fix OS version checking --- src/driver/scripts/install.bat | 2 +- src/driver/scripts/setup-vars.bat | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/driver/scripts/install.bat b/src/driver/scripts/install.bat index 413b6528..33d88759 100644 --- a/src/driver/scripts/install.bat +++ b/src/driver/scripts/install.bat @@ -41,7 +41,7 @@ sc start %DRIVERSVC% :EXIT @echo End execution... Result Code = %RCODE% -@if %RCODE% neq 0 if "%1" neq "/SILENT" ( +@if %RCODE% neq 0 if not "%1" == "/SILENT" ( @pause ) @exit /b %RCODE% diff --git a/src/driver/scripts/setup-vars.bat b/src/driver/scripts/setup-vars.bat index ad818d1c..c08c5162 100644 --- a/src/driver/scripts/setup-vars.bat +++ b/src/driver/scripts/setup-vars.bat @@ -5,8 +5,8 @@ @set ARCH=x86_64 @rem Check for Windows 10 2004 - @for /f "tokens=4-6 delims=. " %%i in ('ver') do @( - @if %%i.%%j.%%k lss 10.0.19041 @set ARCH=x86_64_old + @for /f "tokens=6 delims=. " %%i in ('ver') do @( + @if %%i lss 19041 @set ARCH=x86_64_old ) ) else ( @if "%PROCESSOR_ARCHITECTURE%" == "ARM64" @set ARCH=ARM64