How to force Driver Package Installer (DPInst) or RunSetupCommand install services for minifilter? RRS feed

  • Question

  • Looks like Driver Package Installer (DPInst) is not installing service for minifilter.. I am just using "dpinst  /LM /path C:\pathToInf\" command. The same for RunSetupCommand function from Advanced INF Package Installer (ADVPACK) - it does not 
    install Services SetupAPi vervose logs tell:
    >>>  [SetupInstallFromInfSection - DefaultInstall.Services]
    >>>  Section start 2016/04/06 05:54:38.174
          cmd: ConsoleApplication8
         flq: {_commit_file_queue} 05:54:38.178
         flq:      CommitQ DelNodes=0 RenNodes=0 CopyNodes=0
         flq:      CommitQ early exit: No nodes are queued
         flq: {_commit_file_queue exit OK} 05:54:38.180
    <<<  Section end 2016/04/06 05:54:38.182
    <<<  [Exit status: SUCCESS]
    I have tried this with minifilters samples from MSDN - not working! and InstallHinfSection DefaultInstall 128 
    infPath does not works scilently for minifilter, it shows restsrt system promt. Tests with MS minifilters driver samples.
    Wednesday, April 6, 2016 2:38 PM

All replies

  • DPInst is for full plug and play drivers, have you looked at  The techniques there should work, they have in the past for me.

    Don Burn Windows Driver Consulting Website:

    Wednesday, April 6, 2016 2:52 PM
  • Yes, In installer silent install is needed in most cases. And tell that 128 +0 mean "Never reboot the computer." but for minifilters with StartType= SERVICE_BOOT_START that is common case there is still restart system prompt. Tested on different OS with different minifilters from windwos drives samples.
    Wednesday, April 6, 2016 8:25 PM
  • Also looks like InstallHinfSection documentation says nothing how to get instalation staus. Was it succeeded or failed. Looks reasinably to use GetLastWin32, but even if returns zero doesn't mean that instalation succeeded  I saw examples when it returned 0 and instalation failed and when it retun error and instalation was succeeded  but there were, maybe, some like a warning.
    Thursday, April 7, 2016 9:24 AM