1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Proper way to upgrade or uninstall a module?

Proper way to upgrade or uninstall a module?

5 posts, 0 answered
  1. bemara57
    bemara57 avatar
    135 posts
    Registered:
    27 Mar 2008
    07 Jan 2011
    Link to this post
    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?
  2. bemara57
    bemara57 avatar
    135 posts
    Registered:
    27 Mar 2008
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    07 Jan 2011
    Link to this post
    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
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  4. Lorne
    Lorne avatar
    38 posts
    Registered:
    04 Nov 2010
    07 Jan 2011
    Link to this post
    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.
  5. Vlad
    Vlad avatar
    498 posts
    Registered:
    19 Jun 2017
    12 Jan 2011
    Link to this post
    Hi bemara57,

    Uninstalling module is planned for a future implementation.

    Greetings,
    Vlad
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
5 posts, 0 answered