Query on Device Installation app!

Hello Everybody,

We are developing an installation application
that will install the drivers for a plug and play
device. As stated in the DDK documentation
(section “Writing a device installation application”),
we have copied all the installation files (INF file
and driver binaries) to a temporary directory
(say \windows\temp) and called the function
SetupCopyOEMInf () which copies the INF file to
%windir%\inf. The driver files (.sys and .dlls)
however, are not copied.

However even after doing this, when we plug in the
device, the “Found New Hardware Wizard” pops up
and asks for the installation files. The only
difference we observe is we need not point to the
directory where the driver files are stored.
The Wizard finds them automatially (i.e when
we select “Recomended” method)

Can anyone suggest as to what needs to be done so
that the driver installs automatically even without
the “Found New Hardware Wizard” popping up?

TIA

Regards
Venky


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Venkatesh,
You have two choices.

  1. Fine tune the flags in the SetupOemCopyInf api.
  2. Manually copy the inf,sys, and other files to the
    destination dir. And call the SetupOemCopyInf api with
    SP_COPY_NOOVERWRITE flag.

Note :
Keep the .inf and the .sys file in the same dir and
then give the Inf file path of this dir to the above
api.

I suggest go for the second case.

Cheers,
Jay

— Varadan Venkatesh wrote:
> Hello Everybody,
>
> We are developing an installation application
> that will install the drivers for a plug and play
> device. As stated in the DDK documentation
> (section “Writing a device installation
> application”),
> we have copied all the installation files (INF file
> and driver binaries) to a temporary directory
> (say \windows\temp) and called the function
> SetupCopyOEMInf () which copies the INF file to
> %windir%\inf. The driver files (.sys and .dlls)
> however, are not copied.
>
> However even after doing this, when we plug in the
> device, the “Found New Hardware Wizard” pops up
> and asks for the installation files. The only
> difference we observe is we need not point to the
> directory where the driver files are stored.
> The Wizard finds them automatially (i.e when
> we select “Recomended” method)
>
> Can anyone suggest as to what needs to be done so
> that the driver installs automatically even without
> the “Found New Hardware Wizard” popping up?
>
> TIA
>
> Regards
> Venky
>
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com