I have been using a script.php file that looks like this (only relevant parts included)
Code: Select all
class com_CSCCruiseInstallerScript extends InstallerScript
{
function install ($parent)
{
Factory::getApplication()->enqueueMessage('Installed version ' . $parent->getManifest ()-> version, 'notice');
}
function update ($parent)
{
Factory::getApplication()->enqueueMessage('Updated to version ' . $parent->getManifest ()-> version, 'notice');
}
}
I determined in my debugger that the update function in the script.php file is invoked when the install is from a directory, but not when it is from an uploaded zip file.