i all,
As I said earlier, am invoved in creating PnP for a driver package ( Using windows default driver “UsBSER.sys”) and with DPInst.exe.
Since USBSER.SYS is not required to sign and i am getting warning during the installaion of driver(due to unsigned inf).
After installing the driver at first time, If i unplug and re-insert the device in another port , windows finds the correspongding inf from INF ROOT directory and tried to load but it fails due to the error 1168.
Below is my setupApi.log :
[2012/03/28 21:56:18 1180.3 Driver Install]
#-019 Searching for hardware ID(s): usb\vid_1234&pid_2345&rev_1234,usb\vid_1234&pid_2345
#-018 Searching for compatible ID(s): usb\class_02&subclass_02&prot_00,usb\class_02&subclass_02,usb\class_02
#-198 Command line processed: C:\WINDOWS\system32\services.exe
#I022 Found “USB\VID_1234&PID_2345” in C:\WINDOWS\inf\oem48.inf; Device: “USB MY DEVICE”; Driver: “USB MY DEVICE”;
Provider: “KARTHICKS COMPANY”; Mfg: “KARTHIKS COMPANY”; Section name: “MY”.
#I087 Driver node not trusted, rank changed from 0x00000001 to 0x00008001.
#I023 Actual install section: [MY.NT]. Rank: 0x00008001. Effective driver date: 04/22/2008.
#-166 Device install function: DIF_SELECTBESTCOMPATDRV.
#I063 Selected driver installs from section [MY] in “c:\windows\inf\oem48.inf”.
#I320 Class GUID of device remains: {4D36E978-E325-11CE-BFC1-08002BE10318}.
#I060 Set selected driver.
#I058 Selected best compatible driver.
#-166 Device install function: DIF_INSTALLDEVICEFILES.
#I124 Doing copy-only install of “USB\VID_1234&PID_2345\7&1234E19F&1&2”.
#-011 Installing section [MY.NT] from “c:\windows\inf\oem48.inf”.
#E358 An unsigned or incorrectly signed file “c:\windows\inf\oem48.inf” for driver “USB MY DEVICE” blocked (server install). Error 1168:
Element not found.
#E122 Device install failed. Error 1168: Element not found.
#E157 Default installer failed. Error 1168: Element not found.
So, i am restricting the user to use the single USB port to avoid multiple installations and am not able to achieve pnp mode of installation.
But in later versions of windows,it can load the driver even if its unsigned and am not prompted to install the driver more than once.
Note : With Test certifiactes signed for inf alone (not for drivers) and insatlled our driver package is working fine in all the versions of Windows including windows xp.