Apps that require a bit more work

PostgreSQL and PostGIS

UNTESTED!!!

PostgreSQL

Download the zip file (32bit) for PostgreSQL 9.3 from postgresql.org (the section for “Advanced Users”).

Extract this to the apps folder and rename it postgresql93.

Create a user on your pc called pgis with the password pgis and open a command prompt as that user. Change directory to the apps\postgresql93\bin directory and initialise the db in the following manner:

> initdb.exe --pgdata=..\PGDATA --username=pgis --locale=UTF8 --xlogdir=..\..\..\data\pg93_log

Copy the files from the postgresql93 folder in the Portable GIS repository into your postgresql93 folder, overwriting as necessary.

(At this point you should probably transfer your build to an actual USB stick so you can start postgresql using the batch file start_pgsql.bat and deal with any error messages)

PostGIS

Download the zip file (currently the 2.1 version) from download.osgeo.org and extract the contents into the postgresql93 directory, overwriting if needed.

Create a new template database (called, eg template_postgis) and run spatial_ref_sys.sql and postgis.sql on that database to make it spatial.

QGIS

Download 32bit stand-alone qgis installer (version 2.14) from the QGIS Download Site and extract the executable using uniextract or similar. Extract the contects of $OUTPUTDIR into the qgis2 folder, and then apply the files from the qgis2 folder in the Portable GIS repository to the same location, over-writing as necessary.

Java 8 jdk

Oracle’s jdk8 is provided in the Portable GIS repository but if you wish to build your own follow the instructions below. These instructions originally came from brucalipto.org and are reproduced here in case that site is no longer available.

  • Download a copy of the Windows 32bit (X86) jdk version 8 executable from oracle

  • Open the downloaded executable with 7-zip, and the extract the tools.zip file inside to a tools folder.

  • At this point you should have the following folder structure jdk_8\tools

  • Open a command prompt inside the tools directory and run the following command, substituting the correct drive letter:

    > for /r %x in (*.pack) do C:\jdk_8\tools\bin\unpack200 "%x" "%x.jar"
    
  • Find and rename all the .pack.jar files present in the tools folder and subfolders:

    > dir /B /S *.pack.jar
    C:\jdk_8\tools\jre\lib\charsets.pack.jar
    C:\jdk_8\tools\jre\lib\deploy.pack.jar
    C:\jdk_8\tools\jre\lib\javaws.pack.jar
    C:\jdk_8\tools\jre\lib\jsse.pack.jar
    C:\jdk_8\tools\jre\lib\plugin.pack.jar
    C:\jdk_8\tools\jre\lib\rt.pack.jar
    C:\jdk_8\tools\jre\lib\ext\jfxrt.pack.jar
    C:\jdk_8\tools\jre\lib\ext\localedata.pack.jar
    C:\jdk_8\tools\lib\tools.pack.jar
    
    > ren C:\jdk_8\tools\jre\lib\charsets.pack.jar charsets.jar
    > ren C:\jdk_8\tools\jre\lib\deploy.pack.jar deploy.jar
    > ren C:\jdk_8\tools\jre\lib\javaws.pack.jar javaws.jar
    > ren C:\jdk_8\tools\jre\lib\jsse.pack.jar jsse.jar
    > ren C:\jdk_8\tools\jre\lib\plugin.pack.jar plugin.jar
    > ren C:\jdk_8\tools\jre\lib\rt.pack.jar rt.jar
    > ren C:\jdk_8\tools\jre\lib\ext\jfxrt.pack.jar jfxrt.jar
    > ren C:\jdk_8\tools\jre\lib\ext\localedata.pack.jar localedata.jar
    > ren C:\jdk_8\tools\lib\tools.pack.jar tools.jar
    
  • Test this has worked OK:

    C:\jdk_8\tools\bin\java -version
    java version "1.8.0-ea"
    Java(TM) SE Runtime Environment (build 1.8.0-ea-b121)
    Java HotSpot(TM) Client VM (build 25.0-b63, mixed mode)