Archive: JRE check and update prior to application install


JRE check and update prior to application install
I've found several references to checking the JRE in the examples and forums (see links below), but have not had success using NSIS 2.39.

I've tried to mesh the solutions found online with the script generated by EclipseNSIS, but am not sure how to make the association with 'jre.ini'. The examples use a 'jre.ini' file. However, it appears that the latest version of NSIS does not support that method and recommends using nsDialogs instead.

I've attached what I've come up with for a .nsi file.

Does anyone have an example of doing a JRE check/install using the nsDialogs?

Even better, if anyone knows how this is done through the EclipseNSIS plugin, that would be great too!

Regards,

Jeremiah

Simple Installer w/JRE Check

Update to Simple Installer w/JRE Check


i think u have this line wrong
ReadRegStr $R0 HKLM "SOFTWAREJavaSoftJava Runtime Environment" "CurrentVersion"

should probley be
ReadRegStr $R0 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" "CurrentVersion"

you need the \'s in there


Thank you ZmAn3.

I've gotten the check to work, and I believe I've even gotten the download of the JRE to work, however, I am having a permissions issue with the temp directory that the jre is written to. I need a way to give the IUSR permissions to write to the temp directory. The local user would have admin rights to read it and install it.

Any help in getting the permissions set for the download of the JRE would be helpful.

Thank you,


I realize this is an old thread, but did you ever get this to work? I'm having the same issue as your initial question and am having trouble finding any help. Surely somebody is doing this -would think that this would be a common need! Thanks...