Installer: Fix OS version checking

This commit is contained in:
Nodir Temirkhodjaev 2024-05-23 10:14:49 +03:00
parent df812cb097
commit d8d940f954
2 changed files with 3 additions and 3 deletions

View File

@ -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%

View File

@ -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