Andreas Schneider wrote:
Hi,

that works the same as in Windows and can probably be done with every executable format. Simply append the data to the end of the file and store the offset or length of that data at the end. All you have to do then is to let the program open "itself" (ParamStr(0)), seek to the end - SizeOf(Integer), read that integer to know the offset of the data, seek to that position, and read all you need from there. So essentially your file looks like:
<original executable><install data><data offset>

Andreas,

Will this method work when the exe is digitally
signed afterwards (or before) ?

(tough, for linux it doesn't matter)

Milan

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to