How to auto-install jre-1_5_0_06-windows

How can I change the following to automatically check and install jre-1_5_0_06-windows instead of version 1.4?

This page will now automatically install the Java Runtime environment.  
When completed, a steaming cup of coffee will appear. At that time,
click "Back" to proceed to step two.<center>
<OBJECT 
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = 189 HEIGHT = 189  
    codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0">
    <PARAM NAME = CODE VALUE = VMTest.class >

    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.4.1">
    <PARAM NAME="scriptable" VALUE="false">

    <COMMENT>
	<EMBED 
            type="application/x-java-applet;version=1.4.1" 
            CODE = VMTest.class
            WIDTH = 189
            HEIGHT = 189  
	    scriptable=false 
	    pluginspage="http://java.sun.com/products/plugin/index.html#download">
	        <NOEMBED>
		alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
	Your browser is completely ignoring the <APPLET> tag!
		</NOEMBED>
	</EMBED>
    </COMMENT>
</OBJECT>
Download Java Web Start

Thank you for your reply. It is very much appreciated. The information provided appears to almost solve my problem, but not quite. Perhaps it is because I do not fully understand your code. Is your code intended to automatically install the latest version of Java and then open the solution? As I am sure you already know, my code (provided by Servoy) is intended to check to see what version of Java is installed, and then install the described version.

I have tried copying and pasting various parts of your code into my code, to achieve the desired result, but so far I have not succeeded. Any suggestions would be appreciated.