Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Commit 69476c0

Browse files
committed
VBox 3.4.12 has changed the install path ENV
from VBOX_INSTALL_PATH to VBOX_MSI_INSTALL_PATH
1 parent a088ba4 commit 69476c0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

config.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,13 @@ func config() (*flag.FlagSet, error) {
111111
flags.StringVar(&B2D.ISO, "iso", filepath.Join(dir, "boot2docker.iso"), "path to boot2docker ISO image.")
112112
flags.StringVar(&B2D.VMDK, "basevmdk", "", "Path to VMDK to use as base for persistent partition")
113113
vbm := "VBoxManage"
114-
if p := os.Getenv("VBOX_INSTALL_PATH"); p != "" && runtime.GOOS == "windows" {
114+
if runtime.GOOS == "windows" {
115+
p := "C:\\Program Files\\Oracle\\VirtualBox"
116+
if t := os.Getenv("VBOX_INSTALL_PATH"); t != "" {
117+
p = t
118+
} else if t = os.Getenv("VBOX_MSI_INSTALL_PATH"); t != "" {
119+
p = t
120+
}
115121
vbm = filepath.Join(p, "VBoxManage.exe")
116122
}
117123
flags.StringVar(&B2D.VBM, "vbm", vbm, "path to VirtualBox management utility.")

0 commit comments

Comments
 (0)