From b6b479685af09a5244ab978669ba8c262d20dd69 Mon Sep 17 00:00:00 2001 From: Gabi <218829269+GabiNun2@users.noreply.github.com> Date: Wed, 1 Jul 2026 20:21:21 +0300 Subject: [PATCH] Stop hardcoding C:\ (#4725) * Stop hardcoding C:\ * Update tweaks.json --- config/tweaks.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/tweaks.json b/config/tweaks.json index 2cf0677a..b39c5446 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 'C:\\Windows\\System32\\OneDriveSetup.exe' -ArgumentList '/uninstall' -Wait + Start-Process '$Env:SystemRoot\\System32\\OneDriveSetup.exe' -ArgumentList '/uninstall' -Wait # Some of OneDrive files use explorer, and OneDrive uses FileCoAuth Write-Host \"Removing leftover OneDrive Files...\" @@ -658,7 +658,7 @@ Stop-Process -Name FileCoAuth,Explorer Remove-Item \"$Env:LocalAppData\\Microsoft\\OneDrive\" -Recurse -Force - Remove-Item \"C:\\ProgramData\\Microsoft OneDrive\" -Recurse -Force + Remove-Item \"$Env:ProgramData\\Microsoft OneDrive\" -Recurse -Force # Grant back permission to access OneDrive folder icacls $Env:OneDrive /grant \"Administrators:(D,DC)\" @@ -966,7 +966,7 @@ ], "InvokeScript": [ " - $RazerPath = \"C:\\Windows\\Installer\\Razer\" + $RazerPath = \"$Env:SystemRoot\\Installer\\Razer\" if (Test-Path $RazerPath) { Remove-Item $RazerPath\\* -Recurse -Force @@ -979,7 +979,7 @@ ], "UndoScript": [ " - icacls \"C:\\Windows\\Installer\\Razer\" /remove:d Everyone + icacls \"$Env:SystemRoot\\Installer\\Razer\" /remove:d Everyone " ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/razerblock"