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,607

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
  • 28,240