<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Before spending any time on this I would look at the Open Source
7-zip compression utility (<a class="moz-txt-link-freetext" href="https://www.7-zip.org/">https://www.7-zip.org/</a>). 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).</p>
<p>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.</p>
<div class="moz-cite-prefix">On 18/02/2019 12:59, Chavoux Luyt via
lazarus wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAPGeeiHQTi1SQYNDs3xw2Ax8For_0FTEmceKUrnpGKoOgLXd7Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Hi all,</p>
<p>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.</p>
<p>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?</p>
<p>Thanks in advance!<br>
Chavoux</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
</body>
</html>