зеркало из https://github.com/microsoft/msquic.git
install vcrt for xdp
This commit is contained in:
Родитель
c74e356f1a
Коммит
80bf1b2d1b
|
@ -230,6 +230,10 @@ function Install-SigningCertificates {
|
|||
# NB: XDP can be uninstalled via Uninstall-Xdp
|
||||
function Install-Xdp-Driver {
|
||||
if (!$IsWindows) { return } # Windows only
|
||||
# Install VCRT. Not required for official XDP builds.
|
||||
Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vc_redist.x64.exe" -OutFile "vc_redist.x64.exe"
|
||||
Start-Process -FilePath "vc_redist.x64.exe" -ArgumentList "/install /quiet /norestart" -Wait -NoNewWindow
|
||||
|
||||
Write-Host "Downloading XDP msi"
|
||||
$MsiPath = Join-Path $ArtifactsPath "xdp.msi"
|
||||
Invoke-WebRequest -Uri (Get-Content (Join-Path $PSScriptRoot "xdp.json") | ConvertFrom-Json).installer -OutFile $MsiPath
|
||||
|
|
|
@ -67,6 +67,10 @@ if ($Command.Contains("/home/secnetperf/_work/quic/artifacts/bin/linux/x64_Relea
|
|||
./artifacts/bin/windows/x64_Release_schannel/secnetperf -exec:$mode -io:$io -stats:$stats
|
||||
} elseif ($Command.Contains("Install_XDP")) {
|
||||
Write-Host "Executing command: Install_XDP"
|
||||
# Install VCRT. Not required for official XDP builds.
|
||||
Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vc_redist.x64.exe" -OutFile "vc_redist.x64.exe"
|
||||
Start-Process -FilePath "vc_redist.x64.exe" -ArgumentList "/install /quiet /norestart" -Wait -NoNewWindow
|
||||
|
||||
Write-Host "(SERVER) Downloading XDP installer"
|
||||
$installerUri = $Command.Split(";")[1]
|
||||
$msiPath = Repo-Path "xdp.msi"
|
||||
|
|
|
@ -135,6 +135,10 @@ function Wait-DriverStarted {
|
|||
# Download and install XDP on both local and remote machines.
|
||||
function Install-XDP {
|
||||
param ($Session, $RemoteDir)
|
||||
# Install VCRT. Not required for official XDP builds.
|
||||
Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vc_redist.x64.exe" -OutFile "vc_redist.x64.exe"
|
||||
Start-Process -FilePath "vc_redist.x64.exe" -ArgumentList "/install /quiet /norestart" -Wait -NoNewWindow
|
||||
|
||||
$installerUri = (Get-Content (Join-Path $PSScriptRoot "xdp.json") | ConvertFrom-Json).installer
|
||||
$msiPath = Repo-Path "artifacts/xdp.msi"
|
||||
Write-Host "Downloading XDP installer"
|
||||
|
@ -161,6 +165,10 @@ function Install-XDP {
|
|||
Copy-Item -ToSession $Session $msiPath -Destination $remoteMsiPath
|
||||
$WaitDriverStartedStr = "${function:Wait-DriverStarted}"
|
||||
Invoke-Command -Session $Session -ScriptBlock {
|
||||
# Install VCRT. Not required for official XDP builds.
|
||||
Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vc_redist.x64.exe" -OutFile "vc_redist.x64.exe"
|
||||
Start-Process -FilePath "vc_redist.x64.exe" -ArgumentList "/install /quiet /norestart" -Wait -NoNewWindow
|
||||
|
||||
$CertFileName = 'xdp.cer'
|
||||
Get-AuthenticodeSignature $Using:remoteMsiPath | Select-Object -ExpandProperty SignerCertificate | Export-Certificate -Type CERT -FilePath $CertFileName
|
||||
Import-Certificate -FilePath $CertFileName -CertStoreLocation 'cert:\localmachine\root'
|
||||
|
|
Загрузка…
Ссылка в новой задаче