Closed princepathria closed 7 years ago
Hmm interesting...
Windows isn't as heavily used as OSX is (my laptops are all OSX) but I'll take a look into this.
I am having the same issue, I think the specific error here is caused by looking up the wrong registry entry for vmware workstation. I believe VMWare Workstation is a 32bit application for windows..Atleast mine is (12.5.7 build-5813279): file vmware.exe vmware.exe: PE32 executable (GUI) Intel 80386, for MS Windows
This means that my registry entry "SOFTWARE\VMware, Inc.\VMware Workstation" does not exist. I think the registry entry you may be looking for is "SOFTWARE\WOW6432Node\VMware, Inc.\VMware Workstation"
In that case I have a "InstallPath" and "InstallPath64" which point to "C:\Program Files (x86)\VMware\VMware Workstation\" and "C:\Program Files (x86)\VMware\VMware Workstation\x64\" respectively.
I haven't look at any of your code to know where else this may need to be changed as I am having other issues but see if you can change that and give it a test?
Just to follow up that small change does fix it; the other issues I was having were totally unrelated and involved python/PATH issues. I now get: mech status: Total running VMs: 1
Testing this on my computer, I can't reproduce but I'm looking into @irakhlin's fix now.
Thanks @irakhlin I think that fix works. Checked my registry keys (Windows 10) and it looks like that's the correct value.
Will probably need to add a fallback just in case.