I'm trying to install PostGIS but with no luck. I've installed PostgreSQL 11 x64 and PostGIS Bundle 2.5.2 x64 and when trying to create an extension in pgAdmin I get:
ERROR: could not load library "C:/Program Files/PostgreSQL/11/lib/rtpostgis-2.5.dll": %1 is not a valid Win32 application. SQL state: XX000
I have Window 10 Pro x64. I have no idea where does this 32 error comes from. The installers come in x64 version so this should be available and I remember having this working correctly on my previous laptop.
I've also tried with PostgreSQL 10 x64 and PostGIS Bundle 2.4.4 x64 with the exact same outcome.
Have anyone experienced this or have an idea on what else to check? I'm stuck.