Preventing new hardware wizard popup

Hi all,

I’m trying to programmatically prevent the Found New Hardware Wizard
popup when a new device is found.
I’m writing a program that reads the device’s hw id when it appears and
installs the appropriate driver.

Pre-installing the driver and let new hw manager do the work is not an
option, since the device is not known before plug in (it can be an ATI
or NVidia card) and there is no unpackaged driver on the manufacturer’s
web site, so I have to launch the driver installer application they
provide.

Thank you
Giovanni Longoni

Giovanni Longoni wrote:

I’m trying to programmatically prevent the Found New Hardware Wizard
popup when a new device is found.
I’m writing a program that reads the device’s hw id when it appears
and installs the appropriate driver.

Too late. By the time you can read the hardware ID, the Found New
Hardware Wizard will already be on its way up.

Pre-installing the driver and let new hw manager do the work is not an
option, since the device is not known before plug in (it can be an ATI
or NVidia card) and there is no unpackaged driver on the
manufacturer’s web site, so I have to launch the driver installer
application they provide.

I don’t understand your goal here. Are you an IT guy trying to automate
the configuration of a bunch of PCs? You could pre-install BOTH the ATI
and nVidia drivers, so it always has the right one.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Thank you, Tim.
Maybe I’m bound to go with both drivers pre-install, but here are more info about my goal.

Scenario:
* Notebook users with XP or Vista.
* the user will add an external device that can include ATI or NVidia graphics chipset. The device is connected trough ExpressCard slot. Both ATI and NVidia drivers are provided in the same installer, but which of the two versions of the product is being plugged is not know by the installer beforehand.

I’m trying to write an installer or program that:
* prevents new hardware wizard popups
* asks user to plug in the external device
* Depending on the version of the device plugged (ATI or nVidia) and the OS, proceed instaling/precopying the proper driver.
* Avoid preinstalling both drivers to not waste customer’s resources.
* The preferred way is to spawn original ATI/NVidia installers, that will work only when the target gpu is already plugged in the system

xxxxx@villagetronic.com wrote:

Thank you, Tim.
Maybe I’m bound to go with both drivers pre-install, but here are more info about my goal.

Scenario:
* Notebook users with XP or Vista.
* the user will add an external device that can include ATI or NVidia graphics chipset. The device is connected trough ExpressCard slot. Both ATI and NVidia drivers are provided in the same installer, but which of the two versions of the product is being plugged is not know by the installer beforehand.

I’m trying to write an installer or program that:
* prevents new hardware wizard popups
* asks user to plug in the external device
* Depending on the version of the device plugged (ATI or nVidia) and the OS, proceed instaling/precopying the proper driver.
* Avoid preinstalling both drivers to not waste customer’s resources.
* The preferred way is to spawn original ATI/NVidia installers, that will work only when the target gpu is already plugged in the system

Well, you can’t wait until the thing is plugged in. That’s too late.
As I said, by the time you get notified, the wizard is already casting
its spells. As I see it, you have two choices: ask the user “which one
do you have”, or pre-install both drivers.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.