pbatard / libwdi

Windows Driver Installer library for USB devices
GNU General Public License v3.0
1.9k stars 466 forks source link

Driver Installation: FAILED (System policy has been modified to reject unsigned drivers) #273

Closed yuhsiangsu closed 1 year ago

yuhsiangsu commented 2 years ago

Hi,

I keep receiving driver installation failed message (System policy has been modified to reject unsigned drivers).

Zadig 2.7.765
Windows 10 Enterprise, 64-bit (Build 19042.1826)
ini file 'zadig.ini' not found in '\\nask.man.ac.uk\home$\Downloads' - default parameters will be used
default driver set to 'WinUSB'
0 devices found.
1 device found.
libwdi:debug [wdi_create_list] Hardware ID: USB\VID_1915&PID_7777&REV_0053
libwdi:debug [wdi_create_list] Compatible ID: USB\Class_FF&SubClass_FF&Prot_00
libwdi:debug [wdi_create_list] Driverless USB device (0): USB\VID_1915&PID_7777\09580F32B9
libwdi:debug [wdi_create_list] Device description: 'Crazyradio PA USB Dongle'
Using inf name: Crazyradio_PA_USB_Dongle.inf
Could not extract files
Driver Installation: FAILED (System policy has been modified to reject unsigned drivers)
libwdi:info [wdi_prepare_driver] K driver available - adding the libusbK DLLs to the libusb-win32 inf
libwdi:info [extract_binaries] Successfully extracted driver files to 'C:\Users\p37781ys\usb_driver'
libwdi:info [wdi_prepare_driver] Successfully created 'C:\Users\p37781ys\usb_driver\Crazyradio_PA_USB_Dongle.inf'
libwdi:info [wdi_prepare_driver] Creating and self-signing a .cat file...
libwdi:info [wdi_prepare_driver] Test signing is: Disabled
libwdi:debug [AddFileHash] 'libusb0.dll': PE type
libwdi:info [ScanDirAndHash] added hash for 'C:\Users\p37781ys\usb_driver\amd64\libusb0.dll'
libwdi:debug [AddFileHash] 'libusb0.sys': PE type
libwdi:info [ScanDirAndHash] added hash for 'C:\Users\p37781ys\usb_driver\amd64\libusb0.sys'
libwdi:debug [AddFileHash] 'libusb0_x86.dll': PE type
libwdi:info [ScanDirAndHash] added hash for 'C:\Users\p37781ys\usb_driver\amd64\libusb0_x86.dll'
libwdi:debug [AddFileHash] 'libusbk.dll': PE type
libwdi:info [ScanDirAndHash] added hash for 'C:\Users\p37781ys\usb_driver\amd64\libusbk.dll'
libwdi:debug [AddFileHash] 'libusbk_x86.dll': PE type
libwdi:info [ScanDirAndHash] added hash for 'C:\Users\p37781ys\usb_driver\amd64\libusbk_x86.dll'
libwdi:debug [AddFileHash] 'crazyradio_pa_usb_dongle.inf': INF type
libwdi:info [ScanDirAndHash] added hash for 'C:\Users\p37781ys\usb_driver\crazyradio_pa_usb_dongle.inf'
libwdi:debug [AddFileHash] 'libusb0.dll': PE type
libwdi:info [ScanDirAndHash] added hash for 'C:\Users\p37781ys\usb_driver\x86\libusb0.dll'
libwdi:debug [AddFileHash] 'libusb0.sys': PE type
libwdi:info [ScanDirAndHash] added hash for 'C:\Users\p37781ys\usb_driver\x86\libusb0.sys'
libwdi:debug [AddFileHash] 'libusb0_x86.dll': PE type
libwdi:info [ScanDirAndHash] added hash for 'C:\Users\p37781ys\usb_driver\x86\libusb0_x86.dll'
libwdi:debug [AddFileHash] 'libusbk.dll': PE type
libwdi:info [ScanDirAndHash] added hash for 'C:\Users\p37781ys\usb_driver\x86\libusbk.dll'
libwdi:info [CreateCat] Successfully created file 'C:\Users\p37781ys\usb_driver\Crazyradio_PA_USB_Dongle.cat'
libwdi:debug [CreateSelfSignedCert] Set Enhanced Key Usage, URL and CPS
libwdi:warning [CreateSelfSignedCert] Could not obtain a key container: Object already exists. (0x8009000F)
libwdi:error [wdi_prepare_driver] Could not sign cat file
mcuee commented 2 years ago

This seems to be a specific issue with your system. The following issue may be similar.

Google found the following link, not so sure if the fix is the correct fix or not. Disclaim: YMMV. Proceed with your own risk... https://social.technet.microsoft.com/Forums/Lync/en-US/0f015475-2ea2-4b15-9375-2f6ef3d83ceb/failed-in-call-to-cryptacquirecontext?forum=win10itprosecurity

pbatard commented 1 year ago

I will close this issue for now.