up vote 0 down vote favorite
share [g+] share [fb]

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!

link|improve this question
feedback

migrated from stackoverflow.com Jan 2 '10 at 18:57

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

2 Answers

Try 7z.sfx:

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

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown