From bcef9f772a63280d6d5da562b84384d46ce6da8b Mon Sep 17 00:00:00 2001 From: madkarmaa Date: Tue, 11 Mar 2025 17:59:14 +0100 Subject: [PATCH] feat: add undo script --- config/tweaks.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/config/tweaks.json b/config/tweaks.json index 44bfaab3..248f9165 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -3777,5 +3777,21 @@ Write-Host Please sign out and back in, or restart your computer to apply the changes! " ], + "UndoScript": [ + " + # Previously detected folders + $bags = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\Bags\" + + # Folder types lookup table + $bagsMRU = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\BagsMRU\" + + # Flush explorer view database + Remove-Item -Path $bags -Recurse -Force + Write-Host \"Removed $bags\" + + Remove-Item -Path $bagsMRU -Recurse -Force + Write-Host \"Removed $bagsMRU\" + " + ], }, }