Ejemplo n.º 1
0
        public static void ResetVisualStudio(Form owner)
        {
            string devEnvPath = GetDevEnvPath();

            using (ResetDevEnvForm form = new ResetDevEnvForm())
            {
                form.Show(owner);
                owner.Enabled = false;

                using (Process devEnv = Process.Start(devEnvPath, "/installvstemplates"))
                    while (!devEnv.WaitForExit(50))
                        Application.DoEvents();

                owner.Enabled = true;
                form.Close();
            }
        }
Ejemplo n.º 2
0
        public static void ResetVisualStudio(Form owner)
        {
            string vwdExpressPath = GetVWDExpressPath();

            using (ResetDevEnvForm form = new ResetDevEnvForm())
            {
                form.SetProductName("Visual Web Developer");
                form.Show(owner);
                owner.Enabled = false;

                using (Process vwdExpress = Process.Start(vwdExpressPath, "/installvstemplates"))
                    while (!vwdExpress.WaitForExit(50))
                        Application.DoEvents();

                owner.Enabled = true;
                form.Close();
            }
        }
Ejemplo n.º 3
0
        public static void ResetVisualStudio(Form owner)
        {
            string devEnvPath = GetDevEnvPath();

            using (ResetDevEnvForm form = new ResetDevEnvForm())
            {
                form.Show(owner);
                owner.Enabled = false;

                using (Process devEnv = Process.Start(devEnvPath, "/installvstemplates"))
                    while (!devEnv.WaitForExit(50))
                    {
                        Application.DoEvents();
                    }

                owner.Enabled = true;
                form.Close();
            }
        }
Ejemplo n.º 4
0
        public static void ResetVisualStudio(Form owner)
        {
            string vwdExpressPath = GetVWDExpressPath();

            using (ResetDevEnvForm form = new ResetDevEnvForm())
            {
                form.SetProductName("Visual Web Developer");
                form.Show(owner);
                owner.Enabled = false;

                using (Process vwdExpress = Process.Start(vwdExpressPath, "/installvstemplates"))
                    while (!vwdExpress.WaitForExit(50))
                    {
                        Application.DoEvents();
                    }

                owner.Enabled = true;
                form.Close();
            }
        }