More in this section

Forums / Developing with Sitefinity / Programmatically Deactivate Modules

Programmatically Deactivate Modules

2 posts, 0 answered
  1. Xian
    Xian avatar
    18 posts
    03 Oct 2014
    19 Jan 2015
    Link to this post

    I want to bring some of the configuration of (built-in) modules to be handled programmatically.  A few options would be to do it in the code once bootstrapped or run a PowerShell script to handle it during deployment.  A final option would be to have a pure uninstall for certain modules.

    As far as full uninstall (over deactivate), I've hit a snag when trying to use the App.WorkWith().Module(...) facade, as the UninstallWithContext expects an implementation of IModuleInstallContext, which I'm not sure how to retrieve.  Searching has thus far produced nothing for me.

    So what's the proper way to handle this outside of the interface?  

  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    17 Aug 2017
    24 Jan 2015
    Link to this post
    Hi Christian,

    Please note that we do not have an exposed API for uninstalling modules programatically. You can activate, deactivate, install and uninstall modules only from the Sitefinity backend under Administration -> Modules and Services page.

    Sabrie Nedzhip
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered