Install Mysql Using Inno Setup Skin

Does anyone have an inno setup script so I can automatically install MySQL. Does anyone have an inno setup. ISSkin is a free version of Codejock’s Skin Framework that allows you to add customized skins to Jordan Russell's Inno Setup. PLEASE CHOOSE THE site VERSION YOU WOULD LIKE TO USE. APP BROWSER E-BOOK. Remember my choice.

  1. Inno Setup Command Line
  2. Mysql Setup Download
  3. Install Mysql Using Inno Setup Skins
1,070
Livestreaming, breaking news notifications, and all the local news you want from FOX 4 in a fast, high-performance app.
Watch and read stories at the same time -- the video plays as you scroll. Be the first to know with breaking news alerts, and find out what's happening in your area with News Near Me.
Never miss any FOX 4 news - you can livestream our newscasts right from your phone or tablet. Save stories to read later, and share easily to Facebook, Twitter, and other social networks.
Get a head start on your day with FOX 4 KC traffic and weather maps. Enter our latest contests and promotions right from your phone, and catch up on all your favorite segments from FOX 4.
Please note: This app features Nielsen’s proprietary measurement software which contributes to market research, like Nielsen’s TV Ratings. Please see http://priv-policy.imrworldwide.com/priv/mobile/us/en/optout.html for more information.
Collapse
1,070 total
4
2
Collapse
August 9, 2019
15M
100,000+
6.5.1
4.4 and up
Tribune Broadcasting Company
303 E Wacker Drive17th FloorChicago IL 60601
Active1 year, 2 months ago

I have been reading through a lot of documents on Stack Overflow, you guys are great! I have taken some code that was suggested on another post. The help was great! I was able to get the MySQL loaded and started thanks to RobeN. I did however read the documentation that was suggested to autoload a database into the sequence. I can't seem to get it figured out. Any help would be great!

Martin Prikryl
102k27 gold badges214 silver badges446 bronze badges
Ron KerrRon Kerr

2 Answers

I managed find a workaround to this problem. Instead of loading the database directly from the INNO script, I wrote the sql commands into a batch file and executed the .bat from the script.

Type this into a notepad document and save it as loadDB.bat .The first line sets the path of your directory to where your mysql.exe is installed.Next line creates an empty database.(I don't know why but I can't get mysql to load the database file without creating an empty database on the server first) The last line is the mysql command for loading the database from your database,sql file.

cd /d C:Program FilesMySQLMySQL Server 5.1bin

mysql -uroot -padmin -e 'create database mydatabase;'

Inno Setup Command Line

mysql -uroot -padmin mydatabase < 'C:database.sql'

Now, in your INNO script below the [FILES] section add the .bat file

Source: 'path-to-fileloadDB.bat'; DestDir: '{app}'; Flags: ignoreversion

And below the [RUN] section execute the .bat. Note this line should be the last line in the [RUN] section because it should execute only after Mysql server is installed.

Mysql Setup Download

Filename: '{app}loadDB.bat'

Now compile and run the setup.

As a side note : I havent tried it but maybe if you add the mysql commands in the .bat directly into the inno script with the correct parameters, you could load the database without the need of the batch file.

Hope this solves your problem.

quicksilverquicksilver
Install Mysql Using Inno Setup Skin

After you installed MySQL and got it started, it´s easy to load an MySQL Script file.

The keypoint is passing the command 'source' to mysql.exe -e parameter, so it could load my script file. Passing script name with '<' signal didn´t work for me.

Fernando VieiraFernando Vieira

Install Mysql Using Inno Setup Skins

Not the answer you're looking for? Browse other questions tagged mysqlinno-setup or ask your own question.