Skip to content

Instantly share code, notes, and snippets.

@HeitorAugustoLN
Created December 25, 2023 07:13
Show Gist options
  • Save HeitorAugustoLN/2994269ad83323f90d8d45663ab5024b to your computer and use it in GitHub Desktop.
Save HeitorAugustoLN/2994269ad83323f90d8d45663ab5024b to your computer and use it in GitHub Desktop.
$years = @("2005", "2008", "2010", "2012", "2013", "2015+")
$arches = @("x86", "x64")
foreach ($year in $years) {
foreach ($arch in $arches) {
Write-Host "Installing Microsoft Visual C++ $year Redistributable ($arch)"
winget.exe install --id Microsoft.VCRedist.$year.$arch -e --silent
}
}
Write-Host "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment