Here are two other ideas for a workaround for "some cleanup program purged
some files in my cache area".

The rearguard hack:

   - make sure extracted files get the timestamp of extraction, not the
   timestamp recorded in the zip archive
   - add a dummy file, say REARGUARD.txt, at the top of the cache area
   - extract it as the first file (so that it becomes the oldest extracted
   file)
   - at packed executable startup, check that REARGUARD.txt exists,
   otherwise re-extract all files

Different location for the cache area:

   - when the packed executable foo.exe is installed as /some/path/foo.exe,
   extract to /some/path/foo.unpacked if this directory can be created
   - otherwise fall back to current behaviour, ie. extract to $TMP/par-USER
   - I'm not sure about the security implications

Cheers, Roderich

Reply via email to