Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
02-19-2004, 12:16 PM
|
#1
|
LQ Newbie
Registered: Feb 2004
Posts: 8
Rep:
|
Self-extracting Archives for Windows?
I'm trying to create a self-extracting, encrypted zip archive on a RH9 box for use on a MS machine. (yes, I know these are not as secure as a key-exchange, encrypted file)
The command line I'm using is...
zip -A file.zip -e file.txt
it creates the encrypted file, but when I rename it to .exe on the win machine it does not try to unpack itself? is this even possible?
|
|
|
02-19-2004, 12:29 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
 you can't turn a zip file into an exe just by changing it's name....  that's a feature of WinZip or whatever...
|
|
|
02-19-2004, 01:13 PM
|
#3
|
LQ Newbie
Registered: Feb 2004
Posts: 8
Original Poster
Rep:
|
That's what the -A is supposed to do, make it a self-extracting archive. It doesn't appear to work though...
|
|
|
02-19-2004, 01:47 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well yes but unix code and windows code are not interchangable.... once you've create it you will be able to run it "./myarchive.zip" and it will do exactly as it is supposed to... won't do a thing on windows though.
Last edited by acid_kewpie; 02-19-2004 at 01:48 PM.
|
|
|
02-19-2004, 01:56 PM
|
#5
|
LQ Newbie
Registered: Feb 2004
Posts: 8
Original Poster
Rep:
|
got it, thanks...
are there any other programs that will allow you to make win32 sda's?
|
|
|
02-19-2004, 02:05 PM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
to be honest i can't see any reason why anyone would bother making one... seems like it's basically none of linux's business making executable programs for a totally different operating system.
|
|
|
02-19-2004, 04:10 PM
|
#7
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
I agree with acid_kewpie there...it is rather pointless.
As an alternative, you could install WinZip or WinRAR under Wine and that should allow you to make them.
under...on top of...within...whatever...
Last edited by mikshaw; 02-19-2004 at 04:13 PM.
|
|
|
02-20-2004, 01:58 AM
|
#8
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep: 
|
Quote:
it's basically none of linux's business making executable programs for a totally different operating system.
|
I would disagree, as there are times one may need to zip a file for a system without a zip program, but M$ would just make it incompatable if there was one, so you are entirely right.
I have used Linux unzip to unzip those self-extracting .exe files (like at bootdisk.com, then you can just "dd" the image to a floppy). Linux knows a zip file when it sees it.
|
|
|
02-20-2004, 04:28 AM
|
#9
|
Member
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465
Rep:
|
I use rar and unrar all the time in both OS's. Especially when mucking around in iso's.
|
|
|
02-20-2004, 06:40 AM
|
#10
|
LQ Addict
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320
Rep:
|
zipping and unzipping isn't the issue...just wanted to clarify that. The concern is whether you can create a self-extracting archive intended for windows use. Pretty sure a Windows environment is the only way at this point.
|
|
|
02-20-2004, 07:58 AM
|
#11
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Quote:
Originally posted by 2damncommon
I would disagree, as there are times one may need to zip a file for a system without a zip program, but M$ would just make it incompatable if there was one, so you are entirely right.
I have used Linux unzip to unzip those self-extracting .exe files (like at bootdisk.com, then you can just "dd" the image to a floppy). Linux knows a zip file when it sees it.
|
you are confusing what you might want, once ever with what makes logical sense. might be handy if your dvd player could take answer phone messages too... it probably could with the right coding and modification, but why would you expect it to?
|
|
|
02-20-2004, 09:50 AM
|
#12
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep: 
|
Quote:
might be handy if your dvd player could take answer phone messages too...
|
...in reference to (?) wanting to create a self-unzip for another operating system rather than just the zip file in the first place?
|
|
|
All times are GMT -5. The time now is 11:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|