I was reading about installing the Java using MSI. I find this rather complicated. What is wrong about using the .exe and install silently like this?
Start-Process -FilePath jre-8u25-windows-x64.exe -ArgumentList "/s" -PassThru -Wait
It works in my case. Any doubts, helpful hints about this?