sakibguy / worked-issues

arget medi a[rpescriptionmedicie] &ssets[dr] (reeeverse._ax:p)
2 stars 0 forks source link

[ORG] RU-MAKEAPP: Signability test failed. #19

Closed sakibguy closed 2 years ago

sakibguy commented 2 years ago

Problem

Inf2Cat Tool Output: ........................ Signability test failed.

Errors: 22.9.7: DriverVer set to a date in the future (postdated DriverVer not allowed) in KMDFEmpty\kmdfempty.inf.

Warnings: None

1

sakibguy commented 2 years ago

Analyze KMDFEmpty.inf

;
; KMDFEmpty.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=Sample ; TODO: edit Class
ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171} ; TODO: edit ClassGuid
Provider=%ManufacturerName%
CatalogFile=KMDFEmpty.cat
DriverVer= ; TODO: set DriverVer in stampinf property pages

[DestinationDirs]
DefaultDestDir = 12
KMDFEmpty_Device_CoInstaller_CopyFiles = 11

; ================= Class section =====================

[ClassInstall32]
Addreg=SampleClassReg

[SampleClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5

[SourceDisksNames]
1 = %DiskName%,,,""

[SourceDisksFiles]
KMDFEmpty.sys  = 1,,
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1 ; make sure the number matches with SourceDisksNames

;*****************************************
; Install Section
;*****************************************

[Manufacturer]
%ManufacturerName%=Standard,NT$ARCH$

[Standard.NT$ARCH$]
%KMDFEmpty.DeviceDesc%=KMDFEmpty_Device, Root\KMDFEmpty ; TODO: edit hw-id

[KMDFEmpty_Device.NT]
CopyFiles=Drivers_Dir

[Drivers_Dir]
KMDFEmpty.sys

;-------------- Service installation
[KMDFEmpty_Device.NT.Services]
AddService = KMDFEmpty,%SPSVCINST_ASSOCSERVICE%, KMDFEmpty_Service_Inst

; -------------- KMDFEmpty driver install sections
[KMDFEmpty_Service_Inst]
DisplayName    = %KMDFEmpty.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\KMDFEmpty.sys

;
;--- KMDFEmpty_Device Coinstaller installation ------
;

[KMDFEmpty_Device.NT.CoInstallers]
AddReg=KMDFEmpty_Device_CoInstaller_AddReg
CopyFiles=KMDFEmpty_Device_CoInstaller_CopyFiles

[KMDFEmpty_Device_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller"

[KMDFEmpty_Device_CoInstaller_CopyFiles]
WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll

[KMDFEmpty_Device.NT.Wdf]
KmdfService =  KMDFEmpty, KMDFEmpty_wdfsect
[KMDFEmpty_wdfsect]
KmdfLibraryVersion = $KMDFVERSION$

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ManufacturerName="<Your manufacturer name>" ;TODO: Replace with your manufacturer name
ClassName="Samples" ; TODO: edit ClassName
DiskName = "KMDFEmpty Installation Disk"
KMDFEmpty.DeviceDesc = "KMDFEmpty Device"
KMDFEmpty.SVCDESC = "KMDFEmpty Service"
sakibguy commented 2 years ago

Fixed automatically

Sense: PC restarted (multiple times during week)

1