BUG #18185: Error when calling whoami at the beginning of the installation

PG Bug reporting form <noreply@postgresql.org>

From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: marc.veteau@gmail.com
Date: 2023-11-06T15:02:29Z
Lists: pgsql-bugs
The following bug has been logged on the website:

Bug reference:      18185
Logged by:          Marc VETEAU
Email address:      marc.veteau@gmail.com
PostgreSQL version: 16.0
Operating system:   Windows 11
Description:        

Hi,

I try to install Postgres 16 on my windows 11 with EDB package and I have
this error at the beginning of the installation

Log started 11/06/2023 at 16:00:35
Preferred installation mode : qt
Trying to init installer in mode qt
Mode qt successfully initialized
Setting variable whoami from C:\WINDOWS\System32\whoami 
Script exit code: 

Script output:
 

Script stderr:
 

Unknown error while running C:\WINDOWS\System32\whoami 

Thanks for your help