Refactor default winget
parameters
This commit is contained in:
parent
671fec827d
commit
c33ad5c306
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue