Installscript:launchappandwait function issue
Environment'\CurrentVersion' has value '1.8', but '1.7' is required.
However, if i try to launch from cmd,its working fine and shows java version as 1.8 BECAUSE it first search in c:\programData\Oracle\Java\javapath PATH variable.
If i go manually to c:\windows\syswow64 through cmd, i get the same error.
So, system behaviour seems fine but launchappandwait searching in syswow64.Please help in this.
I tried restarting system after java8 installation and checked PATH environment variable where c:\programData\Oracle\Java\javapath path is first one.
I am using jre 8u25 and 32-bit application.
Should i place java.exe in windows\syswow64 in jre8 msi?would this change effect anyway later in any scenario?
Answers (0)
Be the first to answer this question
As ever with script, always, always, always use explicit paths to files, both executable and data.
Dropping JAVA.EXE to SysWow64 might not help, anyway, as JRE requires a shed-load of support files which would also need copying. - anonymous_9363 9 years ago
but in scenario,where jre8 already installed... i will stuck there....!!! - vivekjazzwal 9 years ago