Error 1297 (NTarm64) Device driver does not install on any devices, use primitive driver if this is intended.

Smitha Challa 31 Reputation points
2022-05-14T02:05:13.81+00:00

This is my inf file

Error 1297 (NTarm64) Device driver does not install on any devices, use primitive driver if this is intended.
I am trying to do a windows virtual print driver.
I am using VS2019 with WDK, SDK 10.0.19041.685.
This might be have something to do with primitive/non primitive driver. Please suggest. This world of driver continues to be a challenge for me.

I found this forum but I can't seem to understnad much of it
[Version]
Signature="$windows NT$"
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
Provider=CAPTURETECH
DriverVer=04/21/2010, 6.0.10.4211505
catalogfile = cptech.cat

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Manufacturer Section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Manufacturer]
"CAPTURETECH" = CT, NTx86, NTamd64

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Models Section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[CT]
"CT-INFO" = DRV_INSTALL

[CT.NTx86]
"CT-INFO" = DRV_INSTALL

[CT.NTamd64]
"CT-INFO" = DRV_INSTALL

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Install Section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[DRV_INSTALL]
CopyFiles=@CTIP.GPD,@CTIP.INI,@CTINFO.DLL
DataSection=UNIDRV_DATA
DataFile=CTIP.GPD
Include=CAPTURE-TECH.INF
Needs=UNIDRV.OEM,UNIDRV_DATA

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Source Media Section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[DestinationDirs]
DefaultDestDir=66000
  = 100,cptech\ia64


[SourceDisksFiles]
CTINFO.DLL = 1
CTIP.INI = 1
CTIP.GPD = 1


[SourceDisksNames]
;1 = %DiskName%,
1 = %CWIN%
2 = %CWIN%,,,INIS
3 = %CWIN%,,,GDPS
;4 = %CWIN%,,,\DLLS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Control Flags Section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Strings Section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Strings]

CWIN = "C:\Source\CTINFo\"
Windows Server Printing
Windows Server Printing
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Printing: Printer centralized deployment and management, scan and fax resources management, and document services
640 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,351 Reputation points
    2022-05-18T12:19:26.137+00:00

    Hi there,

    This is caused by the new "Primitive Drivers" concept in Windows 10 1903. The purpose is to explicitly model drivers that aren't actually related to a device. See Microsoft Documentation on Primitive Drivers for details https://learn.microsoft.com/en-us/windows-hardware/drivers/develop/creating-a-primitive-driver

    Your inf contains none of the sections for which there are instructions for migration, but it has the Manufacturer section, which is not allowed for primitive drivers. Remove it and the validation may succeed.

    -----------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--