I would like to use install4j to download the JRE when its required. This reduces the size of the setup file drastically. Unfortunately, i can not host any JRE myself, so i thought i can provide something like https://corretto.aws/downloads/latest/amazon-corretto-22-x64-windows-jdk.msi but seems like that does not work, as they have some wierd requirement in naming the jre (platform-arch-…tar.gz or so). IIRC this was once possible, so the installer first downloaded an official .exe or .msi, installed that and when that was done without an error, the installer continued. Is this feature gone?
I am right now evaluating install4j, but for me this is a killer feature. If thats not possible, anyone familiar of an alternative that can do that?