Getting "unknown variable postgresqlini" when updating PostgreSQL
Same issue here while installing postgresql-12.4-1-windows-x64.exe

A data directory is registered in ***unknown variable postgresqlini*** but is neither empty or a recognized data directory

After deleting the folder: c:\Program Files\PostgreSQL\12\, the installation went through.