Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

p7zip sfx module [PARTIALLY SOLVED]

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
User avatar
crusti
Posts: 30
Joined: 2006-04-12 03:15

p7zip sfx module [PARTIALLY SOLVED]

#1 Post by crusti »

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...

#2 Post by crusti »

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

patrick295767
Posts: 257
Joined: 2006-12-23 22:55

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

#3 Post by patrick295767 »

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

thamarok

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

#4 Post by thamarok »

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

User avatar
hcgtv
Posts: 500
Joined: 2006-11-17 23:03
Location: Charlotte, NC

#5 Post by hcgtv »

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

patrick295767
Posts: 257
Joined: 2006-12-23 22:55

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

#6 Post by patrick295767 »

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

thamarok

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

#7 Post by thamarok »

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..)

patrick295767
Posts: 257
Joined: 2006-12-23 22:55

#8 Post by patrick295767 »

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

jgombos
Posts: 4
Joined: 2008-08-04 18:02

#9 Post by jgombos »

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?

User avatar
Issyer
Posts: 3032
Joined: 2007-05-23 02:59
Location: Khakassia

#10 Post by Issyer »

jgombos wrote: Should I create a debian bug report too?
They say peazip does. I've never tried, though.
http://peazip.sourceforge.net/

Post Reply