mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-07-02 22:58:34 +00:00
fix(app-removal): detect installed OneDrive in the "Only show installed" filter (#656)
This commit is contained in:
@@ -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 }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user