Implement "Get-Installed" (quick-and-dirty)

This commit is contained in:
Marterich
2024-08-22 22:50:52 +02:00
parent d111244347
commit 579030eeb9
2 changed files with 20 additions and 8 deletions

View File

@ -13,6 +13,16 @@ Function Invoke-WinUtilCurrentSystem {
param(
$CheckBox
)
if ($CheckBox -eq "choco"){
$apps = (choco list | Select-String -Pattern "^\S+").Matches.Value
$filter = Get-WinUtilVariables -Type Checkbox | Where-Object {$psitem -like "WPFInstall*"}
$sync.GetEnumerator() | Where-Object {$psitem.Key -in $filter} | ForEach-Object {
$dependencies = @($sync.configs.applications.$($psitem.Key).choco -split ";")
if ($dependencies -in $apps) {
Write-Output $psitem.name
}
}
}
if ($checkbox -eq "winget") {