diff --git a/unlocker.py b/unlocker.py index 7509099..70873f8 100644 --- a/unlocker.py +++ b/unlocker.py @@ -366,7 +366,7 @@ def main(): elif osname == 'windows': reg = ConnectRegistry(None, HKEY_LOCAL_MACHINE) - key = OpenKey(reg, r'SOFTWARE\Wow6432Node\VMware, Inc.\VMware Workstation') + key = OpenKey(reg, r'SOFTWARE\VMware, Inc.\VMware Workstation') vmwarebase_path = QueryValueEx(key, 'InstallPath')[0] vmx_path = QueryValueEx(key, 'InstallPath64')[0] vmx = joinpath(vmx_path, 'vmware-vmx.exe') diff --git a/win-helper-functions.cmd b/win-helper-functions.cmd index 2c7a66e..76523fa 100644 --- a/win-helper-functions.cmd +++ b/win-helper-functions.cmd @@ -30,7 +30,7 @@ goto :EOF :: --- Function: Detect VMware --- :detect_vmware set "INSTALLPATH=" -set KeyName="HKLM\SOFTWARE\Wow6432Node\VMware, Inc.\VMware Player" +set KeyName="HKLM\SOFTWARE\VMware, Inc.\VMware Workstation" for /f "tokens=2* delims= " %%A in ('REG QUERY %KeyName% /v InstallPath 2^>nul') do set "INSTALLPATH=%%B" if not defined INSTALLPATH ( set "VMWARE_INSTALLED=0"