summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Installer/MakeNightly64.nsi.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Installer/MakeNightly64.nsi.tmpl')
-rw-r--r--win/CS/HandBrakeWPF/Installer/MakeNightly64.nsi.tmpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Installer/MakeNightly64.nsi.tmpl b/win/CS/HandBrakeWPF/Installer/MakeNightly64.nsi.tmpl
index 15c35d248..7d085451d 100644
--- a/win/CS/HandBrakeWPF/Installer/MakeNightly64.nsi.tmpl
+++ b/win/CS/HandBrakeWPF/Installer/MakeNightly64.nsi.tmpl
@@ -23,6 +23,7 @@ SetCompressor lzma
; MUI 1.67 compatible ------
!include "MUI.nsh"
+!include WinVer.nsh
; MUI Settings
!define MUI_ABORTWARNING
@@ -73,6 +74,12 @@ Function .onInit
MessageBox MB_OK|MB_ICONEXCLAMATION "The installer is already running." /SD IDOK
Abort
+ ; Detect if the intsaller is running on Windows XP and abort if it is.
+ ${IfNot} ${AtLeastWinVista}
+ MessageBox MB_OK "Windows Vista with Service Pack 1 or later is required in order to run HandBrake."
+ Quit
+ ${EndIf}
+
;Remove previous version
ReadRegStr $R0 HKLM \
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}\" \