SetupDiGetDeviceInstallParams - empty DriverPath returned

Hi,
I’m trying to extend a device installation by providing a pre-install facility.
The pre-install utility just calls SetupCopyOEMInf. That seems to go ok. Barring
the usual digital signature dialogs, the install picks up the install files
from the directory specified in the preinstall.

The problem is in my the co-installer. When I call SetupDiGetDeviceInstallParams,
it returns with ‘success’ but the DriverPath is empty.

If I don’t use the pre-install (i.e. I specify the location when the OS prompts
for drivers) the DriverPath value is valid. It only seems to happen in the context
of a pre-install.

I can’t find anything to dump the contents of the PNF that’s generated after
calling SetupCopyOEMINF but I can see the correct path at the very end of the
file.

Anyone have any ideas?

Thanks

*************************** ADVERTISEMENT ******************************
Ready to buy a new Car ? Click to get a free Competitive quote
http://www.autofinder.ie/iol/index.htm