user2200561
user2200561

Reputation: 21

How to package MySQL with the Install4j does Install4j has the facility of creating Installers that can also install MYSQL

Does Install4J has the feature of installing MySQL 5.0 and the database i have created ,for my Java Application on windows which is developed in Netbeans IDE Utimately what i need is an .exe of my Java Application which is in Netbeans IDE and Installer that installs my Application into the clients system and the database created in MySQl . Please Help with this

Upvotes: 0

Views: 827

Answers (2)

Ingo Kegel
Ingo Kegel

Reputation: 48105

Add the MySQL installer on Files->Distribution Tree and run it with a "Run executable" action after the "Install Files" action has run.

Probably there's an argument for running that installer in quiet mode and to modify parameters of the MySQL installation.

Upvotes: 0

sehrope
sehrope

Reputation: 1777

You could do this as part of a custom script to be run as part of your install but most likely you'd have to tailor it to each target environment. It would probably be a bit messy though as the installation process would vary wildly from Windows, to OSX, to Linux (and different Linux distros). Also, you'd have to deal with overwriting existing installations.

If you're code is database agnostic consider using something like http://www.h2database.com/html/main.html. It's pure Java (nothing to install besides adding JARs to your app), runs both in memory and persistent to disk, and feature rich. It would be much easier to deploy as you could have it save the database data in your apps install directory.

Upvotes: 1

Related Questions