Install library and try to use script file for preflight or any other methods.
You should be able to run preflight and other methods when installing libraries
Library is installed without running script file
Any joomla version, any php, any system.
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.
Set to "closed" on behalf of @vdespa by The JTracker Application at issues.joomla.org/joomla-cms/6841
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.
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.
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.
<scriptfile>script.php</scriptfile>
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.