lazarus/tools/install/win
2016-01-05 12:31:21 +00:00
..
innoscript Make FPC dir relative to $lazarusdir in innosetup Issue #0029041 Marco van de Voort 2015-12-03 22:51:49 +00:00
ReplaceText Installer, Win: added helper for cross compile builders 2013-09-13 11:05:07 +00:00
build-cross.bat installer, win: update cross build script / changed order of options 2015-02-15 17:20:20 +00:00
build-fpc.bat Win-Installer:fix for fpc 2.6. branch // better error checks 2013-08-29 10:56:21 +00:00
build-lazarus.bat Win, Installer: clean packages after build. Those are mainly IDE, and not needed for building average user apps 2014-09-30 12:51:05 +00:00
create_installer.bat Installer, Win: allow workaround for make2.8.0 issues (allow replacing make in final installer) 2013-09-13 11:06:16 +00:00
environmentoptions.xml trunk: set version to 1.7 2015-11-30 19:06:17 +00:00
lazarus_install_cheetah.bmp
lazarus-cross.iss Installer, Win: Display name for add on installer. Issue #0025787 2014-04-12 02:01:25 +00:00
lazarus.de.isl Installer, Win: updated translation files with new place holders 2013-09-11 22:00:35 +00:00
lazarus.def.isl Installer, Win: improved localization 2013-09-06 17:53:04 +00:00
lazarus.es.isl Win, installer: convert Spanish to ansi 2013-11-08 21:41:26 +00:00
lazarus.fr.isl Translations: French translation update by Gilles Vasseur, bugs #29291, #29315 2016-01-03 12:22:56 +00:00
lazarus.hu.isl Installer: Hungarian translation by Péter Gábor, bug #29322 2016-01-05 12:31:21 +00:00
lazarus.iss Installer, Win: update icon references 2015-06-30 16:24:24 +00:00
lazarus.pt_BR.isl Translations: Brazilian Portuguese translation update by Marcelo B Paula, bug #25134 2013-10-04 20:16:46 +00:00
lazarus.ru.isl Installer, Win: improved Russian translation 2013-09-07 16:38:48 +00:00
lazgear.bmp Win-Installer: Changed image 2013-08-28 19:18:12 +00:00
readme.txt Win Installer: readme 2012-08-03 12:58:21 +00:00
RemovedFiles32.iss Move EditorToolbar from a package to IDE sources. Reuse config dialog with IDE Coolbar. 2015-06-21 10:45:24 +00:00
RemovedFiles64.iss Move EditorToolbar from a package to IDE sources. Reuse config dialog with IDE Coolbar. 2015-06-21 10:45:24 +00:00
svn2revisioninc.bat windows installers: fixed creating revision.inc in the exported source in such a way that svn2revisioninc leaves it untouched (issue #20277) 2011-09-19 07:52:30 +00:00

This readme describes how to create a lazarus installation package for win32.
The creation of an installation packages consists of three steps:
A. Setup the build machine.
B. Adjust create_installer.bat to your configuration.
C. Run create_installer.bat.

A Setup the build machine.

A.1 Inno Setup
I used Inno Setup, a free installer for Windows programs. You can download it from http://www.jrsoftware.org/, and you need the QuickStart Pack and during installation choose Inno Setup Preprocessor too.

A.2 Subversion
The build script assumes you have the Subversion client installed. You can download it from http://subversion.tigris.org/, you can use the package with setup in name.

A.3 FPC sources
The build script assumes you have a svn version of the fpcbuild sources. For information about getting the fpc sources from svn see: http://www.freepascal.org/

A.4 Lazarus sources
A Lazarus svn tree, containing the lazarus sources.

A.5 Lazarus binaries
Some binaries from a lazarus/binaries svn tree. These binaries (like gdb and the qt interface dll) are distributed with Lazarus, but are not built from source.

A.6. The latest release of the fpc compiler
Currently the latest release is fpc 2.6.0. You need just the ppcXXX.exe (ppc386.exe for win32 and ppcx64.exe for win64) to bootstrap compilation of the current fpc version.

A.7. The CHM help files for Lazarus
If you want to include CHM help files in the installer, you'll need a directory with the FCL, RTL, LCL etc .CHM files (and associated index etc files, optionally including subdirectories) .

B Adjust create_installer.bat to your configuration

Open the create_installer.bat in a text editor and check the variables, to see if they match your configuration:
ISCC: Path to the Inno Setup Compiler .exe file.
BUILDDIR: Path to build directory.
SVN: Path to the Subversion .exe file.

Alternatively, you can set these as environment variables before you run the batch script, e.g.:
SET ISCC="C:\Program Files (x86)\Inno Setup 5\ISCC.exe"
SET LAZTEMPBUILDDIR="c:\temp\lazarusbuild"
SET SVN="C:\Program Files\Subversion\bin\svn.exe"

C Run create_installer.bat

Run the script:

create_installer.bat FPCSVNDIR LAZSVNDIR LAZSVNBINDIR RELEASE_PPC
or
create_installer.bat FPCSVNDIR LAZSVNDIR LAZSVNBINDIR RELEASE_PPC IDE_WIDGETSET PATCHFILE CHMHELPFILES

where:
FPCSVNDIR: Path to the fpc sources checked out of svn (see A.3)
LAZSVNDIR: Path to the lazarus sources checked out of svn (see A.4)
LAZSVNBINDIR: Path to the svn lazarus binaries (see A.5)
RELEASE_PPC: Path to the FPC compiler required to start the build of fpc it FPCSVNDIR (see A.6)
IDE_WIDGETSET: Optional: IDE widgetset to be created. If not needed: don't enter it or use ""
PATCHFILE: Optional: name of FPC patch file for the FPC sources. If not needed: don't enter it or use ""
CHMHELPFILES: Optional: directory containing CHM help files to be included in the installer (see A.7). If not needed: don't enter it or use ""

Just do it. Wait about 40 minutes (on 2.6 GHz P-IV). A log file named installer.log will be written to the current directory and setup file will be in the Output subdirectory of the current directory.