Exemplo n.º 1
0
        private void continueButton_Click(object sender, EventArgs e)
        {
            Process p = new Process();

            p.StartInfo.FileName  = "msiexec";
            p.StartInfo.Arguments = "/i \"MySQLODBC32.msi\"";

            p.Start();
            p.WaitForExit();
            //if MySQL not installed AND doing an install.
            if (!programVariables.getMySQLInstalled() && programVariables.getInstall())
            {
                this.Hide();
                installMySQL installMySQLPage = new installMySQL();
                installMySQLPage.Show();
            }
            //if mysql already installed and doing an install
            else if (programVariables.getInstall())
            {
                this.Hide();
                jcmsInstallForm theInstallForm = new jcmsInstallForm();
                theInstallForm.Show();
            }
            else
            {
                this.Hide();
                jcmsUpgradeForm theUpgradeForm = new jcmsUpgradeForm();
                theUpgradeForm.Show();
            }
        }
Exemplo n.º 2
0
 private void upgradeButton_Click(object sender, EventArgs e)
 {
     programVariables.setUpgrade(true);
     if (!programVariables.getODBCInstalled())
     {
         this.Hide();
         ODBCWarning theWarningPage = new ODBCWarning();
         theWarningPage.Show();
     }
     else
     {
         if (programVariables.getMySQLInstalled())
         {
             this.Hide();
             jcmsUpgradeForm upgradeForm = new jcmsUpgradeForm();
             upgradeForm.Show();
         }
         else
         {
             this.Hide();
             installMySQL installMySqlForm = new installMySQL();
             installMySqlForm.Show();
         }
     }
 }
Exemplo n.º 3
0
        private void continueButton_Click(object sender, EventArgs e)
        {                        
            Process p = new Process();

            p.StartInfo.FileName = "msiexec";
            p.StartInfo.Arguments = "/i \"MySQLODBC32.msi\"";
            
            p.Start();
            p.WaitForExit();
            //if MySQL not installed AND doing an install.
            if (!programVariables.getMySQLInstalled() && programVariables.getInstall())
            {
                this.Hide();
                installMySQL installMySQLPage = new installMySQL();
                installMySQLPage.Show();
            }
            //if mysql already installed and doing an install
            else if (programVariables.getInstall())
            {
                this.Hide();
                jcmsInstallForm theInstallForm = new jcmsInstallForm();
                theInstallForm.Show();
            }
            else
            {
                this.Hide();
                jcmsUpgradeForm theUpgradeForm = new jcmsUpgradeForm();
                theUpgradeForm.Show();
            }
        }
Exemplo n.º 4
0
 private void skipButton_Click(object sender, EventArgs e)
 {
     if (programVariables.getInstall())
     {
         this.Hide();
         jcmsInstallForm theInstallForm = new jcmsInstallForm();
         theInstallForm.Show();
     }
     else
     {
         this.Hide();
         jcmsUpgradeForm theUpgradeForm = new jcmsUpgradeForm();
         theUpgradeForm.Show();
     }
 }
Exemplo n.º 5
0
 private void skipButton_Click(object sender, EventArgs e)
 {
     if (programVariables.getInstall())
     {
         this.Hide();
         jcmsInstallForm theInstallForm = new jcmsInstallForm();
         theInstallForm.Show();
     }
     else
     {
         this.Hide();
         jcmsUpgradeForm theUpgradeForm = new jcmsUpgradeForm();
         theUpgradeForm.Show();
     }
 }
Exemplo n.º 6
0
 private void upgradeButton_Click(object sender, EventArgs e)
 {
     programVariables.setUpgrade(true);
     if (!programVariables.getODBCInstalled())
     {
         this.Hide();
         ODBCWarning theWarningPage = new ODBCWarning();
         theWarningPage.Show();
     }
     else
     {
         if (programVariables.getMySQLInstalled())
         {
             this.Hide();
             jcmsUpgradeForm upgradeForm = new jcmsUpgradeForm();
             upgradeForm.Show();
         }
         else
         {
             this.Hide();
             installMySQL installMySqlForm = new installMySQL();
             installMySqlForm.Show();
         }
     }
 }