Microsoft Visual C++ 2019 Redistributable (x64): Difference between revisions
DoctorDalek (talk | contribs) No edit summary |
DoctorDalek (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Redistributables]] | [[Category:Redistributables]] | ||
{{Redistributable.DownloadBox | |||
|Downloads = | |||
{{Redistributable.DownloadBox.Row|Version = 14.28.29334|File = Microsoft Visual C++ 2019 Redistributable (x64).zip|ReleaseDate = }} | |||
}} | |||
{{Redistributable.Scripts.DetectInstall | {{Redistributable.Scripts.DetectInstall | ||
|Name = Install Detection | |Name = Install Detection | ||
Line 5: | Line 11: | ||
|RequiresAdmin = False | |RequiresAdmin = False | ||
|Contents = <syntaxhighlight lang="powershell" line> | |Contents = <syntaxhighlight lang="powershell" line> | ||
$Installed = Get-Package "Microsoft Visual C++ 2015-20* Redistributable (x64)*" | $Installed = Get-Package | Where-Object -Property Name -like "Microsoft Visual C++ 2015-20* Redistributable (x64)*" | ||
if ($Installed.Length -ge 0) { | if ($Installed.Length -ge 0) { | ||
$Host.SetShouldExit(1) | |||
} else { | } else { | ||
$Host.SetShouldExit(0) | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 18:12, 19 December 2023
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 | Where-Object -Property Name -like "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!"