Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!

share|improve this question

migrated from Jan 2 '10 at 18:57

This question came from our site for professional and enthusiast programmers.

Try 7z.sfx:

7za.rar a -mx9 -sfx 7z.sfx archive file.exe
share|improve this answer

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.

share|improve this answer

You must log in to answer this question.