Skip to content

Commit

Permalink
Windows installer: refuse installation on ancient versions
Browse files Browse the repository at this point in the history
Closes #55
  • Loading branch information
maxnet committed May 24, 2020
1 parent f4d3a94 commit f3bc47a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion windows/rpi-imager.nsi.in
Expand Up @@ -76,6 +76,7 @@ InstallDir "$PROGRAMFILES\Raspberry Pi Imager"


!include "MUI.nsh"
!include "WinVer.nsh"

!define MUI_ABORTWARNING
!define MUI_UNABORTWARNING
Expand Down Expand Up @@ -1026,6 +1027,10 @@ Function .onInit
SetSilent silent
WriteUninstaller "$%TEMP%\uninstall.exe"
Quit ; just bail out quickly when running the "inner" installer
!else
${IfNot} ${AtLeastWin7}
MessageBox MB_OK "Windows 7 or above required"
Quit
${EndIf}
!endif
FunctionEnd

0 comments on commit f3bc47a

Please sign in to comment.