A
Al Klein
< snip >
Obviously not a trivial task. We have a number of programmers in this
newsgroup and nobody has been able to do it. Added to that AFAIK
nobody outside of this newsgroup has either.
"Has been able to" or "ever cared to"? You've asked?
Translation - it isn't a trivial task.
Translation - for .zip and .rar it's trivial. I don't have any other
self-extracting compression examples so I have no idea how difficult
or trivial it would be for them. But reading the first - in the case
of a self-extracting .zip - 639 bytes of a file, or even the first
5300 bytes, and comparing them with a known block of data, is about as
trivial as programming gets.
<pseudocode>
Read 5300 bytes. If it's the same as that other 5300 bytes, go on to
the next file, otherwise test it against that other block of known
bytes, over and over with all known blocks. If it doesn't match any
known block, list it as an installed file and go on to the next file.
</pseudocode>
Looks something like an anti-virus program, except that it doesn't
have to read the whole file.
But why would I want a list of my executable but not self-extracting
files?