[fpc-pascal] Create appending data to existing exe file?

Lee Jenkins lee at datatrakpos.com
Sat Dec 13 16:40:44 CET 2008


Hi all,

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.

My plan was to create the base executable file which had the script engine and 
business logic to run the script and ship that with the product.  Then compile 
the end user's script and combine it with a copy of the "base executable" to 
produce the final executable file.

Is this possible or is there a more feasible way of having a program create 
stand alone executables?  Normally, I'd just ship the fpc compiler and just 
compile the final exe behind the scenes but I don't want to make the source code 
to the "base" exe available.

Thanks for suggestions or links.

--
Warm Regards,

Lee




More information about the fpc-pascal mailing list