http://bugs.winehq.org/show_bug.cgi?id=30385
Bug #: 30385 Summary: Windows Live Essentials 2011 web installer fails to download packages in background (shell32.SHGetKnownFolderPath missing support for KF_FLAG_DEFAULT_PATH) Product: Wine Version: 1.5.1 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: shell32 AssignedTo: wine-bugs@winehq.org ReportedBy: focht@gmx.net Classification: Unclassified
Hello,
installer log file:
--- snip --- ... Downloader :00000029 (04/08/2012 17:22:39.783) Manager is removing file transfer "Bingbar" from the queue. PkgDownload :00000028 (04/08/2012 17:22:39.783) Download of 'Bingbar' finished successfully. Downloader :00000028 (04/08/2012 17:22:39.783) Completing Request "Bingbar". Cert :00000028 (04/08/2012 17:22:39.834) Verifying signature of file=[C:\users\Public\Application Data\Microsoft\WLSetup\wlt6449.tmp]... Cert :00000028 (04/08/2012 17:22:39.865) Verifying signature of file=[C:\users\Public\Application Data\Microsoft\WLSetup\wlt6449.tmp]... !ERROR! :00000028 (04/08/2012 17:22:40) SOURCE=Decomp, CODE=0x80070057 Leaving ExtractCabFileOutOfXSFile() !ERROR! :00000028 (04/08/2012 17:22:40) SOURCE=Decomp, CODE=0x80070057 Leaving ExtractCabFileOutOfXSCabFile() SecureCache :00000028 (04/08/2012 17:22:40.013) AddPackage(): Deleting file 'C:\users\Public\Application Data\Microsoft\WLSetup\wlt6449.tmp' !ERROR! :00000028 (04/08/2012 17:22:40) SOURCE=SecureCache, CODE=0x80070057 Leaving AddPackage() !ERROR! :00000028 (04/08/2012 17:22:40) SOURCE=PkgDownload, CODE=0x80070057 leaving AddPackageToCache !ERROR! :00000028 (04/08/2012 17:22:40) SOURCE=PkgDownload, CODE=0x80070057 Download 'Bingbar' completed with an error (OnDownloadFinished), _fBackground=0 Task :00000028 (04/08/2012 17:22:40.030) Task(00642F88) ignoring failure 0x80070057 for this task TaskThread :00000028 (04/08/2012 17:22:40.030) TaskThread(00581D38): Incrementing task completed counter for 'OnTaskComplete', Task(00642F88) PackageDownloadTask Bingbar TaskThread :00000028 (04/08/2012 17:22:40.030) TaskThread(00581D38): OnTaskComplete() releasing semaphore for Task(00642F88) PackageDownloadTask Bingbar Task :00000028 (04/08/2012 17:22:40.040) Task(00642F88) completed result=0x1 Engine :0000002E (04/08/2012 17:22:40.040) Overall result = 0x40690 PkgDownload :00000028 (04/08/2012 17:22:40.040) ETW: TraceDownloadState_End - Bing Bar ... --- snip ---
The reason is this trace log part:
--- snip --- 002b:Call shell32.SHGetKnownFolderPath(004220f0,00008400,00000000,014ad984) ret=004567ca 002b:fixme:shell:SHGetKnownFolderPath flags 0x00008400 not supported 002b:Ret shell32.SHGetKnownFolderPath() retval=80070057 ret=004567ca 002b:Call shlwapi.PathFileExistsW(00000000) ret=00456e58 002b:Ret shlwapi.PathFileExistsW() retval=00000000 ret=00456e58 ... --- snip ---
0x8400 = KF_FLAG_CREATE | KF_FLAG_DEFAULT_PATH
Wine doesn't support KF_FLAG_DEFAULT_PATH hence SHGetKnownFolderPath() failure causes downloaded temp files to get deleted again.
MSDN: http://msdn.microsoft.com/en-us/library/windows/desktop/dd378447%28v=vs.85%2...
Source: http://source.winehq.org/git/wine.git/blob/798beb2cb8d07cd76494cd878ecef711c...
--- snip --- 3036 HRESULT WINAPI SHGetKnownFolderPath(REFKNOWNFOLDERID rfid, DWORD flags, HANDLE token, PWSTR *path) 3037 { 3038 HRESULT hr; 3039 WCHAR folder[MAX_PATH]; 3040 int index = csidl_from_id( rfid ); 3041 3042 TRACE("%s, 0x%08x, %p, %p\n", debugstr_guid(rfid), flags, token, path); 3043 3044 *path = NULL; 3045 3046 if (index < 0) 3047 return HRESULT_FROM_WIN32( ERROR_FILE_NOT_FOUND ); 3048 3049 if (flags & KF_FLAG_CREATE) 3050 index |= CSIDL_FLAG_CREATE; 3051 3052 if (flags & KF_FLAG_DONT_VERIFY) 3053 index |= CSIDL_FLAG_DONT_VERIFY; 3054 3055 if (flags & KF_FLAG_NO_ALIAS) 3056 index |= CSIDL_FLAG_NO_ALIAS; 3057 3058 if (flags & KF_FLAG_INIT) 3059 index |= CSIDL_FLAG_PER_USER_INIT; 3060 3061 if (flags & ~(KF_FLAG_CREATE|KF_FLAG_DONT_VERIFY|KF_FLAG_NO_ALIAS|KF_FLAG_INIT)) 3062 { 3063 FIXME("flags 0x%08x not supported\n", flags); 3064 return E_INVALIDARG; 3065 } 3066 3067 hr = SHGetFolderPathW( NULL, index, token, 0, folder ); 3068 if (SUCCEEDED(hr)) 3069 { 3070 *path = CoTaskMemAlloc( (strlenW( folder ) + 1) * sizeof(WCHAR) ); 3071 if (!*path) 3072 return E_OUTOFMEMORY; 3073 strcpyW( *path, folder ); 3074 } 3075 return hr; 3076 } --- snip ---
Regards
http://bugs.winehq.org/show_bug.cgi?id=30385
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, Installer URL| |http://g.live.com/1rewlive4 | |-web/en/wlsetup-web.exe
--- Comment #1 from Anastasius Focht focht@gmx.net 2012-04-08 11:52:33 CDT --- Hello,
filling fields.
Prerequisite: 'bash winetricks win7'
$ du -sh wlsetup-web.exe 1.3M wlsetup-web.exe
$ sha1sum wlsetup-web.exe 140e41b28ae4d1794efb8f3d378cb0efbd137b8c wlsetup-web.exe
$ wine --version wine-1.5.1-197-g73e7346
Regards
https://bugs.winehq.org/show_bug.cgi?id=30385
--- Comment #2 from Austin English austinenglish@gmail.com --- Still missing in wine-1.7.20-102-g889cce4
http://bugs.winehq.org/show_bug.cgi?id=30385
CzBiX gliuwr@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gliuwr@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=30385
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
--- Comment #3 from Sebastian Lackner sebastian@fds-team.de --- There was a patch on the mailinglist recently: http://source.winehq.org/patches/data/105969
Patch wasn't applied (yet), but looks okay besides some minor issues: * No correct git author set * Declaration of 'type' not at the beginning of the function
https://bugs.winehq.org/show_bug.cgi?id=30385
Jactry Zeng jactry92@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jactry92@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=30385
--- Comment #4 from CzBiX gliuwr@gmail.com --- (In reply to Sebastian Lackner from comment #3)
There was a patch on the mailinglist recently: http://source.winehq.org/patches/data/105969
Patch wasn't applied (yet), but looks okay besides some minor issues:
- No correct git author set
- Declaration of 'type' not at the beginning of the function
I update the author name and code issue, please review it. http://source.winehq.org/patches/data/106201
https://bugs.winehq.org/show_bug.cgi?id=30385
Michael Müller michael@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |STAGED CC| |michael@fds-team.de Staged patchset| |https://github.com/wine-com | |pholio/wine-staging/tree/ma | |ster/patches/shell32-Defaul | |t_Path
https://bugs.winehq.org/show_bug.cgi?id=30385
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
https://bugs.winehq.org/show_bug.cgi?id=30385
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Windows Live Essentials |Multiple applications need |2011 web installer fails to |support for |download packages in |shell32.SHGetKnownFolderPat |background |h KF_FLAG_DEFAULT_PATH |(shell32.SHGetKnownFolderPa |option (Windows Live |th missing support for |Essentials 2011 web |KF_FLAG_DEFAULT_PATH) |installer, MediaMonkey | |4.1.x in Vista+ mode)
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello folks,
still present.
Adding another app: MediaMonkey 4.1.x
Download: http://www.mediamonkey.com/download/
Reported in WineHQ user forums: https://forum.winehq.org/viewtopic.php?f=8&t=25277
Only happens in Vista+ mode which the users "forgot" to tell about.
Since leaving out this crucial information is becoming more and more a (bad) habit I suggest forum support/triagers to challenge forum posts/bug reports more, specifically asking for this "tweak" (besides use of outdated Wine versions and recycled prefixes).
* higher version = better (not knowing what this implies) * unknowingly recycled existing Vista/Win7 prefix, which is required for another app (not knowing about prefix isolation)
The app works ok in default 'Windows XP' mode. It doesn't specifically request a higher version during install/run time.
Vendor website:
--- quote --- MediaMonkey for Windows is supported on 32/64 bit versions of Windows 10 (desktop), 8 (desktop), Windows 7, Windows Vista, and Windows XP, but is also known to work on WINE (Linux). Simply double-click the downloaded file to install it. --- quote ---
Trace log:
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/MediaMonkey
$ WINEDEBUG=+tid,+seh,+relay wine ./MediaMonkey.exe >>log.txt 2>&1 ... 0027:Call shell32.SHGetKnownFolderPath(00be4d38,00000400,00000000,0033fcf4) ret=00a91d5a 0027:fixme:shell:SHGetKnownFolderPath flags 0x00000400 not supported 0027:Ret shell32.SHGetKnownFolderPath() retval=80070057 ret=00a91d5a 0027:Call KERNEL32.GetFileAttributesW(013d1d2c L"MediaMonkey") ret=00415ae7 0027:Ret KERNEL32.GetFileAttributesW() retval=ffffffff ret=00415ae7 ... 0027:Call user32.LoadStringW(00400000,0000ff90,0133372c,00000400) ret=0059f411 0027:Ret user32.LoadStringW() retval=0000001a ret=0059f411 ... 0027:Call KERNEL32.WaitForSingleObject(00000090,ffffffff) ret=00420dfa 0027:Ret KERNEL32.WaitForSingleObject() retval=00000000 ret=00420dfa 0027:Call KERNEL32.CompareStringW(00000400,00000001,01382b4c L"default",00000007,01382aec L"default",00000007) ret=00414256 0027:Ret KERNEL32.CompareStringW() retval=00000002 ret=00414256 0027:Call KERNEL32.WideCharToMultiByte(0000fde9,00000000,013c524c L"Unable to create directory",0000001a,0139f42c,0000004f,00000000,00000000) ret=0040badd ... 0027:Call KERNEL32.GetFileAttributesW(012fb0a4 L"\MediaMonkey\Locale\en_US\LC_MESSAGES\default.mo") ret=00415a65 0027:Ret KERNEL32.GetFileAttributesW() retval=ffffffff ret=00415a65 ... 0027:Call KERNEL32.RaiseException(0eedfade,00000001,00000007,0033fc90) ret=00a9787d 0067:Starting thread proc 0x7eb228d0 (arg=0x1d2ff0) 0027:trace:seh:raise_exception code=eedfade flags=1 addr=0x7b8461d9 ip=7b8461d9 tid=0027 0027:trace:seh:raise_exception info[0]=00a9787d 0027:trace:seh:raise_exception info[1]=01383f80 0027:trace:seh:raise_exception info[2]=00000000 0027:trace:seh:raise_exception info[3]=ffdaa494 0027:trace:seh:raise_exception info[4]=f7569000 0027:trace:seh:raise_exception info[5]=0033fce8 0027:trace:seh:raise_exception info[6]=0033fcac 0027:trace:seh:raise_exception eax=7b832d4d ebx=00000000 ecx=0000001c edx=0033fbe4 esi=0033fc90 edi=0033fc50 0027:trace:seh:raise_exception ebp=0033fc28 esp=0033fbc4 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00200287 0027:trace:seh:call_stack_handlers calling handler at 0xa979f3 code=eedfade flags=1 0027:trace:seh:call_stack_handlers handler at 0xa979f3 returned 1 ... 0027:Call KERNEL32.LCMapStringW(0000007f,00000200,013a8264 L"EAccessViolation",00000010,013a82d4,00000010) ret=00413b02 0027:Ret KERNEL32.LCMapStringW() retval=00000010 ret=00413b02 0027:Call KERNEL32.TerminateProcess(ffffffff,0eedfade) ret=004ab1d0 --- snip ---
$ sha1sum MediaMonkey_4.1.9.1764.exe 23296b05e8becaae02f132d687a48bfb55c12aa0 MediaMonkey_4.1.9.1764.exe
$ du -sh MediaMonkey_4.1.9.1764.exe 16M MediaMonkey_4.1.9.1764.exe
$ wine --version wine-1.7.54-179-ga0d0d0d
Regards
https://bugs.winehq.org/show_bug.cgi?id=30385
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=30385
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Fixed by SHA1| |a0c259cf562b32268df86053a5e | |0785b1ad78cc1 Resolution|--- |FIXED
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com --- I tested with MediaMonkey and it's fixed with http://source.winehq.org/git/wine.git/commit/a0c259cf562b32268df86053a5e0785.... Live Essentials 2011 is not available anymore, I'll update url with the one for MediaMonkey.
https://bugs.winehq.org/show_bug.cgi?id=30385
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://g.live.com/1rewlive4 |http://www.mediamonkey.com/ |-web/en/wlsetup-web.exe |download/
https://bugs.winehq.org/show_bug.cgi?id=30385
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.0-rc1.
https://bugs.winehq.org/show_bug.cgi?id=30385
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.8.x
https://bugs.winehq.org/show_bug.cgi?id=30385
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #8 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.7.
https://bugs.winehq.org/show_bug.cgi?id=30385
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.mediamonkey.com/ |https://web.archive.org/web |download/ |/20160117164536/http://e8d3 | |27b5fb.site.internapcdn.net | |/sw/MediaMonkey_4.1.9.1764. | |exe
--- Comment #9 from Anastasius Focht focht@gmx.net --- Hello folks,
adding stable download links via Internet Archive for documentation.
https://web.archive.org/web/20160117164536/http://e8d327b5fb.site.internapcd...
https://www.virustotal.com/gui/file/82918a8862794df03ee070ceebd269a683f8c38e...
$ sha1sum MediaMonkey_4.1.9.1764.exe 23296b05e8becaae02f132d687a48bfb55c12aa0 MediaMonkey_4.1.9.1764.exe
$ du -sh MediaMonkey_4.1.9.1764.exe 16M MediaMonkey_4.1.9.1764.exe
====
Windows Live Essentials 2011 (full installer)
http://web.archive.org/web/20150602053422/http://wl.dlservice.microsoft.com/...
https://www.virustotal.com/gui/file/97218b322465bcd6e94e2d2978025d8044ea3769...
$ sha1sum wlsetup-all.exe 0559c2c85f86094891989e786622d39b7a2041d1 wlsetup-all.exe
$ du -sh wlsetup-all.exe 215M wlsetup-all.exe
Regards