|
本帖最后由 2010qaqz111 于 2013-4-11 20:05 编辑
多谢楼上提供的链接,不过你那个包里的批处理有个地方多了一对引号,导致 BC3 主程序里面的 shell 菜单项设置的勾还是不能保存。
我在win8用procmon从新安装了一遍,结合你那个批处理整理出了一个最简化的版本,右键菜单和主程序设置都可以正常工作,具体贴在下面了,方便以后有人找:
_Setup.cmd- @echo off
- cd /d "%~dp0"
- set BcShell=%~dp0BCShellEx.dll
- if exist %Windir%\SysWOW64\cmd.exe set BcShell=%~dp0BCShellEx64.dll
- >nul 2>nul reg add "HKLM\SOFTWARE\Classes\*\ShellEx\ContextMenuHandlers\CirrusShellEx" /f /ve /t REG_SZ /d "{57FA2D12-D22D-490A-805A-5CB48E84F12A}"
- >nul 2>nul reg add "HKLM\SOFTWARE\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}" /f /ve /t REG_SZ /d "CirrusShellEx"
- >nul 2>nul reg add "HKLM\SOFTWARE\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}\InProcServer32" /f /ve /t REG_SZ /d "%BcShell%"
- >nul 2>nul reg add "HKLM\SOFTWARE\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
- >nul 2>nul reg add "HKLM\SOFTWARE\Classes\Directory\ShellEx\ContextMenuHandlers\CirrusShellEx" /f /ve /t REG_SZ /d "{57FA2D12-D22D-490A-805A-5CB48E84F12A}"
- >nul 2>nul reg add "HKLM\SOFTWARE\Classes\Folder\ShellEx\ContextMenuHandlers\CirrusShellEx" /f /ve /t REG_SZ /d "{57FA2D12-D22D-490A-805A-5CB48E84F12A}"
- >nul 2>nul reg add "HKLM\SOFTWARE\Classes\lnkfile\ShellEx\ContextMenuHandlers\CirrusShellEx" /f /ve /t REG_SZ /d "{57FA2D12-D22D-490A-805A-5CB48E84F12A}"
- >nul 2>nul reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" /f /v "{57FA2D12-D22D-490A-805A-5CB48E84F12A}" /t REG_SZ /d "Beyond Compare 3 Shell Extension"
- >nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3" /f /v SupportsMerge /t REG_DWORD /d 1
- >nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v ArchiveMasks /t REG_SZ /d "*.7z;*.7z.001;*.apk;*.bcpkg;*.bcs;*.bcss;*.bz;*.bz2;*.cab;*.chm;*.ear;*.gz;*.jar;*.rar;*.tar;*.tar.bz2;*.tar.gz;*.tbz;*.tbz2;*.tgz;*.war;*.zip;"
- >nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v RegistryViewer /t REG_SZ /d "注册表比较"
- >nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v Viewers /t REG_SZ /d "文本比较;MP3比较;版本比较;十六进制比较;数据比较;图片比较;注册表比较"
- >nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v CompareUsing /t REG_DWORD /d 2
- >nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v Merge /t REG_DWORD /d 2
- >nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v SelectCenter /t REG_DWORD /d 2
- >nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v Sync /t REG_DWORD /d 2
- >nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v Edit /t REG_DWORD /d 2
- >nul 2>nul reg add "HKCU\Software\Scooter Software\Beyond Compare 3\BcShellEx" /f /v Reg /t REG_DWORD /d 2
复制代码 _Uninstall.cmd- @echo off
- >nul 2>nul reg delete "HKLM\SOFTWARE\Classes\*\ShellEx\ContextMenuHandlers\CirrusShellEx" /f
- >nul 2>nul reg delete "HKLM\SOFTWARE\Classes\CLSID\{57FA2D12-D22D-490A-805A-5CB48E84F12A}" /f
- >nul 2>nul reg delete "HKLM\SOFTWARE\Classes\Directory\ShellEx\ContextMenuHandlers\CirrusShellEx" /f
- >nul 2>nul reg delete "HKLM\SOFTWARE\Classes\Folder\ShellEx\ContextMenuHandlers\CirrusShellEx" /f
- >nul 2>nul reg delete "HKLM\SOFTWARE\Classes\lnkfile\ShellEx\ContextMenuHandlers\CirrusShellEx" /f
- >nul 2>nul reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" /f
- >nul 2>nul reg delete "HKCU\Software\Scooter Software" /f
复制代码 |
|