// InstallVirtualBox Perform a VirtualBox install
InstallVirtualBox Perform a VirtualBox install
// InstallVirtualBox Perform a VirtualBox install
func InstallVirtualBox(fail bool) error {
	installerPath, err := virtualBoxInstallerPath()
	if err != nil {
		return err
	}
	err = installVirtualBoxWithInstaller(installerPath)
	if err != nil {
		if fail {
			return err
		}
		command := "virtualbox --fail"
		if log.IsDebug() {
			command += " --debug"
		}
		err = install.ElevatedExecute(os.Args[0], command)
	}
	return err
}
func InstallVirtualBox ( fail bool ) error { installerPath , err := virtualBoxInstallerPath ( ) if err != nil { return err } err = installVirtualBoxWithInstaller ( installerPath ) if err != nil { if fail { return err } command := " " if log . IsDebug ( ) { command += " " } err = install . ElevatedExecute ( os . Args [ 0 ] , command ) } return err }
InstallVirtualBox Perform a VirtualBox install
InstallVirtualBox Perform a VirtualBox install