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
pull/2/head
ThioJoe 2025-08-04 21:36:48 -07:00
parent 28c0cfa418
commit f258cea768
No known key found for this signature in database
GPG Key ID: 2E328FE64CC3898C
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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
}