LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 02-19-2004, 12:16 PM   #1
Trey395
LQ Newbie
 
Registered: Feb 2004
Posts: 8

Rep: Reputation: 0
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?
 
Old 02-19-2004, 12:29 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you can't turn a zip file into an exe just by changing it's name.... that's a feature of WinZip or whatever...
 
Old 02-19-2004, 01:13 PM   #3
Trey395
LQ Newbie
 
Registered: Feb 2004
Posts: 8

Original Poster
Rep: Reputation: 0
That's what the -A is supposed to do, make it a self-extracting archive. It doesn't appear to work though...
 
Old 02-19-2004, 01:47 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 02-19-2004, 01:56 PM   #5
Trey395
LQ Newbie
 
Registered: Feb 2004
Posts: 8

Original Poster
Rep: Reputation: 0
got it, thanks...

are there any other programs that will allow you to make win32 sda's?
 
Old 02-19-2004, 02:05 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 02-19-2004, 04:10 PM   #7
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
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.
 
Old 02-20-2004, 01:58 AM   #8
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
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.
 
Old 02-20-2004, 04:28 AM   #9
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
I use rar and unrar all the time in both OS's. Especially when mucking around in iso's.
 
Old 02-20-2004, 06:40 AM   #10
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
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.
 
Old 02-20-2004, 07:58 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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?
 
Old 02-20-2004, 09:50 AM   #12
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
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?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ace archives Jeebizz Slackware 3 08-14-2005 03:42 AM
extracting files from RAR archives corbis_demon Linux - Newbie 3 03-30-2005 05:25 AM
Upacking archives Stephanie Linux - General 2 05-23-2003 04:03 PM
archives nautilus_1987 Slackware 4 09-02-2002 03:01 PM
Is it possible to combine archives with ar? Griffon26 Linux - Software 2 07-02-2002 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:32 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