Class ExtensionInstaller
java.lang.Object
ghidra.framework.project.extensions.ExtensionInstaller
Utility class for managing Ghidra Extensions.
Extensions are defined as any archive or folder that contains an extension.properties
file. This properties file can contain the following attributes:
- name (required)
- description
- author
- createdOn (format: MM/dd/yyyy)
- version
Extensions may be installed/uninstalled by users at runtime, using the
ExtensionTableProvider
. Installation consists of unzipping the extension archive to an
installation folder, currently {ghidra user settings dir}/Extensions
. To uninstall,
the unpacked folder is simply removed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Installs the given extension file.static boolean
installExtensionFromArchive
(ExtensionDetails extension) Installs the given extension from its declared archive path
-
Constructor Details
-
ExtensionInstaller
public ExtensionInstaller()
-
-
Method Details
-
install
Installs the given extension file. This can be either an archive (zip) or a directory that contains an extension.properties file.- Parameters:
file
- the extension to install- Returns:
- true if the extension was successfully installed
-
installExtensionFromArchive
Installs the given extension from its declared archive path- Parameters:
extension
- the extension- Returns:
- true if successful
-