From 2ee10b57d4b8670bbd8671c6d2b8eb74eb7a79c6 Mon Sep 17 00:00:00 2001 From: ChrisTitusTech Date: Sun, 31 Mar 2024 17:13:54 +0000 Subject: [PATCH] Compile Winutil --- winutil.ps1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/winutil.ps1 b/winutil.ps1 index 85fb2276..8f04a35c 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -10027,12 +10027,20 @@ $sync.configs.tweaks = '{ "panel": "1", "Order": "a028_", "InvokeScript": [ - "New-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\" -Name \"InprocServer32\" -force -value \"\" " + " + New-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\" -Name \"InprocServer32\" -force -value \"\" + Write-Host Restarting explorer.exe ... + $process = Get-Process -Name \"explorer\" + Stop-Process -InputObject $process + " ], "UndoScript": [ " Remove-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\" -Recurse -Confirm:$false -Force - Write-Host Restart Needed for change + # Restarting Explorer in the Undo Script might not be necessary, as the Registry change without restarting Explorer does work, but just to make sure. + Write-Host Restarting explorer.exe ... + $process = Get-Process -Name \"explorer\" + Stop-Process -InputObject $process " ] },