BUG #17471: COMSPEC error - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #17471: COMSPEC error
Date
Msg-id 17471-f37c3a3f2405b38a@postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17471
Logged by:          Van Avetisyan
Email address:      van.1994@hotmail.com
PostgreSQL version: 14.2
Operating system:   Microsoft Windows 10 Pro
Description:

I've tried to install multiple versions of PostgreSQL: 10.20, 11.15, 14.2...
But all of them fails at the beginning with the following error:
"There has been an error.
The environment variable ComSpec does not seem to point to the cmd.exe or
there is a trailing semicolon present. Please fix this variable and restart
installation."

On my system variables I have:
Variable name: ComSpec
VAriable value: C:\Windows\System32\cmd.exe

If I copy this route to windows folder it opens the cmd... 
If I search on CMD: "%COMSPEC%" /C "echo test ok"      it return test ok
If I search on CMD: echo %COMSPEC%     it returns
C:\Windows\System32\cmd.exe

Basically I've tried everything, even change the fsutil 8dot3name... command
from:
https://stackoverflow.com/questions/15287207/problems-installing-postgresql-9-2


But anything is working.


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #17470: Installation error
Next
From: PG Bug reporting form
Date:
Subject: BUG #17472: Jsonb[] operations not working