From bc5e9917cd407df5a2a35076a96acf45a8242d0f Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 10 Dec 2025 21:46:44 -0600 Subject: [PATCH] Fix PS script for compatibility with KB5074596 --- scripts/update-msvcredist.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-msvcredist.ps1 b/scripts/update-msvcredist.ps1 index b5148e5a..7248e218 100644 --- a/scripts/update-msvcredist.ps1 +++ b/scripts/update-msvcredist.ps1 @@ -5,7 +5,7 @@ $UpgradeCodes = @{ "X64" = "36F68A90-239C-34DF-B58C-64B30153CE35"; "ARM64" = "DC9BAE42-810B-423A-9E25-E4073F1C7B00"; } function Get-RedirectTarget([string]$Url) { - return (Invoke-WebRequest -Method Get -Uri $Url -MaximumRedirection 0 -ErrorAction SilentlyContinue).Headers.Location + return (Invoke-WebRequest -Method Get -Uri $Url -MaximumRedirection 0 -UseBasicParsing -ErrorAction SilentlyContinue).Headers.Location } function Print-WixForArch([string]$Arch) {