1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

add VirtualBox NDIS5 driver option to the installer

NDIS6 host network filter driver is known to cause issues on some Windows
versions. VirtualBox installs The NDIS6 driver by default for Windows Vista and later.
For older Windows versions, the installer will automatically select the NDIS5
driver and this cannot be changed. This commit provides an option for Windows Vista
and later users to install the (legacy) NDIS5 host network filter driver.

Signed-off-by: Todor Minchev <todor.minchev@linux.intel.com>
This commit is contained in:
Todor Minchev
2016-01-29 09:59:39 -08:00
parent de267d701f
commit 03b4f72ce6

View File

@@ -53,6 +53,7 @@ Filename: "{win}\explorer.exe"; Parameters: "{userprograms}\Docker\"; Flags: pos
Name: desktopicon; Description: "{cm:CreateDesktopIcon}"
Name: modifypath; Description: "Add docker binaries to &PATH"
Name: upgradevm; Description: "Upgrade Boot2Docker VM"
Name: vbox_ndis5; Description: "Install VirtualBox with NDIS5 driver[default NDIS6]"; Components: VirtualBox; Flags: unchecked
[Components]
Name: "Docker"; Description: "Docker Client for Windows" ; Types: full custom; Flags: fixed
@@ -251,8 +252,13 @@ var
ResultCode: Integer;
begin
WizardForm.FilenameLabel.Caption := 'installing VirtualBox'
if not Exec(ExpandConstant('msiexec'), ExpandConstant('/qn /i "{app}\installers\virtualbox\virtualbox.msi" /norestart'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode) then
MsgBox('virtualbox install failure', mbInformation, MB_OK);
if IsTaskSelected('vbox_ndis5') then begin
if not Exec(ExpandConstant('msiexec'), ExpandConstant('/qn /i "{app}\installers\virtualbox\virtualbox.msi" NETWORKTYPE=NDIS5 /norestart'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode) then
MsgBox('virtualbox install failure', mbInformation, MB_OK);
end else begin
if not Exec(ExpandConstant('msiexec'), ExpandConstant('/qn /i "{app}\installers\virtualbox\virtualbox.msi" /norestart'), '', SW_HIDE, ewWaitUntilTerminated, ResultCode) then
MsgBox('virtualbox install failure', mbInformation, MB_OK);
end;
end;
procedure RunInstallGit();