Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3144 from MartijnKaijser/win32_min_version

[win32] Set minimum of Vista and up required to install
  • Loading branch information...
commit 79682f9cca02734683a5bb5afa5ac58c1f7c0db5 2 parents 11b3695 + 6f165fd
@MartijnKaijser MartijnKaijser authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 project/Win32BuildSetup/XBMC for Windows.nsi
View
5 project/Win32BuildSetup/XBMC for Windows.nsi
@@ -10,6 +10,7 @@
!include "MUI2.nsh"
!include "nsDialogs.nsh"
!include "LogicLib.nsh"
+ !include "WinVer.nsh"
;--------------------------------
;General
@@ -380,6 +381,10 @@ Section "-Check DirectX installation" SEC_DIRECTXCHECK
SectionEnd
Function .onInit
+ ${IfNot} ${AtLeastWinVista}
+ MessageBox MB_OK|MB_ICONSTOP|MB_TOPMOST|MB_SETFOREGROUND "Windows Vista or above required.$\nThis program can not be run on Windows XP"
+ Quit
+ ${EndIf}
# set section 'SEC_DIRECTX' as selected and read-only if required dx version not found
IfFileExists ${DXVERSIONDLL} +3 0
IntOp $0 ${SF_SELECTED} | ${SF_RO}
Please sign in to comment.
Something went wrong with that request. Please try again.