1

与在 Windows 8.1 上预安装驱动程序失败中描述的情况相同 。但是是否有解决方法如何在不重新安装 8.1 的情况下重新安装相同的驱动程序包(无需更改 guid)?

情况:

在全新的 Windows 8.1 安装中(不从 8.0 升级),我们的 USB 设备无法安装。可以使用 VM 重现行为:

  1. 从 inf 文件创建具有类 guid 的注册表项以显示正确的 USB 图标并在设备管理器中创建自己的组:

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{71f11c3d-6aaf-489e-ae80-f705496f1ec3}]
    "Icon"="-20"
    @="My Devices"
    "IconPath"="C:\\Windows\\system32\\setupapi.dll,-20"
    
  2. 连接设备

  3. 使用“浏览我的计算机以查找驱动程序软件”在设备管理器中手动安装驱动程序。当提示输入设备软件时,单击“安装” 。安装结束于:

    Error: Windows found driver software for your device, but encountered an error while attempting to install it.
    The system cannot find the file specified.
    

Report.wer 最后说:

FriendlyEventName=Could not install driver software
ConsentKey=PnPDriverImportError
AppName=Driver software installation
AppPath=C:\Windows\System32\mmc.exe
ReportDescription=Windows could not copy all of the files needed to install this device driver software. This sometimes happens when the driver software was not designed for this version of Windows.
ApplicationIdentity=00000000000000000000000000000000

ReportDescription没有真正的意义,因为手动安装不会产生任何问题。WHQL 签名的驱动程序显示相同的错误。

如果未修改注册表(步骤 1),则一切正常。

附加信息:

  • 自 XP 包括 Windows 8.0 以来,自定义注册表项运行良好。
  • 在连接设备后删除 3 个注册表项,但尝试手动安装驱动程序之前,也不起作用。看起来像创建此注册表项并且检测到 USB 设备会破坏某些东西。
  • cat 文件已签名,但 sys 未获得 WHQL 许可
  • Windows 8.1(x64,没有从 8.0 升级),未在 32 位上测试

问题

在安装程序中跳过注册表修改很容易,但是对于已经尝试安装驱动程序未成功的客户,有什么解决方法?如果没有全新的 Windows 安装,我发现无法启用该设备!

4

1 回答 1

1

我能找到的唯一解决方法是:

- A restart might be required
- pnputil -e                             // to find buggy oemxx.inf files
- pnputil -d oemXX.inf                   // delete
- delete HKLM\SYSTEM\CurrentControlSet\Control\Class\{71f11c3d-6aaf-489e-ae80-f705496f1ec3}
- pnputil -i -a c:\pathToDriver\*.inf    // install and add to store

不适合最终客户,但它有效。

于 2014-02-11T11:29:39.693 回答