Refactor process termination for explorer.exe in tweaks.json (#3375)

This commit is contained in:
Martin Wiethan 2025-05-23 18:04:26 +02:00 committed by GitHub
parent d22865d79b
commit 290292ec94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3087,8 +3087,7 @@
"
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
Stop-Process -Name \"explorer\" -Force
"
],
"UndoScript": [
@ -3096,8 +3095,7 @@
Remove-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\" -Recurse -Confirm:$false -Force
# 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
Stop-Process -Name \"explorer\" -Force
"
],
"link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/rightclickmenu"