I wonder if someone could point to me the right direction as this inf problem has been troubling me for a while.
I am using ClickOnce installer to install a prerequisite component.
I'd written a boostrapper package that unconditionally downloads a package (.inf, .cat, dpinst.exe, .bat) to a PC successfully.
The batch file runs the command "dpinst /LM ", the "Device Driver Installation Wizard" automatically pops up, and the "Completing the Device Driver Installation Wizard" says successful.
Next I plug a special usb cable to the PC, then "Found New Hardware" wizard pops up. The problem now comes:
It asks for location of the driver. For PC that has never connected to this special usb cable, it requires me to explicitly specify the location of the .inf and .cat files; otherwise, it can't find them and will fail. (For PC that had used the special usb cable before, it automatically finds it alright.)
I wonder what I am missing that causes the "Found New Hardware" wizard unable to automatically find the .inf and .cat files. It looks like the previous step 'Device Driver Installation" wizard had not installed the .inf/.cat file successfully. When I look into the "c:Windows\Inf" folder, I can't see the associated oem or inf file.
PS. I am testing it on 32-bit Windows XP PC.
Thanks in advance.