This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Which OpenSource Java Installer?  RSS feed

 
Siegfried Heintze
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a client that presently uses a zip file with a cmd (or bat) file embedded in it to install both sun's java and a java app.

He is presently only targeting windows 2000 OS.

Now he wants the installation process to popup a GUI and prompt for some stuff to be stuck in a xml config file.

Would you recommend an opensource java installer for this? If so, which one? I did a google search and was overwhelmed by the choices!

If not, would you simply write a little Swing dialog and run it from the bat file?
Thanks,
Siegfried
 
todd runstein
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't do a Swing dialog if the jre isn't installed. You could have the bat file do the jre install, and then run Swing to build the XML file. The lag time between starting the install and when the dialog came up might be unacceptable though.

NSIS is a great installer that can be used to install the jre and do just about anything else you want as well. There's a bit of a learning curve involved, but once you figure it out, it's absofreakinlutley awesome. And of course, it's open source.

Good luck.
 
Siegfried Heintze
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, but he is installing the jre anyway to run the final app whose config file I am populating with my app.

Given that the jre has to be installed anyway, is there any motivation to use NSIS?

thanks,
Sieg
 
todd runstein
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While it requires a bit of investment (to learn), the motivation is that you will end up using it again and again. It will allow doing the XML config file for this task, and if you wanted, it could be used to do the Java install (no more bat/zip file - it's all in a professional and easy to use .exe setup file). If you plan on doing other windoze installers in the future, NSIS will be able to handle that too. If you're looking to solve just this problem, there are other options - if you want a tool that will solve this, and any other installer situation (as long as it's targetted for win), NSIS is well worth trying.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16026
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at these:

IzPack
Launch4J
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!