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 am trying to create a self extracting file for Windows from Ubuntu 10.04 using 7zip.

I tried these commands:

7zr -sfx7z.sfx a output.exe *.txt

7zr -sfx/usr/local/etc/7z.sfx a output.exe *.txt

Both show this error:

Error:
can't find specified sfx module

System error:
E_FAIL

I have all the .sfx modules on /home/username/.sfx/ because I use them previously with "rar" and it worked fine, but it's not working for 7zip. I also copied 7z.sfx to /usr/local/etc/ to test the second command like shown here but I get the same error.

Why isn't it working?

share|improve this question
add comment

2 Answers

The SFX modules need to be in the same directory as the 7z executable. Don't ask why, there's no documentation on it. Good luck getting it to work though, because whenever I try and then run it I get a config file not found error.

share|improve this answer
add comment
PATH="/usr/lib/p7zip:$PATH" && 7z -sfx7zCon.sfx a ~/gnugpg.sfx ~/.gnupg/
share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.