我已经尝试过之前提出的建议,但是没有任何效果。我尝试了以下解决方案:https://www.youtube.com/watch?v=h6HRGFJvzzw 我还尝试通过http://1stopit.blogspot.com/2011/01/postgresql-83-and-84-fails-to-install.html启用WSH 但是所有这些都不能解决问题,仍然会出现相同的错误。
我的位锁安装程序日志如下。操作系统是Windows 7(64位)
Log started 08/17/2018 at 00:59:05
Preferred installation mode : qt
Trying to init installer in mode qt
Mode qt successfully initialized
Executing C:\Users\Abhinav\AppData\Local\Temp/postgresql_installer_2b07efb6c7/temp_check_comspec.bat
Script exit code: 0
Script output:
"test ok"
Script stderr:
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Data Directory. Setting variable iDataDirectory to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Base Directory. Setting variable iBaseDirectory to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Service ID. Setting variable iServiceName to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Service Account. Setting variable iServiceAccount to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Super User. Setting variable iSuperuser to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Branding. Setting variable iBranding to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Version. Setting variable brandingVer to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 Shortcuts. Setting variable iShortcut to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-x64-9.5 DisableStackBuilder. Setting variable iDisableStackBuilder to empty value
[00:59:08] Existing base directory:
[00:59:08] Existing data directory:
[00:59:08] Using branding: PostgreSQL 9.5
[00:59:08] Using Super User: postgres and Service Account: NT AUTHORITY\NetworkService
[00:59:08] Using Service Name: postgresql-x64-9.5
Executing cscript //NoLogo "C:\Users\Abhinav\AppData\Local\Temp\postgresql_installer_2b07efb6c7\prerun_checks.vbs"
Script exit code: 1
Script output:
CScript Error: Can't find script engine "VBScript" for script "C:\Users\Abhinav\AppData\Local\Temp\postgresql_installer_2b07efb6c7\prerun_checks.vbs".
Script stderr:
Program ended with an error exit code
Error running cscript //NoLogo "C:\Users\Abhinav\AppData\Local\Temp\postgresql_installer_2b07efb6c7\prerun_checks.vbs": Program ended with an error exit code