Invalid archive: open/read error!

Nov 11, 2010 at 3:57 PM
Edited Nov 11, 2010 at 3:58 PM

I'd tried to extract NSIS executable file (you said all 7-zip formats are supported) with SevenZipShap and catched this

"SevenZip.SevenZipArchiveException was unhandled  Message="Invalid archive: open/read error! Is it encrypted and a wrong password was provided?\nIf your archive is an exotic one, it is possible that SevenZipSharp has no signature for its format and thus decided it is TAR by mistake."

7-zip can extract this file!

File info:

Scanning -> E:\InputData\ExecFiles\Package\NSIS\ccsetup230_NSIS.exe

File Type : 32-Bit Exe (Subsystem : Win GUI / 2),

Size : 3376656 (0338610h) Byte(s)

-> File Appears to be Digitally Signed @ Offset 03370D8h, size : 01538h / 05432 byte(s)

-> File has 3304152 (0326AD8h) bytes of appended data starting at offset 010600h[File Heuristics]

-> Flag : 00000000000001011100000000000100 (0x0005C004)

[-= Installer =-] Nullsoft SFX Setup v2.46- Scan Took : 0.953 Second(s)

 

My code:

using (SevenZipExtractor extr = new SevenZipExtractor(@"E:\InputData\ExecFiles\Package\NSIS\ccsetup230_NSIS.exe"))

  {

   extr.ExtractArchive(@"E:\InputData\ExecFiles\Package\NSIS\ccsetup230_NSIS.exe");
}

 

 

What is wrong? Can i extract this file with SevenZipShap ?