Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.


  Search this Thread
Old 10-14-2004, 07:22 AM   #1
LQ Newbie
Registered: Aug 2003
Location: Brussels
Distribution: Solaris 9
Posts: 18

Rep: Reputation: 0
Question create a self-extracting zip file with zip on solaris?

I would like to create a self-extracting zip file for windows with the command zip on my solaris server?
I type "zip -A TEST.exe TEST.PDF"
The compressed file is created but once I want to run it on my PC(Windows 2k) it doesn't work (it write "program too big to fit in memory")

Is it possible to make that?


Old 10-14-2004, 07:42 AM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,634

Rep: Reputation: 390Reputation: 390Reputation: 390Reputation: 390
I'm afraid the -A option does nothing.
I just compared two zip files created with and without this option, and there was almost no difference (same size, only 2 differing bytes).
Old 10-14-2004, 02:31 PM   #3
Singular Matrix
LQ Newbie
Registered: Oct 2004
Distribution: Solaris 9 (x86)
Posts: 5

Rep: Reputation: 0
The -A option will only fix zipfile offsets, you need to add an unzip stub, such as unzipsfx.

I assume you have the file zipped by now. So try this:[list=1][*]Download the appropriate stub, say, here (for Win32, it's WIN32/unz551xN.exe)[*]Extract the Win32 stub (unzip unzipsfx.exe)[*]Prepend the stub to your zipfile (cat unzipsfx.exe > testDOS.exe)[*]Fix the zipfile offsets (zip -A testDOS.exe)[/list=1]Haven't tried this on Solaris, though, but it should work.
Old 10-15-2004, 01:50 AM   #4
LQ Newbie
Registered: Aug 2003
Location: Brussels
Distribution: Solaris 9
Posts: 18

Original Poster
Rep: Reputation: 0

THANXXX A LOT Master Singular Matrix!



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
extracting from password protected zip files sanjith11 Linux - Software 4 03-21-2006 09:14 AM
Extracting many zip files xconspirisist Linux - Software 2 07-18-2004 01:43 PM
zip the file ashley75 Linux - General 1 05-01-2004 12:52 PM
Zip File Help :D neozero62 Linux - Newbie 2 01-11-2004 04:59 PM
zip file athenerx Linux - Newbie 1 06-24-2001 06:15 PM

All times are GMT -5. The time now is 12:41 AM.

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