windows - install mysql (on installer) in the same time an other application (inno setup) -


i'm trying create installer application. choose use innosetup. succeed create simple installer application have install in same time mysql (start service , create database). have seen have added ".msi" files of project. have sample of code have error , don't understand. not familiar register in windows. when use code,i haven't folder "mysql ab" on "hkey_local_machine/software" , if install clicking on .msi, install works haven't folder "mysql ab" on "hkey_local_machine/software". maybe version of code doesn't work yet. [files] source: "path\to\appli.exe"; destdir: "{app}"; flags: ignoreversion source: "path\to\my.dll"; destdir: "{app}"; flags: ignoreversion source: "path\to\mysql-5.5.45.0.msi"; destdir: "{tmp}"; flags: nocompression dontcopy

[icons] ...  [run] filename: "{reg:hklm\software\mysql ab\mysql server 5.5,location}\bin\mysqld.exe"; parameters: "--install"; workingdir: "{reg:hklm\software\mysql ab\mysql server 5.5,location\bin}"; statusmsg: "installing mysql service"; description: "installing mysql service"; flags: runhidden; check: mysql_is  [code] function mysql_is(): boolean; var iresultcode: integer; begin   result := true;   if (not regkeyexists(hklm, 'software\mysql ab\mysql server 5.5')) or     (not fileexists(expandconstant('{reg:hklm\software\mysql ab\mysql server 5.5,location}\bin\mysql.exe')))    begin      extracttemporaryfile('mysql-5.5.45.0.msi');      exec('msiexec.exe', '/i mysql-5.5.45.0.msi /qn installdir="c:\program files\mysql"',        expandconstant('{tmp}'), sw_hide, ewwaituntilterminated, iresultcode);          if not fileexists(expandconstant('{reg:hklm\software\mysql ab\mysql server 5.5,location}\bin\mysql.exe')) begin             msgbox('something went wrong! installation should terminated',                mbinformation, mb_ok);             result := false;          end;   end; end; 

i have tried mysql-5.5.45.0.msi , mysql-5.6.26.0.msi , have same problem.

this compiler output :

[10:53:08,966]   *** setup started [10:53:09,762]   setup version: inno setup version 5.5.6 (a) [10:53:09,762]   ... [10:53:14,708]   -- file entry -- [10:53:14,708]   dest filename: c:\program files (x86)\my app bdd\unins000.exe [10:53:14,754]   time stamp of our file: 2015-09-30 10:53:09.450 [10:53:14,754]   installing file. [10:53:14,754]   uninstaller requires administrator: yes [10:53:14,770]   installed file. [10:53:14,770]   -- file entry -- [10:53:14,786]   dest filename: c:\program files (x86)\my app bdd\app.exe [10:53:14,786]   time stamp of our file: 2015-09-28 14:06:26.000 [10:53:14,786]   installing file. [10:53:14,801]   installed file. [10:53:14,801]   -- file entry -- [10:53:14,801]   dest filename: c:\program files (x86)\my app bdd\my.dll [10:53:14,817]   time stamp of our file: 2013-04-22 18:03:56.000 [10:53:14,817]   installing file. [10:53:16,268]   installed file. [10:53:16,268]   -- file entry -- [10:53:25,512]   ... [10:53:25,559]   -- icon entry -- [10:53:25,559]   dest filename: c:\programdata\microsoft\windows\start menu\programs\my app bdd\my app bdd.lnk [10:53:25,574]   creating directory: c:\programdata\microsoft\windows\start menu\programs\my app bdd [10:53:25,574]   creating icon. [10:53:25,746]   created icon. [10:53:25,761]   -- icon entry -- [10:53:25,761]   dest filename: c:\programdata\microsoft\windows\start menu\programs\my app bdd\uninstall app bdd.lnk [10:53:25,761]   creating icon. [10:53:25,777]   created icon. [10:53:25,949]   installation process succeeded. [10:53:25,980]   extracting temporary file: c:\users\4modes~1\appdata\local\temp\is-p8cqh.tmp\mysql-5.5.45.0.msi [10:54:18,145]   message box (ok):     went wrong! installation should terminated 

extraction of msi seems ok (there folder mysql on c:\program files (x86)) haven't folder mysql on "c:\program files". on regedit,i don't see folder "mysql ab " on "hkey_local_machine/software"

thank help


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -