本帖最后由 sairen139 于 2021-12-6 15:36 编辑
关于纯64位pe里7Zip所需最少文件只要7z.dll、7-zip.dll、7zG.exe和7zFM.exe四个就够了! 7z.dll(支持7zip命令行必要文件) 7-zip.dll(支持7zip及关联右键相关) 7zG.exe(提供UI界面支持相关,右键解压和压缩都要用到,不用右键菜单可以删掉,文件管理器能拖放) 7zFM.exe(提供UI界面相关,如删除只能用7Z命令行压缩解压缩了) 7z.sfx(制作单文件软件工具的自解压文件相关的7zip功能文件,PE里可要可不要)
离线给pe导入添加7Zip的注册表.reg如下所示:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\pe-DEFAULT\7-Zip-Zstandard]
"LargePages"=dword:00000001
[HKEY_LOCAL_MACHINE\pe-DEFAULT\7-Zip-Zstandard\Compression]
"ShowPassword"=dword:00000001
[HKEY_LOCAL_MACHINE\pe-DEFAULT\7-Zip-Zstandard\Compression\Options\7z]
"Dictionary"=dword:40000000
"BlockSize"=dword:00000040
"Order"=dword:00000111
"Level"=dword:00000007
"Method"="FLZMA2"
[HKEY_LOCAL_MACHINE\pe-DEFAULT\7-Zip-Zstandard\Compression\Options\zip]
"Dictionary"=dword:40000000
"Order"=dword:00000111
"Level"=dword:00000007
"Method"="LZMA"
[HKEY_LOCAL_MACHINE\pe-DEFAULT\7-Zip-Zstandard\Options]
"TempRemovableOnly"=dword:00000000
"WorkDirType"=dword:00000001
"CascadedMenu"=dword:00000001
"ContextMenu"=dword:80001327
"MenuIcons"=dword:00000000
[HKEY_LOCAL_MACHINE\pe-DEFAULT\7-Zip-Zstandard\FM]
"AlternativeSelection"=dword:00000000
"ShowSystemMenu"=dword:00000000
"ShowRealFileIcons"=dword:00000001
"ShowDots"=dword:00000000
"ShowGrid"=dword:00000000
"SingleClick"=dword:00000000
"ListMode"=dword:00000303
"Toolbars"=dword:0000000e
"FullRow"=dword:00000001
"Viewer"="notepad.exe"
"Editor"="notepad.exe"
[HKEY_LOCAL_MACHINE\pe-DEFAULT\7-Zip-Zstandard\FM\Columns]
"7-Zip.7z"=hex:01,00,00,00,04,00,00,00,01,00,00,00,04,00,00,00,01,00,00,00,7d,\
01,00,00,07,00,00,00,01,00,00,00,96,00,00,00,08,00,00,00,01,00,00,00,80,00,\
00,00,0c,00,00,00,01,00,00,00,71,00,00,00,09,00,00,00,01,00,00,00,54,00,00,\
00,13,00,00,00,01,00,00,00,64,00,00,00,0f,00,00,00,01,00,00,00,4f,00,00,00,\
16,00,00,00,01,00,00,00,7b,00,00,00,1b,00,00,00,01,00,00,00,3b,00,00,00,1f,\
00,00,00,01,00,00,00,64,00,00,00,20,00,00,00,01,00,00,00,64,00,00,00
"7-Zip.Rar"=hex:01,00,00,00,04,00,00,00,01,00,00,00,04,00,00,00,01,00,00,00,68,\
01,00,00,07,00,00,00,01,00,00,00,83,00,00,00,08,00,00,00,01,00,00,00,75,00,\
00,00,0c,00,00,00,01,00,00,00,71,00,00,00,0a,00,00,00,01,00,00,00,6f,00,00,\
00,0b,00,00,00,01,00,00,00,74,00,00,00,09,00,00,00,01,00,00,00,41,00,00,00,\
13,00,00,00,01,00,00,00,5d,00,00,00,0f,00,00,00,01,00,00,00,3e,00,00,00,16,\
00,00,00,01,00,00,00,56,00,00,00,0d,00,00,00,01,00,00,00,3c,00,00,00,0e,00,\
00,00,01,00,00,00,64,00,00,00,10,00,00,00,01,00,00,00,64,00,00,00,11,00,00,\
00,01,00,00,00,64,00,00,00,17,00,00,00,01,00,00,00,64,00,00,00,20,00,00,00,\
01,00,00,00,64,00,00,00,21,00,00,00,00,00,00,00,64,00,00,00,1f,00,00,00,00,\
00,00,00,64,00,00,00
"7-Zip.Rar5"=hex:01,00,00,00,04,00,00,00,01,00,00,00,04,00,00,00,01,00,00,00,68,\
01,00,00,07,00,00,00,01,00,00,00,83,00,00,00,08,00,00,00,01,00,00,00,75,00,\
00,00,0c,00,00,00,01,00,00,00,71,00,00,00,0a,00,00,00,01,00,00,00,6f,00,00,\
00,0b,00,00,00,01,00,00,00,74,00,00,00,09,00,00,00,01,00,00,00,41,00,00,00,\
13,00,00,00,01,00,00,00,5d,00,00,00,0f,00,00,00,01,00,00,00,3e,00,00,00,16,\
00,00,00,01,00,00,00,56,00,00,00,0d,00,00,00,01,00,00,00,3c,00,00,00,0e,00,\
00,00,01,00,00,00,64,00,00,00,10,00,00,00,01,00,00,00,64,00,00,00,11,00,00,\
00,01,00,00,00,64,00,00,00,17,00,00,00,01,00,00,00,64,00,00,00,20,00,00,00,\
01,00,00,00,64,00,00,00,21,00,00,00,00,00,00,00,64,00,00,00,1f,00,00,00,00,\
00,00,00,64,00,00,00
"7-Zip.wim"=hex:01,00,00,00,04,00,00,00,01,00,00,00,04,00,00,00,01,00,00,00,79,\
01,00,00,07,00,00,00,01,00,00,00,8c,00,00,00,08,00,00,00,01,00,00,00,81,00,\
00,00,0c,00,00,00,01,00,00,00,71,00,00,00,0a,00,00,00,01,00,00,00,71,00,00,\
00,0b,00,00,00,01,00,00,00,71,00,00,00,09,00,00,00,01,00,00,00,4c,00,00,00,\
16,00,00,00,01,00,00,00,50,00,00,00,0d,00,00,00,01,00,00,00,38,00,00,00,32,\
00,00,00,01,00,00,00,64,00,00,00,25,00,00,00,01,00,00,00,3c,00,00,00,20,00,\
00,00,01,00,00,00,64,00,00,00,43,00,00,00,01,00,00,00,64,00,00,00,59,00,00,\
00,01,00,00,00,64,00,00,00,3e,00,00,00,01,00,00,00,64,00,00,00,5b,00,00,00,\
00,00,00,00,64,00,00,00,3f,00,00,00,00,00,00,00,64,00,00,00,4b,00,00,00,00,\
00,00,00,64,00,00,00,1f,00,00,00,00,00,00,00,64,00,00,00
"7-Zip.zip"=hex:01,00,00,00,04,00,00,00,01,00,00,00,04,00,00,00,01,00,00,00,9c,\
01,00,00,07,00,00,00,01,00,00,00,97,00,00,00,08,00,00,00,01,00,00,00,64,00,\
00,00,0c,00,00,00,01,00,00,00,64,00,00,00,0a,00,00,00,01,00,00,00,64,00,00,\
00,0b,00,00,00,01,00,00,00,64,00,00,00,09,00,00,00,01,00,00,00,64,00,00,00,\
0f,00,00,00,01,00,00,00,64,00,00,00,1c,00,00,00,01,00,00,00,64,00,00,00,13,\
00,00,00,01,00,00,00,64,00,00,00,16,00,00,00,01,00,00,00,64,00,00,00,17,00,\
00,00,01,00,00,00,64,00,00,00,21,00,00,00,01,00,00,00,64,00,00,00,50,00,00,\
00,01,00,00,00,64,00,00,00,1f,00,00,00,01,00,00,00,64,00,00,00,20,00,00,00,\
01,00,00,00,64,00,00,00
"7-Zip.Udf"=hex:01,00,00,00,04,00,00,00,01,00,00,00,04,00,00,00,01,00,00,00,79,\
01,00,00,07,00,00,00,01,00,00,00,8d,00,00,00,08,00,00,00,01,00,00,00,84,00,\
00,00,0c,00,00,00,01,00,00,00,71,00,00,00,0b,00,00,00,01,00,00,00,71,00,00,\
00,1f,00,00,00,01,00,00,00,64,00,00,00,20,00,00,00,01,00,00,00,78,00,00,00
"FSDrives"=hex:01,00,00,00,00,00,00,00,01,00,00,00,04,00,00,00,01,00,00,00,5f,\
00,00,00,3b,00,00,00,01,00,00,00,c3,00,00,00,38,00,00,00,01,00,00,00,12,01,\
00,00,39,00,00,00,01,00,00,00,e2,00,00,00,18,00,00,00,01,00,00,00,64,00,00,\
00,14,00,00,00,01,00,00,00,51,00,00,00,3a,00,00,00,01,00,00,00,5c,00,00,00
"FSFolder"=hex:01,00,00,00,04,00,00,00,01,00,00,00,04,00,00,00,01,00,00,00,7d,\
01,00,00,07,00,00,00,01,00,00,00,b7,00,00,00,0c,00,00,00,01,00,00,00,71,00,\
00,00,0a,00,00,00,01,00,00,00,71,00,00,00,1c,00,00,00,01,00,00,00,64,00,00,\
00,1f,00,00,00,01,00,00,00,64,00,00,00,20,00,00,00,01,00,00,00,64,00,00,00,\
0b,00,00,00,00,00,00,00,64,00,00,00,09,00,00,00,00,00,00,00,64,00,00,00,08,\
00,00,00,00,00,00,00,64,00,00,00,5b,00,00,00,00,00,00,00,64,00,00,00,25,00,\
00,00,00,00,00,00,64,00,00,00,59,00,00,00,00,00,00,00,64,00,00,00
"RootFolder"=hex:01,00,00,00,00,00,00,00,01,00,00,00,04,00,00,00,01,00,00,00,\
3e,01,00,00
[HKEY_LOCAL_MACHINE\pe-DEFAULT\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.7z\OpenWithList]
"a"="7zFM.exe"
"MRUList"="a"
[HKEY_LOCAL_MACHINE\pe-DEFAULT\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.7z\OpenWithProgids]
"7-Zip.7z"=hex(0):
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\CLSID\{23170F69-20BB-278A-1000-000100020000}]
@="7-Zip Shell Extension"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\CLSID\{23170F69-20BB-278A-1000-000100020000}\InprocServer32]
@="X:\\Program Files\\7-Zip\\7-zip.dll"
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\WOW6432Node\CLSID\{23170F69-20BB-278A-1000-000100020000}]
@="7-Zip Shell Extension"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]
"{23170F69-20BB-278A-1000-000100020000}"="7-Zip Shell Extension"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]
"{23170F69-20BB-278A-1000-000100020000}"="7-Zip Shell Extension"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\*\shellex\ContextMenuHandlers\7-Zip]
@="{23170F69-20BB-278A-1000-000100020000}"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\7-Zip]
@="{23170F69-20BB-278A-1000-000100020000}"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\Directory\shellex\DragDropHandlers\7-Zip]
@="{23170F69-20BB-278A-1000-000100020000}"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\folder\ShellEx\ContextMenuHandlers\7-Zip]
@="{23170F69-20BB-278A-1000-000100020000}"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\7-Zip.7z]
@="7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\7-Zip.7z\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.001]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.7z]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.arj]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.bz2]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.bzip2]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.cab]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.cpio]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.deb]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.dmg]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.gz]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.gzip]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.lha]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.lzh]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.lzma]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.rar]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.rpm]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.tar]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.taz]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.tbz]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.tbz2]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.tgz]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.tpz]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.txz]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.wim]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.xar]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.xz]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.z]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.zip]
@="7-Zip.7z"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.iso]
@="Windows.IsoFile"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.vhd]
@="Windows.VhdFile"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.hfs]
@="Windows.VhdFile"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.fat]
@="Windows.VhdFile"
[HKEY_LOCAL_MACHINE\pe-SOFTWARE\Classes\.ntfs]
@="Windows.VhdFile"
|