我正在寻找以下指导或明确的答案.我想使用谷歌Android USB驱动程序并修改android_winusb.inf以支持任意数量的Android设备.我能够成功添加HTC Evo平板电脑,但是当我尝试添加LG(Optimus)或三星(Indulge,Admire)时,驱动程序似乎安装得很好,但ADB没有看到它.
你能让Google Android Driver适用于任何Android手机吗?如果是这样......怎么样?
我已经尝试了很多排列%SingleAdbInterface%并%CompositeAdbInterface%与供应商和产品ID的变化.
我公司从Go Daddy 购买了驾驶员签名证书.我用它来签署一个简单的INF文件,它是我们使用微软usbser.sys的一些USB设备的驱动程序.一切似乎都在我签名的Windows 7 64位计算机上运行:如果我右键单击INF文件并选择"安装",那么我看到的第二个警告是显示正确的发布者名称的良好警告:

但是,如果我转到另一台计算机(Windows Vista 64位),右键单击INF文件,然后选择"安装",然后我收到此错误消息:

这让我觉得我的驱动程序没有正确签名,并且它在我的计算机上看起来很好的唯一原因是因为我在Go Daddy的安装过程中安装了一些root/intermediate/cross证书.我绝对希望我的用户能够看到我们是经过验证的发布者,而无需在他们的计算机上手动安装证书.
INF文件和.cat文件位于同一目录中.
有谁知道为什么会这样,以及我如何解决它?
我怀疑主要问题是我在运行时遇到此错误signtool verify /v pololu.cat(下面有更多详细信息),我还没弄清楚原因:
SignTool错误:已处理证书链,但终止于信任提供程序不信任的根证书.
该驱动程序签名证书是从去爸爸一个新的产品,他们在几个星期前推出.我不完全确定它与代码签名证书有何不同,但价格相同.我按照Go Daddy网站上的说明下载并安装证书,但说明与现实完全不符.在步骤1中安装Microsoft Cross证书后,我看到一条红色警告消息说:
在安装证书之前,必须使用Windows Update更新根证书,或者从我们的存储库手动下载并安装根证书.
我不知道该怎么做.我确实从他们的存储库安装了一些GoDaddy根证书,但没有明显区别.
我安装了Windows驱动程序工具包(WDK)的最新版本(8.0),然后安装了适用于Windows 8的Windows软件开发工具包(SDK)的最新版本(8.0).这使我可以访问inf2cat和signtool实用程序.这两个套件都是在上个月内发布的,所以我们可能会遇到一些新的漏洞.
在一个新目录中,我放了三个文件:
pololu_usb_to_serial.inf,我要签署的INF文件.它很长但很简单; 你可以在这里阅读.此INF文件是独立驱动程序; 我们的驱动程序包中不需要其他文件.这个文件基本上与我们公司多年来成功分发(未签名)的版本相同,但我必须对Inf2Cat进行一些更改才能接受它.mscvr-cross-gdroot-g2.crt,我从Go Daddy证书库下载的.我相信这是证明微软信任"Go Daddy Root Certificate Authority - G2"的交叉证书,但我不完全确定这是否是正确的证书.sign_it.bat,我运行的批处理文件进行签名.批处理文件只包含:
"C:\Program Files (x86)\Windows Kits\8.0\bin\x86\inf2cat" /v /driver:%~dp0 /os:XP_X86,Vista_X86,Vista_X64,7_X86,7_X64,8_X86,8_X64
"C:\Program Files (x86)\Windows Kits\8.0\bin\x86\signtool" sign …Run Code Online (Sandbox Code Playgroud) 我有一个旧的USB设备,Windows 7无法识别,因此我抓住了处理USB通信的芯片的设备驱动程序.在我修改它之后,我用它来安装设备.愚蠢我知道,但现在我需要摆脱它.
以下是inf设置文件中的代码.这没有我改变的VID和PID.我需要撤消它所做的所有更改.
; Installation INF for the Cypress Generic USB Driver for Windows Vista
; Processor support for OS unknown platforms.
;
; (c) Copyright 2010 Cypress Semiconductor Corporation
;
[Version]
Signature="$WINDOWS NT$"
Class=USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
provider=%CYUSB_Provider%
CatalogFile=CYUSB.cat
DriverVer=10/12/2010,3.4.4.000
[SourceDisksNames]
1=%CYUSB_Install%,,,
[SourceDisksFiles]
CYUSB.sys = 1
[DestinationDirs]
CYUSB.Files.Ext = 10,System32\Drivers
[ControlFlags]
ExcludeFromSelect = *
[Manufacturer]
%CYUSB_Provider%=Device,NT,NTx86,NTamd64
;for all platforms
[Device]
;%VID_XXXX&PID_XXXX.DeviceDesc%=CyUsb, USB\VID_XXXX&PID_XXXX
;for windows 2000 non intel platforms
[Device.NT]
; Cypress FX2LP default ID
%VID_04B4&PID_8613.DeviceDesc%=CyUsb, USB\VID_04B4&PID_8613
; Cypress FX1 default ID …Run Code Online (Sandbox Code Playgroud) 当我尝试应用 searborpairplot 时,出现错误。我的完整脚本很简单,复制如下:
import seaborn as sns
import pandas as pd
import numpy as np
# Creating a sample DataFrame
data = {
'A': np.random.randn(100),
'B': np.random.randn(100),
'C': np.random.randn(100),
'D': np.random.randn(100)
}
df = pd.DataFrame(data)
# Create a pair plot
sns.pairplot(df)
Run Code Online (Sandbox Code Playgroud)
但我抛出了这个错误:
---------------------------------------------------------------------------
OptionError Traceback (most recent call last)
Cell In[26], line 15
12 df = pd.DataFrame(data)
14 # Create a pair plot
---> 15 sns.pairplot(df)
File ~/miniforge3/envs/marketing/lib/python3.9/site-packages/seaborn/_decorators.py:46, in _deprecate_positional_args..inner_f(*args, **kwargs)
36 warnings.warn(
37 "Pass the following variable{} as {}keyword …Run Code Online (Sandbox Code Playgroud) 这个问题可以被认为是重复的:
除了我想在安装程序中完全这样做,而不是单独的程序.
这里应该有一个可下载的例子:http: //msdn.microsoft.com/en-us/library/dd163212.aspx
但该页面上没有下载链接.
驱动程序结构非常简单,只是一个inf和一个sys.我试过这个:
<Directory Id='SystemFolder' Name='System32'>
<Directory Id='DriversFolder' Name='Drivers'/>
</Directory>
Run Code Online (Sandbox Code Playgroud)
...
<DirectoryRef Id="DriversFolder">
<Driver Id="cyusb" Guid="*">
<File Id="cyusb.inf" Source="..\Includes\cyusb.inf" />
</Driver>
<Driver Id="cyusb_sys" Guid="*">
<File Id="cyusb.sys" Source="..\Includes\cyusb.sys" />
</Driver>
</DirectoryRef>
Run Code Online (Sandbox Code Playgroud)
使用'wixdifxappextension.dll'和difxapp_x86作为我的项目的引用,并且无法识别'driver'标记.如果我使用'component'而不是'driver',那么生成的文件实际上不会被识别为驱动程序,我必须进行手动安装.
我在这做错了什么?或者我是否还要编写另一个程序来使这个安装程序工作?这是在Wix 3.0中.
我有一个大型数据框,不同列中包含 inf、-inf 值。我想用 NaN 替换所有 inf、-inf 值
我可以逐栏这样做。所以这有效:
df['column name'] = df['column name'].replace(np.inf, np.nan)
Run Code Online (Sandbox Code Playgroud)
但我的代码在数据帧中一次性执行此操作却没有。
df.replace([np.inf, -np.inf], np.nan)
Run Code Online (Sandbox Code Playgroud)
输出不会替换 inf 值
我无法获得Windows 8(发布预览版)接受inf2cat或makecat方法描述为问题的解决方案
除非我禁用验证.
我现在没有使用任何证书签署这些证书,只是试图通过错误来阻止驱动程序安装.
Windows 8给了我一个非常不明显的错误:
"尝试将驱动程序添加到商店时遇到问题."
查看事件日志,没有任何用处; 只是来自"Windows错误报告"的信息条目,表示PnPdriverimporterror.
当我使用与inf不匹配的cab文件的原始文件时,我得到其他人列出的错误:
指定的目录文件中不存在该文件的哈希.
我有一个.inf文件,我需要生成一个.catfor.
也许我做错了什么.想法?
c:\win_xp_vista32_64>inf2cat /driver:"." /os:XP_X86,XP_x64,Vista_X86,Vista_x64,7_X86,7_X64,8_X86,8_X64
.......................
Signability test complete.
Errors:
None
Warnings:
22.9.10: usbser.sys in [drivercopyfiles.nt] is missing from [SourceDisksFiles] s
ection in \mchpcdc.inf; ok if file source is provided via LayoutFile in [Version
].
22.9.10: %driverfilename%.sys in [drivercopyfiles.ntamd64] is missing from [Sour
ceDisksFiles] section in \mchpcdc.inf; ok if file source is provided via LayoutF
ile …Run Code Online (Sandbox Code Playgroud) 我在Windows 8.1中工作.我需要从命令行安装驱动程序文件(.inf文件).我需要使用哪个命令.我知道我有许多其他方法来安装.inf文件,但我必须从命令行安装它.
请帮我提前谢谢...
我需要创建一个模拟不存在的设备的WDM驱动程序.驾驶员需要在O/S靴,打开和关闭通过要被加载SetupDiXXX和CreateFile,需要响应DeviceIoControl,等等.
我有驱动程序编码,但XP拒绝加载它.系统事件查看器说:
由于以下错误,MyDevice服务无法启动:无法启动该服务,因为它已被禁用或因为它没有与之关联的已启用设备.
鉴于此,我认为问题出在INF文件中(参见下文).是吗?我该怎么办呢?
;; MyDevice.inf
[Version]
Signature="$Windows 95$"
Class=MyDeviceDeviceClass
ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b}
Provider=%ProviderName%
DriverVer= 12/21/2009,1.0.0.1
[ClassInstall32]
Addreg=Class_AddReg
[Class_AddReg]
HKR,,,,%DeviceClassName%
HKR,,Icon,,"-18"
[DestinationDirs]
MyDevice_Files_Driver = 10,System32\Drivers
[Manufacturer]
%MfgName%=Mfg0
[Mfg0]
%DeviceDesc%=MyDevice_DDI, *MyDevice
[MyDevice_DDI]
CopyFiles=MyDevice_Files_Driver
AddReg=MyDevice_9X_AddReg
[MyDevice_DDI.NT]
CopyFiles=MyDevice_Files_Driver
AddReg=MyDevice_NT_AddReg
[MyDevice_DDI.NT.Services]
Addservice = MyDevice, 0x00000002, MyDevice_AddService
[MyDevice_AddService]
DisplayName = %SvcDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %10%\System32\Drivers\MyDevice.sys
[MyDevice_NT_AddReg]
HKLM, "System\CurrentControlSet\Services\MyDevice\Parameters","BreakOnEntry", 0x00010001, 0
[MyDevice_Files_Driver]
MyDevice.sys
[Strings]
ProviderName="Acme"
MfgName="Acme"
DeviceDesc="Acme"
DeviceClassName="Device class for MyDevice"
SvcDesc="MyDevice NT service"
我正在尝试通过 NSIS 之类的(在 NSIS 脚本中安装驱动程序)安装 .inf 文件。
安装本身运行顺利,但 Windows 会使用其内部发布的名称(递增数字 oemxxx.inf)安装驱动程序。
我怎样才能让 pnputil.exe 给我发布的名称作为返回值(供以后使用)?