Skip to content
This repository
Browse code

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
Martijn Kaijser authored August 27, 2013
5  project/Win32BuildSetup/XBMC for Windows.nsi
@@ -10,6 +10,7 @@
10 10
   !include "MUI2.nsh"
11 11
   !include "nsDialogs.nsh"
12 12
   !include "LogicLib.nsh"
  13
+  !include "WinVer.nsh"
13 14
 ;--------------------------------
14 15
 ;General
15 16
 
@@ -380,6 +381,10 @@ Section "-Check DirectX installation" SEC_DIRECTXCHECK
380 381
 SectionEnd
381 382
 
382 383
 Function .onInit
  384
+  ${IfNot} ${AtLeastWinVista}
  385
+    MessageBox MB_OK|MB_ICONSTOP|MB_TOPMOST|MB_SETFOREGROUND "Windows Vista or above required.$\nThis program can not be run on Windows XP"
  386
+    Quit
  387
+  ${EndIf}
383 388
   # set section 'SEC_DIRECTX' as selected and read-only if required dx version not found
384 389
   IfFileExists ${DXVERSIONDLL} +3 0
385 390
   IntOp $0 ${SF_SELECTED} | ${SF_RO}

0 notes on commit 79682f9

Please sign in to comment.
Something went wrong with that request. Please try again.