How to programmatically detect and locate the Windows 10 SDK?

后端 未结 3 969
终归单人心
终归单人心 2020-12-23 15:08

TL;DR

Is there a Windows registry key (or other easily-programmable way) to find & detect the Windows SDK, which works for SDK V10.0?


I am doing

3条回答
  •  礼貌的吻别
    2020-12-23 15:34

    I don't have an authoritative source for it, but it traces back from the uninstaller of the Windows 10 SDK, and it checked out on a couple of machines I looked at:

    HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows Kits\Installed Roots
    KitsRoot10="C:\Program Files (x86)\Windows Kits\10\"
    

    The exact version is a bit trickier to guess, since for example 10.0.10150.0, 10.0.10240.0 and 10.0.10586.0 are all subdirectories under C:\Program Files (x86)\Windows Kits\10\Include.

提交回复
热议问题