]> git.sesse.net Git - vlc/commitdiff
Warn about MSLU on Win98
authorU-SASMIRA\jb <jb@sasmira.(none)>
Thu, 3 Apr 2008 06:08:05 +0000 (23:08 -0700)
committerJean-Baptiste Kempf <jb@altair.videolan.org>
Thu, 3 Apr 2008 06:19:42 +0000 (08:19 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@altair.videolan.org>
extras/package/win32/vlc.win32.nsi.in

index f66d92096e5fcb974b2fc15d2c5e6d87e2dffa43..7ed9d76a23ec31a6b41ba1a70dbfc61158edf781 100644 (file)
@@ -1,4 +1,4 @@
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
 ; NSIS installer script for vlc ;\r
 ; (http://nsis.sourceforge.net) ;\r
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
@@ -598,6 +598,15 @@ Function .onInit
     ExecWait '$R0 _?=$INSTDIR' ;Do not copy the uninstaller to a temp file\r
   done:\r
   !insertmacro MUI_LANGDLL_DISPLAY\r
+\r
+  ;Win98 detection\r
+  ReadRegStr $R0 HKLM \\r
+  "SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber\r
+  StrCmp $R0 '4.9' lbl_win98\r
+\r
+  lbl_win98:\r
+     MessageBox MB_OK|MB_ICONQUESTION "Windows 98 ! Remember to install MSLU" IDOK\r
+\r
 FunctionEnd\r
 \r
 Section -Post\r