Require Windows 10 or newer for the MSI package. [skip ci]
diff --git a/packaging/createmsi.py b/packaging/createmsi.py
index e7c81bb..9ecf109 100644
--- a/packaging/createmsi.py
+++ b/packaging/createmsi.py
@@ -31,6 +31,9 @@
 sys.path.append(os.getcwd())
 from mesonbuild import coredata
 
+# Elementtree does not support CDATA. So hack it.
+WINVER_CHECK = '<![CDATA[Installed OR (VersionNT >= 1000)]]>'
+
 def gen_guid():
     '''
        Generate guid
@@ -193,6 +196,8 @@
             'Codepage':  '1252',
             'Version': self.version,
         })
+        condition = ET.SubElement(product, 'Condition', {'Message': 'This application is only supported on Windows Vista, Windows Server 2008, or higher.'})
+        condition.text = 'X'*len(WINVER_CHECK)
 
         package = ET.SubElement(product, 'Package', {
             'Id': '*',
@@ -271,6 +276,12 @@
         doc = xml.dom.minidom.parse(self.main_xml)
         with open(self.main_xml, 'w') as open_file:
             open_file.write(doc.toprettyxml())
+        # One last fix, add CDATA.
+        with open(self.main_xml, 'r') as open_file:
+            data = open_file.read()
+        data = data.replace('X'*len(WINVER_CHECK), WINVER_CHECK)
+        with open(self.main_xml, 'w') as open_file:
+            open_file.write(data)
 
     def build_features(self, top_feature, staging_dir):
         '''