public override void Uninstall(System.Collections.IDictionary savedState) { base.Uninstall(savedState); var vsPath9 = GetVsPath9(); var vsPath10 = GetVsPath10(); if (vsPath9 != null || vsPath10 != null) { var progress = new InstallerProgress(InstallMode.Uninstall, vsPath9, vsPath10, null); progress.ShowDialog(); } }
public override void Install(System.Collections.IDictionary stateSaver) { base.Install(stateSaver); var vsPath9 = GetVsPath9(); var vsPath10 = GetVsPath10(); var targetPath = Context.Parameters["TargetDir"]; if ((vsPath9 != null || vsPath10 != null) && targetPath != null) { var progress = new InstallerProgress(InstallMode.Install, vsPath9, vsPath10, targetPath); MessageBoxOptions options = CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft ? MessageBoxOptions.RightAlign | MessageBoxOptions.RtlReading : 0; if (progress.ShowDialog() != DialogResult.OK) { MessageBox.Show(Strings.InstallFailureMessage, "LINQ to umbraco Setup", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, options); MessageBox.Show(progress.Error.ToString()); } } }