4 ms·
This is how some self-extracting .exe files work, too. You modify the unzip command to use its own filename instead of an argument, and then you append a zip to
by kej 5y ago
This is how some self-extracting .exe files work, too. You modify the unzip command to use its own filename instead of an argument, and then you append a zip to the end of that.
- whizzter 5y agoI (and others in demoscene and gamedev) often used this "trick" to avoid having extra resource-files and just distribute a single .exe (that was in reality a small exe plus a huge zip appended just behind it). Works well because Windows just reads the MZ and then PE headers that says where the EXE data is (up to the original .exe size). Then the .ZIP central directory pointer is easily findable at the end of the file so it works fine after appending.