无忧启动论坛

 找回密码
 注册
搜索

无聊了,做个绿色版的7-zip V19.00玩玩

查看数: 4520 | 评论数: 29 | 收藏 9
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2019-6-18 16:19

正文摘要:

本帖最后由 zlq_hysy 于 2019-6-18 18:27 编辑 解压到D、E盘等分区的任意目录中,安装系统后,点“绿化”就可。自己不太会批处理,网上找了各大神的批处理,东拼西凑做的批处理,谢谢那些无名的各位大侠。 ...

回复

kingthen 发表于 2019-6-24 00:11:02
额,这软件不是本来就不需要注册表就能运行么。。。要关联文件的话,管理员权限运行软件,选项里添加一下对应扩展名就好
笑0笑 发表于 2019-6-23 21:25:41
懒促进科技,无聊是促进福利
gnuxwy 发表于 2019-6-19 19:08:44
呃,楼主辛苦了,绿色7zip,好东西,下来玩玩。。。
zlq_hysy 发表于 2019-6-19 17:29:44

感谢雨大神
sevenyu 发表于 2019-6-19 15:37:19
其实打开主程序选项里设置下关联就能用了,不用注册表操作!
2012雨晨绿软 发表于 2019-6-19 15:11:08
本帖最后由 2012雨晨绿软 于 2019-6-19 15:14 编辑

86和64通用

PUSHD %~dp0
reg add "HKCU\Software\7-ZIP\Compression" /f /v "Level" /t REG_DWORD /d 5
reg add "HKCU\Software\7-ZIP\Compression" /f /v "Archiver" /t REG_SZ /d "7z"
reg add "HKCU\Software\7-ZIP\Compression" /f /v "ShowPassword" /t REG_DWORD /d 0
reg add "HKCU\Software\7-ZIP\Compression" /f /v "EncryptHeaders" /t REG_DWORD /d 0
reg add "HKCU\Software\7-ZIP\Compression\Options\7z" /f /v "Method" /t REG_SZ /d "LZMA"
reg add "HKCU\Software\7-ZIP\Compression\Options\7z" /f /v "Level" /t REG_DWORD /d 9
reg add "HKCU\Software\7-ZIP\Compression\Options\7z" /f /v "Dictionary" /t REG_DWORD /d 16777216
reg add "HKCU\Software\7-ZIP\Compression\Options\7z" /f /v "Order" /t REG_DWORD /d 64
reg add "HKCU\Software\7-ZIP\Compression\Options\7z" /f /v "BlockSize" /t REG_DWORD /d 32
reg add "HKCU\Software\7-ZIP\Compression\Options\7z" /f /v "NumThreads" /t REG_DWORD /d 1
reg add "HKCU\Software\7-ZIP\Options" /f /v "CascadedMenu" /t REG_DWORD /d 1
reg add "HKCU\Software\7-ZIP\Options" /f /v "ContextMenu" /t REG_DWORD /d 16151
reg add "HKCU\Software\7-ZIP\Options" /f /v "WorkDirType" /t REG_DWORD /d 1
reg add "HKCU\Software\7-ZIP\Options" /f /v "WorkDirPath" /t REG_SZ /d ""
reg add "HKCU\Software\7-ZIP\Options" /f /v "TempRemovableOnly" /t REG_DWORD /d 0
reg add "HKU\.DEFAULT\SessionInformation" /f /v "ProgramCount" /t REG_DWORD /d 4
reg add "HKLM\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\7-ZIP" /f /ve /t REG_SZ /d "{23170F69-40C1-278A-1000-000100020000}"
reg add "HKLM\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}" /f /ve /t REG_SZ /d "7-Zip Shell Extension"
reg add "HKLM\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32" /f /ve /t REG_SZ /d "%~dp07-zip.dll"
reg add "HKLM\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
reg add "HKLM\SOFTWARE\Classes\Directory\shellex\DragDropHandlers\7-ZIP" /f /ve /t REG_SZ /d "{23170F69-40C1-278A-1000-000100020000}"
reg add "HKLM\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\7-ZIP" /f /ve /t REG_SZ /d "{23170F69-40C1-278A-1000-000100020000}"
reg add "HKLM\SOFTWARE\Classes\Drive\shellex\DragDropHandlers\7-ZIP" /f /ve /t REG_SZ /d "{23170F69-40C1-278A-1000-000100020000}"
reg add "HKLM\SOFTWARE\Microsoft\Cryptography\RNG" /f /v "Seed" /t REG_BINARY /d ae980bee38a3f51bba1e2a2620869cd4140359f701aff4cc6d90c3dacb7a58e26176a8a8d517c1ca0a19aff67e65b7ea2580d530b236cc02f57234b8acc6629bfef9fece90743d5d47134f8a5e15d12b
reg add "HKLM\SOFTWARE\Classes\.7z" /f /ve /t REG_SZ /d "7-Zip.7z"
reg add "HKLM\SOFTWARE\Classes\.rar" /f /ve /t REG_SZ /d "7-Zip.rar"
reg add "HKLM\SOFTWARE\Classes\.zip" /f /ve /t REG_SZ /d "7-Zip.zip"
reg add "HKLM\SOFTWARE\Classes\7-Zip.7z" /f /ve /t REG_SZ /d ".7z 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.7z\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,0"
reg add "HKLM\SOFTWARE\Classes\7-Zip.7z\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.7z\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.7z\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.arj" /f /ve /t REG_SZ /d ".arj 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.arj\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,4"
reg add "HKLM\SOFTWARE\Classes\7-Zip.arj\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.arj\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.arj\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.bz2" /f /ve /t REG_SZ /d ".bz2 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.bz2\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,2"
reg add "HKLM\SOFTWARE\Classes\7-Zip.bz2\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.bz2\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.bz2\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.bzip2" /f /ve /t REG_SZ /d ".bzip2 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.bzip2\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,2"
reg add "HKLM\SOFTWARE\Classes\7-Zip.bzip2\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.bzip2\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.bzip2\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.cab" /f /ve /t REG_SZ /d ".cab 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.cab\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,7"
reg add "HKLM\SOFTWARE\Classes\7-Zip.cab\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.cab\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.cab\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.cpio" /f /ve /t REG_SZ /d ".cpio 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.cpio\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,12"
reg add "HKLM\SOFTWARE\Classes\7-Zip.cpio\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.cpio\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.cpio\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.gz" /f /ve /t REG_SZ /d ".gz 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.gz\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,14"
reg add "HKLM\SOFTWARE\Classes\7-Zip.gz\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.gz\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.gz\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.gzip" /f /ve /t REG_SZ /d ".gzip 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.gzip\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,14"
reg add "HKLM\SOFTWARE\Classes\7-Zip.gzip\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.gzip\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.gzip\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.lzh" /f /ve /t REG_SZ /d ".lzh 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.lzh\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,6"
reg add "HKLM\SOFTWARE\Classes\7-Zip.lzh\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.lzh\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.lzh\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.lzma" /f /ve /t REG_SZ /d ".lzma 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.lzma\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,16"
reg add "HKLM\SOFTWARE\Classes\7-Zip.lzma\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.lzma\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.lzma\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.rar" /f /ve /t REG_SZ /d ".rar 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.rar\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,3"
reg add "HKLM\SOFTWARE\Classes\7-Zip.rar\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.rar\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.rar\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.rpm" /f /ve /t REG_SZ /d ".rpm 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.rpm\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,10"
reg add "HKLM\SOFTWARE\Classes\7-Zip.rpm\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.rpm\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.rpm\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.tar" /f /ve /t REG_SZ /d ".tar 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.tar\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,13"
reg add "HKLM\SOFTWARE\Classes\7-Zip.tar\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.tar\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.tar\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.taz" /f /ve /t REG_SZ /d ".taz 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.taz\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,5"
reg add "HKLM\SOFTWARE\Classes\7-Zip.taz\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.taz\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.taz\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz" /f /ve /t REG_SZ /d ".tbz 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,2"
reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz2" /f /ve /t REG_SZ /d ".tbz2 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz2\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,2"
reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz2\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz2\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.tbz2\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.vhd" /f /ve /t REG_SZ /d ".vhd 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.vhd\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,20"
reg add "HKLM\SOFTWARE\Classes\7-Zip.vhd\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.vhd\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.vhd\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.zip" /f /ve /t REG_SZ /d ".zip 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.zip\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,1"
reg add "HKLM\SOFTWARE\Classes\7-Zip.zip\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.zip\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.zip\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.wim" /f /ve /t REG_SZ /d ".wim 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.wim\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,15"
reg add "HKLM\SOFTWARE\Classes\7-Zip.wim\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.wim\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.wim\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKLM\SOFTWARE\Classes\7-Zip.iso" /f /ve /t REG_SZ /d ".iso 压缩文件"
reg add "HKLM\SOFTWARE\Classes\7-Zip.iso\DefaultIcon" /f /ve /t REG_SZ /d "%~dp07z.dll,8"
reg add "HKLM\SOFTWARE\Classes\7-Zip.iso\shell" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.iso\shell\open" /f /ve /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\7-Zip.iso\shell\open\command" /f /ve /t REG_SZ /d "\"%~dp07zFM.exe\" \"%%1\""
reg add "HKU\.DEFAULT\Software\7-Zip\Options" /f /v "CascadedMenu" /t REG_DWORD /d 1
reg add "HKU\.DEFAULT\Software\7-Zip\Options" /f /v "ContextMenu" /t REG_DWORD /d 4919
exit /q

点评

感谢雨大神  详情 回复 发表于 2019-6-19 17:29
七色鱼 发表于 2019-6-19 13:32:08
谢谢楼主分享
hlccfu 发表于 2019-6-19 11:30:38
感谢楼主分享
进士小站 发表于 2019-6-19 11:27:46
谢谢分享
七色鱼 发表于 2019-6-19 10:42:48
谢谢楼主的分享,辛苦啦
fuluobu 发表于 2019-6-19 10:26:50

绿色版
brook 发表于 2019-6-19 10:16:10
希望楼主多发好东西!谢谢分享
promrhxq 发表于 2019-6-19 01:32:28
绿色版的7-zip,大爱,感谢分享
promrhxq 发表于 2019-6-19 01:32:28
绿色版的7-zip,大爱,感谢分享
liujun2000 发表于 2019-6-18 23:56:29
谢谢
zds1210 发表于 2019-6-18 21:39:38

对的,绝对路径灵活性差,批处理用相对路径最好。
rengrancunzai 发表于 2019-6-18 20:15:55
     谢谢分享
bys 发表于 2019-6-18 20:10:23
谢谢分享
sleet 发表于 2019-6-18 18:58:38

谢谢楼主的分享,辛苦啦
nttwqz 发表于 2019-6-18 18:54:00
确实挺无聊的
zlq_hysy 发表于 2019-6-18 18:36:06
zds1210 发表于 2019-6-18 18:12
用相对定位就好了。

是相对目录

点评

对的,绝对路径灵活性差,批处理用相对路径最好。  详情 回复 发表于 2019-6-18 21:39
cfc1680 发表于 2019-6-18 18:16:29
辛苦了,感谢分享
zds1210 发表于 2019-6-18 18:12:58
改天看下你的批处理和注册项,也做个PE版本的来玩。哈哈。用的时候安装下。
zds1210 发表于 2019-6-18 18:12:28
用相对定位就好了。

点评

是相对目录  详情 回复 发表于 2019-6-18 18:36
不落的太阳 发表于 2019-6-18 17:54:57
路过,先看看,希望更完美
董大 发表于 2019-6-18 17:38:38
谢谢楼主的分享,辛苦啦
zlq_hysy 发表于 2019-6-18 17:15:06
kingshui 发表于 2019-6-18 17:06
仅供参考,可以自行改下相对路径就好。

谢谢,我直接用的REG文件。
kingshui 发表于 2019-6-18 17:06:01
  1. @echo off
  2. SetLocal EnableDelayedExpansion
  3. for %%i in (.001_9 .7z_0 .arj_4 .bz2_2 .bzip2_2 .cab_7 .cpio_12 .deb_11 .dmg_17 .fat_21 .gz_14 .gzip_14 .hfs_18 .iso_8 .lha_6 .lzh_6 .lzma_16 .ntfs_22 .rar_3 .rpm_10 .squashfs_24 .swm_15 .tar_13 .taz_5 .tbz_2 .tbz2_2 .tgz_14 .tpz_14 .txz_23 .vhd_20 .wim_15 .xar_19 .xz_23 .z_5 .zip_1) do (
  4.         for /f "tokens=1,2 delims=_" %%a in ("%%i") do (
  5.                 assoc %%a=7-Zip%%a
  6.                 ftype 7-Zip%%a="%ProgramFiles%\7-Zip\7zFM.exe" "%%1"
  7.                 reg add HKCR\7-Zip%%a\DefaultIcon /ve /t REG_SZ /d "%ProgramFiles%\7-Zip\7z.dll,%%b" /f
  8.         )
  9. )
  10. reg add HKCU\Software\7-Zip\Options /v MenuIcons /t REG_DWORD /d 1 /f               
  11. reg add HKLM\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000} /ve /t REG_SZ /d "7-Zip Shell Extension" /f
  12. reg add HKLM\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32 /ve /t REG_SZ /d "%ProgramFiles%\7-Zip\7-zip.dll" /f
  13. reg add HKLM\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32 /v ThreadingModel /t REG_SZ /d Apartment /f
  14. for %%i in (Directory Drive Folder) do reg add HKLM\SOFTWARE\Classes\%%i\ShellEx\ContextMenuHandlers\7-Zip /ve /t REG_SZ /d {23170F69-40C1-278A-1000-000100020000} /f
  15. reg add HKLM\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\7-Zip /ve /t REG_SZ /d {23170F69-40C1-278A-1000-000100020000} /f
  16. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" /v {23170F69-40C1-278A-1000-000100020000} /t REG_SZ /d "7-Zip Shell Extension" /f
  17. reg add HKLM\SOFTWARE\Wow6432Node\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000} /ve /t REG_SZ /d "7-Zip Shell Extension" /f
  18. reg add HKLM\SOFTWARE\Wow6432Node\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32 /ve /t REG_SZ /d "%ProgramFiles%\7-Zip\7-zip32.dll" /f
  19. reg add HKLM\SOFTWARE\Wow6432Node\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32 /v ThreadingModel /t REG_SZ /d Apartment /f
  20. reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" /v {23170F69-40C1-278A-1000-000100020000} /t REG_SZ /d "7-Zip Shell Extension" /f
  21. endlocal
复制代码


仅供参考,可以自行改下相对路径就好。

点评

谢谢,我直接用的REG文件。  详情 回复 发表于 2019-6-18 17:15
scu 发表于 2019-6-18 16:25:20
希望兄弟多无聊,多发好东西

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-1-4 07:09

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表