vcredist icon indicating copy to clipboard operation
vcredist copied to clipboard

Feature Request: Use Get-InstalledVcRedist for updating of installed Runtimes

Open miawri opened this issue 1 year ago • 1 comments

It would be good if we could use Get-InstalledVcRedist to just update any currently installed runtimes.

e.g. Install-VcRedist -VcList (Get-InstalledVcRedist -ExportAll) | Save-VcRedist -Path c:\Temp

miawri avatar Jun 10 '24 15:06 miawri

You can do this:

$Path = "$Env:SystemRoot\Temp\VcRedist"
New-Item -Path $Path -ItemType "Directory"
$InstalledVcRedist = Get-InstalledVcRedist
Get-VcList -Export All | Where-Object { $_.Release -in $InstalledVcRedist.Release -and $_.Architecture -in $InstalledVcRedist.Architecture } | Save-VcRedist -Path $Path | Install-VcRedist

aaronparker avatar Jun 11 '24 02:06 aaronparker