I had the same issue. First make sure you have the latest version of Java installed then use Jarfix. Doing this fixed the issue for me and made it so I could just double click the file to open the installer. All Jarfix does is fix the file association for .JAR files.
Here's the link to jarfix.
https://johann.loefflmann.net/en/software/jarfix/index.html