Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Install VC Redistributables #686

Merged
4 commits merged into from
Mar 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/runtime-tools/win64/onefuzz.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,15 @@ function Set-Restart {
$config.restart = 'true'
Write-OnefuzzConfig($config)
}

function Install-VCRedist {
log "installing VC Redist"
$x64Release = 'https://aka.ms/vs/15/release/VC_redist.x64.exe'
$x86Release = 'https://aka.ms/vs/15/release/VC_redist.x86.exe'
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri $x64Release -OutFile "C:\onefuzz\vcredist_x64.exe"
muhammadmeisam marked this conversation as resolved.
Show resolved Hide resolved
Invoke-WebRequest -Uri $x86Release -OutFile "C:\onefuzz\vcredist_x86.exe"
Start-Process -FilePath C:\onefuzz\vcredist_x64.exe -ArgumentList "/install /q /norestart" -Wait -WindowStyle Hidden
Start-Process -FilePath C:\onefuzz\vcredist_x86.exe -ArgumentList "/install /q /norestart" -Wait -WindowSytle Hidden
log "installing VC Redist: done"
}
1 change: 1 addition & 0 deletions src/runtime-tools/win64/setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function Install-OnefuzzSetup {
Install-LLVM
Enable-SSH
Install-OnBoot
Install-VCRedist
log "onefuzz: setup done"
}

Expand Down