[vlc-devel] commit: Warn about MSLU on Win98 (U-SASMIRA\jb )

git version control git at videolan.org
Thu Apr 3 08:19:08 CEST 2008


vlc | branch: master | U-SASMIRA\jb <jb at sasmira.(none)> | Wed Apr  2 23:08:05 2008 -0700| [e06f42452a1eafe5c40058363eecb9fe3243f2c1]

Warn about MSLU on Win98

Signed-off-by: Jean-Baptiste Kempf <jb at altair.videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e06f42452a1eafe5c40058363eecb9fe3243f2c1
---

 extras/package/win32/vlc.win32.nsi.in |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

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




More information about the vlc-devel mailing list