I currently create installers for my Java application using NSIS. My application requires native libraries so at the moment I'm creating two installers, one with 32bit and the other with 64bit libs.
The problem is that the type of libraries required is dependent on the JVM, not the OS architecture. Quite understandably users with 64bit Windows will often download the 64bit installer even if they are running a 32bit JVM. Users aren't likely to read (or understand) even if I write an explanation on the download page of my website so a better solution is needed.
Can anyone suggest some nice NSIS script to help detect the JVM type at installation so that the correct libs can be installed. This way I can provide a single Windows installer and hide the complication from the users.