add hardware wizard .exe

  • Thread starter Thread starter James Beau Cseri
  • Start date Start date
J

James Beau Cseri

Does anyone know which .exe is responsible for launching the add hardware
wizard?

One way to disable the wizard is to rename newdev.dll, however, this
popluates the event log with warnings from PlugPlayManager. There's a place
in the system properties to specify programs that I do not want to report
errors to the event log, except I do not know which .exe to specify for not
reporting the PlugPlayManager warnings.
 
Hi James,

Week ago I spent few days solving this problem so I can have newdev.dll present and PnP still not to report warning for rebooting
computer.
Why don't you just simply remove: "Add Hardware Control Panel"?

What log files are you talking exactly?
setupapi.log is the root log file where you can see PnP activity. (This can be disabled but I guess that you are talking about some
other log files)

So what hardware are you talking about that cause this?
In which case, after cloning or when you add new hardware component?

Can you give me more clues what you see and why, and what you want to hide.

Best regards,
Slobodan

PS:
I created three different approaches to solve this in my case but they are probably not applicable to you.
Two are driver based.
And one involves writing CoInstaller.
 
Slobodan Brcin (eMVP) said:
PS:
I created three different approaches to solve this in my case but they are probably not applicable to you.
Two are driver based.
And one involves writing CoInstaller.

Any chance of letting us in on the 3 methods you tried? We have gone for
the renaming of newdev.dll, which works reasonably well, but I wouldn't mind
seeing what other options we have. I'm sure other people would like to see
also, as it's quite a common problem,
 
Hi Mark,

First like I said: You probably don't need in most projects: "Add Hardware Control Panel" so remove it and you will be ok.

I assume that you know how to preinstall driver from TD to run on any compatible PnP ID. Although it might work even when drivers
are loaded from inf file as well.

Keep this link open while reading following:
http://msdn.microsoft.com/library/d..._8f5ef1c3-94c3-48d5-8f9a-301b7f453cef.xml.asp

Wild hack #1:
When your driver load in its AddDevice you can access your registry "Device's hardware key" and change run-time value of ConfigFlags
to 0, this way User Mode PnP will not know that there was any hardware change and will not attempt to install better drivers (same
drivers) again since it consults few bits in ConfigFlags to determine what it should do next.

Wild hack #2:
Depending on hardware and its lower drivers you can either change how device is enumerated from Serial number to physical bus
position. So when you change device not even Kernel Mode PnP will see any difference.
This behavior can also be accomplished by changing default driver functionality trough filter drivers.

Reasonably appropriate hack: #3

You can write Device CoInstaller that will remove DI_NEEDREBOOT flag and if appropriate other flags, so you can directly affect
newdev.dll not to bug you with annoying proposals to reboot device because new drivers were installed and previous was unable to
stop.

Best regards,
Slobodan
 
I'm attempting to explore all possibilities surrounding the prevention of
the Add Hardware Wizard popping up, and not for any device in particular. By
renaming newdev.dll, the Applications log in the Event Viewer (eventvwr.exe)
becomes populated with warnings about how it cannot find newdev.dll. This
approach gives the option of re-enabling the Add Hardware Wizard, but I'm
trying to figure out how to get the system to not report the warnings in the
Event Viewer. In the Advanced tab of the System Properties is the Error
Reporting button, which brings up a window where you can specify an EXE from
which errors will not be reported. I'm not exactly sure if the prevents them
from showing up in the Event Viewer, but I was assuming that it will.

At any rate, I'll try the three approaches you mentioned. Thanks for the
good feedback!
 
Back
Top