diff --git a/config/tweaks.json b/config/tweaks.json index 08951a39..e4e713ec 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -2112,6 +2112,47 @@ ], "link": "" }, + "WPFTweaksMakeEdgeUninstallable": { + "Content": "Make Edge Uninstallable via settings", + "Description": "Makes it so you can uninstall edge via settings > installed apps", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a023_", + "registry": [ + { + "Path": "HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Microsoft Edge", + "Name": "NoRemove", + "Type": "Dword", + "Value": "0", + "OriginalValue": "1" + } + ], + "InvokeScript": [ + " + $File = \"C:\\Windows\\System32\\IntegratedServicesRegionPolicySet.json\" + + takeown /f $File + icacls $File /grant \"Administrators:(F)\" + + $FileContent = Get-Content $File + $FileContent[7] = $FileContent[7] -replace \"disabled\", \"enabled\" + Set-Content $File $FileContent + " + ], + "UndoScript": [ + " + $File = \"C:\\Windows\\System32\\IntegratedServicesRegionPolicySet.json\" + + takeown /f $File + icacls $File /grant \"Administrators:(F)\" + + $FileContent = Get-Content $File + $FileContent[7] = $FileContent[7] -replace \"enabled\", \"disabled\" + Set-Content $File $FileContent + " + ], + "link": "" + }, "WPFTweaksUTC": { "Content": "Set Time to UTC (Dual Boot)", "Description": "Essential for computers that are dual booting. Fixes the time sync with Linux Systems.",