Can .inf file reference a built-in driver such that it won't give warning during installation?

核能气质少年 提交于 2019-12-21 21:36:39

问题


Our device relies on a built-in windows driver (usbser.sys). Do we still need to go through WHQL testing or can we install in such a way that the user won't see a warning about not passing Logo testing? I found http://support.microsoft.com/kb/837637 but it's not clear to me if this will do what I want. Does it matter whether I use DPInst program or have my own program that calls DriverPackagePreinstall?

[Edit: changed "Our code" to "Our device" based on comment]


回答1:


  1. You don't need to sign usbser.sys (KMCS) but you still need to sign your .inf, because the matching of usbser.sys to your Hardware ID or Compatible ID is not trivial and it's your responsibility, so you should be signed on it.
  2. You don't have to go through WHQL certificate on Windows Vista and higher. A code signing certificate from a known CA will suffice. This will raise a question of "Do you want to trust this publisher?". You can work around this by first adding yourself to the TrustedPublishers (see this question). (WHQL still has its benefits, e.g. you wouldn't have the above warning prompt.)



回答2:


Still not a 100% sure but some general pointers:

  • follow http://msdn.microsoft.com/en-us/library/ff542476%28v=VS.85%29.aspx to create/test etc. an INF file and esp. http://msdn.microsoft.com/en-us/library/ff542605%28v=vs.85%29.aspx
  • WHQL is not only for drivers but for the devices themselves (see http://msdn.microsoft.com/en-us/windows/hardware/gg463175 and http://msdn.microsoft.com/en-us/windows/hardware/gg463175 ) so strongly recommended to avoid that warning AFAIK


来源:https://stackoverflow.com/questions/7421620/can-inf-file-reference-a-built-in-driver-such-that-it-wont-give-warning-during

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!