private void SetRegistryKeys() { OSAE.ModifyRegistry myRegistry = new OSAE.ModifyRegistry(); myRegistry.SubKey = @"SOFTWARE\OSAE\DBSETTINGS"; myRegistry.Write("DBUSERNAME", "osae"); myRegistry.Write("DBPASSWORD", "osaePass"); myRegistry.Write("DBCONNECTION", txbServer.Text); myRegistry.Write("DBPORT", txbPort.Text); myRegistry.Write("DBNAME", "osae"); myRegistry.Write("INSTALLDIR", installDirectory); }
private void Form_FormClosing(object sender, FormClosingEventArgs e) { if (!btnClose.Visible && btnInstall.Text != "Close") { MessageBox.Show("Database did not install successfully. Please make sure your MySql instance is running and re-run the Open Source Automation installer again."); this.DialogResult = DialogResult.Cancel; } else { if (string.IsNullOrEmpty(regSettings.WcfServer)) { OSAE.ModifyRegistry myRegistry = new OSAE.ModifyRegistry(); myRegistry.SubKey = @"SOFTWARE\OSAE"; myRegistry.Write("WcfServer", txbWcfAddress.Text); } } }
private void SetRegistryKeys() { OSAE.ModifyRegistry myRegistry = new OSAE.ModifyRegistry(); myRegistry.SubKey = @"SOFTWARE\OSAE\DBSETTINGS"; myRegistry.Write("DBUSERNAME", "osae"); myRegistry.Write("DBPASSWORD", "osaePass"); myRegistry.Write("DBCONNECTION", txbServer.Text); myRegistry.Write("DBPORT", txbPort.Text); myRegistry.Write("DBNAME", "osae"); myRegistry.Write("INSTALLDIR", installDirectory); }
private void Form_FormClosing(object sender, FormClosingEventArgs e) { if (!btnClose.Visible && btnInstall.Text != "Close") { MessageBox.Show("Database did not install successfully. Please make sure your MySql instance is running and re-run the Open Source Automation installer again."); this.DialogResult = DialogResult.Cancel; } else { if(string.IsNullOrEmpty(regSettings.WcfServer)) { OSAE.ModifyRegistry myRegistry = new OSAE.ModifyRegistry(); myRegistry.SubKey = @"SOFTWARE\OSAE"; myRegistry.Write("WcfServer", txbWcfAddress.Text); } } }