【发布时间】:2023-03-09 06:00:02
【问题描述】:
与中描述的情况相同 Preinstalling Driver on Windows 8.1 Fails。 但是是否有解决方法如何在不重新安装 8.1 的情况下重新安装相同的驱动程序包(无需更改 guid)?
情况:
在全新的 Windows 8.1 安装中(不从 8.0 升级),我们的 USB 设备无法安装。行为可以通过虚拟机重现:
-
使用 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" 连接设备
-
使用“浏览我的计算机以查找驱动程序软件”在设备管理器中手动安装驱动程序。当提示输入设备软件时,单击“安装”。安装结束于:
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 个注册表项AFTER 设备已连接,但之前 尝试手动安装驱动程序,也不起作用。看起来像是创建了这个注册表项并且检测到 USB 设备会破坏某些东西。
- cat 文件已签名,但 sys 未获得 WHQL 许可
- Windows 8.1(x64,未从 8.0 升级),未在 32 位上测试
问题
在安装程序中跳过注册表修改很容易,但是对于已经尝试安装驱动程序未成功的客户,有什么解决方法? 如果没有全新的 Windows 安装,我发现无法启用该设备!
【问题讨论】:
标签: guid windows-8.1 drivers wdk inf