Hi,
This can be done by using a prerequisite or a bundled JRE.
You can read more about prerequisites here:
http://www.advancedinstaller.com/user-g ... requisites
http://www.advancedinstaller.com/user-g ... tware.html
For example you can use the installer of the "online" version of the installer as a Prerequisite (jre-6u3-windows-i586-p-iftw.exe). Note that this installer has a small size and it automatically downloads the files it needs to perform the installation.
http://www.java.com/en/download/windows_manual.jsp
If you want to bundle the JRE you can use the "Java" tab of the "Media" page:
http://www.advancedinstaller.com/user-g ... e-jre.html
Note that a bundled JRE will be used only by your application. Also, if other JRE versions exist on the machine, they will not be used (the bundled JRE will be used).
Regards,
Cosmin