SevenZipSharp icon indicating copy to clipboard operation
SevenZipSharp copied to clipboard

Unable to extract SFX/Packed executables

Open ied206 opened this issue 6 years ago • 0 comments

Summary

Squid-Box.SevenZipSharp cannot extract some SFX archives or packed executables. Ex) cloc-1.80.exe

Details

First, thanks for your effort to maintain such a great library. SevenZipSharp can extract files from 7zip's own SFX archive, but it cannot from third-party packed executable (e.g. installer, perl-runtime-packaged exectuable) which 7zip executable can extract.

Files can be extracted with SevenZipSharp

  • 7zip's official installer - 7zip SFX archive

Files cannot be extracted with SevenZipSharp

  • cloc's Windows binary - Packed with Perl runtime

7zip executable can open cloc binary's inside, and when I see its property 7zip detects its format as zip while SevenZipSharp's internal file format detector results in InArchiveFormat.PE. I performed some tests to find proper InArchiveFormat for this file, but no single format was unable to extract that file, including InArchiveFormat.Zip.

Tested Environment

  • OS : Windows 10 v1809 x64
  • Runtime : .Net Framework 4.7.2
  • 7zip : v18.06, v19.00
  • SevenZipSharp : v1.1.136

ied206 avatar Mar 20 '19 15:03 ied206