[Lazarus] Extracting a resource from an exe file & adding it back in

Hans-Peter Diettrich DrDiettrich1 at aol.com
Sat Oct 15 16:48:56 CEST 2011


Reinier Olislagers schrieb:
> Hi list,
> 
> I've created a zip file with some files in it, then compiled these as a
> (Windows x86) resource using this .rc script:
> // Configuration file for
> // executable files required by checkride
> //fields: resource name/resource type/resource filename
> 
> //all compressed in one zip:
> ALL          CR_EMB_FILE helped.zip
> 
> (Created my own resource type because that seemed the only way)
> 
> I want to give users an editor to edit a text file inside helped.zip &
> save the changes back to the executable.

You'll run into a couple of problems:

- An executable cannot update itself (at runtime).
- A resource editor or compiler tool is needed, which may not be 
available on every platform.
- The user must have write permissions for the executable file.

DoDi





More information about the Lazarus mailing list