Zaheer
Zaheer

Reputation: 133

Making Installer for Java application with MySQL database

I am looking for an installer for my Java Application that can bundle my own JRE and MySQL database, and I have heard of Install4J. Does Install4J have the feature of bundling MySQL Database 5.0 so that my customers can easily install the application with MySQL as the database?

Upvotes: 4

Views: 8445

Answers (2)

user1874800
user1874800

Reputation: 329

You can use Inno Setup.Download from http://www.jrsoftware.org/isinfo.php

for installing mysql and jre ,you can use batch files and calling in inno setup.

you should silent install mysql and jre with batch files.

example for silent install jre7u7:

jre-7u7.exe /s UPDATE=0

example for silent install mysql:

msiexec /i "mysql-5.5.21.msi" /quiet INSTALLDIR="%PROGRAMFILES%\MySQL\MySQL Server 5.5"

exmaple for silent configure instance mysql:

MySQLInstanceConfig.exe -i -q "-lC:\mysql_install_log.txt" "-nMySQL Server 5.5" "-p%pro%\MySQL\MySQL Server 5.5" -v5.5.21 "-t%PROGRAMFILES%\MySQL\MySQL Server 5.5\my-template.ini" "-c%pro%\MySQL\MySQL Server 5.5\my.ini" ServerType=DEVELOPMENT DatabaseType=MIXED ConnectionUsage=OLTP Port=3306 ServiceName=Mysql Charset=utf8

Upvotes: 4

Sharjeel Afzal
Sharjeel Afzal

Reputation: 145

You can use Advanced installer. download from http://www.advancedinstaller.com/.

You can bundle jre and database files

Upvotes: 1

Related Questions