[fpc-pascal] Re: creating a standalone executable (eg: application installation file)
Milan Marusinec
milan at marusinec.sk
Tue Jan 12 14:17:21 CET 2010
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
More information about the fpc-pascal
mailing list