|
win11下第一次运行winrar.exe会自动在注册表中写入大量组件注册信息,右键菜单可以用这样的脚本来设置
mshta.exe vbscript:createobject("wscript.shell").run("%exe%",0)(window.close)
timeout /t 4 /nobreak
taskkill /f /im "WinRAR.exe"
reg add "HKCU\Software\WinRAR\Setup" /v "CascadedMenu" /t REG_DWORD /d 0 /f
reg add "HKCU\Software\WinRAR\Setup" /v "LegacyMenu" /t REG_DWORD /d 0 /f
reg add "HKCU\Software\WinRAR\Setup" /v "MenuIcons" /t REG_DWORD /d 1 /f
reg add "HKCU\Software\WinRAR\Setup" /v "ShellExt" /t REG_DWORD /d 1 /f
reg add "HKCU\Software\WinRAR\Setup\TopMenuItems" /v "AddArc" /t REG_DWORD /d 0 /f
reg add "HKCU\Software\WinRAR\Setup\TopMenuItems" /v "AddTo" /t REG_DWORD /d 1 /f
reg add "HKCU\Software\WinRAR\Setup\TopMenuItems" /v "Extr" /t REG_DWORD /d 1 /f
reg add "HKCU\Software\WinRAR\Setup\TopMenuItems" /v "ExtrHere" /t REG_DWORD /d 0 /f
reg add "HKCU\Software\WinRAR\Setup\TopMenuItems" /v "ExtrSep" /t REG_DWORD /d 1 /f
reg add "HKCU\Software\WinRAR\Setup\TopMenuItems" /v "ExtrTo" /t REG_DWORD /d 0 /f
Reg add "HKCU\Software\WinRAR\Viewer" /v "ViewerUnpackAll" /t REG_SZ /d "*.exe *.msi *.htm *.html *.part*.rar *.docx *.doc *.wps *.xlsx *.xls *.et *.pptx *.ppt *.dps" /f
即先静默运行winrar.exe,4秒后杀掉,然后在注册表中写入控制右键菜单显示项的配置数据
|
|