Installscript:launchappandwait function issue
I have tried to launch java program using launchappandwait function of installscript,(INSTALLSHIELD 2012 SPRING)
LaunchAppAndWait("java.exe", szEMS_Param, LAAW_OPTION_WAIT | LAAW_OPTION_HIDDEN);
Function is working,however it tries to find java.exe in c:\windows\syswow64 instead of c:\programData\Oracle\Java\javapath
Due to this,i get the following error:
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?
Be the first to answer this question