Exemplo n.º 1
0
        public override void Uninstall(System.Collections.IDictionary savedState)
        {
            base.Uninstall(savedState);

            var vsPath = GetVsPath();
            if (vsPath != null)
            {
                var progress = new InstallerProgress(InstallMode.Uninstall, vsPath, null);
                progress.ShowDialog();
            }
        }
Exemplo n.º 2
0
        public override void Uninstall(System.Collections.IDictionary savedState)
        {
            base.Uninstall(savedState);

            var vsPath = GetVsPath();

            if (vsPath != null)
            {
                var progress = new InstallerProgress(InstallMode.Uninstall, vsPath, null);
                progress.ShowDialog();
            }
        }
Exemplo n.º 3
0
        public override void Install(System.Collections.IDictionary stateSaver)
        {
            base.Install(stateSaver);

            var vsPath = GetVsPath();
            var targetPath = Context.Parameters["TargetDir"];

            if (vsPath != null && targetPath != null)
            {
                var progress = new InstallerProgress(InstallMode.Install, vsPath, targetPath);
                MessageBoxOptions options = CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft ? MessageBoxOptions.RightAlign | MessageBoxOptions.RtlReading : 0;
                if (progress.ShowDialog() != DialogResult.OK)
                {
                    MessageBox.Show("VS 2008 Setup Failed", "LINQ to Umbraco Setup", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, options);
                    MessageBox.Show(progress.Error.ToString());
                }
            }
        }
Exemplo n.º 4
0
        public override void Install(System.Collections.IDictionary stateSaver)
        {
            base.Install(stateSaver);

            var vsPath     = GetVsPath();
            var targetPath = Context.Parameters["TargetDir"];

            if (vsPath != null && targetPath != null)
            {
                var progress = new InstallerProgress(InstallMode.Install, vsPath, targetPath);
                MessageBoxOptions options = CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft ? MessageBoxOptions.RightAlign | MessageBoxOptions.RtlReading : 0;
                if (progress.ShowDialog() != DialogResult.OK)
                {
                    MessageBox.Show("VS 2008 Setup Failed", "LINQ to Umbraco Setup", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, options);
                    MessageBox.Show(progress.Error.ToString());
                }
            }
        }