lazarus/tools/install/win
martin 8a784ff039 Revert Win Installer: allow builddir from env
git-svn-id: trunk@38105 -
2012-08-01 12:12:37 +00:00
..
build-cross.bat Win Installer: cross arm, fix select drive 2012-07-21 13:17:26 +00:00
build-fpc.bat
build-lazarus.bat Win Installer: simplified build_lazarus 2012-07-24 22:52:28 +00:00
create_installer.bat Revert Win Installer: allow builddir from env 2012-08-01 12:12:37 +00:00
environmentoptions.xml cleanup in windows installer scripts: 2010-11-05 07:36:23 +00:00
installerstrconsts.pas
lazarus_install_cheetah_small.bmp
lazarus_install_cheetah.bmp
lazarus-cross.iss windows installer: use system drive for default lazarus directory (issue #20269) 2011-09-19 07:17:45 +00:00
lazarus.iss Win Installer: translation 2012-07-29 11:47:48 +00:00
lazarus.ru.isl Win Installer: updated Russian translation (ANSI) 2012-07-29 13:27:55 +00:00
readme.txt Win Installer: update readme / allow builddir from env 2012-08-01 12:06:37 +00:00
RemovedFiles32.iss Win Installer: delete files removed from previous installations w32/64 2012-07-21 15:13:54 +00:00
RemovedFiles64.iss Win Installer: delete files removed from previous installations w32/64 2012-07-22 13:17:16 +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.

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.

C Run create_installer.bat

Run the script:

create_installer.bat FPCSVNDIR LAZSVNDIR LAZSVNBINDIR RELEASE_PPC

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)

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.