InstallHinfSection fails to start service

Hi,

  1. I’ve heard about some requirement for windows 8, that all drivers (or kernel service) should be installed using inf file, i.e. we should no longer user CreateService/StartService. Can anyone confirm this requirement?

  2. I took a sample inf file from ddk (simrep) and created an installation package. Everything works by the book with one exception: the service does not start. Setupapi log does not contain any errors. I have tried all available auto start types, but none of them start the service during the installation. After reboot the driver starts. I am using “rundll32 setupapi.dll,InstallHinf DefaultInstall 132 c:\install\mydrv.inf”. Has anyone encountered such problem?

Thanks,
Anatoly.