postgres installer fails with comspec error even though it is correct

From: "Venkatesh Gudi (vgudi)" <vgudi(at)cisco(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: postgres installer fails with comspec error even though it is correct
Date: 2016-10-28 22:11:35
Message-ID: D4391B26.B125%vgudi@cisco.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I am trying to install postgres on windows 7 64 bit machine.
I get a COMSPEC error message.
I checked comspec using %COMSPEC%" /C "echo test ok and it looks okay.

Following is the detailed error message.

Executing C:\Users\tempuser\AppData\Local\Temp/postgresql_installer_f998810adb/temp_check_comspec.bat
Script exit code: 1

Script output:

Script stderr:
'"C:\Users\tempuser\AppData\Local\Temp\POA330~1\TEMP_C~1.BAT"' is not recognized as an internal or external command,
operable program or batch file.

Error running C:\Users\tempuser\AppData\Local\Temp/postgresql_installer_f998810adb/temp_check_comspec.bat : '"C:\Users\tempuser\AppData\Local\Temp\POA330~1\TEMP_C~1.BAT"' is not recognized as an internal or external command,
operable program or batch file.
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.

Please let me know how to fix this.

Thanks,
Venkatesh

Browse pgsql-general by date

  From Date Subject
Next Message Samuel Williams 2016-10-28 23:31:51 initdb createuser commands
Previous Message Guyren Howe 2016-10-28 21:25:23 Re: SELECT DISTINCT ON removes results