Googleando el mensaje de error, hallé que está relacionado con Windows Script Host, el cual podría estar deshabilitado. Para verificarlo, basta con abrir una consola de comandos y ejecutar wscript.exe.
- Si se abre un cuadro de dialogo titulado "Configuración de Windows Script Host", WSH está activado y el problema es otro.
- Si se abre un cuadro de error que dice "Acceso a Windows Script Host deshabilitado en este equipo. Póngase en contacto con su administrador para obtener detalles." entonces WSH está desactivado.
Resultó estar habilitado, por lo que el problema no era ese.
Como siguiente paso busqué dentro de la carpeta %TEMP% el log de la instalación. El nombre puede ser bitrock_installer (o alguna variante con números al final), o también puede ser install-postgresql. En mi caso fue el primero. Lo que encontré dentro del log fue:
Log started 10/11/11 at 23:45:22Mirando una de las últimas líneas es posible aislar un poco mejor el problema: No existe ningún motor de secuencia de comandos para la extensión de archivo ".vbs". ¡Nuevo error para Googlear!
Preferred installation mode : qt
Trying to init installer in mode qt
Mode qt successfully initialized
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-8.4 Data Directory. Setting variable iDataDirectory to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-8.4 Base Directory. Setting variable iBaseDirectory to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-8.4 Service ID. Setting variable iServiceName to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-8.4 Service Account. Setting variable iServiceAccount to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-8.4 Super User. Setting variable iSuperuser to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-8.4 Branding. Setting variable iBranding to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-8.4 Version. Setting variable brandingVer to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-8.4 Shortcuts. Setting variable iShortcut to empty value
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\postgresql-8.4 DisableStackBuilder. Setting variable iDisableStackBuilder to empty value
[23:45:31] Existing base directory:
[23:45:31] Existing data directory:
[23:45:31] Using branding: PostgreSQL 8.4
[23:45:31] Using Super User: postgres and Service Account: postgres
[23:45:31] Using Service Name: postgresql-8.4
Executing cscript //NoLogo "C:\Users\Luis\AppData\Local\Temp\postgresql_installer\installruntimes.vbs" "C:\Users\Luis\AppData\Local\Temp\postgresql_installer\vcredist_x86.exe"
Script exit code: 1
Script output:
Error de entrada: No existe ning£n motor de secuencia de comandos para la extensi¢n de archivo ".vbs".
Script stderr:
Program ended with an error exit code
Un error ocurrió ejecutando el instalador del runtime de Microsoft VC++
La solución: Ir a %WINDIR%/inf y buscar el archivo WSH.INF, click derecho e Instalar. Mediante este proceso se asocia un motor con los archivos .vbs. Pero como siempre las cosas no vienen en bandeja de plata... Al ir a esa ruta, ¡el archivo no existía!
Así que una última búsqueda me ayudó a dar con el archivo: WSH.INF - 4Shared. Una vez bajado basta con pegarlo en %WINDIR%/inf y luego instalarlo. Y ya queda solucionado el problema!