Creating self-extracting zip files for DOS under Linux

Paul Lussier p.lussier at comcast.net
Thu Jul 12 11:14:50 EDT 2007


Hi all,

We just had this question come up here at work, as we are trying to
deal with BIOS upgrading.  In case anyone needs to know how to do
this, it's rather simple and elegant:

  - Grab a DOS executable "stub" from here:
    ftp://ftp.info-zip.org/pub/infozip/MSDOS/unz552x3.exe

  - Create your zip file
  - Prepend the executable stub onto your zip file:

    cat unzipsfx.exe yourzip.zip > yourDOSzip.exe 

  - Adjust the archive to clean up the internal offsets:

    zip -A yourDOSzip.exe

The page I found to do this was here, for those who want something to
bookmark:

  http://www.info-zip.org/FAQ.html#unixSFX

-- 
Seeya,
Paul


More information about the gnhlug-discuss mailing list