Some installer code clean-up.

This commit is contained in:
LoRd_MuldeR 2012-11-25 14:03:33 +01:00
parent 2b2f1e2f13
commit 75c0b29558

View File

@ -19,10 +19,15 @@
; // http://www.gnu.org/licenses/gpl-2.0.txt ; // http://www.gnu.org/licenses/gpl-2.0.txt
; /////////////////////////////////////////////////////////////////////////////// ; ///////////////////////////////////////////////////////////////////////////////
;-------------------------------- ;--------------------------------
;Basic Defines ;Basic Defines
;-------------------------------- ;--------------------------------
!ifndef NSIS_UNICODE
!error "NSIS_UNICODE is undefined, please compile with Unicode NSIS !!!"
!endif
!ifndef LAMEXP_VERSION !ifndef LAMEXP_VERSION
!error "LAMEXP_VERSION is not defined !!!" !error "LAMEXP_VERSION is not defined !!!"
!endif !endif
@ -275,6 +280,7 @@ Function .onInit
# Running on Windows NT family? # Running on Windows NT family?
${IfNot} ${IsNT} ${IfNot} ${IsNT}
MessageBox MB_TOPMOST|MB_ICONSTOP "Sorry, this application does *not* support Windows 9x or Windows ME!" MessageBox MB_TOPMOST|MB_ICONSTOP "Sorry, this application does *not* support Windows 9x or Windows ME!"
ExecShell "open" "http://windows.microsoft.com/"
Quit Quit
${EndIf} ${EndIf}
@ -290,11 +296,14 @@ Function .onInit
${AndIf} ${AtMostServicePack} 2 ${AndIf} ${AtMostServicePack} 2
${AndIfNot} ${RunningX64} ${AndIfNot} ${RunningX64}
MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires Windows XP with Service Pack 3 installed.$\nWindows XP *without* Service Pack 3 reached end-of-life on 2010-07-13.$\nCurrent Windows XP (Service Pack 3) will be supported until 2014-04-08.$\n$\nPlease install Service Pack 3 now or just run Windows Update!" MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires Windows XP with Service Pack 3 installed.$\nWindows XP *without* Service Pack 3 reached end-of-life on 2010-07-13.$\nCurrent Windows XP (Service Pack 3) will be supported until 2014-04-08.$\n$\nPlease install Service Pack 3 now or just run Windows Update!"
MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 3 for Windows XP now?" IDNO +2 ${If} ${Cmd} `MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 3 for Windows XP now?" IDYES`
ExecShell "open" "http://www.microsoft.com/en-us/download/details.aspx?id=24" ExecShell "open" "http://www.microsoft.com/en-us/download/details.aspx?id=24"
${Else}
ExecShell "open" "http://windowsupdate.microsoft.com/"
${EndIf}
Quit Quit
${EndIf} ${EndIf}
; -------- ; --------
${StdUtils.GetParameter} $R0 "Update" "?" ${StdUtils.GetParameter} $R0 "Update" "?"