Tech Support > Microsoft Windows > Hardware > install device driver with no user interaction
install device driver with no user interaction
Posted by andrea.visinoni@gmail.com on March 8th, 2006


I need to run a batch or an exe to install drivers for a Pnp usb device
with FTD2XX
drivers from FTDI.
Now from a batch i call:
C:\WINDOWS\System32\rundll32.exe setupapi,InstallHinfSection
DefaultInstall 132 .\ftd2xx.inf

and i can successfully see the file install dialog appear, all the
drivers
files are copyied in the right places, oemxx.inf is created, but when i
plug in the device the same dialog appear and i need to reinstall
drivers again in order to make it work.
I noticed that after the batch, in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\U SB\
there is no Vid_0403&Pid_6001 key as expected

So how can i full manually install this device without interaction with
the user?
Hi Andrea

Posted by Adam Leinss on March 8th, 2006


andrea.visinoni@gmail.com wrote in
news:1141830836.116710.90120@v46g2000cwv.googlegro ups.com:

I think we need a bit more information. Are you trying to include
support for this USB device on an image or are you trying to script
it out to existing workstations? I know that on my last job we had a
bunch of USB cameras in which I had to make the user an
administrator, log in as that user, install the camera, then back the
user out of the administrator's group. It wanted to install "PER
USER" for some reason.

The only difference between the users were their profiles, so my
guess is that the device installation writes something to the current
user's registry (HKCU) or profile folder. You can try using Regmon
and or Filemon while the install is happening to see:

A. What it queries
B. Where it queries
C. What it writes
D. Where it writes

Adam
--
Visit my PC Tech blog at www.leinss.com/blog

Posted by andrea.visinoni@gmail.com on March 9th, 2006


tested), as Administrator.
with regmon and filemon i notice only that device drivers files are
copied in the right place, for the registry nothing appens.


Posted by Adam Leinss on March 12th, 2006


andrea.visinoni@gmail.com wrote in news:1141892441.632821.295830
@z34g2000cwc.googlegroups.com:

You could try using capture or repacking software to capture the
settings pushed out by the driver installation. Try InstallRite 2.5
(http://www.epsilonsquared.com/) and see if you can repackage the
driver installation so the user isn't prompted.

Adam
--
Visit my PC Tech blog at www.leinss.com/blog

Posted by Pavel A. on March 13th, 2006


"Adam Leinss" <aleinss@hotmail.com> wrote in message news:Xns9783ED77B37AAaleinsstechie@toughguy.net...
Please don't. This is not a good advice for installing PnP drivers such as USB.
Use DifX to package and preinstall PnP drivers with applications.

Regards,
--PA




Similar Posts