Windows Installer

Jump to: navigation, search

Windows Installer Package

The Windows Installer is based on xampp 1.6 distribution. The package structure is the following:

  | Readme.txt
  | Start Moodle.exe
  | Stop Moodle.exe
  | server
    | apache_start.bat
    | apache_stop.bat
    | makecert.bat
    | mysql_start.bat
    | mysql_stop.bat
    | readme_de.txt
    | readme_en.txt
    | service.exe
    | setup_xampp.bat
    | xampp_restart.bat
    | xampp_start.exe
    | xampp_stop.exe
    | xampp_control.exe
    | xampp_portcheck.exe
    | apache
    | cgi-bin
    | install
    | licences
    | moodle
    | moodledata //this folder is created during the installation process
    | mysql
    | php
    | sendmail
    | tmp

Moodle folders

All moodle files must be located in server/moodle/

'Start/Stop Moodle.exe'

Windows Installer package comes with two executable files. 'Start Moodle.exe' sets up the Xampp environment and launch Apache and Mysql processes. 'Stop Moodle.exe' stop the two processes. This section explains how to create these two executable files.

1. Create a batch file

The two batch files can be download on CVS:

'Start Moodle.exe'

This batch file readjusts, if needed, apache/mysql paths to the new location in hard disk. (server/setup_xampp.bat) Then it launchs Apache and Mysql processes. (server/xampp_start.exe)

'Stop Moodle.exe'

This batch file stops the apache and mysql process. (server/xampp_start.exe)

2. Create an icon

In order to create an icon for an executable file you can use SnIco Edit. You need to save your icon as a .ico file.

3. Create an executable file

Once you've got a batch file and an icon file, run bat_to_exe_converter.exe. Browse for the .bat file and the .ico file, then click on Compile. An executable file is generated. The two generated files (and a Readme.txt) need to be copied into the Windows Installer zip at the root level. This is done by a script shell generating the windows installer package.


You can find all resources in CVS:

  • Xampp: the WAMP distribution used in the Windows Installer package.
  • SnIco Edit: create/edit your .ico icon file.
  • Bat to Exe Converter: convert a .bat file into a .exe file.
  • Inno Setup: create a Windows Installer software. (setup.exe)