static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (!File.Exists("driverlock")) { MangoManger.installMangoDriver(); Process process = Process.GetCurrentProcess(); process.Close(); Application.Restart(); } else { Application.Run(new MainForm()); } }
private void 安装Mango驱动ToolStripMenuItem_Click(object sender, EventArgs e) { MangoManger.installMangoDriver(true); }