Skip to content

Commit

Permalink
Enforce minimum Windows version ref #983
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenetar committed Mar 19, 2022
1 parent a64fcbf commit 9321e81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Unicode true
SetCompressor /SOLID lzma
; General Headers
!include "FileFunc.nsh"
!include "WinVer.nsh"
!include "LogicLib.nsh"

;==============================================================================
; Configuration Defines
Expand Down Expand Up @@ -279,6 +281,10 @@ SectionEnd
;==============================================================================

Function .onInit
${IfNot} ${AtLeastWin7}
MessageBox MB_OK "Windows 7 and above required"
Quit
${EndIf}
!if ${BITS} == "64"
SetRegView 64
!else
Expand Down

0 comments on commit 9321e81

Please sign in to comment.