From e06f42452a1eafe5c40058363eecb9fe3243f2c1 Mon Sep 17 00:00:00 2001 From: "U-SASMIRA\\jb" Date: Wed, 2 Apr 2008 23:08:05 -0700 Subject: [PATCH] Warn about MSLU on Win98 Signed-off-by: Jean-Baptiste Kempf --- extras/package/win32/vlc.win32.nsi.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/extras/package/win32/vlc.win32.nsi.in b/extras/package/win32/vlc.win32.nsi.in index f66d92096e..7ed9d76a23 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 -- 2.39.5