无法在Windows 10 Professional中安装自定义inf. Windows使用OEM
发布时间:2020-12-14 04:26:08 所属栏目:Windows 来源:网络整理
导读:我为自定义设备制作了一个签名的USB串行inf文件,并创建了一个安装程序,可以将驱动程序成功安装到 Windows 7(32/64),Windows 8.1(64)但不安装Windows 10.这适用于默认安装(右 – 单击,安装)直接在文件上,使用设备管理器并使用PNPUTIL.设备驱动程序已成功安装,
我为自定义设备制作了一个签名的USB串行inf文件,并创建了一个安装程序,可以将驱动程序成功安装到
Windows 7(32/64),Windows 8.1(64)但不安装Windows 10.这适用于默认安装(右 – 单击,安装)直接在文件上,使用设备管理器并使用PNPUTIL.设备驱动程序已成功安装,但使用的是OEM usbser驱动程序.单击“更新驱动程序”并在“设备管理器”中选择我的驱动程序后,Windows会提示“已为您的设备安装了最佳驱动程序软件”.如果我使用设备管理器并选择“从磁盘安装”,我可以成功解决Windows 10强制执行自己的驱动程序的问题.这不会让我更接近成功的inf文件和安装程序.
我的默认安装过程: >从USB端口拔下设备 如果我然后卸载它并重复步骤3-5,它有时允许我的自定义驱动程序坚持. 我被告知我的驱动程序安装在Windows 10企业版上,这让人感到困惑. 问题:我做错了什么? 我的inf文件: ;************************************************************ ; Windows USB CDC ACM Setup File ; Copyright (c) 2000 Microsoft Corporation ; Version v1.1,updated 17 April 2013 [Strings] DriverPackageDisplayName="Rinstrum USB Serial Drivers" ManufacturerName="Rinstrum" ServiceName="USB RS-232 Emulation Driver" linux.gserial="Rinstrum USB Gadget Serial" MFGNAME="Rinstrum" [DefaultInstall] CopyINF=c500.inf [Version] DriverVer=03/02/2017,1.0.0.0 Signature=$Windows NT$ Class=Ports ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} Provider=%MFGNAME% CatalogFile=c500.cat DriverPackageDisplayName=%DriverPackageDisplayName% PnpLockdown=1 [Manufacturer] %MFGNAME%=Models,NTx86,NTamd64,NTarm [DestinationDirs] DefaultDestDir=12 FakeModemCopyFileSection=12 [Models.NTx86] %linux.gserial%=DriverInstall,USBVID_1FC9&PID_816A,USBVID_1FC9&PID_816A&MI_00 [Models.NTamd64] %linux.gserial%=DriverInstall,USBVID_1FC9&PID_816A&MI_00 [Models.NTarm] %linux.gserial%=DriverInstall,USBVID_1FC9&PID_816A&MI_00 [DriverInstall] Include=mdmcpq.inf CopyFiles=FakeModemCopyFileSection AddReg=DriverAddReg [DriverAddReg] HKR,DevLoader,*ntkern HKR,NTMPDriver,%DRIVERFILENAME%.sys HKR,EnumPropPages32,"MsPorts.dll,SerialPortPropPageProvider" [DriverInstall.Services] Include=mdmcpq.inf AddService=usbser,0x2,DriverService [DriverService] DisplayName=%ServiceName% ServiceType=1 StartType=3 ErrorControl=1 ServiceBinary=%12%usbser.sys LoadOrderGroup=Base 更新:来自setupapi.dev.log的其他信息 >>> [Device Install (DiInstallDriver) - C:UsersR&DDesktopc500.inf] >>> Section start 2017/02/03 17:17:58.321 cmd: "C:WindowsSystem32InfDefaultInstall.exe" "C:UsersR&DDesktopc500.inf" ndv: Flags: 0x00000000 ndv: INF path: C:UsersR&DDesktopc500.inf inf: {SetupCopyOEMInf: C:UsersR&DDesktopc500.inf} 17:17:58.337 inf: Copy style: 0x00000000 ! inf: Driver package is already in driver store inf: Driver Store Path: C:WindowsSystem32DriverStoreFileRepositoryc500.inf_amd64_4fee793fb11027acc500.inf inf: Published Inf Path: C:WindowsINFoem4.inf inf: {SetupCopyOEMInf exit (0x00000000)} 17:17:58.368 <<< Section end 2017/02/03 17:17:58.399 <<< [Exit status: SUCCESS] 更新: sig: Success: File is signed in Authenticode(tm) catalog. sig: Error 0xe0000242: The publisher of an Authenticode(tm) signed catalog has not yet been established as trusted. 更新: https://www.virtualbox.org/browser/vbox/trunk/src/VBox/Additions/WINNT/Installer/VBoxDrvInst.cpp#L433 解决方法
在授予用户覆盖Windows 10中的OEM驱动程序的权限之前,需要激活Windows.在我的测试计算机上激活窗口可以解决此问题.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |