install more than one device with same driver

Discussion in 'Windows Vista Drivers' started by jan, Feb 10, 2010.

  1. jan

    jan Guest

    we use a simplified version of DevCon for installing a driver and it works
    fine, but now we have multiple instances of the device, all controlled b y
    the same driver (this is a serial port emulator). Say I need to install three
    instances. When I run install.exe once for each instance, every time it finds
    an already installed device, it repeats installing that, so in total we see 6
    installs (1+2+3).
    I must admit that most of what goes on in install is blackmagic to me. But
    is it possible to call install once and have it install all 3 devices in one

    Thanks, Jan
    jan, Feb 10, 2010
    1. Advertisements

  2. jan

    Mike [MSFT] Guest

    "devcon install" calls "devcon update" which will force a driver install on
    all devices that match the passed in hardware ID. That is why you get 3
    installs after creating the 3rd device.

    One option is to change DevCon to create each device you want before calling
    "devcon update".

    Another option is to give each device a different hardware ID (and make sure
    you add those hardware IDs to the INF you point at).

    Another option is to not call "devcon update" from within "devcon install"
    and instead call DiInstallDevice (or InstallSelectedDriver if the OS is
    older than Vista).

    Mike [MSFT], Feb 11, 2010
    1. Advertisements

  3. jan

    jan Guest

    Hello Mike,

    I finally got it to do what I wanted. The reason for my problem is that I
    passed the generic hardware id to the installer, so it would reinstall all
    devices with that hardware id. I changed it so it now passes the device
    instance id of the new device. It works now.

    Thanks for your help.
    Regards, Jan
    jan, Feb 16, 2010
  4. jan


    Aug 8, 2014
    Likes Received:
    Hi Jan,
    I've recently rewritten one function driver(wdm driver). I need to make it support multiple devices. I don't know when I should make multiple instances of device?
    elahe1, Aug 9, 2014
    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.