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

View file

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

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