LZMA self extractor

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Giovanni
Member
Member
Posts: 154
Joined: 2005-03-23, 18:28 UTC

LZMA self extractor

Post by *Giovanni »

It is possible to create a non-working self-extracting LZMA zip file.

Steps to reproduce:

- Set "LzmaAllowed=1" in "Packer" section of wincmd.ini
- Create a .zip file with compression level of 10
- Rename file (Shift+F6) from .zip to .exe
- Select "Yes" to TC prompt of "Create self extracting ZIP file?"
- Resulting EXE is unusable

Note that this is documented in History.txt:

04.02.09 Added: Turn off LZMA compression if user creates self-extracting archive (SFX cannot handle LZMA)

IMHO, TC should either check the zip file compression method or give a warning.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

SFX stub don't understand LZMA yet.
You may unpack this archive by Alt+F9 or Ctrl+PgDn - TC just ignores SFX stub.

Of course, you may open this archive with any popular archiver (i.e. 7-Zip) which handles LZMA.

But I agree with you, TC should check if zip archive has LZMA format before appending SFX stub. Or SFX should support LZMA :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is a known limitation, sorry. It would be too slow to check the entire archive whether it contains unsupported methods like LZMA or encryption. The user can still access the data by renaming the file back to *.zip or opening the exe with Ctrl+PageDown.
Author of Total Commander
https://www.ghisler.com
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

To suggest---

Post by *Clo »

2MVV

:) Hello !
… Or SFX should support LZMA :)
• I would support this solution as a suggestion… ;)
- Maybe somebody could write such an alternative <SFXHEAD.SFX> ? :roll:

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Post Reply