[fpc-pascal] Re: creating a standalone executable (eg: application installation file)

Andreas Schneider aksdb at gmx.de
Tue Jan 12 14:22:04 CET 2010

I think if digital signing is required, using Windows Resources would be the 
better way. Now that I think about it, with FPC 2.4 that should even be 
possible on Linux (and other platforms). Many roads lead to rome :D

Am Dienstag 12 Januar 2010 14:17:21 schrieb Milan Marusinec:
> 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 at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal

More information about the fpc-pascal mailing list