Hi All,
I was looking for an unattended or silent way to uninstall extensions but couldn’t find any documentation.
The below document only talks about installation but
In some situations, it may be usful to launch the installer via a script or maybe you just want to install Lucee silently without being prompted at all or using any kind of GUI interface. Thankfully, unattended mode installations are a built-in...
It would be great if anyone could share documentation or steps for this.
Thanks for all the help in advance.
Lucee version: 5.3.9.141
there are two approaches
you can drop the extensions (*.lex files) into the /deploy
folder
or set an env var LUCEE_EXTENSIONS
Thanks for the reply.
The above link talks about installing the extension. I am looking for uninstallation of the extension.
don’t think we have any other option than the <cfadmin>
approach
</cfcase>
<cfcase value="#stText.Buttons.upDown#">
<cfadmin
action="updateRHExtension"
type="#request.adminType#"
password="#session["password"&request.adminType]#"
source="#downloadFull(form.provider,form.id,form.version)#">
<cfset application.reloadPlugins = true>
</cfcase>
<cfcase value="#stText.Buttons.uninstall#">
<cfadmin
action="removeRHExtension"
type="#request.adminType#"
password="#session["password"&request.adminType]#"
id="#form.id#">
<cfset application.reloadPlugins = true>
</cfcase>
</cfswitch>
<cfscript>
if (structKeyExists(application, "reloadPlugins")){
inspectTemplates(); // flag page pool to be re-inspected for changes
1 Like
Ok, thank you.
I will try this approach.
Related (5 yr old) ticket: [LDEV-1585] - Lucee
And yes, that ticket is for installing, not uninstalling. My original goal was to have have a full set of BIFs for managing extensions programmatically from CFML, but I don’t think we ever got anything other than ExtensionList()
and ExtensionExists()
.
1 Like
@Tushar_Bhaware using Administrator cfc instead of cfadmin is always good. because cfadmin
is not an official tag to use outside of the Admin.
like
adm = new Administrator("server or web", your_admin_password);
adm.removeExtension(ID_of_extension);
3 Likes