From f258cea768228295cdaa08a53cd0af5d722b9fe4 Mon Sep 17 00:00:00 2001 From: ThioJoe <12518330+ThioJoe@users.noreply.github.com> Date: Mon, 4 Aug 2025 21:36:48 -0700 Subject: [PATCH] Add last updated lines, Auto accept winget terms - Adds line to automatically silently accept msstore terms after winget install to avoid the annoying prompt. - Add 'last updated' line to winget and microsoft store installer scripts --- Installer Scripts/Install-Microsoft-Store.ps1 | 1 + Installer Scripts/Install-Winget.ps1 | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Installer Scripts/Install-Microsoft-Store.ps1 b/Installer Scripts/Install-Microsoft-Store.ps1 index d56f843..9582e53 100644 --- a/Installer Scripts/Install-Microsoft-Store.ps1 +++ b/Installer Scripts/Install-Microsoft-Store.ps1 @@ -4,6 +4,7 @@ # Author: ThioJoe # Repo Url: https://github.com/ThioJoe/Windows-Sandbox-Tools +# Last Updated: August 4, 2025 param( # Optional switch to output the generated XML files to the working directory diff --git a/Installer Scripts/Install-Winget.ps1 b/Installer Scripts/Install-Winget.ps1 index dd16923..1bafd78 100644 --- a/Installer Scripts/Install-Winget.ps1 +++ b/Installer Scripts/Install-Winget.ps1 @@ -3,7 +3,7 @@ # Author: ThioJoe # Repo Url: https://github.com/ThioJoe/Windows-Sandbox-Tools - +# Last Updated: August 4, 2025 param( [switch]$removeMsStoreAsSource = $false # If switch is included, it will remove the 'msstore' source after installing winget, which doesn't work with Sandbox, unless the Microsoft Store is also installed @@ -152,5 +152,8 @@ if ($removeMsStoreAsSource.IsPresent) { } catch { Write-Warning "An error occurred while trying to execute 'winget source remove msstore': $($_.Exception.Message)" } +} else { + # Automatically accept source agreements to avoid prompts. Mostly applies to msstore. + winget list --accept-source-agreements | Out-Null }