Ignore errors while installing winget

This commit is contained in:
Manuel Thalmann 2024-09-30 16:00:41 +02:00
parent 76d3dbb42f
commit 60a157e4b7

View file

@ -8,9 +8,9 @@
$file = New-TemporaryFile; $file = New-TemporaryFile;
$file = Rename-Item $file "$file.msixbundle" -PassThru; $file = Rename-Item $file "$file.msixbundle" -PassThru;
Invoke-WebRequest "$xamlDownloadLink" -OutFile "$file"; Invoke-WebRequest "$xamlDownloadLink" -OutFile "$file";
Add-AppxPackage "$file"; Add-AppxPackage "$file" -ErrorAction Continue;
Invoke-WebRequest "$downloadLink" -OutFile "$file"; Invoke-WebRequest "$downloadLink" -OutFile "$file";
Add-AppxPackage "$file"; Add-AppxPackage "$file" -ErrorAction Continue;
Remove-Item $file; Remove-Item $file;
}; };
} @args; } @args;