Hi,
If you want to install and configure automatically your MySQl Server and execute SQL Scripts please follow the next steps:
1. Add MySQL Server Setup as a prerequisite for your package from
Prerequisite page.
2. In order to install MySQL Server Setup silently, you can use a
custom command line (/qb) in the "Install Command Lines" fields" from "Prerequisites page -> Prerequisite Setup File tab".
Please note, when MySQL is installed silently, MySQL service is not installed. The MySql service can be installed as service using the next command line:
For starting the service you can use the next command line:
For executing this commands lines using Advanced installer you have to follow the next steps:
1. Go to
"Custom Actions" page and create a new "Launch EXE with working directory" custom action with sequence under the "Install Execution Stage -> Searches" action group like this:
- File Path: mysqld
Command: --install
Working: Path to mysql\bin\
2. Add a new "Launch file" custom action with sequence, scheduled after the above one, like this:
- File To Launch: cmd.exe
Command Line: /c NET START mysql
Working Directory:
Run as Adminsitrator: checked
For configuring the MySQL Server you can use a
BAT file as a custom action after MySQL server is installed.
For execution of SQL Scripts Files you cand use
SQL Databases feature.
Please note that the User Guide contains a
SQL Scripts tutorial which may help you.
Regards,
Ciprian
__________________________________________________________________________________________________________________________________________________
Ciprian Comsa
Advanced Installer Team
http://www.advancedinstaller.com/