fix(app-removal): detect installed OneDrive in the "Only show installed" filter (#656)

This commit is contained in:
HetCreep
2026-06-22 20:10:53 +07:00
committed by GitHub
parent a6d59c0dc1
commit 4891aa401a

View File

@@ -32,6 +32,13 @@ function LoadAppsDetailsFromJson {
$isInstalled = $true $isInstalled = $true
break break
} }
if (($appId -eq "Microsoft.OneDrive") -and (
(Test-Path "$env:ProgramFiles\Microsoft OneDrive\OneDrive.exe") -or
(Test-Path "$env:LOCALAPPDATA\Microsoft\OneDrive\OneDrive.exe")
)) {
$isInstalled = $true
break
}
} }
if (-not $isInstalled) { continue } if (-not $isInstalled) { continue }
} }