Creating a custom task involves creating a class that validates xml, and performs the task when called upon. Tasks can be invoked in two situations: at package-time and at install-time. Each task can control whether it should be called at package-time, install-time, or at both times.
There are two kinds of tasks: simple and multiple. Most tasks are simple tasks. Simple tasks are self-contained: all customization is limited to that file. Multiple tasks are collected during installation and processed fully as a unit after files have been committed to disk, allowing more complex processing.
All simple tasks must define 3 methods, all multiple task must define 4 methods. These are:
run() (multiple tasks only)
| Пред. | Начало | След. |
| Custom File Tasks | Уровень выше | Post-installation Scripts |