|
本帖最后由 wu733 于 2024-8-26 10:46 编辑
以下关于7-Zip的相关注册表设置以原版7-Zip x64位作为基础,辅以freesoft00大佬7-Zip 24.05汉化补充及美化图标一贴以及贴中56楼wxinchun92大佬制作的7z.dll效果更佳,感谢大佬们的辛苦付出,我们才会有这么好的体验!只要执行下面三步即可享用。附7-Zip x64原版下载地址:https://www.7-zip.org/
第一步:拷贝7-zip文件夹到C:\Program Files下面(解压安装文件7z2408-x64.exe,并将文件夹改名7-zip);
第二步:导入以下注册表值:
Windows Registry Editor Version 5.00
;无下面这段,注册7-zip.dll和7-zip32.dll后,还是会没有右键菜单,非原来我以为的层叠菜单
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\ShellEx\ContextMenuHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"
;7-Zip x64 24.07版及以后版本需要增加下面这段,24.06版则不需要,已验证
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shellex\DragDropHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shellex\DragDropHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"
;右键菜单中显示的项目,效及果见图一
[HKEY_CURRENT_USER\Software\7-Zip]
[HKEY_CURRENT_USER\Software\7-Zip\Options]
"ContextMenu"=dword:00000324
;右键菜单显示黑色图标,改为0,则不显示黑色图标
[HKEY_CURRENT_USER\Software\7-Zip]
[HKEY_CURRENT_USER\Software\7-Zip\Options]
"MenuIcons"=dword:00000001
;卸载程序图标及卸载程序设置,效果见图五
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7-Zip]
"DisplayIcon"="C:\\Program Files\\7-Zip\\7z.dll,0"
"DisplayName"="7-Zip 24.08 (x64)"
"DisplayVersion"="24.08"
"InstallLocation"="C:\\Program Files\\7-Zip\\"
"UninstallString"="\"C:\\Program Files\\7-Zip\\Uninstall.exe\""
"QuietUninstallString"="\"C:\\Program Files\\7-Zip\\Uninstall.exe\" /S"
"NoModify"=dword:00000001
"NoRepair"=dword:00000001
"EstimatedSize"=dword:00001642 ;预计大小,这里1642是十六进值,要看十进制值,也就是5698,5698KB/1024=5.56MB
"VersionMajor"=dword:00000018 ;主版本号,这里18是十六进制值,要看十进制值,也就是24
"VersionMinor"=dword:00000008 ;次版本号,这里8也是十六进制值,目前十六进制和十进制值一样都是8,估计也是以十进值为准
"Publisher"="Igor Pavlov"
;关联.7z图标
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.7z]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.7z]
@="7z Archive"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.7z\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.7z\shell] ;新建shell子项
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.7z\shell\open] ;新建open子项
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.7z\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""
[HKEY_CURRENT_USER\Software\Classes\.7z]
@="7-Zip.7z"
[HKEY_CURRENT_USER\Software\Classes\7-Zip.7z]
@="7z Archive"
[HKEY_CURRENT_USER\Software\Classes\7-Zip.7z\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,0"
[HKEY_CURRENT_USER\Software\Classes\7-Zip.7z\shell] ;新建shell子项
[HKEY_CURRENT_USER\Software\Classes\7-Zip.7z\shell\open] ;新建open子项
[HKEY_CURRENT_USER\Software\Classes\7-Zip.7z\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""
;关联.zip图标
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.zip]
@="7-Zip.zip"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.zip]
@="zip Archive"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.zip\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.zip\shell] ;新建shell子项
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.zip\shell\open] ;新建open子项
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.zip\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""
[HKEY_CURRENT_USER\Software\Classes\.zip]
@="7-Zip.zip"
[HKEY_CURRENT_USER\Software\Classes\7-Zip.zip]
@="zip Archive"
[HKEY_CURRENT_USER\Software\Classes\7-Zip.zip\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,1"
[HKEY_CURRENT_USER\Software\Classes\7-Zip.zip\shell] ;新建shell子项
[HKEY_CURRENT_USER\Software\Classes\7-Zip.zip\shell\open] ;新建open子项
[HKEY_CURRENT_USER\Software\Classes\7-Zip.zip\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""
;关联.rar图标
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.rar]
@="7-Zip.rar"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rar]
@="rar Archive"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rar\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,3"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rar\shell] ;新建shell子项
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rar\shell\open] ;新建open子项
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rar\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""
[HKEY_CURRENT_USER\Software\Classes\.rar]
@="7-Zip.rar"
[HKEY_CURRENT_USER\Software\Classes\7-Zip.rar]
@="rar Archive"
[HKEY_CURRENT_USER\Software\Classes\7-Zip.rar\DefaultIcon]
@="C:\\Program Files\\7-Zip\\7z.dll,3"
[HKEY_CURRENT_USER\Software\Classes\7-Zip.rar\shell] ;新建shell子项
[HKEY_CURRENT_USER\Software\Classes\7-Zip.rar\shell\open] ;新建open子项
[HKEY_CURRENT_USER\Software\Classes\7-Zip.rar\shell\open\command]
@="\"C:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""
第三步:注册7-zip.dll和7-zip32.dll,运行如下:
regsvr32 /s "C:\Program Files\7-zip\7-zip.dll"
regsvr32 /s "C:\Program Files\7-zip\7-zip32.dll"
也即同时添加7-Zip到右键菜单和添加7-Zip到右键菜单(32位)见图六,感谢blank007的指导
PS:只关联.7z、.zip、.rar三种图标,想要关联其它图标的,只需依葫芦画瓢,比如:复制关联.7z图标部分的[HKEY_LOCAL_MACHINE\SOFTWARE...分支和[HKEY_CURRENT_USER\SOFTWARE...分支,并将相关替换即可。
|
评分
-
查看全部评分
|