Without any user interaction.
Possible?
It already does that :)
It automatically update to the latest Java and removes all older versions.
Thanks I figured out what was wrong and now it updates Java to the latest version and removes the old version too on a limited user account (non admin)