UMDF 2 driver INF file error: 'The third-party INF does not contain digital signature information'
I'm developing a UMDF 2 driver and having trouble with the INF file. The Microsoft documentation is hard to understand, and I'm getting an error when I try to install my driver.
Here is my INF file:
[Version]
Signature="$Windows NT$"
Class=System
ClassGuid={4d36e97d-e325-11ce-bfc1-08002be10318}
Provider=%ManufacturerName%
CatalogFile=User.cat
DriverVer=06/01/2024,1.0.0.0
PnpLockdown=1
[Manufacturer]
%ManufacturerName% = Standard,NT$ARCH$.10.0...22000
[Standard.NT$ARCH$.10.0...22000]
%DeviceName% = hdigya, Root\User
[SourceDisksFiles]
User.dll=1
[SourceDisksNames]
1 = %DiskName%
; =================== UMDF Device ==================================
[hdigya.NT]
CopyFiles=UMDriverCopy
Include=wudfrd.inf
Needs=WUDFRD.NT
[hdigya.NT.hw]
Include=wudfrd.inf
Needs=WUDFRD.NT.HW
[hdigya.NT.Services]
Include=wudfrd.inf
Needs=WUDFRD.NT.Services
[hdigya.NT.Wdf]
UmdfService=User,User_Install
UmdfServiceOrder=User
[User_Install]
UmdfLibraryVersion=$UMDFVERSION$
ServiceBinary=%13%\User.dll
[DestinationDirs]
UMDriverCopy=13
[UMDriverCopy]
User.dll
; =================== Generic ==================================
[Strings]
ManufacturerName="how-do-i-get-your-attention.com"
DiskName="User Installation Disk"
DeviceName="User Device"
I have run the following commands to disable driver signature enforcement:
bcdedit /set testsigning on
bcdedit /set nointegritychecks on
bcdedit /set loadoptions DDISABLE_INTEGRITY_CHECKS
I have also installed the self-signed code signing certificate many times.
However, when I try to install the driver using pnputil
, I get the following error:
pnputil /add-driver user.inf /install
Microsoft PnP Utility
Adding driver package: User.inf
Failed to add driver package: The third-party INF does not contain digital signature information.
Total driver packages: 1
Added driver packages: 0
I'm confused about what I'm missing. Can anyone help me understand why this error is occurring and how to fix it?
HAPPY CODING.
Pirasath Luxchumykanthan
Sorry, I posted this under Visual Studio but I couldn't find tags for UMDF and C.