// Token: 0x060001D9 RID: 473 RVA: 0x00015110 File Offset: 0x00013310
        private void MiInstaller_AfterInstall(object sender, InstallEventArgs e)
        {
            MiDriver miDriver = new MiDriver();

            miDriver.CopyFiles(base.Context.Parameters["assemblypath"]);
            miDriver.InstallAllDriver(base.Context.Parameters["assemblypath"], false);
        }
Пример #2
0
        //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);
        }
Пример #3
0
        // 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");
        }