Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

How do I use devcon to update drivers?

- - - - -

  • Please log in to reply
2 replies to this topic

#1
BdN3504

BdN3504

    Newbie

  • Member
  • 27 posts
  • Joined 07-January 09
I am trying to update the drivers for a USB Stick using devcon.
I copied devcon to C:\ and the drivers to C:\drivers.
I opened cmd and executed the following command, to ensure I have the appropriate rights:
runas /u:Administrator cmd
In the Administrator shell I executed the following command:
C:\>devcon.exe hwids USBSTOR\GenDisk
and got this output:
USBSTOR\DISK&VEN_INTENSO&PROD_PREMIUM&REV_0.00\09123100022036&0
    Name: Intenso Premium USB Device
    Hardware ID's:
        USBSTOR\DiskIntenso_Premium_________0.00
        USBSTOR\DiskIntenso_Premium_________
        USBSTOR\DiskIntenso_
        USBSTOR\Intenso_Premium_________0
        Intenso_Premium_________0
        USBSTOR\GenDisk
        GenDisk
    Compatible ID's:
        USBSTOR\Disk
        USBSTOR\RAW
1 matching device(s) found.
Then, I executed this command:
C:\>devcon.exe update C:\drivers\cfadisk.inf "USBSTOR\DISK&VEN_INTENSO&PROD_PREM
IUM&REV_0.00\09123100022036&0"

And got this output:
Updating drivers for USBSTOR\DISK&VEN_INTENSO&PROD_PREMIUM&REV_0.00\091231000220
36&0 from C:\drivers\cfadisk.inf.
devcon.exe failed.
I cannot make out what I am doing wrong. The behavior I am expecting is described here.
But as you can see, I only get the nondescript "devcon.exe failed" message.
Can you help me?


How to remove advertisement from MSFN

#2
cdob

cdob

    MSFN Expert

  • Member
  • PipPipPipPipPipPip
  • 1,006 posts
  • Joined 29-September 05
Cfadisk.inf has to contain the HardwareID.

Edit cfadisk.inf first:
[cfadisk_device]
%Microdrive_devdesc% = cfadisk_install,USBSTOR\DiskIntenso_
%Microdrive_devdesc% = cfadisk_install,USBSTOR\GenDisk
run
devcon install  cfadisk.inf USBSTOR\DiskIntenso_
or
devcon install  cfadisk.inf USBSTOR\GenDisk
This is a generic approach:
cfadisk is connected to current attached USB storage devices

#3
BdN3504

BdN3504

    Newbie

  • Member
  • 27 posts
  • Joined 07-January 09
Nice! Thanks man. I didn't know the HardwareID was DiskIntenso_, I thought it had to be String containing the Vendor ID etc, because that's what I put into the cfadisk.inf file.
This is weird, because I already tried GenDisk errrr but without the modifications in the inf file. That makes sense now. Thanks!

Edited by BdN3504, 26 May 2010 - 01:06 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users