コード例 #1
0
        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();
            }
        }
コード例 #2
0
        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);
                }
            }
        }