Skip to content

Commit

Permalink
Updated installer version check.
Browse files Browse the repository at this point in the history
  • Loading branch information
lordmulder committed Aug 13, 2018
1 parent eb1c91c commit 1a50699
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -32,7 +32,7 @@ The required Qt DLLs as well as the encoder binaries are *included* with the app

The minimum system requirements to run Simple x264/x265 Launcher are as follows:

* Windows XP with Service Pack 2 or any later Windows system – note that Windows XP is **not** recommended!
* Windows Vista with Service Pack 2 or any later Windows system – note that Windows XP is **not** supported anymore!
* 64-Bit editions of Windows are highly recommended, though 32-Bit editions will work as well
* The CPU must support at least the MMX and SSE instruction sets
* Avisynth input only available with [Avisynth](http://avisynth.nl/index.php/Main_Page#Official_builds) **2.6** installed – Avisynth **2.5.x** is *not* recommended!
Expand Down
34 changes: 10 additions & 24 deletions etc/setup/setup.nsi
Expand Up @@ -317,35 +317,21 @@ Function .onInit
Quit
${EndIf}

# Running on Windows XP or later?
${If} ${AtMostWin2000}
MessageBox MB_TOPMOST|MB_ICONSTOP "Sorry, but your operating system is *not* supported anymore.$\nInstallation will be aborted!$\n$\nThe minimum required platform is Windows XP (Service Pack 3)."
# Running on Windows Vista or later?
${If} ${AtMostWinXP}
MessageBox MB_TOPMOST|MB_ICONSTOP "Sorry, but your operating system is *not* supported anymore.$\nInstallation will be aborted!$\n$\nThe minimum supported platform is Windows Vista (Service Pack 2)."
ExecShell "open" "http://windows.microsoft.com/"
Quit
${EndIf}

# If on Windows XP, is the required Service Pack installed?
${If} ${IsWinXP}
${IfNot} ${RunningX64} # Windows XP 32-Bit, requires Service Pack 3
${AndIf} ${AtMostServicePack} 2
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!"
${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"
${Else}
ExecShell "open" "http://windowsupdate.microsoft.com/"
${EndIf}
Quit
${EndIf}
${If} ${RunningX64} # Windows XP 64-Bit, requires Service Pack 2
${AndIf} ${AtMostServicePack} 1
MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires Windows XP x64 Edition with Service Pack 2 installed.$\nWindows XP x64 Edition *without* Service Pack 2 reached end-of-life on 2009-04-14.$\nCurrent Windows XP x64 Edition (Service Pack 2) will be supported until 2014-04-08.$\n$\nPlease install Service Pack 2 now or just run Windows Update!"
${If} ${Cmd} `MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 2 for Windows XP x64 Edition now?" IDYES`
ExecShell "open" "http://www.microsoft.com/en-us/download/details.aspx?id=17791"
${Else}
ExecShell "open" "http://windowsupdate.microsoft.com/"
${EndIf}
Quit
# If on Windows Vista, is the required Service Pack installed?
${If} ${IsWinVista}
${AndIf} ${AtMostServicePack} 1
MessageBox MB_TOPMOST|MB_ICONEXCLAMATION "This application requires Windows Vista with Service Pack 2 installed."
${If} ${Cmd} `MessageBox MB_TOPMOST|MB_ICONQUESTION|MB_YESNO "Do you want to download Service Pack 2 for Windows Vista now?" IDYES`
ExecShell "open" "https://www.microsoft.com/en-us/download/details.aspx?id=16468"
${EndIf}
Quit
${EndIf}

; --------
Expand Down

0 comments on commit 1a50699

Please sign in to comment.