LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-07-2008, 11:11 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 51
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
 
Old 11-08-2008, 06:25 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,508

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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.
 
Old 11-16-2008, 03:09 AM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by colucix View Post
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
 
Old 11-16-2008, 04:42 AM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,508

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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.
 
Old 05-02-2009, 01:25 PM   #5
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 51
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]
 
Old 05-02-2009, 01:59 PM   #6
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by frenchn00b View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Sun Announces the Latest in Open Source Tools with the Availability of NetBeans Visual Web Pack and NetBeans C/C++ Development Pack LXer Syndicated Linux News 1 12-31-2006 07:37 AM
ATI Radeon 345M windows service pack 2 APC74656 Linux - General 2 09-14-2006 02:04 AM
windows 2000 service pack question kpachopoulos General 3 03-10-2006 04:32 PM
Windows XP service pack 2 Murdock1979 General 10 07-12-2005 11:24 AM
Windows XP and Mandriva Power pack dual boot MaxtoRs Mandriva 5 05-10-2005 12:08 AM


All times are GMT -5. The time now is 02:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration