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); MessageBoxOptions options = CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft ? MessageBoxOptions.RightAlign | MessageBoxOptions.RtlReading : 0; if (progress.ShowDialog() != DialogResult.OK) { MessageBox.Show(Strings.Vs2008ConfigFailed, "LINQ to SharePoint Setup", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, options); } } }