This is what I did for the latest version of Java Version 7 Update 40:

On Success
1. Run the batch file "Remove Old Versions of Java" with params "".
2. Run the batch file "Wait" with params "".
3. Launch "$(KACE_DEPENDENCY_DIR)\jre-7u40-windows-x64.exe" with params "/s /v /norestart AUTOUPDATECHECK=0 JAVAUPDATE=0 JU=0"

This worked for both 64bit and 32bit versions of Java.  You just have to change out the file.