Prev: Allocate isoch resource failed for 1394b driver on windows 7 x64
Next: obtain list of hardrive guid's
From: jan on 10 Feb 2010 09:02 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 run? Thanks, Jan
From: Mike [MSFT] on 10 Feb 2010 21:50 "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 "jan" <jan(a)nospam.nospam> wrote in message news:BDD3DE2C-E088-469C-A7BA-06D3CCB8DC6C(a)microsoft.com... > 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 > run? > > Thanks, Jan >
From: jan on 16 Feb 2010 07:28
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 "Mike [MSFT]" wrote: > "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 > > "jan" <jan(a)nospam.nospam> wrote in message > news:BDD3DE2C-E088-469C-A7BA-06D3CCB8DC6C(a)microsoft.com... > > 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 > > run? > > > > Thanks, Jan > > |