在windows上如何通过工具或程序为其他设备安装指定驱动程序?

新手上路,请多包涵

问题描述

自己做了个usb设备,在windows系统上被识别为其他设备,只能通过交互窗口实现驱动指定安装,想自己做个工具自动安装驱动!

尝试过以下方法

方法1:

使用PnPUtil工具安装,没有效果

方法2:

使用devcon工具安装,安装报错,报错log如下:
>>> [Device Install (UpdateDriverForPlugAndPlayDevices) -USB\VID_2BDF&PID_060A&REV_0409&MI_00]
>>> Section start 2022/12/29 18:00:45.393
      cmd: devcon.exe  install C:\Windows\INF\netrndis.inf "USB\VID_2BDF&PID_060A&REV_0409&MI_00"
     ndv: INF path: C:\Windows\INF\netrndis.inf
     ndv: Install flags: 0x00000001
     ndv: {Update Device Driver - USB\VID_2BDF&PID_060A&MI_00\6&3507A8A2&0&0000}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 18:00:45.402
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:                usb\vid_2bdf&pid_060a&mi_00
     dvi:           Searching for compatible ID(s):
     dvi:                usb\class_02&subclass_06&prot_00
     dvi:                usb\class_02&subclass_06
     dvi:                usb\class_02
     dvi:      {Build Driver List - exit(0x00000000)} 18:00:45.405
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 18:00:45.405
     dvi:           Default installer: Enter 18:00:45.405
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 18:00:45.406
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'USB\VID_2BDF&PID_060A&MI_00\6&3507A8A2&0&0000'.
     ndv: {Update Device Driver - USB\VID_2BDF&PID_060A&MI_00\6&C268F40&0&0000}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 18:00:45.408
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:                usb\vid_2bdf&pid_060a&mi_00
     dvi:           Searching for compatible ID(s):
     dvi:                usb\class_02&subclass_06&prot_00
     dvi:                usb\class_02&subclass_06
     dvi:                usb\class_02
     dvi:      {Build Driver List - exit(0x00000000)} 18:00:45.410
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 18:00:45.411
     dvi:           Default installer: Enter 18:00:45.411
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 18:00:45.412
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'USB\VID_2BDF&PID_060A&MI_00\6&C268F40&0&0000'.
     ndv: {Update Device Driver - ROOT\NET\0004}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 18:00:45.413
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:      {Build Driver List - exit(0x00000000)} 18:00:45.415
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 18:00:45.415
     dvi:           Default installer: Enter 18:00:45.415
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 18:00:45.416
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'ROOT\NET\0004'.
     ndv: {Update Device Driver - ROOT\NET\0010}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 18:00:45.418
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:      {Build Driver List - exit(0x00000000)} 18:00:45.419
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 18:00:45.419
     dvi:           Default installer: Enter 18:00:45.420
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 18:00:45.421
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'ROOT\NET\0010'.
     ndv: {Update Device Driver - ROOT\NET\0012}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 18:00:45.422
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:      {Build Driver List - exit(0x00000000)} 18:00:45.423
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 18:00:45.423
     dvi:           Default installer: Enter 18:00:45.424
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 18:00:45.425
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'ROOT\NET\0012'.
     ndv: {Update Device Driver - ROOT\NET\0014}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 18:00:45.426
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:      {Build Driver List - exit(0x00000000)} 18:00:45.427
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 18:00:45.428
     dvi:           Default installer: Enter 18:00:45.428
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 18:00:45.429
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'ROOT\NET\0014'.
     ndv: {Update Device Driver - ROOT\NET\0015}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 18:00:45.431
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:      {Build Driver List - exit(0x00000000)} 18:00:45.432
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 18:00:45.433
     dvi:           Default installer: Enter 18:00:45.433
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 18:00:45.434
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'ROOT\NET\0015'.
     ndv: {Update Device Driver - ROOT\NET\0016}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 18:00:45.435
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:      {Build Driver List - exit(0x00000000)} 18:00:45.436
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 18:00:45.437
     dvi:           Default installer: Enter 18:00:45.437
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 18:00:45.438
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'ROOT\NET\0016'.
     ndv: {Update Device Driver - ROOT\NET\0017}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 18:00:45.439
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:      {Build Driver List - exit(0x00000000)} 18:00:45.440
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 18:00:45.440
     dvi:           Default installer: Enter 18:00:45.441
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 18:00:45.442
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'ROOT\NET\0017'.
     ndv: {Update Device Driver - USB\VID_2BDF&PID_060A&MI_00\6&224DF7FD&0&0000}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 18:00:45.443
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:                usb\vid_2bdf&pid_060a&mi_00
     dvi:           Searching for compatible ID(s):
     dvi:                usb\class_02&subclass_06&prot_00
     dvi:                usb\class_02&subclass_06
     dvi:                usb\class_02
     dvi:      {Build Driver List - exit(0x00000000)} 18:00:45.445
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 18:00:45.445
     dvi:           Default installer: Enter 18:00:45.446
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 18:00:45.447
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'USB\VID_2BDF&PID_060A&MI_00\6&224DF7FD&0&0000'.
!    ndv: No devices were updated.
<<<  Section end 2022/12/29 18:00:45.453
<<<  [Exit status: FAILURE(0x00000103)]

方法3:

 使用UpdateDriverForPlugAndPlayDevices接口安装驱动,安装报错。c代码如下:
int main(int argc, char** argv)
{
    char* infFile = "C:\\Windows\\INF\\netrndis.inf";
    char* HID = "USB\\VID_2BDF&PID_060A&REV_0409&MI_00";
    char* HID_PATH = "USB\\VID_2BDF&PID_060A&MI_00\\6&C268F40&0&0000";
    int ret = 0;
    int reboot = 0;

    char ClassName[100];
    char hwid[100];
    GUID uid_g = {0,};
    HDEVINFO device_info;
    strcpy(hwid, HID);
    ret = SetupDiGetINFClassA(infFile,&uid_g,ClassName,100,NULL);
    if (ret == 0) {
        printf("infFile error num %d\n",GetLastError());
        return 1;
    }
    printf("className %s \n", ClassName);

    device_info = SetupDiCreateDeviceInfoList(&uid_g, NULL);
    if (device_info == INVALID_HANDLE_VALUE) {
        printf("Create Device error %d\n", GetLastError());
        return 1;
    }
    
    SP_DEVINFO_DATA deviceInfoData;
    deviceInfoData.cbSize = sizeof(SP_DEVINFO_DATA);
    ret = SetupDiCreateDeviceInfoA(device_info, ClassName,&uid_g,NULL,0, DICD_GENERATE_ID,&deviceInfoData);
    if (ret == 0) {
        printf("device error %d\n", GetLastError());
        return 1;
    }
    ret = SetupDiSetDeviceRegistryPropertyA(device_info, &deviceInfoData, SPDRP_HARDWAREID, hwid,strlen(hwid)+1);
    if (ret == 0) {
        printf("register error %d\n", GetLastError());
        return 1;
    }
    ret = SetupDiCallClassInstaller(DIF_REGISTERDEVICE, device_info, &deviceInfoData);
    if (ret == 0) {
        printf("call install %d\n",GetLastError());
        return 1;
    }

    ret = UpdateDriverForPlugAndPlayDevicesA(NULL, HID, infFile, INSTALLFLAG_FORCE, &reboot);

    if (ret == TRUE) {
        printf(" sucess\n");
    }
    else {
        printf("ret ----> error %ld %ld %ld %ld %ld %ld\n", GetLastError(), ERROR_FILE_NOT_FOUND,
            ERROR_IN_WOW64, ERROR_INVALID_FLAGS, ERROR_NO_SUCH_DEVINST, ERROR_NO_MORE_ITEMS);
    }

    SetupDiDestroyDeviceInfoList(device_info);

    /*
    SetupDiGetINFClassA(infFile,);

    HDEVINFO deviceInfoSet = SetupDiCreateDeviceInfoList(&KSCATEGORY_AUDIO, 0);
    GUID_DEVINTERFACE_NET;

    */
    return 0;
}

错误log如下:

>>>  [Device Install (UpdateDriverForPlugAndPlayDevices) - USB\VID_2BDF&PID_060A&REV_0409&MI_00]
>>>  Section start 2022/12/29 17:42:05.393
      cmd: "D:\work\installDriver\installDriver\x64\Release\installDriver.exe" 
     ndv: INF path: C:\Windows\INF\netrndis.inf
     ndv: Install flags: 0x00000001
     ndv: {Update Device Driver - USB\VID_2BDF&PID_060A&MI_00\6&3507A8A2&0&0000}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 17:42:05.417
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:                usb\vid_2bdf&pid_060a&mi_00
     dvi:           Searching for compatible ID(s):
     dvi:                usb\class_02&subclass_06&prot_00
     dvi:                usb\class_02&subclass_06
     dvi:                usb\class_02
     dvi:      {Build Driver List - exit(0x00000000)} 17:42:05.425
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 17:42:05.426
     dvi:           Default installer: Enter 17:42:05.426
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 17:42:05.427
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'USB\VID_2BDF&PID_060A&MI_00\6&3507A8A2&0&0000'.
     ndv: {Update Device Driver - USB\VID_2BDF&PID_060A&MI_00\6&C268F40&0&0000}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 17:42:05.429
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:                usb\vid_2bdf&pid_060a&mi_00
     dvi:           Searching for compatible ID(s):
     dvi:                usb\class_02&subclass_06&prot_00
     dvi:                usb\class_02&subclass_06
     dvi:                usb\class_02
     dvi:      {Build Driver List - exit(0x00000000)} 17:42:05.431
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 17:42:05.432
     dvi:           Default installer: Enter 17:42:05.432
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 17:42:05.434
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'USB\VID_2BDF&PID_060A&MI_00\6&C268F40&0&0000'.
     ndv: {Update Device Driver - ROOT\NET\0004}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 17:42:05.436
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:      {Build Driver List - exit(0x00000000)} 17:42:05.437
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 17:42:05.438
     dvi:           Default installer: Enter 17:42:05.438
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 17:42:05.439
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'ROOT\NET\0004'.
     ndv: {Update Device Driver - ROOT\NET\0010}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 17:42:05.441
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:      {Build Driver List - exit(0x00000000)} 17:42:05.443
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 17:42:05.443
     dvi:           Default installer: Enter 17:42:05.444
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 17:42:05.445
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'ROOT\NET\0010'.
     ndv: {Update Device Driver - ROOT\NET\0012}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 17:42:05.447
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:      {Build Driver List - exit(0x00000000)} 17:42:05.449
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 17:42:05.450
     dvi:           Default installer: Enter 17:42:05.450
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 17:42:05.452
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'ROOT\NET\0012'.
     ndv: {Update Device Driver - ROOT\NET\0014}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 17:42:05.454
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:      {Build Driver List - exit(0x00000000)} 17:42:05.457
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 17:42:05.457
     dvi:           Default installer: Enter 17:42:05.458
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 17:42:05.460
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'ROOT\NET\0014'.
     ndv: {Update Device Driver - USB\VID_2BDF&PID_060A&MI_00\6&224DF7FD&0&0000}
     ndv:      Search options: 0x00000080
     ndv:      Searching single INF 'C:\Windows\INF\netrndis.inf'
     dvi:      {Build Driver List} 17:42:05.461
     dvi:           Searching for hardware ID(s):
     dvi:                usb\vid_2bdf&pid_060a&rev_0409&mi_00
     dvi:                usb\vid_2bdf&pid_060a&mi_00
     dvi:           Searching for compatible ID(s):
     dvi:                usb\class_02&subclass_06&prot_00
     dvi:                usb\class_02&subclass_06
     dvi:                usb\class_02
     dvi:      {Build Driver List - exit(0x00000000)} 17:42:05.464
!    ndv:      No matching drivers found in single INF
     dvi:      {DIF_SELECTBESTCOMPATDRV} 17:42:05.464
     dvi:           Default installer: Enter 17:42:05.465
     dvi:                {Select Best Driver}
!    dvi:                     Selecting driver failed(0xe0000228)
     dvi:                {Select Best Driver - exit(0xe0000228)}
!    dvi:           Default installer: failed
!    dvi:           Error 0xe0000228: There are no compatible drivers for this device.
     dvi:      {DIF_SELECTBESTCOMPATDRV - exit(0xe0000228)} 17:42:05.468
!    ndv:      Unable to select best compatible driver. Error = 0xe0000228
     ndv:      No drivers found for device.
     ndv: {Update Device Driver - exit(00000103)}
!    ndv: No better matching drivers found for device 'USB\VID_2BDF&PID_060A&MI_00\6&224DF7FD&0&0000'.
!    ndv: No devices were updated.
<<<  Section end 2022/12/29 17:42:05.474
<<<  [Exit status: FAILURE(0x00000103)]

希望各位大神能看看到底为什么不能用?给指条明路,搞定这个问题。

回复
阅读 446
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏