Hi there,
I'm trying to use the p7zip package (ver 4.43) and I've been beating myself sensless over trying to create exe files for windows machines.
I get the output:
**********************************
$ 7z a -sfx test.exe test.txt
7-Zip 4.43 beta Copyright (c) 1999-2006 Igor Pavlov 2006-09-15
p7zip Version 4.43 (locale=en_US,Utf16=on,HugeFiles=on,1 CPU)
Error:
can't find specified sfx module
System error:
E_FAIL
**********************************
I've found little info (in English or any language) on this issue.
OK, I just discovered the problem, so if you're having this problem and you're just about ready to jump out the window, refrain from said window jumping and keep reading.
Thanks to the helpful advice here
http://lists.pld-linux.org/mailman/pipe ... 17561.html
I was able to make it work.
This person showed the use of the following command:
$ 7z -sfx/usr/bin/7zCon.sfx a foo.exe foo
This is contrary to the man page which shows:
$ 7z a -sfx archive.exe dir1
Given the use of 7zCon.sfx I became suspicious, as the Debian package I had did not include 7zCon.sfx.
I downloaded the tarball from version 4.44 and extracted it, and pulled out the 7zCon.sfx module and put that where 7z is, in /usr/bin.
I successfully used the command:
$ 7z -sfx/usr/bin/7zCon.sfx a test.exe test.txt
to produce the following output:
**********************************
$ 7z -sfx/usr/bin/7zCon.sfx a test.exe test.txt
7-Zip 4.43 beta Copyright (c) 1999-2006 Igor Pavlov 2006-09-15
p7zip Version 4.43 (locale=en_US,Utf16=on,HugeFiles=on,1 CPU)
Scanning
Updating archive test.exe
Compressing test.txt
Everything is Ok
**********************************
$ 7z -sfx/usr/bin/7zCon.sfx a test.exe testdir
produced:
**********************************
$ 7z -sfx/usr/bin/7zCon.sfx a test.exe testdir
7-Zip 4.43 beta Copyright (c) 1999-2006 Igor Pavlov 2006-09-15
p7zip Version 4.43 (locale=en_US,Utf16=on,HugeFiles=on,1 CPU)
Scanning
Updating archive test.exe
Compressing testdir/somefile.txt
Compressing testdir/anotherfile.txt
Compressing testdir/yetanotherfile.txt
Compressing testdir/thisisthelastfile.txt
Everything is Ok
**********************************
I'll know tomorrow if I can actually extract this test.exe in windows.
Hope this saves you some time and headaches.
crusti