Archer70 / CoreStore

A store for SMF, obviously.
3 stars 1 forks source link

Uninstall cannot remove hooks. #11

Closed XinYenFon closed 7 years ago

XinYenFon commented 7 years ago

I encountered this on uninstall, it keeps 4 hook as is and creating error in forum.

Actually it seems you need to tick the database part to remove the hooks. This should not be optional and needs to be separated from the actual data remover (which eventually happen in shop).

Archer70 commented 7 years ago

Could of sworn I commented on this earlier. I'll look into this as soon as I get back. Thanks for pointing it out.

Archer70 commented 7 years ago

Technically this is a database operation, so it could be argued that it does belong with data removal. Plus I could see a possible reason to want to uninstall the files but not the hooks.

I'll ask Oldiesmann's opinion later, but I'm leaning toward leaving hooks where they are.

XinYenFon commented 7 years ago

If you leave hooks behind, it creates errors in log. If you move forward with that option you also remove the actual data we store related to modification. Which is not something we like to do.

Archer70 commented 7 years ago

Fair enough. I believe it's possible to add and remove hooks via package-info.xml, but that feature isn't documented so it'll take some research to implement.