OSDN Git Service

Added OS check to installer.
authorlordmulder <mulder2@gmx.de>
Thu, 9 Feb 2012 13:51:41 +0000 (14:51 +0100)
committerlordmulder <mulder2@gmx.de>
Thu, 9 Feb 2012 13:51:41 +0000 (14:51 +0100)
etc/check_os.nsh [new file with mode: 0644]
src/version.h

diff --git a/etc/check_os.nsh b/etc/check_os.nsh
new file mode 100644 (file)
index 0000000..db92f6d
--- /dev/null
@@ -0,0 +1,25 @@
+Function .onInit
+       System::Call 'kernel32::CreateMutexA(i 0, i 0, t "{79d6a7e5-35af-47b1-a7d6-f20d0e5df772}") i .r1 ?e'
+       Pop $0
+       ${If} $0 <> 0
+               MessageBox MB_ICONSTOP|MB_TOPMOST "Sorry, the installer is already running!"
+               Quit
+       ${EndIf}
+
+       ; --------
+       
+       ${IfNot} ${IsNT}
+               MessageBox MB_TOPMOST|MB_ICONSTOP "Sorry, this application does NOT support Windows 9x or Windows ME!"
+               Quit
+       ${EndIf}
+
+       ${If} ${AtMostWinNT4}
+               ${StdUtils.GetParameter} $R0 "Update" "?"
+               ${If} $R0 == "?"
+                       MessageBox MB_TOPMOST|MB_ICONSTOP "Sorry, your platform is not supported anymore. Installation aborted!$\nThe minimum required platform is Windows 2000."
+               ${Else}
+                       MessageBox MB_TOPMOST|MB_ICONSTOP "Sorry, your platform is not supported anymore. Update not possible!$\nThe minimum required platform is Windows 2000."
+               ${EndIf}
+               Quit
+       ${EndIf}
+FunctionEnd
index 11631b7..ad97351 100644 (file)
@@ -21,7 +21,7 @@
 
 #define VER_X264_MAJOR 2
 #define VER_X264_MINOR 0
-#define VER_X264_PATCH 61
+#define VER_X264_PATCH 62
 
 #define VER_X264_MINIMUM_REV 2146
 #define VER_X264_CURRENT_API 120