Hi ,
I am getting this error while I build my filter driver : [DefaultInstall]-based INF cannot be processed as Primitive.
INF looks like this
[Version]
Signature = “$Windows NT$”
Class = Volume
ClassGUID = {71a27cdd-812a-11d0-bec7-08002be2092f}
Provider = %msft1%
DriverVer = “06/27/2023,6.0.0.0”
CatalogFile=volumefltr.cat
PnpLockDown =1
;DriverPackageType = Class filter driver
;---------------------------------------------------------
[DestinationDirs]
DefaultDestDir=12
DriverCopyFiles=12
[SourceDisksNames]
1 = %diskid1%,
[SourceDisksFiles]
volumefltr.sys=1
;-------------------------------------------------------------------
;
; General installation section
;
[DefaultInstall.NTAMD64]
Addreg = volumefltr.AddReg
[DefaultInstall.NTAMD64.services]
AddService=%SERVICENAME%,FilterService
;------------------------------------------------------------------------------
[DefaultUninstall.NTAMD64]
LegacyUninstall=1
DeleteReg= volumefltr.DeleteReg
[DefaultUninstall.NTAMD64.services]
DelService=%SERVICENAME%,0x00000200 ;Stop service before deleting it
;------------------------------------------------------------------------------
[DefaultInstall.NTX86]
Addreg = volumefltr.AddReg
[DefaultInstall.NTX86.services]
AddService=%SERVICENAME%,FilterService
;------------------------------------------------------------------------------
[DefaultUninstall.NTX86]
LegacyUninstall=1
DeleteReg= volumefltr.DeleteReg
[DefaultUninstall.NTX86.services]
DelService=%SERVICENAME%,0x00000200 ;Stop service before deleting it
;--------------------------------------------------------------------------------
[volumefltr.AddReg]
HKLM, System\CurrentControlSet\Control\Class{71a27cdd-812a-11d0-bec7-08002be2092f}, LowerFilters, 0x00010008, volumefltr
HKLM, Software\myapp\volumefltr,DriverInstalled,0x00010001,1
HKLM, Software\myapp\volumefltr,DriverVer,0x00010008,%DriverVer%
[volumefltr.DeleteReg]
HKLM,System\CurrentControlSet\Control\Class{71a27cdd-812a-11d0-bec7-08002be2092f},LowerFilters,%FLG_DELREG_MULTI_SZ_DELSTRING%,volumefltr
HKLM,Software\myapp\volumefltr,%FLG_DELREG_KEYONLY_COMMON%,
HKR, “SYSTEM\CurrentControlSet\Services\volumefltr”,
;------------------------------------------------------------------------------
[FilterService]
ServiceType=1 ;Kernel driver
StartType=3 ;OnDemand start. No reboot required!
;StartType=0 ;OnBoot start. Requires reboot.
ErrorControl=1 ;Normal
ServiceBinary=%12%%DRIVERFILENAME%
DisplayName = %service_desc%
;------------------------------------------------------------------------------
; String Definitions
;------------------------------------------------------------------------------
[Strings]
msft1 = “some inc.”
service_desc = " Volume Filter Driver"
diskid1 = " Installation Disk #1 (volumefltr)"
DriverName = “volumefltr”
DriverVer = “06/27/2023,6.0.0.0”
WFPCalloutClassName = “ss”
FLG_DELREG_MULTI_SZ_DELSTRING = “0x00018002”
FLG_DELREG_KEYONLY_COMMON=“0x00002000”
SERVICENAME=“volumefltr”
DRIVERFILENAME=“volumefltr.sys”