PostgreSQL 9 install on Windows: “Unable to write inside TEMP environment path.”

后端 未结 22 2104
时光说笑
时光说笑 2020-12-15 04:30

I am attempting to install PostgreSQL 9 (postgresql-9.0.3-1-windows.exe) on my WinXP machine and get the following error at the start:

22条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-15 04:52

    In the temp directory, my bitrock_installer.log file had the following:

    Executing cscript //NoLogo "C:\Users\MyUser\Local 
    Settings\postgresql_installer_1b4eec8be6\prerun_checks.vbs"
    Script exit code: 1
    
    Script output:
    Input Error: Can not find script file "C:\Users\MyUser\Local 
    Settings\postgresql_installer_1b4eec8be6\prerun_checks.vbs".
    

    Turns out that Windows has a symlink between the following directories:

    • C:\Users\cpetrie\Local Settings\Temp
    • C:\Users\cpetrie\AppData\Local\Temp

    For some reason my "TMP" and "TEMP" user variables were referencing the "Local Settings" path instead of the "AppData" path. Changing this fixed my install issue.

提交回复
热议问题