From 4891aa401a4a83174a7d1c3b20956a0d3e7fe396 Mon Sep 17 00:00:00 2001 From: HetCreep Date: Mon, 22 Jun 2026 20:10:53 +0700 Subject: [PATCH] fix(app-removal): detect installed OneDrive in the "Only show installed" filter (#656) --- Scripts/FileIO/LoadAppsDetailsFromJson.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Scripts/FileIO/LoadAppsDetailsFromJson.ps1 b/Scripts/FileIO/LoadAppsDetailsFromJson.ps1 index e4229b6..a747b46 100644 --- a/Scripts/FileIO/LoadAppsDetailsFromJson.ps1 +++ b/Scripts/FileIO/LoadAppsDetailsFromJson.ps1 @@ -32,6 +32,13 @@ function LoadAppsDetailsFromJson { $isInstalled = $true 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 } }