Installatron Installer SDK
An Installer Overview

An Installatron installer is comprised of several files and directories, placed in the Installatron's installer directory:
/var/installatron/installers/installerid/
    init.xml             // information about the installer and the script
    locale_en.php        // the default (english) locale file
    button.gif           // a button image for the script
    logo.gif             // a logo image for the script
    version1/            // a version sub-directory
        LICENSE          // license agreement for this version (optional)
        init.xml         // information for this version
        install.php      // install code for this version
    version2/            // another version sub-directory (optional)
        LICENSE
        init.xml
        install.php
        upgrade.php      // upgrade code for upgrading to this version (optional)
installerid is the unique lowercase-alphanumeric id of the installer.

version1, version2, etc are the versions (eg. "2.1.0p1", "2.1.1", etc).

Creating an Installer

The easiest way to create an Installatron installer is to use the Installer Maker/Editor tool. This tool creates a basic template and has a GUI for editing most of the commonly used installer features.

The editor must be used if your server uses PHP4, however if your server uses PHP5 then you also have the option of creating the installer by hand. (TIP: all editing is done in PHP5 format, but the editor automatically compiles a PHP4 version.)

See the SDK: Variables, Commands, and How-Tos page for a closer look at the things you can use in an installer, the SDK: Using an Installer page for information on adding the installer to your server, or click on the headers before for a closer look at each file and directory in an Installatron installer:

installerid/

installerid/init.xml

installerid/locale_en.php

installerid/button.gif

installerid/logo.gif

installerid/version/

installerid/version/LICENSE

installerid/version/init.xml

installerid/version/install.php

installerid/version/upgrade.php