Archive: How to install specific JRE version even if upgrade will happen?


How to install specific JRE version even if upgrade will happen?
Function java
SetOutPath '$TEMP'
SetOverwrite on
File lib\jre-6u24-x64.exe
ExecWait '$TEMP\jre-6u24-x64.exe'
FunctionEnd


I have installed specific jre 24 version through NSIS.After installed user install JRE 35 the older version will be removed.so the currently used path and variables are changed.How to install specific version JRE even if jre upgrade happen?

How to resolve this issue?


Read the path from registry again -get new path for JRE 35.