Set Variable JAVA_INSTALL to 
Set Variable JAVA_CHECK to 
 
Check Registry Key HKLM\SOFTWARE\JavaSoft\ into JAVA_INSTALL
MessageBox: DEBUG, JAVA_INSTALL= $JAVA_INSTALL$
if Variable JAVA_INSTALL Equals NO$KEY
  MessageBox: $TITLE$ Setup Warning, This product requires at least Java JRE version 1.8 Update 101.$NEWLINE$$NEWLINE$Some reporting features will not work correctly.
  Set Variable LASTERROR to $LASTERROR$$NEWLINE$$TIME$: This product requires at least Java JRE version 1.8 Update 101.  Some reporting functions will not work properly.
end
if Variable JAVA_INSTALL Equals (Ignore Case) NO$VALUE
  Check Registry Key HKLM\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion into JAVA_CHECK
  if Variable JAVA_CHECK Contains 1.6
    MessageBox: $TITLE$ Setup Warning, Java has been detected, but does not meet the minimum required version (1.8 update 101).$NEWLINE$$NEWLINE$Some reporting features will not work correctly.
    Set Variable LASTERROR to $LASTERROR$$NEWLINE$$TIME$: Java has been detected, but does not meet the minimum required version (1.8 update 101). Some reporting functions will not work correctly.
  end
  if Variable JAVA_CHECK Contains 1.7
    MessageBox: $TITLE$ Setup Warning, Java has been detected, but does not meet the minimum required version (1.8 update 101).$NEWLINE$$NEWLINE$Some reporting features will not work correctly.
    Set Variable LASTERROR to $LASTERROR$$NEWLINE$$TIME$: Java has been detected, but does not meet the minimum required version (1.8 update 101). Some reporting functions will not work correctly.
  end
  if Variable JAVA_CHECK Contains 1.8
    MessageBox: $TITLE$ Setup Warning, Java version 1.8 has been detected.  Please confirm that the machine is running update 101, otherwise some reporting features will not work correctly.
    Set Variable LASTERROR to $LASTERROR$$NEWLINE$$TIME$: Java has been detected, but does not meet the minimum required version (1.8 update 101). Some reporting functions will not work correctly.
  end
end
 
 
