I had these kinds of errors before also, this is because my user doesn’t have admin rights.
have you tried to right-click the installer and tried “run as administrator”
this helped me a lot.
Some mendix installers also have a portable installer, this might also help you.
You can just ignore it and then can add jdk path manually.
This error might not come if you have jdk installed in your system before you start installing the mendix studio pro
This looks like you don’t have full admin rights to install software. When you download Studio Pro, try selecting “Windows Portable X86” instead of Windows Installer. It’s a bigger download, but should download all the dependencies locally and not need elevated permissions.
https://marketplace.mendix.com/link/studiopro/
Good luck!