http://bugs.winehq.org/show_bug.cgi?id=35968
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- You sure it's a vbscript problem? From attached log I see some WMI problems like that:
--- 0031:fixme:wbemdisp:factory_QueryInterface interface {0000011a-0000-0000-c000-000000000046} not implemented 0031:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80004002 0031:err:ole:create_server class {172bddf8-ceea-11d1-8b05-00600806d9b6} not registered 0031:fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported 0031:err:ole:CoGetClassObject no class object {172bddf8-ceea-11d1-8b05-00600806d9b6} could be created for context 0x15 0031:fixme:wbemdisp:WinMGMTS_ParseDisplayName (0x184ea8 L"winmgmts:\\.\root\cimv2" 0x33e91c 0x33e910) 0031:fixme:wbemdisp:factory_QueryInterface interface {0000011a-0000-0000-c000-000000000046} not implemented 0031:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80004002 0031:err:ole:create_server class {172bddf8-ceea-11d1-8b05-00600806d9b6} not registered 0031:fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported 0031:err:ole:CoGetClassObject no class object {172bddf8-ceea-11d1-8b05-00600806d9b6} could be created for context 0x15 0031:fixme:wbemdisp:WinMGMTS_ParseDisplayName (0x184ea8 L"winmgmts:\\.\root\cimv2" 0x33eb5c 0x33eb50) ---
From installer log it looks like cscript fails with //nologo switch:
--- Executing cscript //NoLogo "C:\Program Files\PostgreSQL\9.3/installer/server/initcluster.vbs" "NT AUTHORITY\NetworkService" "postgres" "****" "C:\Program Files\PostgreSQL\9.3" "C:\Program Files\PostgreSQL\9.3\data" 5432 "DEFAULT" 0 Script exit code: 2 ---