I installed pgbouncer as a service on windows 10 using:
pgbouncer.exe --regservice <pgbouncer.ini>
Placing the ini path and from the folder where the pgbouncer exe is. The service is installed normally and I can start it by the windows service manager.
But when I connect using zeos in delphi it says:
SQL Error: ERROR: No such user: postgres
The same error occurs with psql.
If I start pgbouncer via cmd using:
pgbouncer pgbouncer.ini
It's all right. Only the service that does not work.