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 |
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). |
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. |
THAT WORK VERY WELL!!!
THANXXX A LOT Master Singular Matrix! Sam |
All times are GMT -5. The time now is 11:48 PM. |