I\'m using Delphi 7 and can\'t predict the target version of Windows.
I need to create a database (probably MySql, but might be something else) and define some table
Use DSiExecuteAndCapture from DSiWin32:
var
exitCode: integer;
output : TStringList;
begin
output := TStringList.Create;
try
if DSiExecuteAndCapture('mysql --version', output, '', exitCode) = 0 then
Log(Format('error %d, cannot start', [GetLastError]))
else begin
// check exitCode and output
end;
finally FreeAndNil(output); end;
end;