mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-16 07:35:52 -06:00
Fix 'Get Installed' for multiple-dependency apps (#835)
This commit is contained in:
parent
a30b81eb9e
commit
d88e6c40d8
@ -26,8 +26,12 @@ Function Invoke-WinUtilCurrentSystem {
|
||||
|
||||
$filter = Get-WinUtilVariables -Type Checkbox | Where-Object {$psitem -like "WPFInstall*"}
|
||||
$sync.GetEnumerator() | Where-Object {$psitem.Key -in $filter} | ForEach-Object {
|
||||
if($sync.configs.applications.$($psitem.Key).winget -in $sync.InstalledPrograms.Id){
|
||||
Write-Output $psitem.name
|
||||
$dependencies = $($sync.configs.applications.$($psitem.Key).winget -split ";")
|
||||
|
||||
Foreach ($dependency in $dependencies) {
|
||||
if($dependency -in $sync.InstalledPrograms.Id){
|
||||
Write-Output $psitem.name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -367,8 +367,12 @@ Function Invoke-WinUtilCurrentSystem {
|
||||
|
||||
$filter = Get-WinUtilVariables -Type Checkbox | Where-Object {$psitem -like "WPFInstall*"}
|
||||
$sync.GetEnumerator() | Where-Object {$psitem.Key -in $filter} | ForEach-Object {
|
||||
if($sync.configs.applications.$($psitem.Key).winget -in $sync.InstalledPrograms.Id){
|
||||
Write-Output $psitem.name
|
||||
$dependencies = $($sync.configs.applications.$($psitem.Key).winget -split ";")
|
||||
|
||||
Foreach ($dependency in $dependencies) {
|
||||
if($dependency -in $sync.InstalledPrograms.Id){
|
||||
Write-Output $psitem.name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user