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,11 +26,15 @@ Function Invoke-WinUtilCurrentSystem {
|
|||||||
|
|
||||||
$filter = Get-WinUtilVariables -Type Checkbox | Where-Object {$psitem -like "WPFInstall*"}
|
$filter = Get-WinUtilVariables -Type Checkbox | Where-Object {$psitem -like "WPFInstall*"}
|
||||||
$sync.GetEnumerator() | Where-Object {$psitem.Key -in $filter} | ForEach-Object {
|
$sync.GetEnumerator() | Where-Object {$psitem.Key -in $filter} | ForEach-Object {
|
||||||
if($sync.configs.applications.$($psitem.Key).winget -in $sync.InstalledPrograms.Id){
|
$dependencies = $($sync.configs.applications.$($psitem.Key).winget -split ";")
|
||||||
|
|
||||||
|
Foreach ($dependency in $dependencies) {
|
||||||
|
if($dependency -in $sync.InstalledPrograms.Id){
|
||||||
Write-Output $psitem.name
|
Write-Output $psitem.name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if($CheckBox -eq "tweaks"){
|
if($CheckBox -eq "tweaks"){
|
||||||
|
|
||||||
|
@ -367,11 +367,15 @@ Function Invoke-WinUtilCurrentSystem {
|
|||||||
|
|
||||||
$filter = Get-WinUtilVariables -Type Checkbox | Where-Object {$psitem -like "WPFInstall*"}
|
$filter = Get-WinUtilVariables -Type Checkbox | Where-Object {$psitem -like "WPFInstall*"}
|
||||||
$sync.GetEnumerator() | Where-Object {$psitem.Key -in $filter} | ForEach-Object {
|
$sync.GetEnumerator() | Where-Object {$psitem.Key -in $filter} | ForEach-Object {
|
||||||
if($sync.configs.applications.$($psitem.Key).winget -in $sync.InstalledPrograms.Id){
|
$dependencies = $($sync.configs.applications.$($psitem.Key).winget -split ";")
|
||||||
|
|
||||||
|
Foreach ($dependency in $dependencies) {
|
||||||
|
if($dependency -in $sync.InstalledPrograms.Id){
|
||||||
Write-Output $psitem.name
|
Write-Output $psitem.name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if($CheckBox -eq "tweaks"){
|
if($CheckBox -eq "tweaks"){
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user