Basic questions on using devcon to install mirror driver on vista

Discussion in 'Windows Vista Drivers' started by Debby Mendez, Mar 26, 2009.

  1. Debby Mendez

    Debby Mendez Guest

    I have some basic questions regarding the install/uninstall of a mirror
    driver on Vista.

    1. I can use "devcon install driver.inf driverhwid" to successfully install
    the driver. However, the call to UpdateDriverForPlugAndPlayDevices() takes a
    long time (20 seconds). From the setupapi.dev.log it appears that the call
    to SetupCopyOEMInf() (made by UpdateDriverForPlugAndPlayDevices()) is what
    takes the bulk of the time. Is this normal?

    2. After the install, the mirror driver is listed in the device manager.
    The "reboot" param of UpdateDriverForPlugAndPlayDevices is false. However
    when my application calls EnumDisplayDevices(), the newly installed mirror
    driver does is not returned in the enumeration. Logging out of Vista and
    back in fixes the problem; a reboot is NOT needed. Is there a way to make
    the driver immediately visible?

    3. In devcon, the call to UpdateDriverForPlugAndPlayDevices() always passes
    the INSTALLFLAG_FORCE flag, regardless of what you specify on the command
    line. Why?

    4. If I uninstall via the device manager and check "delete driver files" it
    appears that the driver files (sys/dll) are removed, as well as the
    windows\inf\oem*.inf file and the entry in
    C:\Windows\System32\DriverStore\FileRepository. What is the correct way to
    accomplish this with devcon? I found that "devcon remove" followed by
    reboot, followed by "devcon dp_delete" uninstalled the driver and removed the
    files from the driver store, but left the dll/sys files under windows\system32

    Thank you
     
    Debby Mendez, Mar 26, 2009
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.