Hello,
I have a problem when installing MySql server from the command line, using MySQLInstallerConsole.exe, as a custom action in Advanced Installer.
I managed to author a package that successfully installs MySql silently, with mysql-installer-community-5.6.26.0.msi as a prerequisite, having /qb in install command lines. This gets MySql Installer - Community installed correctly. Since it is a silent installation, MySql requires a second step, which is installing an actual instance using the MySQLInstallerConsole utility (as of version 5.6.26 which is the case here).
For this last step to get MySql installed silently, I managed to configure a custom action with sequence, just after Add Resources Execution Stage, deferred and run under LocalSystem account.
File to launch: [ProgramFilesFolder]MySQL\MySQL Installer for Windows\MySQLInstallerConsole.exe
Command Line: community install server;5.6.26;X86:*:servertype=Server;passwd=manager -silent
I get this custom action fired correctly when executing the authored package (command window shows progress), but in the end MySql server instance is not installed. I have tried several combinations on the configuration of the custom action (execution time and execution options) with no sucess. I double checked that the Advanced Installer project has "Run as Administrator" in Install Parameters, and also in launch file properties.
Please notice that: immediately after package installation fails, I CAN install the desired MySql instance, by calling cmd.exe run as Administrator, then simply executing File to launch content + command line content, from the command line (MySQLInstallerConsole.exe community install server;5.6.26;X86:*:servertype=Server;passwd=manager -silent). This shows there is nothing wrong with my custom action command syntax. The only difference is that it fails when executed in the context of Advanced Installer authored package and is successfull when executed from cmd.exe as Administrator.
Attached files are msi install log and also .aip Advanced Installer project definition, used for reproducing the behavior described here.
Please advise,
Thank you