- @echo off
- (
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinRAR.exe" /f /ve /t REG_SZ /d "%~dp0WinRAR.exe"
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinRAR.exe" /f /v "Path" /t REG_SZ /d "%~dp0"
- reg add "HKLM\SOFTWARE\Classes\WinRAR" /f /ve /t REG_SZ /d "RAR 压缩文件"
- reg add "HKLM\SOFTWARE\Classes\WinRAR\DefaultIcon" /f /ve /t REG_SZ /d "%~dp0WinRAR.exe,0"
- reg add "HKLM\SOFTWARE\Classes\WinRAR\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp0WinRAR.exe\" \"%%1\""
- reg add "HKLM\SOFTWARE\Classes\WinRAR\shellex\ContextMenuHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}" /f /ve /t REG_SZ /d ""
- ) >nul 2>nul
复制代码
|