[Bug 45455] Cetus3D-Software (3D printer) UP Studio 2.4.x driver installation fails due to missing ' setupapi.dll.DriverStoreFindDriverPackageW' stub

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Jul 15 09:01:54 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=45455

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|-unknown                    |setupapi
            Summary|Installation of             |Cetus3D-Software (3D
                   |Cetus3D-Software crashes    |printer) UP Studio 2.4.x
                   |                            |driver installation fails
                   |                            |due to missing
                   |                            |'setupapi.dll.DriverStoreFi
                   |                            |ndDriverPackageW' stub
           Keywords|                            |download, Installer
     Ever confirmed|0                           |1
                 CC|                            |focht at gmx.net
             Status|UNCONFIRMED                 |NEW
         Depends on|                            |34989
                URL|                            |https://www.tiertime.com/do
                   |                            |wnloads/software/

--- Comment #1 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

confirming. It doesn't crash for me but hangs with Wine 3.12

It's actually a dupe of bug 34989 (Caphyon 'Advanced Installer' technology
based installer). To make this ticket still useful, creating a dependency and
using it for the next issue which about failure to install USB drivers.

--- snip ---
$ WINEDEBUG=+seh,+loaddll,+process,+relay,+msi wine
./UP_Studio_x86_2.4.22.351.exe >>log.txt 2>&1
...
0035:Call KERNEL32.CreateProcessW(00000000,00c1df0c
L"\"Z:\\home\\focht\\Downloads\\UP_Studio_x86_2.4.22.351.exe\" /i
\"C:\\users\\focht\\Application Data\\Beijing Tiertime corporation\\UP Studio
2.4.22.351\\install\\UP Studio x86.msi\" CHAINERUIPROCESSID=\"46Chainer\"
EXECUTEACTION=\"INSTALL\" SECONDSEQUENCE=\"1\" CLIENTPROCESSID=\"46\"
ADDLOCAL=\"AI32"...,00000000,00000000,00000000,00000410,00000000,00000000,00c1d9e0,00c1d9d0)
ret=7e4132d3
...
004c:Call KERNEL32.__wine_kernel_init() ret=7bc6d604
0035:Ret  KERNEL32.CreateProcessW() retval=00000001 ret=7e4132d3 
...
0049:trace:msi:ACTION_CustomAction Handling custom action L"MsiInstallDrivers"
(2c01 L"DIFxAppA.dll" L"InstallDriverPackages")
0049:warn:msi:ACTION_CustomAction msidbCustomActionTypeNoImpersonate not
handled
0049:trace:msi:msi_get_property 0x177828 L"MsiInstallDrivers" (nil) 0x33e9a4 
...
0049:trace:msi:msi_get_property returning
L"2.1.1\00015\0001{09D60680-3164-4045-B99D-0978980A9E27}\0001C:\\Program
Files\\UP Studio\\win32\\Driver\\\00010\00012\0001UP Studio\0001Beijing
Tiertime corporation" for property L"MsiInstallDrivers"
0049:trace:msi:msi_set_property 0x177828 L"CustomActionData"
L"2.1.1\00015\0001{09D60680-3164-4045-B99D-0978980A9E27}\0001C:\\Program
Files\\UP Studio\\win32\\Driver\\\00010\00012\0001UP Studio\0001Beijing
Tiertime corporation" 130
0049:trace:msi:msi_get_property 0x177828 L"CustomActionData" (nil) 0x33e968 
...
006a:trace:msi:__wine_msi_call_dll_function calling "InstallDriverPackages" 
...
006a:Call msi.MsiRecordSetStringW(00000002,00000000,0056f3e8 L"DIFXAPP: ENTER:
InstallDriverPackages()") ret=006bff8c 
...
006a:Call msi.MsiRecordSetStringW(00000002,00000000,0056f3e4 L"DIFXAPP: INFO:
'CustomActionData' property 'DIFxApp Version' is '2.1.1'.") ret=006bff8c 
...
006a:Call msi.MsiRecordSetStringW(00000002,00000000,0056f3d8 L"DIFXAPP: INFO:
'CustomActionData' property 'UI Level' is '5'.") ret=006bff8c 
...
006a:Call msi.MsiRecordSetStringW(00000002,00000000,0056f3cc L"DIFXAPP: INFO:
'CustomActionData' property 'componentId' is
'{09D60680-3164-4045-B99D-0978980A9E27}'.") ret=006bff8c 
...
006a:Call msi.MsiRecordSetStringW(00000002,00000000,0056f3c0 L"DIFXAPP: INFO:
'CustomActionData' property 'componentPath' is 'C:\\Program Files\\UP
Studio\\win32\\Driver\\'.") ret=006bff8c 
...
006a:Call msi.MsiRecordSetStringW(00000002,00000000,0056f3ac L"DIFXAPP: INFO:
user SID of user performing the install is 'S-1-5-21-0-0-0-1000'.")
ret=006bff8c 
...
006a:Call msi.MsiRecordSetStringW(00000002,00000000,0056f36c L"DIFXAPP: INFO:  
ENTER:  DriverPackageInstallW") ret=006bff8c 
...
006a:Call KERNEL32.CreateFileW(00174b70 L"C:\\Program Files\\UP
Studio\\win32\\Driver\\WinusbFM.inf",80000000,00000001,00000000,00000003,00000000,00000000)
ret=f6a1aeb3
006a:Ret  KERNEL32.CreateFileW() retval=0000009c ret=f6a1aeb3 
...
006a:Call KERNEL32.MultiByteToWideChar(00000000,00000000,00580000
"[Version]\r\nSignature = \"$Windows NT$\"\r\nClass =
FreeMotion\r\nClassGuid={3b6e9075-4ae4-417c-8471-66b3db349183}\r\nProvider =
%ProviderName%\r\nDriverVer=01/19/2017,1.1.3.0\r\nCatalogFile=WinusbFM.cat\r\n\r\n;
================== Class section
==================\r\n\r\n[ClassInstall32]\r\nAddreg=F"...,00003655,0017d838,00003655)
ret=f6a1a9e1
006a:Ret  KERNEL32.MultiByteToWideChar() retval=00003655 ret=f6a1a9e1 
...
006a:Call setupapi.SetupFindFirstLineW(00174be8,001768a0 L"Version",00184fa0
L"DriverPackageType",0056fa00) ret=006d4ed1
006a:Ret  setupapi.SetupFindFirstLineW() retval=00000000 ret=006d4ed1 
...
006a:Call setupapi.SetupFindFirstLineW(00174be8,001768a0 L"Version",00184fd8
L"CatalogFile",0056fa00) ret=006d4ed1
006a:Ret  setupapi.SetupFindFirstLineW() retval=00000001 ret=006d4ed1 
...
006a:Call setupapi.pSetupGetGlobalFlags() ret=006d36cb
006a:fixme:setupapi:pSetupGetGlobalFlags stub
006a:Ret  setupapi.pSetupGetGlobalFlags() retval=00000000 ret=006d36cb
006a:Call setupapi.pSetupSetGlobalFlags(00000000) ret=006d36e7
006a:Ret  setupapi.pSetupSetGlobalFlags() retval=00000000 ret=006d36e7 
...
006a:Call msvcrt._wcsicmp(00174958 L"C:\\Program Files\\UP
Studio\\win32\\Driver\\WinusbFM.inf",00176a58
L"C:\\windows\\Inf\\WinusbFM.inf") ret=006c5490
006a:Ret  msvcrt._wcsicmp() retval=fffffff9 ret=006c5490 
...
006a:Call KERNEL32.LoadLibraryW(006ba3a0 L"setupapi.dll") ret=006d4973
006a:Ret  KERNEL32.LoadLibraryW() retval=f69f0000 ret=006d4973
006a:Call KERNEL32.GetProcAddress(f69f0000,006ba3e8
"DriverStoreFindDriverPackageW") ret=006d4993
006a:Ret  KERNEL32.GetProcAddress() retval=00000000 ret=006d4993
006a:Call KERNEL32.GetLastError() ret=006d499f
006a:Ret  KERNEL32.GetLastError() retval=0000007f ret=006d499f
006a:Call KERNEL32.FreeLibrary(f69f0000) ret=006d4a0b
006a:Ret  KERNEL32.FreeLibrary() retval=00000001 ret=006d4a0b 
...
006a:Call msi.MsiRecordSetStringW(00000002,00000000,0056f368 L"DIFXAPP: INFO:  
RETURN: DriverPackageInstallW  (0x65B)") ret=006bff8c 
...
006a:Call msi.MsiRecordSetStringW(00000002,00000000,0056f3e4 L"DIFXAPP: ERROR:
encountered while installing driver package 'C:\\Program Files\\UP
Studio\\win32\\Driver\\WinusbFM.inf'") ret=006bff8c 
...
006a:Call msi.MsiRecordSetStringW(00000002,00000000,0056f3e4 L"DIFXAPP: ERROR:
InstallDriverPackages failed with error 0x65B") ret=006bff8c 
...
006a:Call msi.MsiRecordSetStringW(00000002,00000000,0056f3e0 L"DIFXAPP: RETURN:
InstallDriverPackages() 1627 (0x65B)") ret=006bff8c 
...
006a:Ret  msi.__wine_msi_call_dll_function() retval=00000643 ret=7efed5b7 
...
0049:err:msi:execute_script Execution of script 0 halted; action
L"[2.1.1\00015\0001{09D60680-3164-4045-B99D-0978980A9E27}\0001C:\\Program
Files\\UP Studio\\win32\\Driver\\\00010\00012\0001UP Studio\0001Beijing
Tiertime
corporation<=>S-1-5-21-0-0-0-1000<=>{C92628E7-08FF-4DE7-893D-5F1009FC277D}]MsiInstallDrivers"
returned 1603 
--- snip ---

'WinusbFM.inf':

--- snip ---
[Version]
Signature = "$Windows NT$"
Class = FreeMotion
ClassGuid={3b6e9075-4ae4-417c-8471-66b3db349183}
Provider = %ProviderName%
DriverVer=01/19/2017,1.1.3.0
CatalogFile=WinusbFM.cat

; ================== Class section ==================

[ClassInstall32]
Addreg=FreeMotionClassReg

[FreeMotionClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-1

; ========== Manufacturer/Models sections ===========

[Manufacturer]
%ProviderName% = FreeMotion_WinUSB,NTx86,NTamd64,NTia64

[FreeMotion_WinUSB.NTx86]
%USB\FreeMotion.DeviceDesc% =USB_Install, USB\VID_4745&PID_0001
%USB\FreeMotion.DeviceDesc% =USB_Install, USB\VID_4745&PID_2775
%USB\FreeMotion.DeviceDesc% =USB_Install, USB\VID_4745&PID_2776
...
; =================== Installation ===================

;[1]
[USB_Install]
Include=winusb.inf
Needs=WINUSB.NT

;[2]
[USB_Install.Services]
Include=winusb.inf
AddService=WinUSB,0x00000002,WinUSB_ServiceInstall

;[3]
[WinUSB_ServiceInstall]
DisplayName     = %FreeMotion_SvcDesc%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\winusb.sys

;[4]
[USB_Install.Wdf]
KmdfService=WINUSB, WinUsb_Install

[WinUSB_Install]
KmdfLibraryVersion=1.9

;[5]
[USB_Install.HW]
AddReg=Dev_AddReg

[Dev_AddReg]
HKR,,DeviceInterfaceGUIDs,0x10000,"{7d7b43b9-09aa-4aa5-bf07-b03a94841722}"

;[6]
[USB_Install.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01009.dll,WdfCoInstaller","WinUSBCoInstaller2.dll"

[CoInstallers_CopyFiles]
WinUSBCoInstaller2.dll
WdfCoInstaller01009.dll

[DestinationDirs]
CoInstallers_CopyFiles=11

; ================= Source Media Section =====================
;[7]

[SourceDisksNames]
1 = %DISK_NAME%,,,\i386
2 = %DISK_NAME%,,,\amd64
3 = %DISK_NAME%,,,\ia64

[SourceDisksFiles.x86]
WinUSBCoInstaller2.dll=1
WdfCoInstaller01009.dll=1

[SourceDisksFiles.amd64]
WinUSBCoInstaller2.dll=2
WdfCoInstaller01009.dll=2

[SourceDisksFiles.ia64]
WinUSBCoInstaller2.dll=3
WdfCoInstaller01009.dll=3
; =================== Strings ===================

[Strings]
ProviderName="TierTime"
USB\FreeMotion.DeviceDesc="3D Printer at FreeMotion"
FreeMotion_SvcDesc="Free Motion USB"
DISK_NAME="FM Driver Disk"
ClassName="Free Motion Card"
--- snip ---

The installer uses Microsoft DIFxApp - Driver Install Frameworks for
Applications:

https://kobyk.wordpress.com/2008/10/21/installing-filter-drivers-with-difxapp-and-a-wix-v3-msi/

If the app really needs working USB hardware drivers you are out of luck here.
Wine isn't an operating system. The Linux kernel needs to properly support the
device first.
When contemplating a hardware purchase with intention to run under Linux
environment *always* do a research before. Ask the vendor about Linux support
and other user's experiences with the product in a Linux environment to avoid
surprise moments.

$ sha1sum UP_Studio_x86_2.4.22.351.exe 
9ef910e38e19e094f4abee407fd712d3f30f01e8  UP_Studio_x86_2.4.22.351.exe

$ du -sh UP_Studio_x86_2.4.22.351.exe 
127M    UP_Studio_x86_2.4.22.351.exe

$ wine --version
wine-3.12-110-g414fe80aeb

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list