Microsoft Visual C++ 2019 Redistributable (x86)

From LANCommander
Revision as of 18:12, 19 December 2023 by DoctorDalek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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 (x86).

$Installed = Get-Package | Where-Object -Property Name -like "Microsoft Visual C++ 2015-20* Redistributable (x86)*"

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

Install Script

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

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