p7zip sfx module [PARTIALLY SOLVED]

Everything about X, Gnome, KDE, ... and everything running on it

p7zip sfx module [PARTIALLY SOLVED]

Postby crusti » 2007-02-01 06:24

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
Last edited by crusti on 2007-02-01 21:23, edited 2 times in total.
OS: Debian Etch running XFCE 4.4
CPU: AMD Athlon 2500XP
MOB: Asus A7N8X-X
VID: GeForce4 MX440SE
AUD: Onboard
RAM: 1.5 GB
HDD: 80 GB Maxtor
HDD: 80 GB Maxtor
HDD: 160 GB Samsung
User avatar
crusti
 
Posts: 30
Joined: 2006-04-12 03:15

Doesn't self-extract as planned...I'll keep you posted...

Postby crusti » 2007-02-01 21:22

This 'solution' doesn't self-extract in windows as planned, though I did learn two things:

It only works with archives that have been compressed as .7z
I currently get an error in the windows command prompt:
Program too big to fit into memory

But when I open the archive test.exe with 7zip it's a valid archive and I can see the files.

I'll keep you posted, assuming you care at all.

crusti
OS: Debian Etch running XFCE 4.4
CPU: AMD Athlon 2500XP
MOB: Asus A7N8X-X
VID: GeForce4 MX440SE
AUD: Onboard
RAM: 1.5 GB
HDD: 80 GB Maxtor
HDD: 80 GB Maxtor
HDD: 160 GB Samsung
User avatar
crusti
 
Posts: 30
Joined: 2006-04-12 03:15

Re: Doesn't self-extract as planned...I'll keep you posted..

Postby patrick295767 » 2007-02-03 17:01

crusti wrote:This 'solution' doesn't self-extract in windows as planned, though I did learn two things:

It only works with archives that have been compressed as .7z
I currently get an error in the windows command prompt:
Program too big to fit into memory

But when I open the archive test.exe with 7zip it's a valid archive and I can see the files.

I'll keep you posted, assuming you care at all.

crusti


we care we care !

thx for 7z

Btw, would you know how to make rar archive SFX .exe unpackable for windows + splitteable ?
Please even during the wind, may Debian remain as trustable, highly-stable, secured, lightweight, and bug-free as always !
http://www.babytux.org/gallery/images/couchtux.jpeg
website
patrick295767
 
Posts: 258
Joined: 2006-12-23 22:55

Re: Doesn't self-extract as planned...I'll keep you posted..

Postby thamarok » 2007-02-03 17:24

patrick295767 wrote:
crusti wrote:This 'solution' doesn't self-extract in windows as planned, though I did learn two things:

It only works with archives that have been compressed as .7z
I currently get an error in the windows command prompt:
Program too big to fit into memory

But when I open the archive test.exe with 7zip it's a valid archive and I can see the files.

I'll keep you posted, assuming you care at all.

crusti


we care we care !

thx for 7z

Btw, would you know how to make rar archive SFX .exe unpackable for windows + splitteable ?


Why not trying WinRAR in Wine? It has worked great for me.
www.winehq.com
www.rarlab.com
thamarok
 
Posts: 1798
Joined: 2006-10-12 16:36

Postby hcgtv » 2007-02-03 18:56

I read this article the other day, it may help:
http://www.linux.com/article.pl?sid=07/01/29/2031237
Bert Garcia - When all you have is a keyboard
User avatar
hcgtv
 
Posts: 518
Joined: 2006-11-17 23:03
Location: Charlotte, NC

Re: Doesn't self-extract as planned...I'll keep you posted..

Postby patrick295767 » 2007-02-03 19:47

Why not trying WinRAR in Wine? It has worked great for me.
www.winehq.com
www.rarlab.com[/quote]

well well, I try to avoid any microsoft ... & it can be slow & risky for larger files
Please even during the wind, may Debian remain as trustable, highly-stable, secured, lightweight, and bug-free as always !
http://www.babytux.org/gallery/images/couchtux.jpeg
website
patrick295767
 
Posts: 258
Joined: 2006-12-23 22:55

Re: Doesn't self-extract as planned...I'll keep you posted..

Postby thamarok » 2007-02-03 19:58

patrick295767 wrote:Why not trying WinRAR in Wine? It has worked great for me.
www.winehq.com
www.rarlab.com

well well, I try to avoid any microsoft ... & it can be slow & risky for larger files


Microsoft?
Wine is a free open-source project not related to Microsoft at all. And WinRAR is not Microsoft's... and besides, the unrar program found in Etch comes from RARLAB which also made WinRAR.. And it's quite fast here and it doesn't lag even with Windows XP compressed into a RAR and extracting it.

(Note that unrar is RARLAB's, but unrar-free is GNU's..)
thamarok
 
Posts: 1798
Joined: 2006-10-12 16:36

Postby patrick295767 » 2007-02-03 20:10

There is certainly a program in linux that can handle rar splitting/sfx with gui
I am always impressed by o urhuge repositories
Please even during the wind, may Debian remain as trustable, highly-stable, secured, lightweight, and bug-free as always !
http://www.babytux.org/gallery/images/couchtux.jpeg
website
patrick295767
 
Posts: 258
Joined: 2006-12-23 22:55

Postby jgombos » 2008-10-26 16:26

This is still a problem. And in fact the OPs fix apparently doesn't work anymore.

I see that there is an ubuntu bug report for it:

https://bugs.launchpad.net/ubuntu/+sour ... bug/110377

Should I create a debian bug report too?
jgombos
 
Posts: 4
Joined: 2008-08-04 18:02

Postby Issyer » 2008-10-26 16:35

jgombos wrote:Should I create a debian bug report too?


They say peazip does. I've never tried, though.
http://peazip.sourceforge.net/
User avatar
Issyer
 
Posts: 2975
Joined: 2007-05-23 02:59
Location: Khakassia


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable