SevenZipSharp icon indicating copy to clipboard operation
SevenZipSharp copied to clipboard

ExtractArchive decided wrong format

Open roee01 opened this issue 5 years ago • 5 comments

Hi,

I am using sevenzipsharp and I have a lot of archives that are msi, rar, iso and more formats that ExtractArchive decided it is TAR and because of that failed to extract them. The archives can be extracted via the 7zip gui. So I am sure the archives are OK. Edited : some msi and rar extracted OK via the ExtractArchive but lot of Tham are failing.

roee01 avatar Nov 20 '19 07:11 roee01

TAR is the fallback format if the library is unable to determine the format. It would be interesting to get some of the files you have that are failing, so I can use them to debug the library and see why it isn't able to detect them.

squid-box avatar Nov 22 '19 20:11 squid-box

Thanks for the replay. I am attaching two download links from Microsoft and jetbrains. One is msi and the other one is exe. Both of them are not extracting via the sevenzipsharp, but can be extracted via the 7zip gui. If you prefer to get the files in other wat please let me know.

@jetbrains.com/pycharm/download/download-thanks.html?platfrom=windows&code=PCC

@microsoft.com/en-us/download/details.aspx?id=42497

Thanks in advance

roee01 avatar Nov 24 '19 07:11 roee01

TAR is the fallback format if the library is unable to determine the format. It would be interesting to get some of the files you have that are failing, so I can use them to debug the library and see why it isn't able to detect them.

Is there a way to disable the fallback format? I have some proprietary file types that I am trying to extract and I'm having to remove the .tar extension post-extract for all of them.

njrogie avatar Jan 20 '20 15:01 njrogie

Hello. Any update about this issue? I'm unable to extract file from a MSI archive.

zipgenius avatar Jan 12 '22 10:01 zipgenius

I have similar issue when extracting Symantec antivirus patterns from EXE archive. The resources are extracted instead of actual files. You can try any executable from the following link. I can extract them correctly with 7z GUI or 7z.exe (I'm on 7Zip 21.07)

kborowinski avatar Mar 28 '22 07:03 kborowinski