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 scriptspull/2/head
parent
28c0cfa418
commit
f258cea768
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue