# GatewayModuleHook 8.1 Listener for install and Uninstall

**URL:** <https://forum.inductiveautomation.com/t/gatewaymodulehook-8-1-listener-for-install-and-uninstall/114932>\
**Category:** Module Development\
**Tags:** ignition81\
**Created:** [April 7, 2026, 7:41pm UTC](https://forum.inductiveautomation.com/t/gatewaymodulehook-8-1-listener-for-install-and-uninstall/114932 "2026-04-07T19:41:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thierry.beaulieu](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@thierry.beaulieu](https://forum.inductiveautomation.com/u/thierry.beaulieu)\
**Post date:** [April 7, 2026, 7:41pm UTC](https://forum.inductiveautomation.com/t/gatewaymodulehook-8-1-listener-for-install-and-uninstall/114932/1 "2026-04-07T19:41:28Z")

</div>

Hi guy, when using the`GatewayModuleHook`our team is trying to detect when a module is being installed and being uninstalled. At the moment, when uninstalling a module, the`shutdown`functions 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 `uninstallModule`function, but it doesn’t seem like there’s a way of listening to the `uninstallModule`or the `installModule`?

Thanks!

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 7, 2026, 8:29pm UTC](https://forum.inductiveautomation.com/t/gatewaymodulehook-8-1-listener-for-install-and-uninstall/114932/2 "2026-04-07T20:29:30Z")

</div>

There is no distinction available.

---

<div class="post-metadata">

**Author:** ![thierry.beaulieu](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@thierry.beaulieu](https://forum.inductiveautomation.com/u/thierry.beaulieu)\
**Post date:** [April 7, 2026, 9:15pm UTC](https://forum.inductiveautomation.com/t/gatewaymodulehook-8-1-listener-for-install-and-uninstall/114932/3 "2026-04-07T21:15:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 7, 2026, 9:34pm UTC](https://forum.inductiveautomation.com/t/gatewaymodulehook-8-1-listener-for-install-and-uninstall/114932/4 "2026-04-07T21:34:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![thierry.beaulieu](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@thierry.beaulieu](https://forum.inductiveautomation.com/u/thierry.beaulieu)\
**Post date:** [April 8, 2026, 3:39pm UTC](https://forum.inductiveautomation.com/t/gatewaymodulehook-8-1-listener-for-install-and-uninstall/114932/5 "2026-04-08T15:39:14Z")

</div>

Ok! Thank you Kevin!
