LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-02-2009, 12:43 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
How to rar with SFX?


Hello the command is:

Code:
rar a -s -m5 -v1000 myrar.rar *
a for add
m for max compression
v1000 for 1mb, splitting
-s for SFX with modules into the home directory, ok, but what/how?

Last edited by frenchn00b; 05-02-2009 at 01:58 PM.
 
Old 05-02-2009, 01:58 PM   #2
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
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
(why there is no space after -sfx? -but it works like that)

Enjoy,

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


SOLVED !!

--
The required files are at megaupload:
DN1NVFP0

Last edited by frenchn00b; 02-28-2011 at 09:55 PM.
 
Old 11-26-2009, 11:10 AM   #3
DJDOG
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Rep: Reputation: 1
Update

Quote:
Originally Posted by frenchn00b View Post
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
with your HOW TO I am successful at creating the Windows EXE, but I would like to add a 'Extract Path' via Linux for something like;

C:\Program Files\Test
or
C:\Program Files (x86)\Test

with no success using -d, -sp, -ep1 using different variations of the it to add a extract path.

Could you point me into the right direct?

Command: rar a -sfxDefault.SFX test.exe test
 
1 members found this post helpful.
Old 11-28-2009, 10:55 AM   #4
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by DJDOG View Post
with your HOW TO I am successful at creating the Windows EXE, but I would like to add a 'Extract Path' via Linux for something like;

C:\Program Files\Test
or
C:\Program Files (x86)\Test

with no success using -d, -sp, -ep1 using different variations of the it to add a extract path.

Could you point me into the right direct?

Command: rar a -sfxDefault.SFX test.exe test
first step: enter this code unter megaupload ...
DN1NVFP0
to get the required files. Otherwise those files are under windows, somewhere....

then once you have them post or try...

Last edited by frenchn00b; 11-28-2009 at 10:57 AM.
 
Old 11-28-2009, 11:19 AM   #5
DJDOG
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Rep: Reputation: 1
I mentioned, I've successfully created the EXE using your 'RESOLVED' method.

Now, I would like to do is be able to add an extract path via command line via Linux for Windows EXE.

C:\Program Files\Test
or
C:\Program Files (x86)\Test

I've downloaded the modules...What's next?
 
Old 11-29-2009, 04:25 AM   #6
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by DJDOG View Post
I mentioned, I've successfully created the EXE using your 'RESOLVED' method.

Now, I would like to do is be able to add an extract path via command line via Linux for Windows EXE.

C:\Program Files\Test
or
C:\Program Files (x86)\Test

I've downloaded the modules...What's next?
ok, now I understand your question...
thats not trivial

cat te | grep path
Code:
              command with the exception of the file path. i.e.  the file name
       x      Extract files with full path.
       -ap    Set  path inside archive. This path is merged to file names when
       -ep    Exclude paths from names.
       -ep2   Expand paths to full. Store full file paths (except a drive let‐
              ter and leading path separator) when archiving.
       -w<path>
well, I have to say that I have not much ideas. But sure it is possible, ... but NO ONE knows. only the creator of winrar whcih release crappy documentations. The author of the man or docs for linux shall know. On the forum of winrar it has some information for linux.

You know that the problem with linux, there is lot of cool applications but no one has any ideas how to use it ro install it.
example : http://yellowprotoss.ye.funpic.org/w...frenchn00b.gif
 
Old 11-29-2009, 05:41 PM   #7
DJDOG
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Rep: Reputation: 1
This is my intent;

Create a PHP db
The db exports to TEXT file
php check the md5 of the file; If it changes; will execute a 'New Compile'

Writes new text file
Then the text file will be RAR'd up using WinRAR; but to install this file I need to place 'A path'.

I'll play with it some more and once I figure this out; Anyone that can post 'Howto' do this than do so;

Last edited by DJDOG; 11-29-2009 at 05:42 PM.
 
Old 12-07-2009, 06:43 PM   #8
DJDOG
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Rep: Reputation: 1
Ok, I did a test on my 'Windows' Machine.

In the comments, You can add parameters

Example:

;The comment below contains SFX script commands

Path=C:\Program Files\Test!\
SavePath
Overwrite=1
Title=Title

In Linux you can define a comment, but it doesn't work either way I try it; Reading on 'Batch Files' and possible to work based off that.
 
Old 04-12-2010, 07:22 AM   #9
DJDOG
LQ Newbie
 
Registered: Nov 2009
Posts: 5

Rep: Reputation: 1
As of Today, I considered this 'RESOLVED' I was testing again and I got it working.

The way I did it was above with I stated before with a comment which as 'SFX Script Options'.

Create a file called: settings.conf (You can name or use any extension you want.)

Quote:
;The comment below contains SFX script commands

Path=C:\Program Files (x86)\Software\
SavePath
Overwrite=1
Title=You can place your title here
Text
{
Text displayed of what you're installing
}
License=License Title
{
Add License
}
If you remove:

Quote:
License=License Title
{
Add License
}
License Agreement will not show, That goes for anything.

Save this in the settings.conf file.

and run this command:

Quote:
rar a -sfxsfx/Default.SFX -zsettings.conf test.exe test.txt
RESULT:
Quote:
Creating archive test2.exe

Reading comment from settings2.conf
Adding comment to test2.exe
Adding test.txt OK
Done

TESTED: Linux (CentOS x64) with WinRAR 3.60 (Linux WinRAR) using Windows SFX Modules from WinRAR 3.93
 
  


Reply



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
How to setup firefox to automatically download a .rar instead of viewing a .rar... trist007 Linux - Newbie 5 07-18-2008 06:52 AM
question on how to rar multiple files into there own rar file steve51184 Linux - Software 13 10-24-2007 04:23 PM
HowTO to use chmod with *.sfx ext. jmfa59 Linux - Newbie 15 06-29-2007 04:04 PM
Installing/Extracting .sfx files The Jesus Linux - General 3 04-11-2002 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration