Refactor default winget parameters

This commit is contained in:
Manuel Thalmann 2024-08-07 22:56:42 +02:00
parent 5e2e43735e
commit 834883b5de

View file

@ -59,7 +59,11 @@ $null = New-Module {
foreach ($name in $Names) {
if ($Force.IsPresent -and -not (Test-WingetPackage $name)) {
winget install --accept-source-agreements --accept-package-agreements -e --id $name;
winget install `
--accept-source-agreements --accept-package-agreements `
--source winget `
--scope machine `
--exact --id $name;
}
}
}