From f603b690a4ef329dcfd3d971f7580b30a8ded123 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 2 Jul 2023 17:55:42 +0200 Subject: [PATCH] Allow unawaited installation of winget packages --- scripts/Windows/Collections/Personal.ps1 | 2 +- scripts/Windows/Software/ManiaPlanet/Manage.ps1 | 2 +- scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Windows/Collections/Personal.ps1 b/scripts/Windows/Collections/Personal.ps1 index 272c9fbb..fdbb143a 100644 --- a/scripts/Windows/Collections/Personal.ps1 +++ b/scripts/Windows/Collections/Personal.ps1 @@ -43,6 +43,6 @@ function Restore-PersonalApps([Context] $context) { choso install -y --params "/NoDesktopIcon" vscode vscode-insiders; choco install -y --params "/NoDesktopIcon /AssociateWithFiles" vscodium; - winget install -e --id VSCodium.VSCodium.Insiders --override '/VerySilent /MergeTasks="!runCode,quicklaunchicon,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath"'; + winget install --accept-source-agreements --accept-package-agreements -e --id VSCodium.VSCodium.Insiders --override '/VerySilent /MergeTasks="!runCode,quicklaunchicon,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath"'; choco install -y epicgameslauncher steam goggalaxy; } diff --git a/scripts/Windows/Software/ManiaPlanet/Manage.ps1 b/scripts/Windows/Software/ManiaPlanet/Manage.ps1 index e16c597d..1b0ebcf6 100644 --- a/scripts/Windows/Software/ManiaPlanet/Manage.ps1 +++ b/scripts/Windows/Software/ManiaPlanet/Manage.ps1 @@ -12,7 +12,7 @@ $null = New-Module { function Restore-ManiaPlanet([Context] $context) { Write-Host "Restoring ManiaPlanet"; Write-Information "Installing ManiaPlanet"; - winget install -e --id Nadeo.ManiaPlanet; + winget install --accept-source-agreements --accept-package-agreements -e --id Nadeo.ManiaPlanet; Write-Information "Restoring files"; $context.Restore($context.SoftwareArchive($softwareName), $path); } diff --git a/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 b/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 index 56c0fa4f..8b667c0b 100644 --- a/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 +++ b/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 @@ -19,7 +19,7 @@ $null = New-Module { } Write-Information "Installing TrackMania Nations Forever"; - winget install -e --id Nadeo.TrackManiaNationsForever; + winget install --accept-source-agreements --accept-package-agreements -e --id Nadeo.TrackManiaNationsForever; Write-Information "Removing Desktop Icon"; Remove-Item "$env:PUBLIC\Desktop\*TmNationsForever*"; Write-Information "Restoring Files";