3

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?

6
  • Please Help as i am stuck Commented Apr 18, 2013 at 14:30
  • Similair Question: stackoverflow.com/questions/856772/create-installer/856815 Commented Apr 18, 2013 at 14:33
  • 1
    Have you considered Aapche Derby instead of mySQL? It is pure java and can be embedded as a jar in your application, so if there is no special need for MySQL it might be an option. Commented Apr 18, 2013 at 14:41
  • Should i convert my tables and procedures into Apache Derby Commented Apr 18, 2013 at 14:43
  • Hi Thorbjørn Ravn Andersen do i need to convert my MySQL tables and Stored Procedures in Derby Commented Apr 18, 2013 at 14:44

2 Answers 2

4

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
Sign up to request clarification or add additional context in comments.

1 Comment

does Inno setup support running a script too prior to install. For e.g after creating DB, we can run .sql file to create tables?
1

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

You can bundle jre and database files

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.