WinPE下增加快速压缩的办法

04-03

  WinPE下增加快速压缩的办法

首先把7z.exe、7z.dll、7-zip.dll、7zG.exe四个文件拷贝到system32文件夹下。

  然后在REGDOC.CMD(也有可能是别的名字,或者没有)中加入如下句子:

  rem 关联7z

  reg add "HKU\.DEFAULT\Software\7-ZIP" /f /v "Lang" /t REG_SZ /d "zh-cn"

  reg add "HKU\.DEFAULT\SessionInformation" /f /v "ProgramCount" /t REG_DWORD /d 4

  reg add "HKU\.DEFAULT\Software\7-ZIP\Compression\Options\7z" /f /v "Method" /t REG_SZ /d "LZMA"

  reg add "HKU\.DEFAULT\Software\7-ZIP\Compression\Options\7z" /f /v "Level" /t REG_DWORD /d 9

  reg add "HKU\.DEFAULT\Software\7-ZIP\Compression\Options\7z" /f /v "Dictionary" /t REG_DWORD /d 33554432

  reg add "HKU\.DEFAULT\Software\7-ZIP\Compression\Options\7z" /f /v "Order" /t REG_DWORD /d 64

  reg add "HKU\.DEFAULT\Software\7-ZIP\Compression\Options\7z" /f /v "BlockSize" /t REG_DWORD /d 32

  reg add "HKU\.DEFAULT\Software\7-ZIP\Compression\Options\7z" /f /v "NumThreads" /t REG_DWORD /d 1

  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 "X:\wxpe\system32\7-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 "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 256

  reg add "HKU\.DEFAULT\Software\7-ZIP\Options" /f /v "WorkDirType" /t REG_DWORD /d 0

  reg add "HKU\.DEFAULT\Software\7-ZIP\Options" /f /v "WorkDirPath" /t REG_SZ /d ""

  reg add "HKU\.DEFAULT\Software\7-ZIP\Options" /f /v "TempRemovableOnly" /t REG_DWORD /d 1

  reg add "HKLM\SOFTWARE\Microsoft\Cryptography\RNG" /f /v "Seed" /t REG_BINARY /d ae980bee38a3f51bba1e2a2620869cd4140359f701aff4cc6d90c3dacb7a58e26176a8a8d517c1ca0a19aff67

e65b7ea2580d530b236cc02f57234b8acc6629bfef9fece90743d5d47134f8a5e15d12b