https://bugs.winehq.org/show_bug.cgi?id=35966
Bug ID: 35966 Summary: postgresql 9.3.4-3 fails to install (cscript/vbscript) Product: Wine Version: 1.7.16 Hardware: x86 URL: http://www.postgresql.org/download/windows/ OS: Linux Status: NEW Keywords: download, Installer Severity: minor Priority: P2 Component: vbscript Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
There's an error about not being able to write to the TEMP directory, and this in terminal: fixme:cscript:wWinMain (0x7ee70000 (nil) L"//NoLogo C:\users\austin\Temp\postgresql_installer_4c3040fd40\prerun_checks.vbs" 1) forwarding to wscript
WINEDEBUG=tid,cscript,wscript,vbscript doesn't show much: austin@aw25 ~ $ WINEDEBUG=tid,cscript,wscript,vbscript wine postgresql-9.3.4-3-windows.exe 003b:fixme:font:freetype_SelectFont Untranslated charset 255 003b:fixme:iphlpapi:GetExtendedTcpTable module classes not fully supported 003b:fixme:iphlpapi:GetExtendedTcpTable module classes not fully supported 003b:fixme:iphlpapi:GetExtendedTcpTable module classes not fully supported 003b:fixme:iphlpapi:GetExtendedTcpTable module classes not fully supported 003b:fixme:ole:RemUnknown_QueryInterface No interface for iid {00000019-0000-0000-c000-000000000046} 003b:fixme:imm:ImmReleaseContext (0x2007e, 0x9e5f930): stub 002b:fixme:cscript:wWinMain (0x7ee70000 (nil) L"//NoLogo C:\users\austin\Temp\postgresql_installer_5670405110\prerun_checks.vbs" 1) forwarding to wscript 002c:trace:wscript:wWinMain (0x7ee60000 (nil) L"/B //NoLogo C:\users\austin\Temp\postgresql_installer_5670405110\prerun_checks.vbs" 1)
winetricks wsh57 gets past it
https://bugs.winehq.org/show_bug.cgi?id=35966
--- Comment #1 from Austin English austinenglish@gmail.com --- austin@aw25 ~ $ sha1sum postgresql-9.3.4-3-windows.exe d8fd1733ba5c7d491eb78da6bbc37b9e85a7fd9f postgresql-9.3.4-3-windows.exe austin@aw25 ~ $ du -h postgresql-9.3.4-3-windows.exe 51M postgresql-9.3.4-3-windows.exe austin@aw25 ~ $ wine --version wine-1.7.16-135-g7f311fb
https://bugs.winehq.org/show_bug.cgi?id=35966
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |35967
https://bugs.winehq.org/show_bug.cgi?id=35966
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |35968
http://bugs.winehq.org/show_bug.cgi?id=35966
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com
--- Comment #2 from Vijay Kamuju infyquest@gmail.com --- This is because wscript.exe does not implement Host_CreateObject in wine
https://bugs.winehq.org/show_bug.cgi?id=35966
--- Comment #3 from Austin English austinenglish@gmail.com --- https://source.winehq.org/git/wine.git/commitdiff/e9aae93a6b16acd784126c8656... gets rid of the cscript fixme, but the problem remains.
https://bugs.winehq.org/show_bug.cgi?id=35966
--- Comment #4 from Vijay Kamuju infyquest@gmail.com --- I checked the vbs file as mentioned in the above comment, the CreateObject is not implemented for these executables in wine
https://bugs.winehq.org/show_bug.cgi?id=35966
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com
--- Comment #5 from Jacek Caban jacek@codeweavers.com --- I sent a CreateObject patch:
http://source.winehq.org/patches/data/103933
but looking at those logs, it seems like the failure is much sooner (probably missing -NoLogo argument support).
https://bugs.winehq.org/show_bug.cgi?id=35966
--- Comment #6 from Austin English austinenglish@gmail.com --- (In reply to Jacek Caban from comment #5)
I sent a CreateObject patch:
http://source.winehq.org/patches/data/103933
but looking at those logs, it seems like the failure is much sooner (probably missing -NoLogo argument support).
Yeah. After 6617f27004039860ac5d487c5ec0e112890deaed the only line in the debug output is: 0037:trace:wscript:wWinMain (0x7ee60000 (nil) L"//NoLogo C:\users\austin\Temp\postgresql_installer_a14d9272b8\prerun_checks.vbs" 1)
http://bugs.winehq.org/show_bug.cgi?id=35966
--- Comment #7 from Vijay Kamuju infyquest@gmail.com --- It needs implementation of th WshEnvironent Object in wshom.ocx I believe that the code for the vbs file is here https://github.com/three-plus-three/tpt_env_amd64/blob/master/postgresql/ins... I think it needs the wshom:WshShell3_get_Environment and IWshEnvironment Object implementation in wshom.ocx
http://bugs.winehq.org/show_bug.cgi?id=35966
--- Comment #8 from Vijay Kamuju infyquest@gmail.com --- more info on the WshShell.Environment([strType]) http://www.devguru.com/technologies/wsh/17409
http://bugs.winehq.org/show_bug.cgi?id=35966
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Vijay Kamuju from comment #7)
I think it needs the wshom:WshShell3_get_Environment and IWshEnvironment Object implementation in wshom.ocx
Does wscript work now? How did you test that?
http://bugs.winehq.org/show_bug.cgi?id=35966
--- Comment #10 from Vijay Kamuju infyquest@gmail.com --- run the script (in comment #7) manually in wine using wscript. no it does not it gives the same error, saying "Unable to write inside TEMP environment variable path. "
http://bugs.winehq.org/show_bug.cgi?id=35966
--- Comment #11 from Nikolay Sivov bunglehead@gmail.com --- With a patch I just sent that makes /nologo part work, it goes further and does actually create WshSysEnv variable. Later it fails in vbscript code to call this part:
--- strSystemRoot = WshSysEnv("TEMP") ---
relevant fixme is :
--- 0036:trace:vbscript:interp_set_ident L"WshSysEnv" 0036:trace:vbscript:assign_ident creating variable L"WshSysEnv" 0036:trace:wshom:WshEnvironment_AddRef (0x142150) ref = 2 0036:trace:wshom:WshEnvironment_Release (0x142150) ref = 1 0036:trace:vbscript:interp_string 0036:trace:vbscript:interp_icall 0036:fixme:vbscript:do_icall arguments not implemented, 9 0036:warn:vbscript:exec_script Failed 800a01bd ---
P.S. I added more output to do_icall(), 9 is VT_DISPATCH type of 'v' variant.
http://bugs.winehq.org/show_bug.cgi?id=35966
--- Comment #12 from Vijay Kamuju infyquest@gmail.com --- The VT_DISPATCH should call the WshEnvironment_get_Item to get the env variable "TEMP" value. This also means that the WshEnvironment struct should be completed by adding a key value pair implementation to store the Environment Variable That is we need a partial implementation of the WshEnvironment class in Wine
http://bugs.winehq.org/show_bug.cgi?id=35966
--- Comment #13 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Vijay Kamuju from comment #12)
The VT_DISPATCH should call the WshEnvironment_get_Item to get the env variable "TEMP" value.
Obviously it should eventually come to Invoke() with DISPID_VALUE presumably, I have no idea how to do this right.
This also means that the WshEnvironment struct should be completed by adding a key value pair implementation to store the Environment Variable That is we need a partial implementation of the WshEnvironment class in Wine
That's not a problem, once get_Item() is actually called.
http://bugs.winehq.org/show_bug.cgi?id=35966
--- Comment #14 from Vijay Kamuju infyquest@gmail.com --- I think Jacek might be of help here, since he has implemented most of the functionality in vbscript
http://bugs.winehq.org/show_bug.cgi?id=35966
--- Comment #15 from Jacek Caban jacek@codeweavers.com --- Patch sent: http://source.winehq.org/patches/data/105657
http://bugs.winehq.org/show_bug.cgi?id=35966
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |e73bd253ea4e72d0ceb58741051 | |55fb99e6f3ea5 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #16 from Jacek Caban jacek@codeweavers.com --- The fix is in Git. The next problem is unimplemented WshEnvironment_get_Item.
https://bugs.winehq.org/show_bug.cgi?id=35966
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.23.