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

Commit 29a1310

Browse files
Sven DowideitSven Dowideit
authored andcommitted
Merge pull request #143 from SvenDowideit/vbox-3.4.12-needs
VBox 3.4.12 has changed the install path ENV
2 parents 879d57e + 69476c0 commit 29a1310

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)