public override void Commit(IDictionary savedState)
if (!isMySQLInstalled) { // Starts the installation of the mysql community server Process p = new Process(); p.StartInfo.FileName = "msiexec.exe"; p.StartInfo.Arguments = string.Format(" /q /log install.txt /i " + context.Parameters["TARGETDIR"].ToString() + "MySQL_Setup.exe" + " datadir=\"C:\\Program Files\\MySQL\\MySQL Server 5.0\" " + "installdir=\"C:\\Program Files\\MySQL\\MySQL Server 5.0\\data\""); p.Start(); p.WaitForExit(); // Starts the configuration of the mysql server p = new Process(); p.StartInfo.FileName = "C:\\Program Files\\MySQL\\MySQL Server 5.0\\bin\\MySQLInstanceConfig.exe"; p.StartInfo.Arguments = string.Format(" -i -q \"-lC:\\mysql_install_log.txt\" \"-nMySQL Server 5.0.51\" " + "\"-pC:\\Program Files\\MySQL\\MySQL Server 5.0\" -v5.0.51 " + "\"-tC:\\Program Files\\MySQL\\MySQL Server 5.0\\my-template.ini\" " + "\"-cC:\\Program Files\\MySQL\\MySQL Server 5.0\\mytest.ini\" " + "ServerType=DEVELOPMENT DatabaseType=MIXED " + "ConnectionUsage=DSS Port=3306 ServiceName=MySQL " + "RootPassword=nevermind AddBinToPath=yes"); p.Start(); p.WaitForExit(); } if (!isMySQLODBCConnectorInstalled) { Process p = new Process(); p.StartInfo.FileName = "msiexec.exe"; p.StartInfo.Arguments = string.Format(" /q /log install.txt /i " + context.Parameters["TARGETDIR"].ToString() + "mysql-connector-odbc-5.2.5-win32.msi"); p.Start(); p.WaitForExit(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)