title: create mysql database inno setup returns error code 1
body: <p>I am using the script below to install mysql with my application, but it always fails to create the database and load the database script. The debugger returns an error code of 1, I dont find any other message as regards the cause of the failure anywhere</p>
  
  <p>when i check event viewer, it saw service successfully created and started, which is true, but I dont understand why the database is not created.</p>
  
  <pre><code>[Run]
  ;------------------install service MySQL --------------------------------
  ;Filename: "{app}\mysql\bin\mysqld.exe"; Parameters: "--install"; WorkingDir: "{app}\mysql\bin";  StatusMsg: "Installing the MySQL";  Description: "Installing MySQL";  Flags: runhidden; Check: MySQL_Is;
  Filename: msiexec; Parameters: "/i ""{app}\mysql-5.5.11-win32.msi"" /qn INSTALLDIR=""{app}\mysql"" DATADIR=""{app}\mysql\data"" "; WorkingDir:{app}; StatusMsg: Please wait while we install;  Flags: runhidden
  
  ;---------------------CONFIGURING ----------------------------
  Filename: {app}\mysql\bin\MySQLInstanceConfig.exe; Parameters:"-i -q ""-l{app}\mysql\mysql_install_log.txt"" ""-nMySQL Server 5.5"" ""-p{app}\mysql"" -v5.5.23 ""-t{app}\mysql\my-template.ini"" ""-c{app}\mysql\mysql.ini"" ServerType=SERVER DatabaseType=MIXED Port=3311 StrictMode=yes ConnectionCount=15 Charset=utf8 ServiceName=MySQL55 AddBinToPath=yes RootPassword=root4u SkipNetworking=no"; WorkingDir: {app}; StatusMsg: Configuring MySQL services; Description: Configuring MySQL Service; Flags: runhidden  
  
  
  ;--------------------- load Database script
  
  ;Filename: "{app}\mysql\bin\mysql.exe"; Parameters: "-u root -proot4u -h localhost -e ""source {app}\items_db.sql"""; WorkingDir: {app}; StatusMsg: Loading Database Initial Data; Flags: runhidden waituntilterminated;
  
  Filename: {app}\{#AppExeName}; Description: {cm:LaunchProgram,{#AppName}}; Flags: nowait postinstall skipifsilent
  
  [UninstallRun]
  Filename: {sys}\net.exe; Parameters: "stop ""MySQL55"""; StatusMsg: "Stopping MySQL Service ..."; Flags: runhidden;
  Filename: "{app}\mysql\bin\mysqld.exe"; Parameters: "remove ""MySQL55"""; StatusMsg: "Deleting MySQL Service  ..."; Flags: runhidden;
  Filename: msiexec; Parameters: "/x ""{app}\mysql-5.5.11-win32.msi"" ";
  </code></pre>
  
  <p>=========================The database script==============</p>
  
  <pre><code>/* Tables */
  DROP TABLE IF EXISTS clothes;
  
  CREATE TABLE clothes (
    id    int AUTO_INCREMENT NOT NULL,
    name  varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci,
    PRIMARY KEY (id)
  ) ENGINE = MyISAM;
  
  Insert Into clothes (Id,Name) values (1,"Shirt");
  </code></pre>