Skip to content

Commit 3ee1266

Browse files
miss-islingtonisuruf
authored andcommitted
Fix registry key for Windows SDK detection (pythonGH-12445)
(cherry picked from commit aedc273) Co-authored-by: Isuru Fernando <isuruf@gmail.com>
1 parent ab8fcfd commit 3ee1266

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PCbuild/python.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
matter which WinSDK version we use.
7777
-->
7878
<_RegistryVersion>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion>
79-
<_RegistryVersion Condition="$(_RegistryVersion) == ''">$(Registry:HKEY_LOCAL_MACHINE\WOW6432Node\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion>
79+
<_RegistryVersion Condition="$(_RegistryVersion) == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion)</_RegistryVersion>
8080
<!-- Sometimes the version in the registry has to .0 suffix, and sometimes it doesn't. Check and add it -->
8181
<_RegistryVersion Condition="$(_RegistryVersion) != '' and !$(_RegistryVersion.EndsWith('.0'))">$(_RegistryVersion).0</_RegistryVersion>
8282

0 commit comments

Comments
 (0)