Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on install msi #107

Open
Marthianfred opened this issue Nov 22, 2021 · 35 comments
Open

error on install msi #107

Marthianfred opened this issue Nov 22, 2021 · 35 comments

Comments

@Marthianfred
Copy link

msi stuck on error

image

any help?

@ybendito
Copy link
Collaborator

Operating system? UsbDk version?

@team-orangeBlue
Copy link

team-orangeBlue commented Nov 29, 2021

Operating system? UsbDk version?

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

@ybendito
Copy link
Collaborator

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

@team-orangeBlue
Copy link

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

@Hallohannes123
Copy link

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

@YanVugenfirer
Copy link
Collaborator

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

@Hallohannes123
Copy link

Hallohannes123 commented Apr 30, 2023

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
Copy link

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

@Hallohannes123
Copy link

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?

@Jevon-V
Copy link

Jevon-V commented Jun 30, 2023

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

@ybendito
Copy link
Collaborator

ybendito commented Jul 1, 2023

@Jevon-V
Copy link

Jevon-V commented Jul 1, 2023

yep, it is already installed

@ybendito
Copy link
Collaborator

ybendito commented Jul 1, 2023

@Jevon-V 1.0.21 behaves the same?

@Jevon-V
Copy link

Jevon-V commented Jul 4, 2023

ye, the effect is the same

@ybendito
Copy link
Collaborator

ybendito commented Jul 4, 2023

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

@Jevon-V
Copy link

Jevon-V commented Jul 4, 2023

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
Copy link

Jevon-V commented Jul 4, 2023

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

@ybendito
Copy link
Collaborator

ybendito commented Jul 4, 2023

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

@Jevon-V
Copy link

Jevon-V commented Jul 4, 2023

@ybendito 1.11.9200.16648

@ybendito
Copy link
Collaborator

ybendito commented Jul 4, 2023

@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.

@Jevon-V
Copy link

Jevon-V commented Jul 4, 2023

@ybendito yep, I can compile

@ybendito
Copy link
Collaborator

ybendito commented Jul 4, 2023

@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
Copy link
Collaborator

ybendito commented Jul 4, 2023

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

@Jevon-V
Copy link

Jevon-V commented Jul 4, 2023

@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.

@ybendito
Copy link
Collaborator

ybendito commented Jul 4, 2023

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

@Jevon-V
Copy link

Jevon-V commented Jul 5, 2023

@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

@ybendito
Copy link
Collaborator

ybendito commented Jul 5, 2023

@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)

@Jevon-V
Copy link

Jevon-V commented Jul 5, 2023

yep, usbdk can be used normally, ty so much

@ybendito
Copy link
Collaborator

ybendito commented Jul 5, 2023

@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?

@Jevon-V
Copy link

Jevon-V commented Jul 5, 2023

@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

@ybendito
Copy link
Collaborator

ybendito commented Jul 5, 2023

@Jevon-V
Sorry, my mistake
If you rebuild the UsbDkHelper.dll with 'rebootRequired = false', does the 'UsbDkController -i' work now?

@Jevon-V
Copy link

Jevon-V commented Jul 5, 2023

@ybendito No, it'll keep blocking

@ybendito
Copy link
Collaborator

ybendito commented Jul 5, 2023

@Jevon-V Blocking or failing?

@Jevon-V
Copy link

Jevon-V commented Jul 5, 2023

@ybendito
It's mostly blocking, sometimes errors occur, and when the installation goes wrong, performing the uninstallation will also report errors

@weskerty
Copy link

image
same?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants