по контекстному меню и не только....
у меня 7-zip из батника устанавливается
[more=код батника]
Код: @cmdow @ /HID
:install_app
SET CURPATH=%~dp0
SET ZCLSID={23170F69-40C1-278A-1000-000100020000}
REM ~ CLEAR SOME REG KEYS
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\7zFMn.exe" /f
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\7zFM.exe" /f
REG DELETE "HKLM\Software\7-Zip" /f
REG DELETE "HKCU\Software\7-Zip" /f
REM ~ COMMON SETTINGS
REG ADD "HKLM\Software\7-Zip" /v "path" /t REG_SZ /d "%CURPATH%" /f
REG ADD "HKCU\Software\7-Zip" /v "path" /t REG_SZ /d "%CURPATH%" /f
REG ADD "HKLM\Software\7-Zip" /v "lang" /t REG_SZ /d "en" /f
REG ADD "HKCU\Software\7-Zip" /v "lang" /t REG_SZ /d "en" /f
REG ADD "HKCR\CLSID\%ZCLSID%" /ve /t REG_SZ /d "7-Zip Shell Extension" /f
REG ADD "HKCR\CLSID\%ZCLSID%\InprocServer32" /ve /t REG_SZ /d "%CURPATH%7-zip.dll" /f
REG ADD "HKCR\CLSID\%ZCLSID%\InprocServer32" /v "ThreadingModel" /t REG_SZ /d "Apartment" /f
REG ADD "HKCR\Directory\shellex\ContextMenuHandlers\7-Zip" /ve /t REG_SZ /d "%ZCLSID%" /f
REG ADD "HKCR\Directory\shellex\DragDropHandlers\7-Zip" /ve /t REG_SZ /d "%ZCLSID%" /f
REG ADD "HKCR\Drive\shellex\DragDropHandlers\7-Zip" /ve /t REG_SZ /d "%ZCLSID%" /f
REG ADD "HKCR\*\shellex\ContextMenuHandlers\7-Zip" /ve /t REG_SZ /d "%ZCLSID%" /f
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" /v "%ZCLSID%" /t REG_SZ /d "7-Zip Shell Extension" /f
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\7zFM.exe" /ve /t REG_SZ /d "%CURPATH%7zFM.exe" /f
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\7zFM.exe" /v "path" /t REG_SZ /d "%CURPATH%" /f
REM ~ LM SETTINGS
REG ADD "HKLM\Software\7-Zip\Options" /v "CascadedMenu" /t REG_DWORD /d 1 /f
REG ADD "HKLM\Software\7-Zip\Options" /v "ContextMenu" /t REG_DWORD /d 0x306 /f
REG ADD "HKLM\Software\7-Zip\Options" /v "WorkDirType" /t REG_DWORD /d 0 /f
REG ADD "HKLM\Software\7-Zip\Options" /v "WorkDirPath" /t REG_SZ /d "" /f
REG ADD "HKLM\Software\7-Zip\Options" /v "TempRemovableOnly" /t REG_DWORD /d 1 /f
REG ADD "HKLM\Software\7-Zip\Compression" /v "Archiver" /t REG_SZ /d "7z" /f
REG ADD "HKLM\Software\7-Zip\Compression" /v "Level" /t REG_DWORD /d 9 /f
REG ADD "HKLM\Software\7-Zip\Compression" /v "Solid" /t REG_DWORD /d 1 /f
REG ADD "HKLM\Software\7-Zip\Compression" /v "Multithread" /t REG_DWORD /d 0 /f
REG ADD "HKLM\Software\7-Zip\Compression" /v "ShowPassword" /t REG_DWORD /d 1 /f
REG ADD "HKLM\Software\7-Zip\Compression" /v "EncryptHeaders" /t REG_DWORD /d 1 /f
REG ADD "HKLM\Software\7-Zip\Compression\Options\7z" /v "Method" /t REG_SZ /d "LZMA" /f
REG ADD "HKLM\Software\7-Zip\Compression\Options\7z" /v "Level" /t REG_DWORD /d 9 /f
REG ADD "HKLM\Software\7-Zip\Compression\Options\7z" /v "Dictionary" /t REG_DWORD /d 0x1000000 /f
REG ADD "HKLM\Software\7-Zip\Compression\Options\7z" /v "Order" /t REG_DWORD /d 0x40 /f
REM ~ CU SETTINGS
REG ADD "HKCU\Software\7-Zip\Options" /v "CascadedMenu" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\7-Zip\Options" /v "ContextMenu" /t REG_DWORD /d 0x306 /f
REG ADD "HKCU\Software\7-Zip\Options" /v "WorkDirType" /t REG_DWORD /d 0 /f
REG ADD "HKCU\Software\7-Zip\Options" /v "WorkDirPath" /t REG_SZ /d "" /f
REG ADD "HKCU\Software\7-Zip\Options" /v "TempRemovableOnly" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\7-Zip\Compression" /v "Archiver" /t REG_SZ /d "7z" /f
REG ADD "HKCU\Software\7-Zip\Compression" /v "Level" /t REG_DWORD /d 9 /f
REG ADD "HKCU\Software\7-Zip\Compression" /v "Solid" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\7-Zip\Compression" /v "Multithread" /t REG_DWORD /d 0 /f
REG ADD "HKCU\Software\7-Zip\Compression" /v "ShowPassword" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\7-Zip\Compression" /v "EncryptHeaders" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\7-Zip\Compression\Options\7z" /v "Method" /t REG_SZ /d "LZMA" /f
REG ADD "HKCU\Software\7-Zip\Compression\Options\7z" /v "Level" /t REG_DWORD /d 9 /f
REG ADD "HKCU\Software\7-Zip\Compression\Options\7z" /v "Dictionary" /t REG_DWORD /d 0x1000000 /f
REG ADD "HKCU\Software\7-Zip\Compression\Options\7z" /v "Order" /t REG_DWORD /d 0x40 /f
regsvr32 /s 7-zip.dll
SET CURPATH=
SET ZCLSID=
exit
у меня 7-zip из батника устанавливается
[more=код батника]
Код: @cmdow @ /HID
:install_app
SET CURPATH=%~dp0
SET ZCLSID={23170F69-40C1-278A-1000-000100020000}
REM ~ CLEAR SOME REG KEYS
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\7zFMn.exe" /f
REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\7zFM.exe" /f
REG DELETE "HKLM\Software\7-Zip" /f
REG DELETE "HKCU\Software\7-Zip" /f
REM ~ COMMON SETTINGS
REG ADD "HKLM\Software\7-Zip" /v "path" /t REG_SZ /d "%CURPATH%" /f
REG ADD "HKCU\Software\7-Zip" /v "path" /t REG_SZ /d "%CURPATH%" /f
REG ADD "HKLM\Software\7-Zip" /v "lang" /t REG_SZ /d "en" /f
REG ADD "HKCU\Software\7-Zip" /v "lang" /t REG_SZ /d "en" /f
REG ADD "HKCR\CLSID\%ZCLSID%" /ve /t REG_SZ /d "7-Zip Shell Extension" /f
REG ADD "HKCR\CLSID\%ZCLSID%\InprocServer32" /ve /t REG_SZ /d "%CURPATH%7-zip.dll" /f
REG ADD "HKCR\CLSID\%ZCLSID%\InprocServer32" /v "ThreadingModel" /t REG_SZ /d "Apartment" /f
REG ADD "HKCR\Directory\shellex\ContextMenuHandlers\7-Zip" /ve /t REG_SZ /d "%ZCLSID%" /f
REG ADD "HKCR\Directory\shellex\DragDropHandlers\7-Zip" /ve /t REG_SZ /d "%ZCLSID%" /f
REG ADD "HKCR\Drive\shellex\DragDropHandlers\7-Zip" /ve /t REG_SZ /d "%ZCLSID%" /f
REG ADD "HKCR\*\shellex\ContextMenuHandlers\7-Zip" /ve /t REG_SZ /d "%ZCLSID%" /f
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" /v "%ZCLSID%" /t REG_SZ /d "7-Zip Shell Extension" /f
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\7zFM.exe" /ve /t REG_SZ /d "%CURPATH%7zFM.exe" /f
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\7zFM.exe" /v "path" /t REG_SZ /d "%CURPATH%" /f
REM ~ LM SETTINGS
REG ADD "HKLM\Software\7-Zip\Options" /v "CascadedMenu" /t REG_DWORD /d 1 /f
REG ADD "HKLM\Software\7-Zip\Options" /v "ContextMenu" /t REG_DWORD /d 0x306 /f
REG ADD "HKLM\Software\7-Zip\Options" /v "WorkDirType" /t REG_DWORD /d 0 /f
REG ADD "HKLM\Software\7-Zip\Options" /v "WorkDirPath" /t REG_SZ /d "" /f
REG ADD "HKLM\Software\7-Zip\Options" /v "TempRemovableOnly" /t REG_DWORD /d 1 /f
REG ADD "HKLM\Software\7-Zip\Compression" /v "Archiver" /t REG_SZ /d "7z" /f
REG ADD "HKLM\Software\7-Zip\Compression" /v "Level" /t REG_DWORD /d 9 /f
REG ADD "HKLM\Software\7-Zip\Compression" /v "Solid" /t REG_DWORD /d 1 /f
REG ADD "HKLM\Software\7-Zip\Compression" /v "Multithread" /t REG_DWORD /d 0 /f
REG ADD "HKLM\Software\7-Zip\Compression" /v "ShowPassword" /t REG_DWORD /d 1 /f
REG ADD "HKLM\Software\7-Zip\Compression" /v "EncryptHeaders" /t REG_DWORD /d 1 /f
REG ADD "HKLM\Software\7-Zip\Compression\Options\7z" /v "Method" /t REG_SZ /d "LZMA" /f
REG ADD "HKLM\Software\7-Zip\Compression\Options\7z" /v "Level" /t REG_DWORD /d 9 /f
REG ADD "HKLM\Software\7-Zip\Compression\Options\7z" /v "Dictionary" /t REG_DWORD /d 0x1000000 /f
REG ADD "HKLM\Software\7-Zip\Compression\Options\7z" /v "Order" /t REG_DWORD /d 0x40 /f
REM ~ CU SETTINGS
REG ADD "HKCU\Software\7-Zip\Options" /v "CascadedMenu" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\7-Zip\Options" /v "ContextMenu" /t REG_DWORD /d 0x306 /f
REG ADD "HKCU\Software\7-Zip\Options" /v "WorkDirType" /t REG_DWORD /d 0 /f
REG ADD "HKCU\Software\7-Zip\Options" /v "WorkDirPath" /t REG_SZ /d "" /f
REG ADD "HKCU\Software\7-Zip\Options" /v "TempRemovableOnly" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\7-Zip\Compression" /v "Archiver" /t REG_SZ /d "7z" /f
REG ADD "HKCU\Software\7-Zip\Compression" /v "Level" /t REG_DWORD /d 9 /f
REG ADD "HKCU\Software\7-Zip\Compression" /v "Solid" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\7-Zip\Compression" /v "Multithread" /t REG_DWORD /d 0 /f
REG ADD "HKCU\Software\7-Zip\Compression" /v "ShowPassword" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\7-Zip\Compression" /v "EncryptHeaders" /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\7-Zip\Compression\Options\7z" /v "Method" /t REG_SZ /d "LZMA" /f
REG ADD "HKCU\Software\7-Zip\Compression\Options\7z" /v "Level" /t REG_DWORD /d 9 /f
REG ADD "HKCU\Software\7-Zip\Compression\Options\7z" /v "Dictionary" /t REG_DWORD /d 0x1000000 /f
REG ADD "HKCU\Software\7-Zip\Compression\Options\7z" /v "Order" /t REG_DWORD /d 0x40 /f
regsvr32 /s 7-zip.dll
SET CURPATH=
SET ZCLSID=
exit