Exemple #1
0
        private void buttonInstallDriver_Click(object sender, EventArgs e)
        {
            DialogResult dr = DialogResult.OK;

            if (SetupApi.CMP_WaitNoPendingInstallEvents(0) != 0)
            {
                WaitForSetupForm fWait = new WaitForSetupForm();
                dr = fWait.ShowDialog(this);
            }
            if (dr == DialogResult.OK)
            {
                buttonInstallDriver.Enabled = false;
                wizardPageFinishedEnable(false);
                Thread installSetupThread = new Thread(InstallSetupPackageFn);
                installSetupThread.Start(null);
            }
        }
 private void buttonInstallDriver_Click(object sender, EventArgs e)
 {
     DialogResult dr = DialogResult.OK;
     if (SetupApi.CMP_WaitNoPendingInstallEvents(0) != 0)
     {
         WaitForSetupForm fWait = new WaitForSetupForm();
         dr = fWait.ShowDialog(this);
     }
     if (dr == DialogResult.OK)
     {
         buttonInstallDriver.Enabled = false;
         wizardPageFinishedEnable(false);
         Thread installSetupThread = new Thread(InstallSetupPackageFn);
         installSetupThread.Start(null);
     }
 }