Skip to content

Commit

Permalink
[Windows] Resolve OVS dependency for VC 2010 runtime (antrea-io#1099)
Browse files Browse the repository at this point in the history
OVS currently depends on VC 2010 runtime. Update Install-OVS.ps1
to install the dependency when installing OVS.

Signed-off-by: Rui Cao <[email protected]>
  • Loading branch information
ruicao93 committed Aug 17, 2020
1 parent c2d7280 commit 90b87f2
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions hack/windows/Install-OVS.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,17 @@ function InstallOVS() {
$rootStore.Open("ReadWrite")
$rootStore.Add($cert)
$rootStore.Close()
# Install Microsoft Visual C++ 2010 Redistributable Package.
Log "Installing Microsoft Visual C++ 2010 Redistributable Package."
Start-Process -FilePath $OVSInstallDir/redist/vcredist_x64.exe -Args '/install /passive /norestart' -Verb RunAs -Wait
if (!(Test-Path C:\Windows\System32\msvcr100.dll)) {
# Install Microsoft Visual C++ 2010 Redistributable Package.
Log "Installing Microsoft Visual C++ 2010 Redistributable Package."
curl.exe -Lo $OVSInstallDir/redist/vcredist_x64_2010.exe https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x64.exe
Start-Process -FilePath $OVSInstallDir/redist/vcredist_x64_2010.exe -Args '/install /passive /norestart' -Verb RunAs -Wait
}
if (!(Test-Path C:\Windows\System32\msvcr120.dll)) {
# Install Microsoft Visual C++ 2013 Redistributable Package.
Log "Installing Microsoft Visual C++ 2013 Redistributable Package."
Start-Process -FilePath $OVSInstallDir/redist/vcredist_x64.exe -Args '/install /passive /norestart' -Verb RunAs -Wait
}
# Install OVS kernel driver.
Log "Installing OVS kernel driver"
cmd /c "cd $OVSDriverDir && install.cmd"
Expand Down

0 comments on commit 90b87f2

Please sign in to comment.