BUG #17471: COMSPEC error

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: van(dot)1994(at)hotmail(dot)com
Subject: BUG #17471: COMSPEC error
Date: 2022-04-29 06:45:23
Message-ID: 17471-f37c3a3f2405b38a@postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 17471
Logged by: Van Avetisyan
Email address: van(dot)1994(at)hotmail(dot)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.

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2022-04-29 07:03:04 BUG #17472: Jsonb[] operations not working
Previous Message PG Bug reporting form 2022-04-29 00:05:28 BUG #17470: Installation error