machine-drivers / docker-machine-driver-vmware

Docker machine driver for VMware Fusion and Workstation.
https://www.vmware.com/products/personal-desktop-virtualization.html
Apache License 2.0
184 stars 47 forks source link

change for non-default WS installation diretory #29

Closed xisheng closed 3 years ago

xisheng commented 4 years ago

Previously, the workstation is supported only when it is installed in default directory(C:\Program Files (x86)\VMware\VMware Workstation), because the windowsInstallDir is not initialized when setVmwareCmd is called in vmrun.go. This change is to move the logic into setVmwareCmd directly and return the full path of vmware binaries no matter it is installed in default directory or customized directory. We changed the registry Key for querying to support both workstation and Player.