Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.