Fix installer

This commit is contained in:
K4sum1 2025-03-24 14:52:09 -07:00
commit ce73865643
8 changed files with 18 additions and 17 deletions

View file

@ -43,10 +43,10 @@
#ifdef HAVE_64BIT_BUILD
!define HAVE_64BIT_BUILD
!define ARCH "x64"
!define MinSupportedVer "Microsoft Windows 7 x64"
!define MinSupportedVer "Microsoft Windows XP x64"
#else
!define ARCH "x86"
!define MinSupportedVer "Microsoft Windows XP SP2"
!define MinSupportedVer "Microsoft Windows XP"
#endif
!define MinSupportedCPU "SSE2"

View file

@ -1042,10 +1042,8 @@ Function .onInit
; SSE2 instruction set is available.
System::Call "kernel32::IsProcessorFeaturePresent(i 10)i .R7"
!ifdef HAVE_64BIT_BUILD
; Restrict x64 builds from being installed on x86 and pre Win7
${Unless} ${RunningX64}
${OrUnless} ${AtLeastWin7}
; Windows NT 5.0 and lower are not supported on any architecture.
${Unless} ${AtLeastWinXP}
${If} "$R7" == "0"
strCpy $R7 "$(WARN_MIN_SUPPORTED_OSVER_CPU_MSG)"
${Else}