Пример #1
0
 private static void UninstallPackage(string packageName)
 {
     var searchInput = PackageController.GetPackageByName(packageName);
     if (searchInput != null)
     {
         var searchInputInstaller = new Installer.Installer(searchInput, Globals.ApplicationMapPath);
         searchInputInstaller.UnInstall(true);
     }
 }
Пример #2
0
 private static void UninstallPackage(string packageName)
 {
     var searchInput = PackageController.Instance.GetExtensionPackage(Null.NullInteger, p => p.Name == packageName);
     if (searchInput != null)
     {
         var searchInputInstaller = new Installer.Installer(searchInput, Globals.ApplicationMapPath);
         searchInputInstaller.UnInstall(true);
     }
 }
Пример #3
0
 private static void UpgradeToVersion624()
 {
     var package = PackageController.GetPackageByName("DotNetNuke.MarketPlace");
     if (package != null)
     {
         var installer = new Installer.Installer(package, Globals.ApplicationMapPath);
         installer.UnInstall(true);
     }
 }