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(); } }
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(); } }
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(); } }
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(); } }