Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Installation of a Swing Application

 
Aravind Prasad
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers,
I have done a project in Swings and MySQL. I want to burn the product in a CD-ROM and want to give it my client. My client's requirement is to automate the installation of the Application on a single click.

I planned to burn the CD in such a way
+ CD-ROM
+ JRE
+ APPLICATION
- Application developed in Java Swings (*.jar)
- MySQL Database (db.sql)
+ MYSQL
- Setup.exe

When the client press the setup.exe it has to
1. Install the JRE
2. Set the Path for the bin directory
3. Install the MySQL Database and also setup the Service and put the password for the root as root
4. Restore the Database.
5. Copy the Application (*.jar) into a particular location in the computer
6. Create a Short-cut in the desktop .

I would like to do my application in this format. Is that possible for me to do so. If yes, How and I would like to get your enriched ideas and suggestions.

Pleaes help..

Kind Regards

Aravind Prasad
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see several problems, most notably the assumption that setup.exe is going to be able to run, and even if it runs, that it'll be able to install Mysql.

The former limits you to the Windows operating system, and probably to those of your users who have admin rights on their machines (which in corporate settings many do not).

The latter is questionable. Do your users really want and need a full-blown database on their machines, assuming they're able to install it? Since this is apparently a single-user application, you could avoid many troubles by using an embedded Java database like Derby, which doesn't need an installation.
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question really doesn't have much relevance to Swing.

If you are only targeting Windows systems, then the most straightforward way to do what you want would be to produce a standard Windows MSI install package. It can do all the things you describe there.
 
Aravind Prasad
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers,
Thankyou so much for your help. Can you please specify a package where i can customize my MSI install package.

Thanks/Regards

Aravind Prasad
 
Rob Spoor
Sheriff
Pie
Posts: 20667
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could try Inno Setup.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic