mirror of
https://github.com/tnodir/fort
synced 2024-11-15 04:15:22 +00:00
Installer: Fix OS version checking
This commit is contained in:
parent
df812cb097
commit
d8d940f954
@ -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%
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user