Sign in Join
Wiki copytemporary

Lazarus Installer: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Lazarus Installer

OldNewLine
1+There are various official installers/packages for different platforms/OSes.
2+
3+## Lazarus Windows Installer
4+
5+The Lazarus Windows installer is written for the [[Inno Setup]] compiler.
6+
7+See [here](http://wiki.lazarus.freepascal.org/Inno_Setup#Examples) for a link to the location of the .iss file in your Lazrus directory.
8+
9+### Creating your own installer
10+
11+You may want to create your own installer; good instructions are provided by the readme in \$(LazarusDir)\tools\install\win\\
12+
13+Below is a list of commands interspersed with instructions/comments that is based on that readme and that was sucesfully used to build an installer from Lazarus SVN trunk (1.1 at the time) and FPC 2.6.1 (fixes 2.6).
14+
15+I had installed the binutils, Lazarus and FPC first using [[Projects using Lazarus|fpcup]] so the paths below reflect the default fpcup paths. Of course, you can modify to your situation.
16+
17+```dos
18+rem A.1 Inno Setup
19+rem I used Inno Setup version 5.5.1 (unicode). You can use Unicode Inno setup from Lazarus r38111 (thanks, Martin Friebe!)
20+rem but it won't support Win9x
21+rem If you want to support Win9x, use an Ansi Inno Setup lower than 5.5.0
22+
23+rem A.3 FPC build sources:
24+rem Using fixes 2.6 here (the fixes to the latest stable version at this time)
25+cd /d c:\development
26+mkdir c:\development\fpcbuild
27+svn checkout http://svn.freepascal.org/svn/fpcbuild/branches/fixes_2_6_0/ c:\development\fpcbuild
28+
29+rem A.4 Lazarus sources:
30+rem I've got my Lazarus sources in c:\development\lazarus (downloaded by fpcup)
31+
32+rem A.5 Lazarus binaries
33+rem Hum, where is the svn for that? Let's see:
34+mkdir c:\development\lazbinaries
35+svn checkout http://svn.freepascal.org/svn/lazarus/binaries/ c:\development\lazbinaries\
36+
37+rem A.6 Latest release fpc compiler
38+rem I have a 2.6.0 i386 compiler in c:\development\fpcbootstrap\ppc386.exe (downloaded by fpcup)
39+
40+rem B adjust C:\Development\lazarus\tools\install\win\create_installer.bat
41+rem didn't do that, instead set environment variables to my situation
42+mkdir c:\development\lazarusbuild
43+
44+rem Set BUILDDIR to c:\development\lazarusbuild, by setting LAZTEMPBUILDDIR
45+SET LAZTEMPBUILDDIR=c:\development\lazarusbuild
46+
47+rem set SVN to my situation:
48+SET SVN="D:\Program Files\SlikSvn\bin\svn.exe"
49+
50+rem set ISCC to my situation:
51+SET ISCC="D:\Program Files (x86)\Inno Setup 5\ISCC.exe"
52+
53+rem check:
54+SET
55+
56+rem C run the script
57+cd /d C:\Development\lazarus\tools\install\win
58+create_installer.bat c:\development\fpcbuild c:\development\lazarus c:\development\lazbinaries c:\development\fpcbootstrap\ppc386.exe
59+```
60+
61+The log ends up in C:\Development\lazarus\tools\install\win\installer.log The output setup.exe ends up in a subdirectory Output
62+
63+## Linux packages
64+
65+### RPM package
66+
67+Lazarus is packaged as an RPM package.
68+
69+### deb package
70+
71+Lazarus is packaged as a deb package.
72+
73+## macOS image/package
74+
75+Lazarus is packaged as an macOS .dmg disk image (32 bit) or .pkg installation package (64 bit).
76+
77+---
78+*From the Free Pascal wiki, page "Lazarus Installer", as it stood on 2020-08-05 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
79+Category: Install
80+Category: Lazarus

Back to history