Bug 1842159 - Port bug 1836874: Prevent installers from installing 116+ on Windows 7/8/8.1. r=rjl

Differential Revision: https://phabricator.services.mozilla.com/D182972
This commit is contained in:
Richard Marti 2023-07-07 08:55:21 +00:00
Родитель 9576ce5670
Коммит 5795cb7f0e
2 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -55,10 +55,10 @@
!define MinSupportedVer "Microsoft Windows 10 for ARM"
#else
!define ARCH "x64"
!define MinSupportedVer "Microsoft Windows 7 x64"
!define MinSupportedVer "Microsoft Windows 10 x64"
#endif
#else
!define MinSupportedVer "Microsoft Windows 7"
!define MinSupportedVer "Microsoft Windows 10"
!define ARCH "x86"
#endif

Просмотреть файл

@ -1156,8 +1156,8 @@ Function .onInit
; SSE2 instruction set is available. Result returned in $R7.
System::Call "kernel32::IsProcessorFeaturePresent(i 10)i .R7"
; Windows NT 6.0 (Vista/Server 2008) and lower are not supported.
${Unless} ${AtLeastWin7}
; Windows 8.1/Server 2012 R2 and lower are not supported.
${Unless} ${AtLeastWin10}
${If} "$R7" == "0"
strCpy $R7 "$(WARN_MIN_SUPPORTED_OSVER_CPU_MSG)"
${Else}
@ -1178,7 +1178,6 @@ Function .onInit
!ifdef HAVE_64BIT_BUILD
${If} "${ARCH}" == "AArch64"
${IfNot} ${IsNativeARM64}
${OrIfNot} ${AtLeastWin10}
MessageBox MB_OKCANCEL|MB_ICONSTOP "$(WARN_MIN_SUPPORTED_OSVER_MSG)" IDCANCEL +2
ExecShell "open" "${URLSystemRequirements}"
Quit