?
avatar Kixo
Kixo
25 Apr 2015

Steps to reproduce the issue

Install library and try to use script file for preflight or any other methods.

Expected result

You should be able to run preflight and other methods when installing libraries

Actual result

Library is installed without running script file

System information (as much as possible)

Any joomla version, any php, any system.

Additional comments

I checked and there is really not any reason why script (install) file should not be used when installing libraries. This is very important feature if you want to check / upgrade or do any action before or after the installation of the library.

avatar Kixo Kixo - open - 25 Apr 2015
avatar vdespa
vdespa - comment - 25 Apr 2015

Hi Kixo,

Thanks for your report. I had tried to use the install script methods in one of my libraries. I could not find any issues.

  1. Make sure you define the script file in the library manifest file.

<scriptfile>script.php</scriptfile>

  1. Make sure you name the class of the script like:

class yourlibrarynameInstallerScript {}

I am marking this for the moment as "Unconfirmed". If you still have issues, just reply with more details and this can be reopened anytime.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6841.

avatar joomla-cms-bot joomla-cms-bot - close - 25 Apr 2015
avatar vdespa
vdespa - comment - 25 Apr 2015

Set to "closed" on behalf of @vdespa by The JTracker Application at issues.joomla.org/joomla-cms/6841

avatar Kixo
Kixo - comment - 28 Mar 2016

I tried again and it is working on install / update / preflight...
but when I try to do a preflight on the uninstall type it fails. I want to do some check before uninstall of the library (check some dependencies) and if something is wrong, I want to restrict the uninstall of that library. It seems that on library uninstall it does not trigger preflight method at all.

avatar mbabker
mbabker - comment - 28 Mar 2016

There's still some underlying work needed in the extension adapters to get them 100% standardized. The uninstall paths are part of that needed work.

avatar Kixo
Kixo - comment - 28 Mar 2016

thanks @mbabker for quick response... I was just digging up this a bit and I see it is really not standardized... So preflight on uninstall method will not trigger as I see from the code.

Add a Comment

Login with GitHub to post a comment