示例#1
0
 private void btn_uSHelper_Click(object sender, EventArgs e)
 {
     try
     {
         u_SupplicantHelper u_SHelper = new u_SupplicantHelper();
         MessageBox.Show("即将启动驱动工具,请点击 卸载驱动 !", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
         ProcessStartInfo psi = new ProcessStartInfo();
         Process          p   = new Process();
         psi.WindowStyle = ProcessWindowStyle.Hidden;//设置隐藏
         psi.FileName    = u_SHelper.Path + "Supplicant驱动修复工具.exe";
         p.StartInfo     = psi;
         p.Start();
     }
     catch
     {
         MessageBox.Show("未检测到红蝴蝶,请安装最新版红蝴蝶或者手动启动Supplicant驱动修复工具!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Process.Start(@"http://ietc.sicau.edu.cn/?p=38&a=view&r=27"); //跳转下载页
     }
 }
示例#2
0
 private void btn_uSHelper_Click(object sender, EventArgs e)
 {
     try
     {
         u_SupplicantHelper u_SHelper = new u_SupplicantHelper();
         MessageBox.Show("即将启动驱动工具,请点击 卸载驱动 !", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
         ProcessStartInfo psi = new ProcessStartInfo();
         Process p = new Process();
         psi.WindowStyle = ProcessWindowStyle.Hidden;//设置隐藏
         psi.FileName = u_SHelper.Path + "Supplicant驱动修复工具.exe";
         p.StartInfo = psi;
         p.Start();
     }
     catch
     {
         MessageBox.Show("未检测到红蝴蝶,请安装最新版红蝴蝶或者手动启动Supplicant驱动修复工具!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Process.Start(@"http://ietc.sicau.edu.cn/?p=38&a=view&r=27"); //跳转下载页
     }
 }