I am trying to install the usbsamp driver on win 7 64 using devcon.
This is cmd line i am using "devcon install usbsamp.inf “USB\VID_045E&PID_930A”.
When I go to device manager i see two devices with the same name. One of the devices has yellow triangle icon on it (problem with driver?). When I look at their Hardware ids,
i see that the good driver has the following ids:
“USB\VID_045E&PID_930A&REV_0100”
“USB\VID_045E&PID_930A”
and the bad driver has hardware id
“USB\VID_045E&PID_930A&REV_0100”.
When I install the driver using “Device manager” and dpinst (GUI) the installation pass.
Installing the driver using devcon or dpinst from command line partially failed.
I set Windows to ignore uncertified driver.
I am running as Administrator.
Can anyone help me on this issue?
Thank you for your help.
That is because DIFXCMD is doing the correct operation whereas devcon install is the wrong operation.
devcon install will create a root enumerated (virtual) device and install your driver on it. Since your actual device is a USB device, that is not going to be terribly useful.
The equivalent devcon command is
devcon update
Good Luck,
Dave Cattley
Date: Wed, 5 Jan 2011 10:08:50 -0500
From: xxxxx@gmail.com
To: xxxxx@lists.osr.com
Subject: RE:[ntdev] Installing usbsamp on win 7 shows two devices
using difxcmd.exe (cmd line) works.
This is interesting why devcon and dpinst using command line fails.
using difxcmd.exe (cmd line) works.
This is interesting why devcon and dpinst using command line fails.
This is one of the most common mistakes made with devcon. As Gary
pointed out, “devcon install” creates a FAKE device, with the same
identifier that you want for your hardware. Your driver will then be
loaded for that fake device, and in the case of a USB driver,
unhappiness usually ensues.
I’m not sure how to change things to make this less likely to happen.
Perhaps the command should be “devcon create” instead of “devcon install”?
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
The correct ‘verb’ to devcon is ‘update’ not ‘install’. If you like difxcmd then sure, use it. As you wish.
The proposed verb ‘create’ was Tim just wishing for a more intuitive word than ‘install’. devcon is a tool and like all tools, you need to understand its proper use to get any value out of it. The ‘install’ verb is confusing and that was Tim’s primary point.
Good Luck,
Dave Cattley
Date: Wed, 5 Jan 2011 16:26:11 -0500
From: xxxxx@gmail.com
To: xxxxx@lists.osr.com
Subject: RE:[ntdev] Installing usbsamp on win 7 shows two devices
Hello David/Tim,
Thank you very much for your reply.
So basically, it is prefered to use difxcmd to install the driver ?
Tim , devcon “create” command switch doesn’t exist. Anyway, i will use difxcmd.