Exemplo n.º 1
0
        private void InstallMySqlService(object sender, EventArgs e)
        {
            MysqlWindowsService service = new MysqlWindowsService();

            string error = String.Empty;

            try
            {
                if (!service.InstallService())
                {
                    error = "Could not install the service.  Please contact [email protected].";
                }
            }
            catch (Exception ex)
            {
                error = ex.Message;
            }

            if (error.Length > 0)
            {
                ShowDiagnosticsDialog(error, "Installing MySQL Service");
            }
        }