//install Driver private void InstalDriveBtn_Click(object sender, EventArgs e) { string applicationBase = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; MiDriver miDriver = new MiDriver(); miDriver.CopyFiles(applicationBase); miDriver.InstallAllDriver(applicationBase, true); }
// Token: 0x06000091 RID: 145 RVA: 0x0000947C File Offset: 0x0000767C private void btnInstall_Click(object sender, EventArgs e) { string text = this.btnInstall.Text; this.btnInstall.Text = "Wait......"; this.btnInstall.Enabled = false; string applicationBase = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; MiDriver miDriver = new MiDriver(); miDriver.CopyFiles(applicationBase); miDriver.InstallAllDriver(applicationBase, true); this.btnInstall.Text = text; this.btnInstall.Enabled = true; MessageBox.Show("Install done"); }