Programmatically Deactivate Modules
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?
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.
Regards,
Sabrie Nedzhip
Telerik