GatewayModuleHook 8.1 Listener for install and Uninstall

Hi guy, when using theGatewayModuleHookour team is trying to detect when a module is being installed and being uninstalled. At the moment, when uninstalling a module, theshutdownfunctions is called. However, there seems to be no direct way of knowing if it’s because the module is being restarted, if the module is being updated or if the module is being uninstalled.

The ModuleManager seems to be responsable for calling the uninstallModulefunction, but it doesn’t seem like there’s a way of listening to the uninstallModuleor the installModule?

Thanks!

There is no distinction available.

Thank you so much for your previous answer. Is there any way of knowing when a module is being installed and uninstalled?

Not that I'm aware of. You get setup/startup/shutdown with no additional clues.

1 Like