Development:Windows Installer: Difference between revisions
Line 19: | Line 19: | ||
=== Create an executable file === | === Create an executable file === | ||
Once you've got a batch file and an icon, 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 files (and a Readme.txt) need to be copied into the generated zip at the root level. This is done by the sript shell generating the windows installer package. | |||
== Resources == | == Resources == |
Revision as of 07:54, 12 May 2008
WAMP: xampp
Moodle folders
All moodle files must be located in server/moodle/
'Start/Stop Moodle.exe'
Windows Installer package come with two root 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.
Create a batch file
'Start Moodle.exe'
This batch file readjusts, if needed, apache/mysql paths to the new location in hard disk. Then it launchs Apache and Mysql processes.
'Stop Moodle.exe'
This batch file stops the apache and mysql process.
Create an icon
In order to create an icon for the executable files you can use SnIco Edit. You need to save your icon as a .ico file.
Create an executable file
Once you've got a batch file and an icon, 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 files (and a Readme.txt) need to be copied into the generated zip at the root level. This is done by the sript shell generating the windows installer package.
Resources
You can find all resources in CVS: http://cvs.moodle.org/contrib/tools/m4w_builder/bin/
- 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)