PostgreSQL Installation Error: The environment variable COMSPEC does not seem to point to the cmd.exe

CasaDelGato 5 Reputation points
2023-02-14T19:55:45.5933333+00:00

When installing PostGreSQL, the installer displays the splash screen and then fails with an error msg stating that the ComSpec doesn't point to cmd.exe.
Mine does "ComSpec=C:\Windows\system32\cmd.exe"

Other forums have given answers that didn't help.

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-02-16T11:13:04.1433333+00:00

    Hi,

    Thank you for posting your query.

    Kindly follow the steps provided below to resolve your query.

    Please run this command and post the output here:

    reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"

    Go to this link for your reference and additional troubleshooting procedures https://answers.microsoft.com/en-us/windows/forum/all/postgresql-installation-error-the-environment/c48bc66c-8e90-442c-9478-68edd06b31da

    If the answer is helpful kindly click "ACCEPT AS ANSWER" and up vote it.

    1 person found this answer helpful.
    0 comments No comments

  2. Limitless Technology 44,751 Reputation points
    2023-02-16T11:13:16.1133333+00:00

    Double post

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.