Before spending any time on this I would look at the Open Source 7-zip compression utility (https://www.7-zip.org/). This is available for both Windows and Linux and I use it to package my own Windows/FPC/Lazarus builds for self-extraction and installation under Windows (I also use Microsoft WIX to build the MSI files).

7z is readily scripted to archive your files into a single zip. All you then need to do is to concatenate a pre-built 7z.sfx stub executable with a text file containing the installation parameters and the zip file. The result is a self-extracting archive. This is described in its documentation under the -sfx (Create SFX archive) switch.

On 18/02/2019 12:59, Chavoux Luyt via lazarus wrote:

Hi all,

Many moons ago I wrote small self-extracting executable programs in Delphi... the executable would basically include both the program itself as well as some INI and data files; when running it would access itself on disk, find the addresses within the exe file where each data file starts (and its size) and then extract and write them to disk. I think I installed a component for this in Delphi. The component would both create the self-extracting exe and be included in the exe in order to extract the files.

Before I start writing something from scratch, I just wanted to ask if there are any such components (or components that would make writing it easier) for Lazarus?

Thanks in advance!
Chavoux


-- 
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to