From 7d1a03dcc9c1f04662142dba4e837ec4ccbf0e05 Mon Sep 17 00:00:00 2001 From: Omar <90123670+mewclouds@users.noreply.github.com> Date: Wed, 22 Jul 2026 13:41:48 -0400 Subject: [PATCH] bugfix(tweaks): fix OneDrive uninstall path (#4864) * bugfix(tweaks): fix OneDrive uninstall path * bugfix(tweaks): use SystemRoot for OneDrive path --- config/tweaks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/tweaks.json b/config/tweaks.json index e72983fd..32a09bbb 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -650,7 +650,7 @@ icacls $Env:OneDrive /deny \"Administrators:(D,DC)\" Write-Host \"Uninstalling OneDrive...\" - Start-Process '$Env:SystemRoot\\System32\\OneDriveSetup.exe' -ArgumentList '/uninstall' -Wait + Start-Process -FilePath (Join-Path $Env:SystemRoot \"System32\\OneDriveSetup.exe\") -ArgumentList '/uninstall' -Wait # Some of OneDrive files use explorer, and OneDrive uses FileCoAuth Write-Host \"Removing leftover OneDrive Files...\"