Open miawri opened 5 months ago
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
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