Fixes to Get installed tweaks does not handle <RemoveEntry> value (#3892)

This commit is contained in:
ozgur
2026-01-14 12:36:45 -05:00
committed by GitHub
parent 1b19311c2e
commit 66eaaaf9bf

View File

@@ -64,7 +64,11 @@ Function Invoke-WinUtilCurrentSystem {
if(test-path $tweak.Path) {
$actualValue = Get-ItemProperty -Name $tweak.Name -Path $tweak.Path -ErrorAction SilentlyContinue | Select-Object -ExpandProperty $($tweak.Name)
$expectedValue = $tweak.Value
if ($expectedValue -notlike $actualValue) {
if ($expectedValue -eq "<RemoveEntry>") {
if ($null -ne $actualValue) {
$values += $False
}
} elseif ($expectedValue -notlike $actualValue) {
$values += $False
}
} else {