I have this to leverage a Java uninstall:
(description of it, time generated of it, user sid of it) of records whose (event id of it = 1034 AND now - time generated of it < 1 * day AND source of it contains "MsiInstaller" AND description of it contains "Java") of application event log
I haven’t tested this, but I would imaging if you remove the AND description of it contains "Java"
this may return what you are needing.