Table of Contents

MSI Installer Build Instructions

Pre-requisites

Build Steps

  1. Unzip the PHP Windows zip binary distribution into the “Files” directory.
  2. Unzip the PECL extensions zip file for the branch into the “Files/pecl” directory.
  3. Copy PHP Manual CHM File into the “Files” directory.
  4. Run the “build.bat” script with the first arguement as the version you are building for.
  5. If you are building the installer for the non-thread-safe binaries, include “nts” ( without the quotes ) as the second argument.

Example for building for PHP version 5.2.0; the resulting installer filename will be php-5.2.0-win32-VC6-x86-install.msi.

build.bat 5.2.0

Example for building for PHP version 5.2.5 with non-thread-safe binaries; the resulting installer filename will be php-5.2.5-nts-win32-VC6-x86-install.msi.

build.bat 5.2.0 nts

Example for building for PHP version 5.3.0beta1 with VC9 binaries; the resulting installer filename will be php-5.3.0beta1-win32-VC9-x86-install.msi.

build.bat 5.3.0beta1 vc9

Example for building for PHP version 5.3.0 with non-thread-safe and VC9 built binaries; the resulting installer filename will be php-5.3.0-nts-win32-VC9-x86-install.msi.

build.bat 5.3.0 nts vc9

Example for building for PHP version 5.3.0 with VC9 x64 built binaries; the resulting installer filename will be php-5.3.0-win32-VC9-x64-install.msi.

build.bat 5.3.0 x64

Example for building for PHP version 5.3.0 for a snapshot build; the resulting installer filename will be php-5.3.0-win32-VC6-x86-install-latest.msi.

build.bat 5.3.0 latest