[fpc-pascal] Create appending data to existing exe file?
jonas.maebe at elis.ugent.be
Sun Dec 14 16:29:36 CET 2008
On 14 Dec 2008, at 02:54, Lee Jenkins wrote:
> Tomas Hajny wrote:
>> On 13 Dec 08, at 10:40, Lee Jenkins wrote:
>>> Is it possible to append data to an existing executable file and
>>> have that file run correctly? I'm adding scripting features to
>>> one of our products and I wanted it so that our software can
>>> create a standalone executable for the end user.
>> First of all, this may be different for different platforms, so
>> it's probably rather important to know the platform you're talking
>> about. Executable files for some platforms have explicit support
>> for addition of some data directly into the executable file in the
>> form of the so-called resources and the tool necessary for adding
>> the data (resource compiler) may be directly shipped together with
>> the particular platform, in other cases appending the data outside
>> the real executable image may be more tricky (but it can be
>> probably done for all platforms in this or that way).
> Windows 2K/XP/Vista, Linux GTK2 and possible MacOS when/if cocoa is
At least on Mac OS X, you should not modify the executable but simply
include the script as a separate file in the application bundle.
More information about the fpc-pascal