Microsoft Visual C++ 2019 Redistributable (x64)

From LANCommander
Revision as of 00:44, 30 November 2023 by DoctorDalek (talk | contribs)


Downloads

Version Release Date File
14.28.29334 Download

Install Detection

This script will look at the installed package list from Windows for anything matching Visual C++ 2019 Redistributable (x64).

$Installed = Get-Package "Microsoft Visual C++ 2015-20* Redistributable (x64)*"

if ($Installed.Length -ge 0) {
    $Host.SetShouldExit(1)
} else {
    $Host.SetShouldExit(0)
}

Install Script

This script installs the Visual C++ 2019 Redistributable (x64) redistributable silently.

Write-Host "Installing Visual C++ 2019 Redistributable (x64)..."
Start-Process -FilePath "VC_redist.x64.exe" -ArgumentList "/quiet /norestart" -Wait -Passthru
Write-Host "Done!"