Skip to content

Internals Installation

Stefan Crkvenjakov edited this page Oct 7, 2026 · 1 revision

Installation internals

Framework Internals · Developer guide

FrameworkInstallService validates all seven input strings, refuses DB_TYPE != '', tests PDO connectivity, creates core tables/settings and then writes awt_db.php. The command afterward prompts for optional admin and package-manager registration. It cannot roll back all migrations and has no reinstall/reset option.

PackageInstaller composes extractor, mover, storage generator, repository and asset linker. Archive extraction checks ZIP status; the package directory is the root manifest or one immediate child. Manifest/version/dependency/structure validation precedes movement. New package metadata defaults ordinary status to disabled; update preserves omitted optional metadata and does not enforce a version increase.

Data files are moved/copied into package-owned public storage, registered in awt_storage and linked to icon/preview URLs when unambiguous. install.php/update.php is loaded through ObjectHandler after metadata and storage changes. Existing installer/actions bool return values are ignored; absent legacy package/install interfaces are still referenced in alternate branches. Package events fire only after the hook returns. Extraction cleanup runs in finally after extract returns successfully; extraction itself may leave work if it throws before that try.

Uninstaller validates positive ID/name, loads and deletes the model, then runs every cleanup step and collects errors. Default cleanup handles owned storage, package files, resource maps and tables. PackageFacade::removePackage(purge=false) supplies only file/resource steps, while CLI remove uses all default steps. Cleanup ordering and database cascades can affect which records remain discoverable afterward; no reverse-dependency protection or automatic IUninstall hook call is enforced.

Some legacy installer helpers/interfaces are empty or unused. They are referenced as existing contracts, not promoted to an alternate supported workflow. Installation and updates can produce partial filesystem/database state, and removal can return false after deleting the package record.

Component reference

Clone this wiki locally