UsbDk icon indicating copy to clipboard operation
UsbDk copied to clipboard

error on install msi

Open Marthianfred opened this issue 3 years ago • 35 comments

msi stuck on error

image

any help?

Marthianfred avatar Nov 22 '21 21:11 Marthianfred

Operating system? UsbDk version?

ybendito avatar Nov 23 '21 08:11 ybendito

Operating system? UsbDk version?

Got same issue. USBDK 22, Windows 10 21H1 x64

team-orangeBlue avatar Nov 29 '21 19:11 team-orangeBlue

Let's try to get logs from the MSI create c:\log directory from admin command line msiexec /i /L*V "C:\log\usbdk.log" let's look what we can see in usbdk.log

ybendito avatar Nov 30 '21 17:11 ybendito

Let's try to get logs from the MSI create c:\log directory from admin command line msiexec /i /L*V "C:\log\usbdk.log" let's look what we can see in usbdk.log

Here's a first-install (that magically started working) and a post-reboot. "UsbDkController" is still not a command, though. postrebootusbdk.log usbdk.log

team-orangeBlue avatar Dec 02 '21 20:12 team-orangeBlue

I have this same issue. I installed it before, wanted to reinstall it and now the installer is stuck. Any solutions?

Hallohannes123 avatar Apr 30 '23 08:04 Hallohannes123

I have this same issue. I installed it before, wanted to reinstall it and now the installer is stuck. Any solutions?

Please provide the log and information regarding the OS.

create c:\log directory
from admin command line
msiexec /i /L*V "C:\log\usbdk.log"
let's look what we can see in usbdk.log

YanVugenfirer avatar Apr 30 '23 08:04 YanVugenfirer

Please provide the log and information regarding the OS.

I am on Windows 11 Beta Insider build. After installing my usb devices stopped working, and safe mode etc. didn't fix it. I am now resetting my pc, I'll try again afterwards and provide logs if it fails again

Hallohannes123 avatar Apr 30 '23 10:04 Hallohannes123

After resetting windows it installed without any issues. Not sure what happened usbdk.log I created this log before USB stopped working entirely.

Hallohannes123 avatar Apr 30 '23 12:04 Hallohannes123

In the logs it mentions

MSI (s) (5C:AC) [11:16:21:319]: SECREPAIR: New Hash Database creation complete.
MSI (s) (5C:AC) [11:16:21:328]: SECREPAIR: Failed to open the file:C:\Program for computing its hash. Error:2

This seems odd. "C:\Program" sounds like some space key confusion?

Hallohannes123 avatar Apr 30 '23 22:04 Hallohannes123

I also have this problem, but in most cases, the progress bar is not moved, and then the system cannot be closed properly after executing the cancel installation (windows7 Professional sp1, usbdk1.0.22) usbdk.log

Jevon-V avatar Jun 30 '23 08:06 Jevon-V

@Jevon-V For Win7: do you have https://learn.microsoft.com/en-us/security-updates/SecurityAdvisories/2015/3033929?redirectedfrom=MSDN installed?

ybendito avatar Jul 01 '23 06:07 ybendito

yep, it is already installed

Jevon-V avatar Jul 01 '23 06:07 Jevon-V

@Jevon-V 1.0.21 behaves the same?

ybendito avatar Jul 01 '23 11:07 ybendito

ye, the effect is the same

Jevon-V avatar Jul 04 '23 01:07 Jevon-V

@Jevon-V I suggest to try manual install, see https://github.com/daynix/UsbDk/wiki/Troubleshooting-UsbDk-installation

ybendito avatar Jul 04 '23 05:07 ybendito

I tried to unpack the msi and manually execute the command to install it, but the effect was still the same. After canceling, the restart could not be performed normally

Jevon-V avatar Jul 04 '23 06:07 Jevon-V

@ybendito According to the code debugging, installation progress is stuck in m_wdfCoinstaller.PostDeviceInstall(infFilePath);

Jevon-V avatar Jul 04 '23 07:07 Jevon-V

@Jevon-V which WDF you have on your Win7 (check the version of drivers\wdf01000.sys)?

ybendito avatar Jul 04 '23 07:07 ybendito

@ybendito 1.11.9200.16648

Jevon-V avatar Jul 04 '23 08:07 Jevon-V

@Jevon-V Interesting. I'd expect the WDF installation should just check the version and exit. Are you able to build the UsbDkHelper.dll? If yes, I'll send you a patch to try.

ybendito avatar Jul 04 '23 09:07 ybendito

@ybendito yep, I can compile

Jevon-V avatar Jul 04 '23 09:07 Jevon-V

@Jevon-V 0001-UsbDkHelper-avoid-WDF-installation.patch Apply this patch and build the UsbDkHelper for your system (32 or 64), just replace it under \Program Files\UsbDk ... and retry the install using UsbDkController

ybendito avatar Jul 04 '23 09:07 ybendito

UsbDk Runtime Library>.\UsbDkController.exe -i Installing UsbDk driver UsbDk_InstallDriver install failure UsbDk driver installation failed

ybendito avatar Jul 04 '23 10:07 ybendito

@ybendito oh, sry, I commented before that the reason why m_wdfCoinstaller.PostDeviceInstall(infFilePath) did not block error was that there was security software left on. I just used your patch to compile and still blocked. I found that the UpperFilters of registry System\CurrentControlSet\Control\Class\{36FC9E60-C465-11CF-8056-444553540000} are usbfilter(AMD USB Filter Driver). Whether to uninstall it to install the usbdk.

Jevon-V avatar Jul 04 '23 10:07 Jevon-V

@Jevon-V In general there is no problem of coexistence among several filters. Let's try rebootRequired = true (see the note inside my patch)

ybendito avatar Jul 04 '23 10:07 ybendito

@ybendito \UsbDk Runtime Library>.\UsbDkController.exe -i Installing UsbDk driver UsbDk_InstallDriver UsbDk driver installation succeeded but reboot is required in order to make it functional

Jevon-V avatar Jul 05 '23 01:07 Jevon-V

@Jevon-V Sure, (see the comments in the patch) in this case the installer just creates the service and registers it in the registry, but does not renumerate the devices. Reenumeration and inclusion of UsbDk into each USB device's stack happens on reboot. If you reboot the machine after that - does the UsbDk works? (for example UsbDkController -n)

ybendito avatar Jul 05 '23 06:07 ybendito

yep, usbdk can be used normally, ty so much

Jevon-V avatar Jul 05 '23 06:07 Jevon-V

@Jevon-V OK, so it looks li9ke there are 2 problems on your Win7:

  • wdf update (probably)
  • explicit reenumeration of the devices Can you attach the output of "UsbDkController -n"? Would you mind to help in understanding what is the problem 2? If yes:
  • Does 'UsbDkController -u' works now?
  • If you rebuild the UsbDkHelper.dll with 'rebootRequired = true', does the 'UsbDkController -i' work now?

ybendito avatar Jul 05 '23 06:07 ybendito

@ybendito "UsbdkController -u" is always working properly, and "UsbdkController -i" can also run normally after rebuild UsbDkHelper.dll with rebootRequired = true.

the UsbContrtoller -n output: Enumerate USB devices Found 3 USB devices: 0. FilterID: 2, Port: 1, ID: 0951:1666, Configs: 1, Speed: 3 USB\VID_0951&PID_1666 E0D55E55CC73E641292C229D Descriptor for configuration #0: size 32

  1. FilterID: 3, Port: 4, ID: 17ef:608d, Configs: 1, Speed: 2 USB\VID_17EF&PID_608D 4 Descriptor for configuration #0: size 34
  2. FilterID: 3, Port: 5, ID: 17ef:6099, Configs: 1, Speed: 2 USB\VID_17EF&PID_6099 5 Descriptor for configuration #0: size 34

Jevon-V avatar Jul 05 '23 07:07 Jevon-V