https://bugs.winehq.org/show_bug.cgi?id=44744
Bug ID: 44744 Summary: Autodesk Fusion 360 need propsys.dll.PSGetPropertyKeyFromName to be installed Product: Wine Version: 3.3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: propsys Assignee: wine-bugs@winehq.org Reporter: gillg02@hotmail.com Distribution: ---
Software Autodesk Fusion 360, needs propsys.dll.PSGetPropertyKeyFromName to be completly installed. Else installer report an error and app is not useable...
I tried to find a workaround, but no solution... A python code is compiled in binary installer and it use code bellow :
[...] for key, val in self._shellprops.items(): variant = propsys.tag_inner_PROPVARIANT() variant.vt = self._comauto.VT_LPWSTR temp = propsys.WSTRING() hr = strdup(val, self._ctypes.byref(temp)) getattr(variant, '__MIDL____MIDL_itf_propsys_0002_00900001').pwszVal = temp if self._comauto.S_OK != hr: self._ctypes.memset(self._ctypes.byref(variant), 0, self._ctypes.sizeof(variant)) propkey = propsys._tagpropertykey() psgetpropertykeyfromname(key, self._ctypes.byref(propkey)) ps.SetValue(self._ctypes.byref(propkey), self._ctypes.byref(variant)) propvariantclear(self._ctypes.byref(variant))
[...] def PSGetPropertyKeyFromName(self): """ Gets the property key for a canonical property name see: https://msdn.microsoft.com/en-us/library/windows/desktop/bb762081(v=vs.85).a... :return: an implementaion of PSGetPropertyKeyFromName """ if not self._psgetpropertykeyfromname: self._psgetpropertykeyfromname = self._ctypes.windll.propsys.PSGetPropertyKeyFromName propsys = self._pso self._psgetpropertykeyfromname.argtypes = [ self._wintypes.LPCWSTR, self._ctypes.POINTER(propsys._tagpropertykey)] return self._psgetpropertykeyfromname
https://bugs.winehq.org/show_bug.cgi?id=44744
--- Comment #1 from GG gillg02@hotmail.com --- Created attachment 60754 --> https://bugs.winehq.org/attachment.cgi?id=60754 Script used by fusion 360 wich crash
Reverse engeneering of python built-in script
https://bugs.winehq.org/show_bug.cgi?id=44744
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, Installer CC| |focht@gmx.net URL| |http://www.appstreaming.aut | |odesk.com/install/app/73e72 | |ada57b7480280f7a6f4a289729f | |/
https://bugs.winehq.org/show_bug.cgi?id=44744
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
https://bugs.winehq.org/show_bug.cgi?id=44744
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #2 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- A stub has been accepted.
Can you please test it again using wine 3.5 once it's been released?
https://bugs.winehq.org/show_bug.cgi?id=44744
--- Comment #3 from GG gillg02@hotmail.com --- Yes ! For sure when 3.5 will be released I will test.
Just one precision, I was curious, but I don't see any new stub of this method here https://source.winehq.org/source/dlls/propsys/
"Dev" branch is not here ?
https://bugs.winehq.org/show_bug.cgi?id=44744
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com --- (In reply to GG from comment #3)
Yes ! For sure when 3.5 will be released I will test.
Just one precision, I was curious, but I don't see any new stub of this method here https://source.winehq.org/source/dlls/propsys/
"Dev" branch is not here ?
I didn't know this was still alive. Better source is https://source.winehq.org/git/wine.git/ which is always using current git.
https://bugs.winehq.org/show_bug.cgi?id=44744
--- Comment #5 from GG gillg02@hotmail.com --- Ok thanks ! :) Good to know.
https://bugs.winehq.org/show_bug.cgi?id=44744
--- Comment #6 from GG gillg02@hotmail.com --- I compiled and test last verion, but it's not really better. Error seems to be a bit different, but always around PSGetPropertyKeyFromName.
Last log lines, before python exception :
007b:fixme:msvcrt:__clean_type_info_names_internal (0x3b9b720) stub 007b:fixme:ntdll:EtwEventUnregister (deadbeef) stub. 0066:fixme:propsys:PSGetPropertyKeyFromName L"System.AppUserModel.ID", 0x29f4ef40 0066:fixme:shell:propertystore_SetValue (0x43548b20)->(0x29f4ef40 0x2cf315b0): stub 0066:err:shell:IShellLinkW_fnQueryInterface -- Interface: E_NOINTERFACE
And python exception :
File "S:\SRC\Core\Neutron\Installer\Streamer\src\adsk\dls\streamer\windows\native.py", line 160, in Save File "S:\SRC\Core\Neutron\Installer\Streamer\src\adsk\dls\streamer\windows\native.py", line 139, in __SaveShellProps _ctypes.COMError: (-2147467263, None, (None, None, None, 0, None))
Certainly because PSGetPropertyKeyFromName is not implemented and pointer does not contain any value...
https://bugs.winehq.org/show_bug.cgi?id=44744
--- Comment #7 from GG gillg02@hotmail.com --- Maybe we should implement a full list of properties based on https://msdn.microsoft.com/en-us/library/windows/desktop/ff728872(v=vs.85).a...
https://bugs.winehq.org/show_bug.cgi?id=44744
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |cbd9354862fa044932b5a0cb7c4 | |c8b141e0a4e3f
--- Comment #8 from Fabian Maurer dark.shadow4@web.de --- I think that's a different bug. PSGetPropertyKeyFromName relates logging is
0066:fixme:propsys:PSGetPropertyKeyFromName L"System.AppUserModel.ID", > 0x29f4ef40
0066:fixme:shell:propertystore_SetValue (0x43548b20)->(0x29f4ef40 0x2cf315b0): stub
According to https://msdn.microsoft.com/en-us/library/windows/desktop/dd391569(v=vs.85).a... it looks like a stub is fine here.
It can't find an interface in IShellLinkW_fnQueryInterface, that shouldn't have anything to do with PSGetPropertyKeyFromName though. The log doesn't contain enough information though, can you provide a WINEDEBUG=+shell log for that? In a new bug report, I'm marking this one fixed.
https://bugs.winehq.org/show_bug.cgi?id=44744
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com --- IShellLinkW is most likely related. You use PSGetPropertyKeyFromName to get PROPERTYKEY that you later use with SetValue, to set shortcut property.
https://bugs.winehq.org/show_bug.cgi?id=44744
--- Comment #10 from GG gillg02@hotmail.com --- Last traces with debug +shell
005b:trace:shell:SHELL32_ParseNextElement -- pidl=0x1017b550 ret=0x00000000 005b:trace:shell:ISF_Desktop_fnParseDisplayName (0xff32b90)->(-- ret=0x00000000) 005b:trace:shell:ShellLink_GetVolumeInfo r = 1 type 3 serial 00000000 name L"" 005b:trace:shell:IShellLinkW_fnSetIconLocation (0x1016f9e0)->(path=L"C:\users\guigi\Local Settings\Application Data\Autodesk\webdeploy\production\6a0c9611291d45bb9226980209917c3d\Fusion360.ico" iicon=0) 005b:trace:shell:IShellLinkW_fnQueryInterface (0x1016f9e0)->({886d8eeb-8cf2-4446-8d02-cdba1dbdcf99}) 005b:trace:shell:IShellLinkW_fnAddRef (0x1016f9e0)->(count=1) 005b:trace:shell:IShellLinkW_fnQueryInterface -- Interface: (0x142ef10)->(0x1016fa20) 005b:trace:shell:SHStrDupW L"AutodeskInc.Fusion360"->(0xff333e0) 005b:fixme:propsys:PSGetPropertyKeyFromName L"System.AppUserModel.ID", 0x1017a550 005b:fixme:shell:propertystore_SetValue (0x1016f9e0)->(0x1017a550 0x101764a0): stub 005b:trace:shell:IShellLinkW_fnQueryInterface (0x1016f9e0)->({df0b3d60-548f-101b-8e65-08002b2bd119}) 005b:err:shell:IShellLinkW_fnQueryInterface -- Interface: E_NOINTERFACE
Do you think I should open a new bug ? About which function ?
https://bugs.winehq.org/show_bug.cgi?id=44744
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |22210
--- Comment #11 from Nikolay Sivov bunglehead@gmail.com --- (In reply to GG from comment #10)
005b:fixme:propsys:PSGetPropertyKeyFromName L"System.AppUserModel.ID", 0x1017a550 005b:fixme:shell:propertystore_SetValue (0x1016f9e0)->(0x1017a550 0x101764a0): stub 005b:trace:shell:IShellLinkW_fnQueryInterface (0x1016f9e0)->({df0b3d60-548f-101b-8e65-08002b2bd119}) 005b:err:shell:IShellLinkW_fnQueryInterface -- Interface: E_NOINTERFACE
Do you think I should open a new bug ? About which function ?
Last QueryInterface is for ISupportErrorInfo, and that's most likely a result of failed SetValue method. You can try to return S_OK from it. We already have a bug 22210 for this problem.
https://bugs.winehq.org/show_bug.cgi?id=44744
--- Comment #12 from GG gillg02@hotmail.com --- It's a success !
If I return S_OK on propertystore_SetValue() and in propertystore_Commit() setup is completly successfull !
https://bugs.winehq.org/show_bug.cgi?id=44744
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #13 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.5.
https://bugs.winehq.org/show_bug.cgi?id=44744
GG gillg02@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=44866
https://bugs.winehq.org/show_bug.cgi?id=44744 Bug 44744 depends on bug 22210, which changed state.
Bug 22210 Summary: HTML-Kit Tools trial installer produces an error message in Win7 mode (IShellLink object needs to provide IPropertyStore interface) https://bugs.winehq.org/show_bug.cgi?id=22210
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
https://bugs.winehq.org/show_bug.cgi?id=44744
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |3.0.x
https://bugs.winehq.org/show_bug.cgi?id=44744
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.0.x |---
--- Comment #14 from Michael Stefaniuc mstefani@winehq.org --- Removing the 3.0.x milestone from bugs included in 3.0.2.