Refactor default winget
parameters
This commit is contained in:
parent
52caf4d991
commit
a86b1b1069
|
@ -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