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.
LZMA self extractor
Moderators: Hacker, petermad, Stefan2, white
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
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

- ghisler(Author)
- Site Admin
- Posts: 50479
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
To suggest---
2MVV
Hello !

- Maybe somebody could write such an alternative <SFXHEAD.SFX> ?
KR
Claude
Clo

• I would support this solution as a suggestion…… Or SFX should support LZMA

- Maybe somebody could write such an alternative <SFXHEAD.SFX> ?


Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials