public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [setup - the official Cygwin setup program used to install Cygwin and keep it up to date] branch master, updated. release_2.875-9-ge75d09f
@ 2016-09-02  8:47 jturney
  0 siblings, 0 replies; only message in thread
From: jturney @ 2016-09-02  8:47 UTC (permalink / raw)
  To: cygwin-apps-cvs




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/setup.git;h=e75d09f1cd2e1f3742bae648d48220901e2fb7b4

commit e75d09f1cd2e1f3742bae648d48220901e2fb7b4
Author: Jon Turney <jon.turney@dronecode.org.uk>
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 <jon.turney@dronecode.org.uk>


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)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-02  8:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-02  8:47 [setup - the official Cygwin setup program used to install Cygwin and keep it up to date] branch master, updated. release_2.875-9-ge75d09f jturney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).