示例#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
文件: Upgrade.cs 项目: biganth/Curt
 private static void UpgradeToVersion624()
 {
     var package = PackageController.GetPackageByName("DotNetNuke.MarketPlace");
     if (package != null)
     {
         var installer = new Installer.Installer(package, Globals.ApplicationMapPath);
         installer.UnInstall(true);
     }
 }