File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Installation of a Swing Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Installation of a Swing Application" Watch "Installation of a Swing Application" New topic
Author

Installation of a Swing Application

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
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
Marshal

Joined: Mar 22, 2005
Posts: 39529
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18109
    
    8

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

Joined: Dec 28, 2005
Posts: 263
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

Joined: Oct 27, 2005
Posts: 19538
    
  16

You could try Inno Setup.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Installation of a Swing Application
 
Similar Threads
Fedora Core 3 install problem
Java on CD-ROM
How to deploy a GUI Swing application?
Winows 98 "Autorun"
Need External Back Up in Java Web Application