https://bugs.winehq.org/show_bug.cgi?id=39936
Bug ID: 39936 Summary: Toad Data Modeler Freeware MSI package fails to install Product: Wine Version: 1.8 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: jhansonxi@gmail.com Distribution: Ubuntu
Xubuntu 14.04 x86_64, AMD Phenom 9550, GeForce GTX 750Ti with Nvidia 340.96 driver. Wine 1.8 (git) Toad Data Modeler Freeware 5.4.8.1
msiexec /i ToadDataModeler_Freeware_5.4.8.1_x86_En.msi
Aborts with message "Installation ended prematurely because of an error."
Wine messages: fixme:msi:AutomationObject_GetIDsOfNames Unknown member L"NextDialog", clsid {000c109e-0000-0000-c000-000000000046} fixme:msi:event_spawn_wait_dialog doing nothing err:msi:msi_dialog_create_controls no handler for element type L"Billboard" fixme:msi:AutomationObject_GetIDsOfNames Unknown member L"majorMinorVersion", clsid {000c109e-0000-0000-c000-000000000046} fixme:msi:AutomationObject_GetIDsOfNames Unknown member L"WshShell", clsid {000c109e-0000-0000-c000-000000000046} fixme:msi:AutomationObject_GetIDsOfNames Unknown member L"stamp", clsid {000c109e-0000-0000-c000-000000000046} fixme:msi:AutomationObject_GetIDsOfNames Unknown member L"checkSum", clsid {000c109e-0000-0000-c000-000000000046} fixme:msi:AutomationObject_GetIDsOfNames Unknown member L"i", clsid {000c109e-0000-0000-c000-000000000046} fixme:msi:AutomationObject_GetIDsOfNames Unknown member L"keyValue", clsid {000c109e-0000-0000-c000-000000000046} fixme:msi:AutomationObject_GetIDsOfNames Unknown member L"Key", clsid {000c109e-0000-0000-c000-000000000046} err:msi:ITERATE_Actions Execution halted, action L"InstallFinalize" returned 1603 err:msi:ITERATE_Actions Execution halted, action L"ExecuteAction" returned 1603
Workaround is to extract it manually with jsMSIx.exe and move the Dell folder to Program Files.
https://bugs.winehq.org/show_bug.cgi?id=39936
Jeff D. Hanson jhansonxi@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #1 from Jeff D. Hanson jhansonxi@gmail.com --- Closing this one out. The problem still exists with v5.4.8.1 on Wine Staging 2.0-rc1 but doesn't occur with v5.4.9.2 or the newer 6.x series. Older versions are not publicly available so I'm assuming it was a bug with the installer.
https://bugs.winehq.org/show_bug.cgi?id=39936
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |INVALID CC| |mstefani@redhat.com
--- Comment #2 from Michael Stefaniuc mstefani@redhat.com --- Thanks for following up on this. I'm changing the resolution to INVALID though as the bug wasn't in Wine but in the app.
https://bugs.winehq.org/show_bug.cgi?id=39936
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Jeff Zaroyko jeffz@jeffz.name --- Closing invalid.
https://bugs.winehq.org/show_bug.cgi?id=39936
--- Comment #4 from Jeff D. Hanson jhansonxi@gmail.com --- Created attachment 56663 --> https://bugs.winehq.org/attachment.cgi?id=56663 Messages from Wine Staging 2.0-rc3
https://bugs.winehq.org/show_bug.cgi?id=39936
Jeff D. Hanson jhansonxi@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |--- Status|CLOSED |UNCONFIRMED
--- Comment #5 from Jeff D. Hanson jhansonxi@gmail.com --- Xubuntu 16.04 x86_64, AMD Phenom 9550, GeForce GTX 750Ti with Nvidia 340.98 driver. Windows version: Windows XP Wine Staging
Found a copy I had and tried again with Wine Staging 2.0-rc3. Same failure. I uploaded the installer: http://www.mediafire.com/file/zt8djnjbjs8bw14/ToadDataModeler_freeware_5.4.8...
The app itself has a hard-coded expiration date. Changing the system date may workaround the limit.
https://bugs.winehq.org/show_bug.cgi?id=39936
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |scrrun CC| |focht@gmx.net Keywords| |download, Installer Summary|Toad Data Modeler Freeware |Toad Data Modeler v5.4.8.1 |MSI package fails to |fails to install (needs |install |'Scriptlet.TypeLib' object, | |CLSID | |'{06290BD5-48AA-11D2-8432-0 | |06008C3FBFC}') Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #6 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming.
--- snip --- $ WINEDEBUG=+tid,+seh,+relay,+msi wine msiexec -i ToadDataModeler_Freeware_5.4.8.1_x86_En.msi >>log.txt 2>&1 ... 0051:trace:msi:ACTION_CustomAction Handling custom action L"WriteMachineID" (c05 L"Callwritemachineid" L"Main") ... 005d:Starting thread proc 0x7ecaebdc (arg=0x8ee27c) 005d:trace:msi:ScriptThread custom action (5d) started 005d:trace:msi:ACTION_CallScript function L"Main", script L"function KeyExist(AKey)\r\n{\r\n var shell = new ActiveXObject("Wscript.Shell");\r\n try\r\n {\r\n shell.RegRead(AKey);\r\n }\t\r\n catch(e)\r\n {\r\n return false;\r\n }\r\n return true; \r\n}\r\n\r\nfunction OldKey()\r\n{\r\n return "HKLM\\Software\\Quest Software\\TDM\\""... ... 005d:trace:msi:call_script Calling function L"Main" ... 005d:Call ole32.CLSIDFromProgID(0094ad68 L"Scriptlet.TypeLib",0071df1c) ret=f6e9da4b 005d:Call KERNEL32.FindActCtxSectionStringW(00000000,00000000,00000007,0094ad68 L"Scriptlet.TypeLib",0071de68) ret=7ea8c228 005d:Ret KERNEL32.FindActCtxSectionStringW() retval=00000000 ret=7ea8c228 ... 005d:Call ntdll.RtlInitUnicodeString(0071dd80,0094a068 L"Scriptlet.TypeLib\CLSID") ret=7ea87e75 005d:Ret ntdll.RtlInitUnicodeString() retval=0071dd80 ret=7ea87e75 005d:Call ntdll.NtOpenKey(0071ddc8,02000000,0071dd88) ret=7ea87e8a 005d:Ret ntdll.NtOpenKey() retval=c0000034 ret=7ea87e8a ... 005d:Ret ole32.CLSIDFromProgID() retval=800401f3 ret=f6e9da4b ... 0051:err:msi:ITERATE_Actions Execution halted, action L"WriteMachineID" returned 1603 --- snip ---
The extracted JScript code:
--- snip --- function KeyExist(AKey) { var shell = new ActiveXObject("Wscript.Shell"); try { shell.RegRead(AKey); } catch(e) { return false; } return true; }
function OldKey() { return "HKLM\Software\Quest Software\TDM\"; }
function Key() { return "HKLM\Software\Dell\TDM\"; }
function Main() {
var typeLib = new ActiveXObject("Scriptlet.TypeLib"); var newGuid = typeLib.Guid;
if (!KeyExist(Key()+"MachineID")) {
var shell = new ActiveXObject("Wscript.Shell"); if (KeyExist(OldKey()+"MachineID")) { gu = shell.RegRead(OldKey()+"MachineID"); } else { gu = newGuid; } shell.RegWrite( Key()+"MachineID", gu, "REG_SZ" ); } } --- snip ---
Simple test:
--- snip --- $ echo "var typeLib = new ActiveXObject("Scriptlet.TypeLib");" > test.js $ WINEDEBUG=+tid,+seh,+jscript wine wscript test.js --- snip ---
'winetricks -q wsh57' works around.
https://blogs.technet.microsoft.com/heyscriptingguy/2005/02/21/how-can-i-cre...
$ sha1sum ToadDataModeler_freeware_5.4.8.1_x86_En.zip 8f6823775d369401ff9c3b936ce805e8071646a7 ToadDataModeler_freeware_5.4.8.1_x86_En.zip
$ du -sh ToadDataModeler_freeware_5.4.8.1_x86_En.zip 72M ToadDataModeler_freeware_5.4.8.1_x86_En.zip
$ wine --version wine-2.0-rc3
Regards
https://bugs.winehq.org/show_bug.cgi?id=39936
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |bunglehead@gmail.com
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com --- Interesting, I'll take a look.
https://bugs.winehq.org/show_bug.cgi?id=39936
--- Comment #8 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 56694 --> https://bugs.winehq.org/attachment.cgi?id=56694 patch
Please try this one.
https://bugs.winehq.org/show_bug.cgi?id=39936
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|scrrun |scrobj
--- Comment #9 from Anastasius Focht focht@gmx.net --- Hello Nikolay,
the patch is sufficient to let the app installer successfully finish.
Thanks.
--- snip --- $ WINEDEBUG=+tid,+seh,+relay,+msi,+scrobj wine msiexec -i ToadDataModeler_Freeware_5.4.8.1_x86_En.msi >>log.txt 2>&1 ... 005d:trace:msi:ACTION_CallScript function L"Main", script L"function KeyExist(AKey)\r\n{\r\n var shell = new ActiveXObject("Wscript.Shell");\r\n try\r\n {\r\n shell.RegRead(AKey);\r\n }\t\r\n catch(e)\r\n {\r\n return false;\r\n }\r\n return true; \r\n}\r\n\r\nfunction OldKey()\r\n{\r\n return "HKLM\\Software\\Quest Software\\TDM\\""... 0 ... 005d:trace:scrobj:scriptlet_typelib_QueryInterface (0x9491e8, {a6ef9860-c720-11d0-9337-00a0c90dcaa9}, 0x71e230) 005d:trace:scrobj:scriptlet_typelib_Invoke (0x9491e8, 9, {00000000-0000-0000-0000-000000000000}, 0, 2, 0x71e234, 0x71e220, 0x942208, 0x71e21c) ... 005d:trace:scrobj:scriptlet_typelib_get_GUID (0x9491e8, 0x71dec0) 005d:Call ole32.CoCreateGuid(0071dd40) ret=f707705f ... 005d:Ret ole32.CoCreateGuid() retval=00000000 ret=f707705f ... 005d:Call ole32.CLSIDFromProgID(009494f0 L"Wscript.Shell",0071df1c) ret=f6e66a4b ... 005d:Call advapi32.RegGetValueW(80000002,0094aaa0 L"Software\Dell\TDM",00948f82 L"MachineID",0000ffff,0071d658,00000000,0071d654) ret=f709a09d 005d:Ret advapi32.RegGetValueW() retval=00000002 ret=f709a09d ... 005d:trace:msi:ACTION_CallScript script returned 0 005d:trace:msi:MsiCloseHandle 1 005d:trace:msi:ScriptThread custom action (5d) returned 0 ... --- snip ---
I've created a new component 'scrobj' to track issues related to Windows script components runtime.
Regards
https://bugs.winehq.org/show_bug.cgi?id=39936
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bunglehead@gmail.com |wine-bugs@winehq.org
--- Comment #10 from Nikolay Sivov bunglehead@gmail.com --- Committed:
899a249039879be338efb23976abe6a16d2e6846 5555b3a9d3b9b81810bfcaf1fdce61cf07216828 387dee7ff2ec8c271acb14c0df87ed586e2b0376 99a9f5313870d64d51f5f241eb740c0093f854db 0fa152791f324d992c4f3716b9b0165576ceba45
Please retest.
https://bugs.winehq.org/show_bug.cgi?id=39936
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |0fa152791f324d992c4f3716b9b | |0165576ceba45
--- Comment #11 from Nikolay Sivov bunglehead@gmail.com --- Marking fixed, 0fa152791f324d992c4f3716b9b0165576ceba45.
https://bugs.winehq.org/show_bug.cgi?id=39936
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #12 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.8.