Proper way to upgrade or uninstall a module?
In the ModuleBase class, there is an "Install" and "Upgrade" event to override. The install logic is pretty clear, but how do I use the upgrade event (what's a good scenario to use it for)? Also, how do I handle uninstalls?
Here's some info on the uninstall portion:
http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/deleting-modules.aspx
Hi bemara57,
Upgrade is called inside Install and it is used to notify if a module should be upgraded. Inside SystemConfig.config you will see that each module has a version. So if custom implementations you can pass the version and decide whether to upgrade your module.
Currently we do not use this method and it is left for future implementations.
Greetings,
Ivan Dimitrov
the Telerik team
Ivan,
Could you address the Uninstall portion of this question (and as it was asked in the other thread that was referenced)? Is there going to be a way to do an uninstall of a module (as opposed to simply disabling it in the config) where any cleanup can be done?
Thanks.
Hi bemara57,
Uninstalling module is planned for a future implementation.
Greetings,
Vlad
the Telerik team