-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search for debugger #300
Search for debugger #300
Conversation
@EchterAgo any thoughts? |
Yes, I think we should substitute env vars and use |
|
Maybe even |
There is also Edit: This only exists under |
def read_reg(path: pathlib.Path, hive=winreg.HKEY_LOCAL_MACHINE):
try:
with winreg.OpenKey(hive, str(path.parent)) as key:
value, _ = winreg.QueryValueEx(key, path.name)
return value
except (OSError, FileNotFoundError):
return None
def find_kits():
kit_value_names = ["KitsRoot10", "KitsRoot81", "KitsRoot"]
kit_install_path: pathlib.Path = None
for kit_value_name in kit_value_names:
kit_reg_path = (
pathlib.Path("SOFTWARE")
/ "WOW6432Node"
/ "Microsoft"
/ "Windows Kits"
/ "Installed Roots"
/ kit_value_name
)
res = read_reg(kit_reg_path)
if not res:
continue
kit_install_path = pathlib.Path(res)
break
return kit_install_path |
Probably a good idea but I wont be able to recreate the %ProgramFiles%\Windows Kits\10\Debuggers\x64\cdb.exe scenario for testing without a clean windows install (I think) I'll still probably use the rego key from #301 |
Add more locations the debugger might be in Signed-off-by: Andrew Innes <[email protected]>
4151f42
to
03a99b0
Compare
03a99b0
to
4a1830f
Compare
Signed-off-by: Andrew Innes <[email protected]>
555aa4e
into
openzfsonwindows:zfs-Windows-2.2.0-release
Thanks for the registry code @EchterAgo |
Add more locations the debugger might be in
Signed-off-by: Andrew Innes [email protected]
Motivation and Context
Description
How Has This Been Tested?
Types of changes
Checklist:
Signed-off-by
.