The linked discussion is ancient and shouldn't be used for reference. You can provide a port to your database by adding a semicolon and the port in the host field since 2019. So during the installer you can use:
localhost:90210
for the database host, it will then use port 90210
.
Hope this helps.
PS this also works on the commandline installer.