Think I have it?

This commit is contained in:
TheFlyingFool 2024-05-21 16:31:13 -05:00
parent b9de693dce
commit 2a520336a8

View File

@ -31,7 +31,7 @@ $settingsJson = @{installBehavior = @{
}
$settingsJson | ConvertTo-Json | Out-File $settingsPath -Encoding utf8
winget search test --accept-source-agreements --accept-package-agreements
winget search test --accept-source-agreements
function InstallTheApps() {
Foreach ($app in $apps) {
@ -39,13 +39,11 @@ function InstallTheApps() {
if (![String]::Join("", $listApp).Contains($app.name)) {
Write-host "Installing:" $app.name
if ($null -ne $app.source) {
winget install --exact $app.name --source $app.source
winget install --exact $app.name --source $app.source
winget install --exact $app.name --source $app.source --accept-package-agreements
# winget install --exact --silent $app.name --source $app.source
}
else {
winget install --exact $app.name
winget install --exact $app.name
winget install --exact $app.name --accept-package-agreements
# winget install --exact --silent $app.name
}
}