Subject: Re: building Windows self-extracting executables?
To: Wojciech Puchar <>
From: Steven M. Bellovin <>
List: netbsd-users
Date: 01/23/2003 08:43:50
In message <>, Wojciech P
uchar writes:
>> Does anyone have any pointers to a NetBDS-compatible program that can
>> generate self-extracting executable archives for Windows?  (The
>> requirement comes from elsewhere...)  Grepping pkgsrc didn't show
>> anything obvious.  The 'zip' man page speaks of an SFX stub that can be
>> prepended, but I have no idea where to get such a thing for Windows.
>try in windoze
>a) making zipfile
>b) converting this to .exe file
>c) dd if=exefile bs=$((sizeofexefile-sizeofzipfile)) of=exeunzipheader
>then in unix
>a)create zipfile
>b)cat exeunzipheader zipfile >exefile
>c) test it in windoze
>d) if c works put somewhere on WWW/FTP
>i have no program for creating zip selfextractors for windoze so can't
>help you (yes really, i have only legal software :)
Unfortunately, I need to modify the self-extracting part, which means 
that I need an open-source solution.  Thanks.

		--Steve Bellovin, (me) (2nd edition of "Firewalls" book)