Beyond Compare右键菜单找回
问题描述:
用了大概15年的Beyond Compare,第一回遇到右键菜单死活找不到的情况。
重装了N次Beyond Compare,一直没有修复成功。
以前也在网上找过,没有找到真正有用的,今天终于发了狠,花了大概半个小时,到底找到正确答案了。
解决方案:
把下面的内容存成“RegContextMenu.bat”,放在Beyond Compare目录下,用管理员身份执行一下就好了。
注意,我这是64版本的,32版本的把“BCShellEx64.dll”改成“BCShellEx.dll”就好了。
@echo off
rem 请将此脚本放在BC的目录执行,例如 C:\Program Files\Beyond Compare
rem 注册右键
reg add HKEY_CURRENT_USER\Software\Classes\*\shellex\ContextMenuHandlers\CirrusShellEx /ve /d "{57FA2D12-D22D-490A-805A-5CB48E84F12A}" /f
reg add HKEY_CURRENT_USER\Software\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A} /ve /d "CirrusShellEx" /f
reg add HKEY_CURRENT_USER\Software\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}\InProcServer32 /ve /d "%~dp0BCShellEx64.dll" /f
reg add HKEY_CURRENT_USER\Software\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}\InProcServer32 /v "ThreadingModel" /d "Apartment" /f
reg add HKEY_CURRENT_USER\Software\Classes\Directory\shellex\ContextMenuHandlers\CirrusShellEx /ve /d "{57FA2D12-D22D-490A-805A-5CB48E84F12A}" /f
reg add HKEY_CURRENT_USER\Software\Classes\Folder\shellex\ContextMenuHandlers\CirrusShellEx /ve /d "{57FA2D12-D22D-490A-805A-5CB48E84F12A}" /f
reg add HKEY_CURRENT_USER\Software\Classes\lnkfile\shellex\ContextMenuHandlers\CirrusShellEx /ve /d "{57FA2D12-D22D-490A-805A-5CB48E84F12A}" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" /v "{57FA2D12-D22D-490A-805A-5CB48E84F12A}" /t REG_SZ /d "Beyond Compare 4 Shell Extension" /f