This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JavaFX and the fly likes Develop a Instllaller for a product Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "Develop a Instllaller for a product" Watch "Develop a Instllaller for a product" New topic
Author

Develop a Instllaller for a product

marco rama
Greenhorn

Joined: Aug 07, 2012
Posts: 7
Hi All,

I would like to develop a cool installer for a product. Rather than using a commercial one I would like to develop one of my own either from the scratch or using any framework..

The product is being used almost all the OSes, Windows, Linus, Mac and others. I wanted a UI atleast for these major: Windows, Linux and Mac...

To get a colurful will JavaFX can be used... ?

Any sugesstions and inputs are most welcomed..

Cheers,
marco
John Damien Smith
Ranch Hand

Joined: Jan 26, 2012
Posts: 130
    
    9
JavaFX can be used to create your installer, specifically the javafxpackager tool.

The process is described here:
http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm

Behind the scenes, the javafxpackager just shells out platform dependent open source installer creator products (e.g. rpmbuild for redhat type linuxes, dpkg for debian type linuxes, wix or innosetup for windows installers, osx app or dmg creator for mac, etc).

The UI (if any) for each of these generated installers is all specific to the installer and the OS it is being generated on.
The installer UI can be customized by providing resources and custom configuration files to the underlying installer creator products that the JavaFX packager shells out to.
The amount of installer UI customization possible depends on the underlying tool. For example a windows WIX installer is very customizable, and an rpm package has no UI at all as the UI for the rpm install is completely handled by OS toolkit extensions the user uses to install the rpm.
None of the installer UI is written in JavaFX, it is all native to the platform.

Honestly, if you are going to have somebody install your software, then I think it is a good thing just to have a standard UI for the software install that looks like any other software installer for that platform. Think on iOS for example, where everything is installed or updated in exactly the same way - it's simple and intuitive for the user - why confuse the user installing your product before they even get to use it? Unless the installation takes a long time (like a large game or office), I think, in general, custom installers are more hassle than benefit to the user - even then the cross sell messages that often show up in custom installer screens annoy me.

Also if you want to eventually deploy your app to an app store like the Windows store or Mac App store (something that near future releases of the javafx packager will greatly assist with preparing for), you won't be able to use your beautiful custom installer anyway, because the store terms of service will demand that you use the store's standard software packaging and installation mechanism.

My advice is to spend your effort elsewhere (e.g. in making your app itself better) and just use the out of the box packaging provided by the javafx packager, with a few custom tweaks for icons, license pages, etc. Personally the effort involved in just getting that much to work with the standard installers, is more than I would normally want to spend on an installer development task anyway.

------

One other option is that you can use WebStart with a JavaFX coded Preloader.

I don't necessarily recommend that over a native installer, especially seeing as you have Linus as an OS target and WebStart won't function out of the box with an OpenJDK install on a Linux box (or a Linus either ;-).

WebStart is a reasonable alternative for Windows and Mac.

Some info on WebStart and JavaFX =>
http://docs.oracle.com/javafx/2/deployment/deploy_overview.htm#CEGHEAHD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Develop a Instllaller for a product
 
Similar Threads
running a fantasy football swing app on Mac?
Anyone using CodeWarrior?
planning to buy MacBook
Wireless Toolkit under Virtual PC on OSX?
Why mostly architects or authors use Mac than software developer’s population use of PC's?