Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Develop a Instllaller for a product

Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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..

Posts: 387
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JavaFX can be used to create your installer, specifically the javafxpackager tool.

The process is described here:

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 =>
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic