From: lx-s Date: Wed, 8 Jul 2026 07:31:34 +0000 (+0200) Subject: Fixed chocolatey scripts X-Git-Tag: 2.6.0.0~102 X-Git-Url: https://repos.lx-s.de/gitweb/?a=commitdiff_plain;h=960726ea1f38f6ae15ac86c9bdec48ba6a5b91ff;p=winmute.git Fixed chocolatey scripts --- diff --git a/Dist/chocolatey/tools/chocolateybeforemodify.ps1 b/Dist/chocolatey/tools/chocolateybeforemodify.ps1 index 88d8184..0a964ec 100644 --- a/Dist/chocolatey/tools/chocolateybeforemodify.ps1 +++ b/Dist/chocolatey/tools/chocolateybeforemodify.ps1 @@ -1 +1 @@ -Stop-Process -Name WinMute \ No newline at end of file +Stop-Process -Name WinMute -ErrorAction SilentlyContinue diff --git a/Dist/chocolatey/tools/chocolateyuninstall.ps1 b/Dist/chocolatey/tools/chocolateyuninstall.ps1 index 2b8abdd..eee8a78 100644 --- a/Dist/chocolatey/tools/chocolateyuninstall.ps1 +++ b/Dist/chocolatey/tools/chocolateyuninstall.ps1 @@ -1,3 +1,3 @@ -Stop-Process -Name WinMute -Remove-Item "HKCU:\SOFTWARE\lx-systems\WinMute" -Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "LX-Systems WinMute" +Stop-Process -Name WinMute -ErrorAction SilentlyContinue +Remove-Item "HKCU:\SOFTWARE\lx-systems\WinMute" -Recurse -ErrorAction SilentlyContinue +Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "LX-Systems WinMute" -ErrorAction SilentlyContinue