1

I downloaded 7za.exe and did this to compress a file.exe:

7za.rar a -mx9 archive file.exe

Now I want to create a selfextracting archive (.exe), so I tried this:

7za.rar a -mx9 -sfx archive file.exe

But I get the following error message:

can't find specified sfx module

Can anyone please tell me how to make a selfextracting .exe with 7zip via cmd.exe? Thanks!

Goyuix
  • 6,511
  • 4
  • 37
  • 48
  • http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2006-May/017561.html –  Jan 02 '10 at 18:29

2 Answers2

3

Try 7z.sfx:

7za.rar a -mx9 -sfx 7z.sfx archive file.exe
1

Another left-of-field answer is to use AXcrypt, which not only compresses and encrypts but also supports self-executing files and has command line options.

Linker3000
  • 27,498
  • 3
  • 52
  • 73