Fix PS script for compatibility with KB5074596
This commit is contained in:
parent
d8eb817ed9
commit
bc5e9917cd
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ $UpgradeCodes = @{ "X64" = "36F68A90-239C-34DF-B58C-64B30153CE35";
|
||||||
"ARM64" = "DC9BAE42-810B-423A-9E25-E4073F1C7B00"; }
|
"ARM64" = "DC9BAE42-810B-423A-9E25-E4073F1C7B00"; }
|
||||||
|
|
||||||
function Get-RedirectTarget([string]$Url) {
|
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) {
|
function Print-WixForArch([string]$Arch) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue