Uninstalling package is not removing application from application.config
I have added application as follow:
[Application("customalias", "customaname", "custom-icon", 8)]
public class CustomApplication :IApplication
{
}
When I uninstall package, it is not removing it from application.config. It is really required to remove it from config file too.
Please tell me how to remove it by code
there is a SectionService that can be used for this:
var services = ApplicationContext.Current.Services;
var sectionService = services.SectionService;
var userService = services.UserService;
userService.DeleteSectionFromAllUsers("yourSection");
var section = sectionService.GetByAlias("yourSection");
sectionService.DeleteSection(section);
Uninstalling package is not removing application from application.config
I have added application as follow:
When I uninstall package, it is not removing it from application.config. It is really required to remove it from config file too. Please tell me how to remove it by code
Hi Amna,
there is a SectionService that can be used for this:
Hope that gets your in the right direction.
Regards David
is working on a reply...