Installatron Installer SDK
Two Fully-Commented Examples

The following are two examples of install.php code. It's recommended that you have already read the SDK: An Overview page, and at least glanced over SDK: Variables, Commands, and How-Tos so that you can understand these examples.

There are two examples because there are two common approaches to creating an Installatron installer. The first method is to do the complete install within Installatron, and the second method is to use Installatron to "get the files ready" and then call on the software's own installer to complete the process. The former approach is always preferable, however it is not always easy to cleanly replicate all the install steps in an installer.

The former method is affectionally known as the Custom Inputs method, because custom fields are typically used with this method but not with the other, and the latter method is known as the External Task method, because an external install script is used. Both methods are valid, so it's really just a question of what works best for the script you're installing.
Click on these headers to look at each example:

Example 1: The Fetch Method

Example 2: The External Task Method [Deprecated]