Fix Mikero tools detection not looking at Wow6432Node

This commit is contained in:
jonpas 2017-12-12 12:40:33 +01:00
parent 2aaef9e791
commit 57da8c3ad0

View File

@ -239,8 +239,16 @@ def find_depbo_tools():
k = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Mikero\{}".format(tool))
path = winreg.QueryValueEx(k, "exe")[0]
except FileNotFoundError:
k = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"Software\Mikero\{}".format(tool))
path = winreg.QueryValueEx(k, "exe")[0]
try:
k = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"Software\Mikero\{}".format(tool))
path = winreg.QueryValueEx(k, "exe")[0]
except FileNotFoundError:
try:
k = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"Software\Wow6432Node\Mikero\{}".format(tool))
path = winreg.QueryValueEx(k, "exe")[0]
except FileNotFoundError:
k = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"Software\Wow6432Node\Mikero\{}".format(tool))
path = winreg.QueryValueEx(k, "exe")[0]
except FileNotFoundError:
print_error("Could not find {}".format(tool))
failed = True