Allow unawaited installation of winget packages

This commit is contained in:
Manuel Thalmann 2023-07-02 17:55:42 +02:00
parent 1354856096
commit f603b690a4
3 changed files with 3 additions and 3 deletions
scripts/Windows/Software
ManiaPlanet
TrackMania Nations Forever

View file

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

View file

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