From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 62941 invoked by alias); 2 Sep 2016 08:47:31 -0000 Mailing-List: contact cygwin-apps-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-apps-cvs-owner@sourceware.org Received: (qmail 62365 invoked by uid 9795); 2 Sep 2016 08:47:31 -0000 Date: Fri, 02 Sep 2016 08:47:00 -0000 Message-ID: <20160902084730.62302.qmail@sourceware.org> From: jturney@sourceware.org To: cygwin-apps-cvs@sourceware.org Subject: [setup - the official Cygwin setup program used to install Cygwin and keep it up to date] branch master, updated. release_2.875-9-ge75d09f X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 7d0ffe178db1fa4e9bdde4c4def3f05d9fef0bbc X-Git-Newrev: e75d09f1cd2e1f3742bae648d48220901e2fb7b4 X-SW-Source: 2016-q3/txt/msg00025.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=e75d09f1cd2e1f3742bae648d48220901e2fb7b4 commit e75d09f1cd2e1f3742bae648d48220901e2fb7b4 Author: Jon Turney Date: Thu Sep 1 20:30:44 2016 +0100 Refuse to run on Windows XP and earlier Refuse to run on Windows versions less than 6.0 (XP or previous), as they are no longer supported by Cygwin. Future work: The version checked against should be read from setup.ini, rather than hard-coded here, so that this version of setup cannot be used to download a future version of Cygwin which isn't compatible with the Windows version it's running on... Signed-off-by: Jon Turney Diff: --- main.cc | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/main.cc b/main.cc index 3d6e6fb..f08da00 100644 --- a/main.cc +++ b/main.cc @@ -290,6 +290,14 @@ WinMain (HINSTANCE h, << setup_version << endLog; } + /* Check if Cygwin works on this Windows version */ + if (OSMajorVersion () < 6) + { + mbox (NULL, "Cygwin is not supported on this Windows version", + "Cygwin Setup", MB_ICONEXCLAMATION | MB_OK); + exit (1); + } + if (help_option) { if (invalid_option)