Printer V4 driver INF service issue

  • Thread starter Thread starter validation issue ofPrinter V4 Driver INF
  • Start date Start date
V

validation issue ofPrinter V4 Driver INF

Guest
I am trying to build printer v4 driver using below system configuration

OS: Windows 10 pro

Microsoft Visual Studio Professional 2019 (Professional)
Version 16.5.4

WDK version: 10.0.18346.1000

All required c\c++ packages are installed.

I am referring the link to build printer driver building basic v4 printer driver

I follow all the steps mentioned in link.



But as I build the solution it give error "Hardware 'Fabrikam' does not have an associated service using install section 'DriverInstall'."

I add the service section "addservice = ,0x2". but it give error

Error 8611 (DE22.23.8611) INF contains banned directive ADDSERVICE which is not allowed in this INF

So I confused how to resolve this issue.

My inf

[Version]
Signature="$Windows NT$"
Class=Printer
ClassGuid={4D36E979-E325-11CE-BFC1-08002BE10318}
Provider=%ManufacturerName%



CatalogFile=MyV4PrintDriver.cat
ClassVer=4.0
DriverVer=01/01/2020,1.0.0.0

[Manufacturer]
%ManufacturerName%=Standard,NT$ARCH$
Thanks in advance.
[Standard.NT$ARCH$]
"Fabrikam 1234= DriverInstall, LPTENUM\Fabrik9000_sdfjkals

[DriverInstall]
CopyFiles=DriverFiles

[DriverInstall.Services]
AddService=,0x2

[DriverFiles]
MyV4PrintDriver.gpd
MyV4PrintDriver-manifest.ini
MyV4PrintDriverRenderFilter-PipelineConfig.xml
MyV4PrintDriverRenderFilter.dll

[DestinationDirs]
DefaultDestDir = 66000

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

[SourceDisksFiles]
MyV4PrintDriver.gpd=1
MyV4PrintDriver-manifest.ini=1
MyV4PrintDriverRenderFilter-PipelineConfig.xml=1
MyV4PrintDriverRenderFilter.dll=1

[Strings]
ManufacturerName="Fabrikam" ;TODO: Replace with your manufacturer name
DiskName="MyV4PrintDriver Installation Disk"

Continue reading...
 
Back
Top