public override void Uninstall(IDictionary savedState) { base.Uninstall(savedState); string instal = GetVsPath(); if (instal != null) { InstallProgress progress = new InstallProgress(InstallerMode.Uninstall, null, instal); progress.ShowDialog(); } }
public override void Install(IDictionary stateSaver) { base.Install(stateSaver); string instal = GetVsPath(); string target = this.Context.Parameters["TargetDir"]; if (instal != null && target != null) { InstallProgress progress = new InstallProgress(InstallerMode.Install, target, instal); if (progress.ShowDialog() != DialogResult.OK) { MessageBox.Show("Visual Studio 2008 configuration failed.", "LINQ to SharePoint Setup", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } }