Skip to main content

Userfriendly installation of Java application on Windows (MSI)

3 replies [Last post]
tsinger
Offline
Joined: 2003-06-10

I'm not sure, this is the right forum, but maybe it is related to the Java Kernel stuff in Java 6 Update 10.

History:
Until now we created two different Windows bundles for our application users: one with an embedded JRE (copied to a subdirectory of our application installation; the JRE is not installed themself on the user machine) and one without. Both installation bundles were created using InnoSetup.

Planned Future:
We are planning to distribute our application using MSI files in the future (using WiX3). Embedding a JRE also would be possible, but maybe it would be better to check the existence of a decent JRE at installation time and - if not present - install the latest Java 6 (or better: Java 6 Update 10) automatically.

We definitely don't want to abort the installation to tell the user that (s)he needs to download and install Java from the somewhere before (s)he can proceed. We want to make the installatiion process as user-friendly as possible (out-of-the-box). What is the way SUN suggests to install Java applications? Is there anybody who already has created such an MSI installer using WiX?

Thanks in advance,
Tom

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mthornton
Offline
Joined: 2003-06-10

I think the Java offline installer is just a thin wrapper around an MSI file. Further when you install it, the naked .msi file is left lying around somewhere. It is a while since I've done this, so it may have changed.

tsinger
Offline
Joined: 2003-06-10

You are right, the latest JREs setups are wrappers around msi files. Maybe SUN offers a exe-wrapper around the JRE msi and the application's msi which installs first the JRE and then the application?

mthornton
Offline
Joined: 2003-06-10

You can probably do that with Microsoft tools. It may require an MSI which is a 'parent' of both your app and the JRE MSI.