Ignore errors while installing winget
This commit is contained in:
parent
76d3dbb42f
commit
60a157e4b7
|
@ -8,9 +8,9 @@
|
|||
$file = New-TemporaryFile;
|
||||
$file = Rename-Item $file "$file.msixbundle" -PassThru;
|
||||
Invoke-WebRequest "$xamlDownloadLink" -OutFile "$file";
|
||||
Add-AppxPackage "$file";
|
||||
Add-AppxPackage "$file" -ErrorAction Continue;
|
||||
Invoke-WebRequest "$downloadLink" -OutFile "$file";
|
||||
Add-AppxPackage "$file";
|
||||
Add-AppxPackage "$file" -ErrorAction Continue;
|
||||
Remove-Item $file;
|
||||
};
|
||||
} @args;
|
||||
|
|
Loading…
Reference in a new issue