http://bugs.winehq.org/show_bug.cgi?id=18096
Summary: setupapi.SetupDiGetINFClassW needs more flesh Product: Wine Version: 1.1.19 Platform: Other URL: http://www.microsoft.com/downloads/details.aspx?FamilyID =1dacdb3d-50d1-41b2-a107-fa75ae960856 OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: setupapi AssignedTo: wine-bugs@winehq.org ReportedBy: focht@gmx.net
Hello,
while testing older VC++ installers I encountered a setupapi insufficiency in the sub-installer "Microsoft Windows CE Platform Manager 4.0" of Embedded VC++ 4.0 (with SP2):
The sub-installer can be run manually:
wine msiexec /i "platman_sdk.msi" PLATMAN_INSTALLDIR="C:\Program Files\Common Files\Microsoft Shared\Windows CE Tools\Platman"
Fortunately the installer is very noisy about its doings :-)
--- snip --- 0009:trace:msi:HANDLE_CustomType1 Calling function L"InstallDevice" from L"C:\windows\temp\msife67.tmp" ... 0023:trace:msi:DllThread custom action (23) started 0023:trace:msi:ACTION_CallDllFunction {947ad330-d83b-4c78-a7ef-9000a732efca} 0023:trace:msi:DllGetClassObject {ba26e6fa-4f27-4f56-953a-3f90272018aa} {00000001-0000-0000-c000-000000000046} 0xa3e844 0023:trace:msi:MsiCF_CreateInstance 0x76cf02e0 (nil) {56d58b64-8780-4c22-a8bc-8b0b29e4a9f8} 0xa3e840 0 ... 0023:trace:msi:ACTION_CallDllFunction calling L"InstallDevice" ... 0023:Call KERNEL32.OutputDebugStringW(00a3e04c L" InstallDevice: Found CustomActionData: 'C:\Program Files\Common Files\Microsoft Shared\Windows CE Tools\Platman\bin\vpcappsv.inf;VPCsystem'\n") ret=10001e80 ... 0023:Call KERNEL32.OutputDebugStringW(00a3e048 L" InstallDevice: Installing from INF: 'C:\Program Files\Common Files\Microsoft Shared\Windows CE Tools\Platman\bin\vpcappsv.inf' Hardware ID: 'VPCsystem'\n") ret=10001e80 ... 0023:Call KERNEL32.OutputDebugStringW(00c500a0 L" _InstallDevice: Before memcpy\n") ret=1000145f ... 0023:Call KERNEL32.OutputDebugStringW(00c50070 L" _InstallDevice: Before GetFullPathName\n") ret=1000145f ... 0023:Call KERNEL32.GetFullPathNameW(00c50150 L"C:\Program Files\Common Files\Microsoft Shared\Windows CE Tools\Platman\bin\vpcappsv.inf",00000059,00c50070,00000000) ret=10001af8 0023:Ret KERNEL32.GetFullPathNameW() retval=00000058 ret=10001af8 ... 0023:Call KERNEL32.OutputDebugStringW(00c51f40 L" _InstallDevice: Before FindFirstFile\n") ret=1000145f ... 0023:Call KERNEL32.FindFirstFileW(00c50150 L"C:\Program Files\Common Files\Microsoft Shared\Windows CE Tools\Platman\bin\vpcappsv.inf",00a3e5fc) ret=10001b15 0023:Ret KERNEL32.FindFirstFileW() retval=007a3f10 ret=10001b15 ... 0023:Call KERNEL32.OutputDebugStringW(00c51f30 L" FindExistingDevice: Before SetupDiGetClassDevs\n") ret=1000145f ... 0023:Ret setupapi.SetupDiGetClassDevsW() retval=007a5f58 ret=100014f1 0023:Call KERNEL32.GetLastError() ret=100013db 0023:Ret KERNEL32.GetLastError() retval=00000000 ret=100013db ... 0023:Call KERNEL32.OutputDebugStringW(00c51f30 L" FindExistingDevice: Before SetupDiEnumDeviceInfo\n") ret=1000145f ... 0023:Call setupapi.SetupDiEnumDeviceInfo(007a5f58,00000000,00a3e5b4) ret=10001547 ... 0023:Ret setupapi.SetupDiEnumDeviceInfo() retval=00000000 ret=10001547 ... 0023:Call KERNEL32.OutputDebugStringW(00c51f40 L" FindExistingDevice: Before SetupDiDestroyDeviceInfoList\n") ret=1000145f ... 0023:Call setupapi.SetupDiDestroyDeviceInfoList(007a5f58) ret=10001709 ... 0023:Ret setupapi.SetupDiDestroyDeviceInfoList() retval=00000001 ret=10001709 ... 0023:Call KERNEL32.OutputDebugStringW(00c51f20 L" _InstallDevice: Before InstallRootEnumeratedDriver\n") ret=1000145f ... 0023:Call KERNEL32.OutputDebugStringW(00c51f20 L" InstallRootEnumeratedDriver: Before SetupDiGetINFClass\n") ret=1000145f ... 0023:Call setupapi.SetupDiGetINFClassW(00c50070 L"C:\Program Files\Common Files\Microsoft Shared\Windows CE Tools\Platman\bin\vpcappsv.inf",00a3e560,00a3e58c,00000020,00000000) ret=1000178b 0023:fixme:setupapi:SetupDiGetINFClassW L"C:\Program Files\Common Files\Microsoft Shared\Windows CE Tools\Platman\bin\vpcappsv.inf" 0xa3e560 0xa3e58c 32 (nil) 0023:Ret setupapi.SetupDiGetINFClassW() retval=00000000 ret=1000178b 0023:Call KERNEL32.GetLastError() ret=100013db 0023:Ret KERNEL32.GetLastError() retval=00000000 ret=100013db ... 0023:Call KERNEL32.OutputDebugStringW(00c51f50 L"SetupDiGetINFClass() failed: No additional information is available.\n") ret=1000145f ... 0023:Call KERNEL32.OutputDebugStringW(00c51f40 L"InstallRootEnumeratedDriver() failed: No additional information is available.\n") ret=1000145f ... 0023:Ret KERNEL32.InterlockedDecrement() retval=00000000 ret=10008256 0023:Call KERNEL32.OutputDebugStringW(00a3e04c L" InstallDevice: InstalledDevice returned hr=80004005\n") ret=10001e80 ... 0023:Call KERNEL32.OutputDebugStringW(00a3e04c L" InstallDevice: Installation failed\n") ret=10001e80 ... 0023:trace:msi:DllThread custom action (23) returned 1603 --- snip ---
--- snip dll/setupapi/stubs.c --- BOOL WINAPI SetupDiGetINFClassW(PCWSTR inf, LPGUID class_guid, PWSTR class_name, DWORD size, PDWORD required_size) { FIXME("%s %p %p %d %p\n", debugstr_w(inf), class_guid, class_name, size, required_size); return FALSE; } --- snip dll/setupapi/stubs.c ---
Regards
http://bugs.winehq.org/show_bug.cgi?id=18096
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #1 from Anastasius Focht focht@gmx.net 2009-04-18 09:55:01 --- Hello,
added dependency to bug 5322 (main installer). The usual dcom98 "workarounds" (which tend to mess up WINEPREFIX) don't work here hence I added another method to appdb (which also works for VC++ 6 installers). Not for faint-hearted people ;-)
Regards
http://bugs.winehq.org/show_bug.cgi?id=18096
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Installer
http://bugs.winehq.org/show_bug.cgi?id=18096
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |xerox_xerox2000@yahoo.co.uk Ever Confirmed|0 |1
--- Comment #2 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2009-12-04 13:26:28 --- confirrming
http://bugs.winehq.org/show_bug.cgi?id=18096
--- Comment #3 from Austin English austinenglish@gmail.com 2010-10-05 12:57:15 CDT --- http://source.winehq.org/git/wine.git/?a=commitdiff;h=803b81c1b7e299692c18f7...
and
http://source.winehq.org/git/wine.git/?a=commitdiff;h=05a1416c9324dfee9fb0ff...
are related, but it still fails for me in git.
http://bugs.winehq.org/show_bug.cgi?id=18096
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |05a1416c9324dfee9fb0ff88547 | |18fda46d9a0bb Status|NEW |RESOLVED URL|http://www.microsoft.com/do |http://download.cnet.com/Mi |wnloads/details.aspx?Family |crosoft-eMbedded-Visual-C/3 |ID=1dacdb3d-50d1-41b2-a107- |000-2212_4-10108490.html |fa75ae960856 | Resolution| |FIXED Summary|setupapi.SetupDiGetINFClass |Microsoft Windows CE |W needs more flesh |Platform Manager 4.0 | |sub-installer of Embedded | |VC++ 4.0 fails | |(setupapi.SetupDiGetINFClas | |sW needs more flesh)
--- Comment #4 from Anastasius Focht focht@gmx.net 2013-05-01 04:55:47 CDT --- Hello Austin,
--- quote --- but it still fails for me in git. --- quote ---
sure, but that's another bug (SetupDiCallClassInstaller).
Microsoft download link vanished (as usual) but CNET has a full download available here: http://download.cnet.com/Microsoft-eMbedded-Visual-C/3000-2212_4-10108490.ht...
The sub-installer can be run manually as mentioned in my initial report.
--- snip --- ... WINEDEBUG=+tid,+seh,+loaddll,+setupapi,+debugstr,+relay wine msiexec /i "platman_sdk.msi" PLATMAN_INSTALLDIR=":\Program Files\Common Files\Microsoft Shared\Windows CE Tools\Platman" >>log.txt 2>&1 ... 0042:warn:debugstr:OutputDebugStringA " InstallRootEnumeratedDriver: Before SetupDiGetINFClass\n" ... 0042:Call setupapi.SetupDiGetINFClassW(004d1da0 L"Z:\home\focht\Downloads\:\Program Files\Common Files\Microsoft Shared\Windows CE Tools\Platman\bin\vpcappsv.inf",04e0e554,04e0e580,00000020,00000000) ret=1000178b 0042:Call KERNEL32.GetFileAttributesW(004d1da0 L"Z:\home\focht\Downloads\:\Program Files\Common Files\Microsoft Shared\Windows CE Tools\Platman\bin\vpcappsv.inf") ret=f737354f 0042:Ret KERNEL32.GetFileAttributesW() retval=00000020 ret=f737354f 0042:Call KERNEL32.GetPrivateProfileStringW(f739799a L"Version",f7397986 L"Signature",00000000,04e0e228,00000104,004d1da0 L"Z:\home\focht\Downloads\:\Program Files\Common Files\Microsoft Shared\Windows CE Tools\Platman\bin\vpcappsv.inf") ret=f737362c 0042:Ret KERNEL32.GetPrivateProfileStringW() retval=00000009 ret=f737362c 0042:Call KERNEL32.lstrcmpiW(04e0e228 L"$Chicago$",f73978cc L"$Chicago$") ret=f7373655 0042:Ret KERNEL32.lstrcmpiW() retval=00000000 ret=f7373655 0042:Call KERNEL32.GetPrivateProfileStringW(f739799a L"Version",f73978e0 L"ClassGUID",00000000,04e0e228,00000104,004d1da0 L"Z:\home\focht\Downloads\:\Program Files\Common Files\Microsoft Shared\Windows CE Tools\Platman\bin\vpcappsv.inf") ret=f73736a7 0042:Ret KERNEL32.GetPrivateProfileStringW() retval=00000026 ret=f73736a7 0042:Call rpcrt4.UuidFromStringW(04e0e22a L"4d36e97d-e325-11ce-bfc1-08002be10318",04e0e554) ret=f73736f5 0042:Ret rpcrt4.UuidFromStringW() retval=00000000 ret=f73736f5 0042:Call KERNEL32.GetPrivateProfileStringW(f739799a L"Version",f73978f4 L"Class",00000000,04e0e228,00000104,004d1da0 L"Z:\home\focht\Downloads\:\Program Files\Common Files\Microsoft Shared\Windows CE Tools\Platman\bin\vpcappsv.inf") ret=f73737b2 0042:Ret KERNEL32.GetPrivateProfileStringW() retval=00000006 ret=f73737b2 0042:Ret setupapi.SetupDiGetINFClassW() retval=00000001 ret=1000178b ... ---snip ---
Marking this fixed by commit http://source.winehq.org/git/wine.git/commit/05a1416c9324dfee9fb0ff8854718fd...
Thanks Stefan.
Regards
http://bugs.winehq.org/show_bug.cgi?id=18096
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2013-05-10 13:41:34 CDT --- Closing bugs fixed in 1.5.30.
http://bugs.winehq.org/show_bug.cgi?id=18096
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Hardware|Other |x86 OS|other |Linux
https://bugs.winehq.org/show_bug.cgi?id=18096
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://download.cnet.com/Mi |https://web.archive.org/web |crosoft-eMbedded-Visual-C/3 |/20201008100829/https://dow |000-2212_4-10108490.html |nload.microsoft.com/downloa | |d/C/3/F/C3F8B58B-9753-4C2E- | |8B96-2DFE3476A2F7/eVC4.exe