Refactor default winget
parameters
This commit is contained in:
parent
5e2e43735e
commit
834883b5de
1 changed files with 5 additions and 1 deletions
|
@ -59,7 +59,11 @@ $null = New-Module {
|
||||||
|
|
||||||
foreach ($name in $Names) {
|
foreach ($name in $Names) {
|
||||||
if ($Force.IsPresent -and -not (Test-WingetPackage $name)) {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue