Please consider these logical understandings:
-
Microsoft is happy to provide an option to the users even to ignore the warnings whatsoever, if the user is ready.
-
Also, Microsoft accepts the driver installation with Trusted Publishers warning , if the approval is from the end user.
It clearly indicates that the control is with the end user and no other security factors are concerned at all from
Microsoft.
I will clearly tell my user that why i am asking them to install this certificate and they are willing to go with me…
- And in my case, i am using only the Microsoft’s Native Driver and am just trying to avoid the issue with PnP installation
in Windows Xp, as stated below.
Microsoft implemented two different scenario in two different versions.
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(not sure whether its a
intended error or a bug in xp).
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: “s COMPANY”; Mfg: “S 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.
4.Howcome, the windows accepted the same inf at first installation and not loading from the precompilation installation at
later point of time?
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.So pnp installation is successfully working.
Note : The pnp installation through DPInst.exe With self signed certifiacte for inf alone (not for drivers) is working fine
in all the versions of Windows including windows xp.
Can anybody from microsoft say something that could be so solid?
FYI : POSTED IN xxxxx@lists.sourceforge.net ALSO.