From Post-Apocalyptic RPG wiki

Jump to: navigation, search

Download.png This article covers packaging instructions!

Packaging articles explain how to package a stable or unstable version of PARPG on a specific platform.

This article explains how to package stable PARPG releases on Windows systems.


Tools Used

Windows packaging is done with the NSIS scripting language. To compile the NSIS script you will need to download the NSIS program from It is also helpful to have an editor for syntax highlighting. Many are available from links on the NSIS site. Currently we have been using this one:

Preparation steps

  1. Update your FIFE and PARPG SVN checkouts to the versions that you would like to ship with the installer. In general we assume that both the latest FIFE and PARPG trunk is used for the purpose. We might want to resort to tagged PARPG releases or specific FIFE revisions in case there are known issues with newer revisions of PARPG or FIFE.
  2. Build FIFE via mingw as described here: Install SVN trunk on Windows#Build FIFE SVN trunk

Gathering dependencies

There is an empty directory in SVN called trunk/game/packaging/dependencies. This directory is reserved for any 3rd party files and executables we may wish to include in our installer. It is the packagers responsibility to gather any such files and place them in the dependencies directory before compiling the script. One such example is the OpenAL sound libraries we use (oalinst.exe). If the NSIS compiler cannot find all dependency files it will generate an error and the installer will not be created. Dependencies should NOT be commited into our SVN repository!


After FIFE has been built from source, we'll still have to turn it into a standards-compliant installable Python module. To do so:

  1. cd into FIFE\trunk
  2. Run: bdist_wininst
  3. cd into FIFE\trunk\dist and copy fife-0.3.0.win32.exe into PARPG\trunk\game\packaging\dependencies


To download the latest version of OpenAL for Win32, grab this package:

Unpack the content of the zip package (oalinst.exe) into PARPG\trunk\game\packaging\dependencies to ensure that OpenAL gets correctly shipped with the PARPG installer.

Compiling the Installer

The installer script is compiled with the MakeNSISW command. This command can be run from the windows explorer right click menu (it will be named "Compile NSIS Script") or there may also be a corresponding command in the NSIS editor you are using (for HM NIS there is a compile command).

The installer script is meant to be compiled from its current location which is trunk/game/packaging. It must be run from this location because it uses relative paths in order to find all the files that must be included in the installer. The script will write the created executable to PARPG\trunk\game\packaging

Personal tools