LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to pack data into a 7z recursive + having autounpack EXE pack for windows? (https://www.linuxquestions.org/questions/linux-general-1/how-to-pack-data-into-a-7z-recursive-having-autounpack-exe-pack-for-windows-681792/)

frenchn00b 11-07-2008 11:11 AM

How to pack data into a 7z recursive + having autounpack EXE pack for windows?
 
How to pack data into a 7z recursive + having autounpack EXE pack for windows?

I would like to make a pack autoexe for windows, is that possiblewith linux?

thanks

colucix 11-08-2008 06:25 AM

You have to install the p7zip package. If you look at man 7z or man 7za you will have all the answers to your questions: 1) don't use the -r option for recursion, 2) use tar in conjunction with the -si option of 7za (read from standard input) to do recursion, 3) you can create a self-extracting archive using the -sfx option, e.g.
Code:

7za a -sfx archive.exe directory
adding files to the self extracting archive does recursion as well.

frenchn00b 11-16-2008 03:09 AM

Quote:

Originally Posted by colucix (Post 3335251)
You have to install the p7zip package. If you look at man 7z or man 7za you will have all the answers to your questions: 1) don't use the -r option for recursion, 2) use tar in conjunction with the -si option of 7za (read from standard input) to do recursion, 3) you can create a self-extracting archive using the -sfx option, e.g.
Code:

7za a -sfx archive.exe directory
adding files to the self extracting archive does recursion as well.

well ... problem

Code:


7-Zip 4.43 beta  Copyright (c) 1999-2006 Igor Pavlov  2006-09-15
p7zip Version 4.43 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,2 CPUs)

Error:
can't find specified sfx module


System error:
E_FAIL


colucix 11-16-2008 04:42 AM

It looks like version 4.43 had a bug. See an interesting discussion about this topic in the Debian forum, here. I have version 4.58 on my system (opensuse) and it works without a glitch.

frenchn00b 05-02-2009 01:25 PM

Here we go

How to pack and SFX with 7-zip,

1/ install it, first
2/ get the files 7z.sfx and 7zCon.sfx
MD5:
8a70b6be524d625d17291c6d5766cced 7z.sfx
fbec918cd09e5bd955411c474d440f27 7zCon.sfx

3/ copy, as root, those 7zCon.sfx and 7z.sfx into /usr/bin
(I have debian stable)

4/ type this :

Code:

7z a -sfx  myarchive.exe mydocument.doc
this will make you a EXE file


[ S O L V E D]

frenchn00b 05-02-2009 01:59 PM

Quote:

Originally Posted by frenchn00b (Post 3527880)
Here we go

How to pack and SFX with 7-zip,

1/ install it, first
2/ get the files 7z.sfx and 7zCon.sfx
MD5:
8a70b6be524d625d17291c6d5766cced 7z.sfx
fbec918cd09e5bd955411c474d440f27 7zCon.sfx

3/ copy, as root, those 7zCon.sfx and 7z.sfx into /usr/bin
(I have debian stable)

4/ type this :

Code:

7z a -sfx  myarchive.exe mydocument.doc
this will make you a EXE file


[ S O L V E D]

this will only work exe to be unpacked under linxu for linxu

this is for linux to WINDOWS :


he he
******* HOWTO *******


1/ How to make a rar extractable for windows?

so
get those on megaupload
5a74b0c8e3d35fe498d580e08e90650c *default.sfx
76ab410e2826456a9ca9a006ffea6766 *wincon.sfx
5a74b0c8e3d35fe498d580e08e90650c *windows.sfx
eeb322f1978b711140ec076fa735cb50 *zip.sfx
f53dce3ad1e2f73ccf5aa577519f1c92 *freebsd.sfx
6887d39229d11a8b063d8c9c03b0a732 *linux.sfx
4be71f85fc808ed14355ae5e2e69e9e7 *macos_x.sfx
8a70b6be524d625d17291c6d5766cced *7z.sfx
fbec918cd09e5bd955411c474d440f27 *7zCon.sfx
put that
under /home/username/.sfx

2/
go to the folder where owns the file:
so type:
cp /home/username/.sfx/windows.sfx .
Code:

rar a -sfxdefault.sfx myexeforwindows.exe myfiledocument.doc
Enjoy,

Say thanks please !! cuz it is no where on LINUX Boards !!


SOLVED !!

--
DN1NVFP0


All times are GMT -5. The time now is 10:40 AM.