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); } }
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); } }
private static void UpgradeToVersion624() { var package = PackageController.GetPackageByName("DotNetNuke.MarketPlace"); if (package != null) { var installer = new Installer.Installer(package, Globals.ApplicationMapPath); installer.UnInstall(true); } }