For installing MySQL silently, I tried following command in cmd and it works fine:
msiexec /i "mysql-essential-6.0.11-alpha-winx64.msi" /qn
But, how can I run that command Before Installing in Inno Setup ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can execute it by calling
Execfunction from theCurStepChangedevent method, when the step will bessInstall. In the following script is shown, how to include that MySQL installer into your setup and how to extract and execute it right before the installation starts:Utilize the unused progress bar:
Since it takes some time before the installation of MySQL finishes, and you’ve decided to hide the user interface of the installer (what might also be quite unsafe anyway), you can extend the script to use the progress bar which is shown at its starting position during the installation and which is unused that time. The following code switches (on at least Windows XP systems) the Inno Setup’s installation progress bar to
marquee styleand shows a description in the status label. When MySQL installation is done, the progress bar is switched back to the normal mode and the actual Inno Setup installation starts: