From 60a157e4b7285dd7080ba597b84c683778335a1a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 30 Sep 2024 16:00:41 +0200 Subject: [PATCH] Ignore errors while installing `winget` --- scripts/Windows/Software/winget/Manage.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/Software/winget/Manage.ps1 b/scripts/Windows/Software/winget/Manage.ps1 index d0ed81bd..db5bdd69 100644 --- a/scripts/Windows/Software/winget/Manage.ps1 +++ b/scripts/Windows/Software/winget/Manage.ps1 @@ -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;