I want to create setup for my files but my setup has a Prerequisite(mysql server).
I can add mysql as Prerequisite but I wrote a .bat file like this:
Code: Select all
echo off
cls
echo Starting MySQL mysql-server-5.5.39 install
msiexec.exe /i %~dp0mysql-server-5.5.39.msi /qn INSTALLDIR="C:\MySQL"
echo MySQL mysql-server-5.5.39 installed successfully.
"C:\MySQL\bin\MySQLInstanceConfig.exe" -i -q ServiceName="MySQL567" RootPassword="1234" ServerType=DEVELOPER DatabaseType=InnoDB Port=3306
echo MySQL Instance Configured. Service started.
Please consider that this .bat file should run as administrator and as I coded this is a silent install and has a configuration line.
I read some articles in this forum but non of them couldn't help me.
I would appreciate if anyone can help me.
Regards
Massoud Maboudi
FOLLOW US
Get the latest news in Application Packaging