Based on different topic installer
I share mine
Basicly, i didn't kill process but i read it here
Step 8 : I loop with a regex (java _ Update %) for uninstall all Java.
So when there is no more java installed, step 8 fail, and next step you can install java.
Enjoy