public void Uninstall(UninstallInfo uninstallInfo) { var toRemove = FindComponentsToRemove(uninstallInfo.GetPublicKeyToken()); Console.WriteLine("Components to remove:"); toRemove.ForEach(Console.WriteLine); Console.WriteLine(); var steps = new List<IUninstallStep> { new RemoveFiles(), new RemoveStartMenuEntry(uninstallInfo), new RemoveRegistryKeys(_registry, uninstallInfo), new RemoveUninstallEntry(uninstallInfo) }; steps.ForEach(s => s.Prepare(toRemove)); steps.ForEach(s => s.PrintDebugInformation()); steps.ForEach(s => s.Execute()); steps.ForEach(s => s.Dispose()); }
public void Uninstall(UninstallInfo uninstallInfo) { var toRemove = FindComponentsToRemove(uninstallInfo.GetPublicKeyToken()); Console.WriteLine("Components to remove:"); toRemove.ForEach(Console.WriteLine); Console.WriteLine(); var steps = new List <IUninstallStep> { new RemoveFiles(), new RemoveStartMenuEntry(uninstallInfo), new RemoveRegistryKeys(_registry, uninstallInfo), new RemoveUninstallEntry(uninstallInfo) }; steps.ForEach(s => s.Prepare(toRemove)); steps.ForEach(s => s.PrintDebugInformation()); steps.ForEach(s => s.Execute()); steps.ForEach(s => s.Dispose()); }
public RemoveStartMenuEntry(UninstallInfo uninstallInfo) { _uninstallInfo = uninstallInfo; }
public RemoveRegistryKeys(ClickOnceRegistry registry, UninstallInfo uninstallInfo) { _registry = registry; _uninstallInfo = uninstallInfo; }
public RemoveUninstallEntry(UninstallInfo uninstallInfo) { _uninstallInfo = uninstallInfo; }