Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
miawri opened this issue Jun 10, 2024 · 1 comment

Comments

@miawri
Copy link

miawri commented Jun 10, 2024

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

@aaronparker
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants