Compiling: Windows installer
From OrangeHRM
Requirements
Inorder to compile the script you will need to have NSIS installed in the build system (Linux or Windows). Read MakeNSIS for instructions on compiling NSIS.
Also remember to have the latest zip distribution of XAMPP for Windows (http://www.apachefriends.org/en/xampp.html) from Apache friends.
Where are the installer source files
Get the NSIS scripts to create a Windows installer from the sourceforge svn repository.
$ svn co https://orangehrm.svn.sourceforge.net/svnroot/orangehrm/trunk/php/orangehrm/
How to compile the installer
If you have makensis directly accessible from the command line (Bash or Command prompt) you could use phing to build the installer as well.
Please make sure to copy the latest XAMPP for Windows files to the parent directory of the project directory
e.g.
<Parent Directory> | +-- orangehrm | +-- build | +-- ... | +-- devTools | | +-- installer | | | +-- SOURCE | | | | +-- content | | | | +-- xampp | | | +-- SPEC | | | | +-- Include | | | | +-- ... | | +-- ... | +-- ... +-- xampp ; Copy XAMPP for Windows files here
Simply build the target win-dist to compile the installer.
e.g. From the build directory run
$ phing dist.win
If you do not have phing installer you will have to create the following directory structure and run makensis on the main.nsi script
- Required directory structure
<Parent Directory> | +-- installer | +-- SOURCE | | +-- content ; Copy the content directory from devTools to here | | +-- orangehrm2 ; Copy OrangeHRM release directory here | | +-- xampp ; Copy XAMPP for Windows files here and then copy xampp directory from devTools | +-- SPEC ; Installer scripts directory | | +-- Include | | +-- ... | +-- ... +-- ...
To run makensis on the main.nsi script run
$ makensis /path/to/main.nsi
