MIT License

项目介绍

vovkos/install-inf 是一个托管在 GitHub 上的开源项目,主要使用 Perl 编写,采用 MIT License 许可证,目前获得 7 个 Star、1 次 Fork。

仓库全名
vovkos/install-inf
开源许可证
MIT License
Star 数
7
Fork 数
1

README 摘要

install-inf =========== Abstract install-inf.pl is a simple Perl script which can be used as a lighweight replacement for Zadig . Motivation If you ever tried to replace a standard Windows driver for some USB device with a libusb-compatible one (such as the stock winusb.sys driver) then you know that it's not as simple as it sounds in the official Microsoft WinUSB guide. Going through the Device Manager and…

完整内容见 GitHub 原始 README 或本页 。

常见问题

install-inf 用什么语言开发?

主要使用 Perl 编写,采用 MIT License 许可证,目前有 7 个 Star。

install-inf 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 install-inf 的源码?

可以直接克隆仓库:git clone https://github.com/vovkos/install-inf.git;安装与运行步骤见仓库 README。

install-inf 最近还在维护吗?

仓库最近一次更新为 2018年1月30日,当前没有未关闭的 Issue;Star 数为 7,可作为社区活跃度的参考。

关于

A simple Perl script to force-install LibUSB-compatible driver (e.g. winusb.sys) on Windows. Can be used as a lighweight replacement for Zadig.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
16
价值分
5
活跃状态
活跃

README

install-inf

Abstract

install-inf.pl is a simple Perl script which can be used as a lighweight replacement for Zadig <http://zadig.akeo.ie>_.

Motivation

If you ever tried to replace a standard Windows driver for some USB device with a libusb-compatible one (such as the stock winusb.sys driver) then you know that it’s not as simple as it sounds in the official Microsoft WinUSB guide.

Going through the Device Manager and navigating to the .inf-containing folder usually ends up with messages like “The best driver for your device is already installed” or “The folder you specified doesn’t contain a compatible software driver for your device”.

The trick is to force-update the driver. This can be achieved by calling UpdateDriverForPlugAndPlayDevices SetupAPI function while passing it the hardware ID of a device and the path to a particular .inf file.

Usage

  1. Prepare the proper .inf file as described in the official Microsoft WinUSB guide <https://msdn.microsoft.com/en-us/library/windows/hardware/ff540283(v=vs.85).aspx>_.

  2. [OPTIONAL] Create a .cat file using inf2cat and sign it with signtool

  3. Make sure Perl is accessiblve via PATH environment variable. Note that you need 64-bit Perl on 64-bit Windows.

  4. From an elevated command prompt run:

    … code:: bash

     perl install-inf.pl <path-to-inf>
    
  5. Unless you have created a properly signed .cat file, you will see a “Windows Security” warning stating that “Windows can’t verify the publisher of this driver software”. When you do, fearlessly hit “Install this driver software anyway”.

  6. Go to the Device Manager and make sure your device has moved from its original group into “Universal Serial Bus devices” and its name is now the same as in the .inf file.

  7. Congratulations! Now you can work with your device via libusb API.

评论

暂无评论