fix: honest installer success message #40
Reference in New Issue
Block a user
Delete Branch "fix/honest-install-success"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Applies the "honest installer success" pattern (mirrors MokoSuiteHQ #72 / MokoSuiteClient #300) to the
pkg_mokosuitenpopackage installer.Joomla's package installer only logs a failed child sub-install but still runs the parent
postflight, so the installer could show the "Moko Consulting License Key Required" / next-steps success message even when a bundled extension failed to install.Changes
source/script.phppostflightnow calls a new privatemissingChildExtensions(InstallerAdapter $adapter)that reads the package manifest via$adapter->getParent()->getManifest(), iteratesfiles->file, derives each child'selement/type(/folderfor plugins — stripping a leadingplg_<group>_from the id), and verifies a matching#__extensionsrow exists.htmlspecialchars-escaped) andpostflightreturns before thewarnMissingLicenseKey()license/success message.php -lpasses.https://claude.ai/code/session_01B9aZHSWbiiZykJD88pYx8R