|
1 | 1 | # A part of NonVisual Desktop Access (NVDA) |
2 | | -# Copyright (C) 2010-2021 NV Access Limited, James Teh, Michael Curran, Peter Vágner, Joseph Lee, |
| 2 | +# Copyright (C) 2010-2022 NV Access Limited, James Teh, Michael Curran, Peter Vágner, Joseph Lee, |
3 | 3 | # Reef Turner, Babbage B.V., Leonard de Ruijter, Łukasz Golonka, Accessolutions, Julien Cochuyt |
4 | 4 | # This file may be used under the terms of the GNU General Public License, version 2 or later. |
5 | 5 | # For more details see: https://www.gnu.org/licenses/gpl-2.0.html |
@@ -322,16 +322,16 @@ def NVDADistGenerator(target, source, env, for_signature): |
322 | 322 | action.append(buildCmd) |
323 | 323 |
|
324 | 324 | # #10031: Apps written in Python 3 require Universal CRT to be installed. We cannot assume users have it on their systems. |
325 | | - # Therefore , copy required libraries from Windows 10 SDK. |
| 325 | + # Therefore, copy required libraries from Windows 11 SDK. |
326 | 326 | try: |
327 | 327 | with winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r'SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0', 0,winreg.KEY_READ|winreg.KEY_WOW64_32KEY) as SDKKey: |
328 | 328 | sdk_installationFolder = winreg.QueryValueEx(SDKKey, 'InstallationFolder')[0] |
329 | 329 | sdk_productVersion = winreg.QueryValueEx(SDKKey, 'ProductVersion')[0] |
330 | 330 | except WindowsError: |
331 | | - raise RuntimeError("Windows 10 SDK not found") |
| 331 | + raise RuntimeError("Windows 11 SDK not found") |
332 | 332 | # The Universal CRT should be in an SDK version-specific directory |
333 | 333 | # But usually has a '.0' appended after the productVersion found in the registry. |
334 | | - # E.g. 10.0.1941 might e actually 10.0.1941.0. |
| 334 | + # E.g. 10.0.22000 might be actually 10.0.22000.0. |
335 | 335 | # Thus try both. |
336 | 336 | CRTDir = os.path.join(sdk_installationFolder, "Redist", sdk_productVersion+".0", "ucrt", "DLLs", "x86") |
337 | 337 | if not os.path.isdir(CRTDir): |
|
0 commit comments