Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jan 2 '10 at 18:57

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

    

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.