The setuptools installer for Windows 7 x86 is named an exe file, but can be opened as a zip file. When I peek into it, there are two top level folders: PURELIB and SCRIPTS. What are these, and how is it that when I double click on this exe, Windows runs it for me, although it’s a zip file? That is, how does Windows know what to run inside this zip/exe? Thanks.
Share
From http://zziplib.sourceforge.net/sfx-make.html
The magic is possible because exe format allows any data to be appended to the executable and zip format allows any data to be prepended to the archive.