内気なもんた君

時々日本語化してます

EdgeとWebView の削除とクリーンアップ

EdgeとWebView の削除とクリーンアップ

検証のためEdgeとWebViewを入れてみたのだけれど、やはりEdgeは好きになれない。

あれこれスタートアップ、タスク、サービスに登録されるし、勝手に既定のブラウザにされてしまう。

検証を終えたので、とっとと削除することにします。

ちなみに、昔どこかで「Edgeはシステムと深く関わってるので削除すると不具合が発生する可能性があるので削除しない方がいい」とか目にしたことがあるけど、そんなこと全くない。逆に入ってる方が不具合もたらす可能性が大きい。

 

Edge と WebView を削除したあとクリーンアップをします。

WebViewを削除できない時はここを参照してください。

バージョン名は環境に合わせて変更してください。
"C:\Program Files (x86)\Microsoft" を削除しているのでEdge,WebView以外のものがあるときは注意。(この行を削除)

- = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = -

@Echo Off
Title Edge,Edgeupdate,WebView の削除とクリーンアップ & Color 0B
cd %systemroot%\system32
call :IsAdmin

"%ProgramFiles(x86)%\Microsoft\Edge\Application\122.0.2365.52\Installer\setup.exe" --uninstall --msedge --system-level --verbose-logging --force-uninstall
"%ProgramFiles(x86)%\Microsoft\EdgeWebView\Application\122.0.2365.52\Installer\setup.exe" --uninstall --msedgewebview --system-level --verbose-logging --force-uninstall
"%ProgramFiles(x86)%\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe" /uninstall
rd "C:\Program Files (x86)\Microsoft" /s /q
Reg.exe delete "HKCR\CLSID\{0E1487F2-9865-4CD5-B99A-9C5EB063A2BC}" /f
Reg.exe delete "HKCR\CLSID\{1b223276-f79d-46c5-bc7e-3783ebf93b72}" /f
Reg.exe delete "HKCR\CLSID\{987E88E6-4708-497A-961C-8C9AD54EDCE8}" /f
Reg.exe delete "HKCR\CLSID\{BC197CD3-A9C8-44ED-80FB-A8229777C3C0}" /f
Reg.exe delete "HKCR\CLSID\{E388F56A-D03B-4A08-ADC3-E44CA937AD91}" /f
Reg.exe delete "HKCR\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\PackageRepository\Packages\Microsoft.MicrosoftEdge.Stable_122.0.2365.52_neutral__8wekyb3d8bbwe" /f
Reg.exe delete "HKCR\microsoft-edge" /f
Reg.exe delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Mappings\S-1-15-2-543634040-274359014-2226501544-3561766748-3991453649-3543631192-522786984" /f
Reg.exe delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge.stable_8wekyb3d8bbwe" /f
Reg.exe delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\PolicyCache\Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe" /f
Reg.exe delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.MicrosoftEdge.Stable_122.0.2365.52_neutral__8wekyb3d8bbwe" /f
Reg.exe delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe" /f
Reg.exe delete "HKCU\Software\Classes\microsoft-edge" /f
Reg.exe delete "HKCU\Software\Classes\microsoft-edge-holographic" /f
Reg.exe delete "HKCU\Software\Microsoft\Edge" /f
Reg.exe delete "HKCU\Software\Microsoft\EdgeUpdate" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\HostActivityManager\CommitHistory\Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe!App" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows\CurrentVersion\AppHost\IndexedDB\Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications\Backup\Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe!App" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\microsoft-edge" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\microsoft-edge-holographic" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ms-xbl-3d8b930f" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\read" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Edge" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\EdgeUpdate" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Internet Explorer\EdgeDebugActivation" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Internet Explorer\EdgeIntegration" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\SecurityManager\CapAuthz\ApplicationsEx\Microsoft.MicrosoftEdge.Stable_122.0.2365.52_neutral__8wekyb3d8bbwe" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModel\StateRepository\Cache\PackageFamily\Index\PackageFamilyName\Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications\Microsoft.MicrosoftEdge.Stable_122.0.2365.52_neutral__8wekyb3d8bbwe" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Config\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\Microsoft.MicrosoftEdgeDevToolsClient_8wekyb3d8bbwe" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\S-1-5-21-3054536193-4120195760-4013935347-500\Microsoft.MicrosoftEdge.Stable_122.0.2365.52_neutral__8wekyb3d8bbwe" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\PackageState\S-1-5-21-3054536193-4120195760-4013935347-500\Microsoft.MicrosoftEdge.Stable_8wekyb3d8bbwe" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\Capabilities\microphone\Apps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\Capabilities\userAccountInformation\Apps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\Capabilities\webcam\Apps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\MicrosoftEdge" /f
Reg.exe delete "HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\edgeupdate" /f
Reg.exe delete "HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\edgeupdatem" /f
Reg.exe delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Edge" /f
Reg.exe delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate" /f
Reg.exe delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Config\Microsoft.MicrosoftEdge_8wekyb3d8bbwe" /f
Reg.exe delete "HKU\.DEFAULT\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe" /f
Reg.exe delete "HKU\S-1-5-19\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe" /f
Reg.exe delete "HKU\S-1-5-20\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe" /f
Reg.exe delete "HKCR\.mhtml\OpenWithProgIDs" /v "MSEdgeMHT" /f
Reg.exe delete "HKCR\.mht\OpenWithProgIDs" /v "MSEdgeMHT" /f
Reg.exe delete "HKCR\.pdf\OpenWithProgids" /v "MSEdgePDF" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store" /v "C:\Program Files (x86)\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store" /v "C:\Program Files (x86)\Microsoft\EdgeWebView\Application\122.0.2365.52\Installer\setup.exe" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store" /v "C:\Program Files (x86)\Microsoft\Edge\Application\122.0.2365.52\Installer\setup.exe" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store" /v "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" /v "AppX3xxs313wwkfjhythsb8q46xdsq8d2cvv_microsoft-edge-holographic" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" /v "AppX7rm9drdg8sk7vqndwj3sdjw11x96jc0y_microsoft-edge" /f
Reg.exe delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Search\JumplistData" /v "MSEdge" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts" /v "AppX7rm9drdg8sk7vqndwj3sdjw11x96jc0y_microsoft-edge" /f
Reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v "DisableEdgeDesktopShortcutCreation" /f
Exit

:IsAdmin
Reg.exe query "HKU\S-1-5-19\Environment"
If Not %ERRORLEVEL% EQU 0 (
 Cls & Echo 続行するには管理者権限が必要です... 
 Pause & Exit
)
Cls
goto:eof

- = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = - = -

上記をバッチファイルとして保存し、管理者として実行してください。

 

バッチでは削除できないものもあるので(UserChoiceなど)、どうしても気になるときはここを参照してください。