diff --git a/setup.ps1 b/setup.ps1 index 5197aaf..2e6e548 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -125,8 +125,26 @@ do { @{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' { ## REMOVE CRAP Write-Output 'Removing Apps'