diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Installer/Installer.nsi')
-rw-r--r-- | win/CS/HandBrakeWPF/Installer/Installer.nsi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Installer/Installer.nsi b/win/CS/HandBrakeWPF/Installer/Installer.nsi index 07149a342..adb1eaffa 100644 --- a/win/CS/HandBrakeWPF/Installer/Installer.nsi +++ b/win/CS/HandBrakeWPF/Installer/Installer.nsi @@ -23,6 +23,7 @@ SetCompressor lzma ; MUI 1.67 compatible ------
!include "MUI.nsh"
+!include WinVer.nsh
; MUI Settings
!define MUI_ABORTWARNING
@@ -72,6 +73,12 @@ Function .onInit StrCmp $R0 0 +3
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 \
|