# Install/Update/Delete Addon Hook Points

**URL:** <https://forums.ankiweb.net/t/install-update-delete-addon-hook-points/18532>\
**Category:** Suggestions\
**Created:** [March 22, 2022, 6:49pm UTC](https://forums.ankiweb.net/t/install-update-delete-addon-hook-points/18532 "2022-03-22T18:49:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [March 23, 2022, 11:04am UTC](https://forums.ankiweb.net/t/install-update-delete-addon-hook-points/18532/3 "2022-03-23T11:04:27Z")

</div>

I’m not sure that’s such a great idea:

- addons don’t run until Anki is restarted, so it wouldn’t simply be a case of running a hook as an add-on is installed
- on update, the old hook code would run, not the new code
- for uninstalling, I’m not sure users expect actions to be performed when removing an add-on, and an explicit action like [roxgib mentioned](https://forums.ankiweb.net/t/is-there-a-hook-to-run-an-add-on-on-the-uninstall-event/18431/2) might be a better approach there.

---

_[View the full topic](https://forums.ankiweb.net/t/install-update-delete-addon-hook-points/18532)._
