LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   create a self-extracting zip file with zip on solaris? (http://www.linuxquestions.org/questions/solaris-opensolaris-20/create-a-self-extracting-zip-file-with-zip-on-solaris-242520/)

samsolaris 10-14-2004 08:22 AM

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?

Thanxx

Sam

jlliagre 10-14-2004 08:42 AM

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).

Singular Matrix 10-14-2004 03:31 PM

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 unz551xN.zip unzipsfx.exe)[*]Prepend the stub to your zipfile (cat unzipsfx.exe test.zip > testDOS.exe)[*]Fix the zipfile offsets (zip -A testDOS.exe)[/list=1]Haven't tried this on Solaris, though, but it should work.

samsolaris 10-15-2004 02:50 AM

THAT WORK VERY WELL!!!

THANXXX A LOT Master Singular Matrix!

Sam


All times are GMT -5. The time now is 01:59 AM.