install device driver with no user interaction

  • Thread starter Thread starter andrea.visinoni
  • Start date Start date
A

andrea.visinoni

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\USB\
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
 
(e-mail address removed) wrote in
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\USB\
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

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
 
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?
to an existing workstations, running windows xp (sp1 and sp2 both
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.
 
(e-mail address removed) wrote in @z34g2000cwc.googlegroups.com:
to an existing workstations, running windows xp (sp1 and sp2 both
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.

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
 
Adam Leinss said:
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.

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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top