Hello,
One option is to try removing the [DefaultInstall] section from the .inf file. Make sure your driver and inf tile is stored in a file inside the CAB. Not at the root of the CAB.
Make sure that the chkinf tool is up to date.
INF Version Section
https://learn.microsoft.com/en-us/windows-hardware/drivers/install/inf-version-section
As a best-practice, I strongly recommend that you try to get the original printer driver from the vendor. Nowadays, these should be WHQL signed. If this is not possible, the following workarounds are available to you:
Disable integrity checks (bcdedit.exe)
Sign the catalog file (selfcert.exe, signtool.exe)
Disable integrity checks (bcdedit.exe)
One workaround for installing unsigned drivers is to play around with the boot configuration data settings (BCD), but this method goes against various security guidelines from Microsoft and becomes more and more difficult with newer operating systems. The goal of this method is to disable integrity checks and enable the test-signing mode using the bcdedit.exe.
Disable integrity checks by executing the following command:
bcdedit.exe /set loadoptions DISABLE_INTEGRITY_CHECKS
Enable test-signing by executing the following command:
bcdedit.exe /set testsigning ON
Please be aware that when Secure Boot is enabled, the above two commands have no affect.
To undo the above settings, execute the following commands:
bcdedit.exe /deletevalue loadoptions
bcdedit.exe /set testsigning OFF
-------------------------------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--