Trying old method

This commit is contained in:
TheFlyingFool 2024-05-13 16:35:20 -05:00
parent bce7a207bf
commit 2cf9e795f2

View File

@ -125,8 +125,26 @@ do {
@{name = 'j5create.Driver-JUA365' } ## Not sure if this is correct yet! @{name = 'j5create.Driver-JUA365' } ## Not sure if this is correct yet!
) )
InstallTheApps $Apps Foreach ($app in $apps) {
$listApp = winget list --exact -q $app.name
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 --silent $app.name --source $app.source
} }
else {
winget install --exact $app.name
# winget install --exact --silent $app.name
}
}
else {
Write-host "Skipping Install of " $app.name
}
}
}
#InstallTheApps $Apps
'5' { '5' {
## REMOVE CRAP ## REMOVE CRAP
Write-Output 'Removing Apps' Write-Output 'Removing Apps'