Setup files

Hi all,

I have a driver for scanner device. I install all the related files to
system folder of target machine during installation process and inf file
to INF folder. When I connect the device the ‘New hardware found’
wizard will ask for the path for the files which I copied to the system
folder. Is there is any way I can ask the system to copy this relevent
files without manual intervention?

Any help is appreciated.
Thanks and Best regards
Srinidhi.


Robosoft Technologies, Mangalore, India


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

I think You can do this with W2k and NT4.0; However, WindowsME
and bellow do not have this option.

Vu

---- On Thu, 23 Aug 2001, Srinidhi Rao S
(xxxxx@robosoftin.com) wrote:

Hi all,

I have a driver for scanner device. I install all the related
files to
system folder of target machine during installation process
and inf file
to INF folder. When I connect the device the ‘New hardware
found’
wizard will ask for the path for the files which I copied to
the system
folder. Is there is any way I can ask the system to copy this
relevent
files without manual intervention?

Any help is appreciated.
Thanks and Best regards
Srinidhi.


Robosoft Technologies, Mangalore, India


You are currently subscribed to ntdev as: xxxxx@ureach.com
To unsubscribe send a blank email to leave-ntdev-
xxxxx@lists.osr.com


Get your own “800” number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


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

Hi,

Do you hae any idea how we do it in Win XP??

srinidhi.

vu smith wrote:

I think You can do this with W2k and NT4.0; However, WindowsME
and bellow do not have this option.

Vu

---- On Thu, 23 Aug 2001, Srinidhi Rao S
(xxxxx@robosoftin.com) wrote:

> Hi all,
>
> I have a driver for scanner device. I install all the related
files to
> system folder of target machine during installation process
and inf file
> to INF folder. When I connect the device the ‘New hardware
found’
> wizard will ask for the path for the files which I copied to
the system
> folder. Is there is any way I can ask the system to copy this
relevent
> files without manual intervention?
>
> Any help is appreciated.
> Thanks and Best regards
> Srinidhi.
>
> --------------------------------------------------------------
> Robosoft Technologies, Mangalore, India
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@ureach.com
> To unsubscribe send a blank email to leave-ntdev-
xxxxx@lists.osr.com
>
>


Get your own “800” number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


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


Robosoft Technologies, Mangalore, India


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

Hello Srinidhi,

Need to use SetupCopyOemInf api to copy the inf file.

Here is a quote from the DDK:

"Pre-installing Driver Files
To pre-install driver files, your device installation application should
follow these steps:

  1. On the target system, create a directory for the driver files. If
    your device installation application installs an application, the driver
    files should be stored in a subdirectory of the application directory.
  2. Copy all files in the driver package from the distribution media to
    the directory created in Step 1. The driver package includes the driver
    or drivers, the INF file, the catalog file, and so forth.
  3. Call SetupCopyOEMInf (described in Platform SDK documentation),
    specifying the INF file in the directory created in Step 1. Specify
    SPOST_PATH for the OEMSourceMediaType parameter and specify NULL for the
    OEMSourceMediaLocation parameter. SetupCopyOEMInf copies the INF file
    for the driver package into the %windir%\Inf directory on the target
    system and directs SetupAPI to store the source location of the INF file
    in its list of preprocessed INF files. SetupCopyOEMInf also processes
    the catalog file, so the PnP Manager will install the driver the next
    time it recognizes a device listed in the INF file.
    When the user plugs in the device, the PnP Manager recognizes the
    device, finds the INF file copied by SetupCopyOEMInf, and installs the
    drivers copied in Step 2"

In addition, for XP, the driver package should be digitally signed for
the above to work.

Thanks,
Khalid

-----Original Message-----
From: Srinidhi Rao S [mailto:xxxxx@robosoftin.com]
Sent: Thursday, August 23, 2001 1:08 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Setup files

Hi,

Do you hae any idea how we do it in Win XP??

srinidhi.

vu smith wrote:

I think You can do this with W2k and NT4.0; However, WindowsME
and bellow do not have this option.

Vu

---- On Thu, 23 Aug 2001, Srinidhi Rao S
(xxxxx@robosoftin.com) wrote:

> Hi all,
>
> I have a driver for scanner device. I install all the related
files to
> system folder of target machine during installation process
and inf file
> to INF folder. When I connect the device the ‘New hardware
found’
> wizard will ask for the path for the files which I copied to
the system
> folder. Is there is any way I can ask the system to copy this
relevent
> files without manual intervention?
>
> Any help is appreciated.
> Thanks and Best regards
> Srinidhi.
>
> --------------------------------------------------------------
> Robosoft Technologies, Mangalore, India
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@ureach.com
> To unsubscribe send a blank email to leave-ntdev-
xxxxx@lists.osr.com
>
>


Get your own “800” number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


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


Robosoft Technologies, Mangalore, India


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.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

Win XP and Win2K and winnt4.0 use the same inf file.

Vu

---- On Fri, 24 Aug 2001, Srinidhi Rao S
(xxxxx@robosoftin.com) wrote:

Hi,

Do you hae any idea how we do it in Win XP??

srinidhi.

vu smith wrote:
>
> I think You can do this with W2k and NT4.0; However,
WindowsME
> and bellow do not have this option.
>
> Vu
>
> ---- On Thu, 23 Aug 2001, Srinidhi Rao S
> (xxxxx@robosoftin.com) wrote:
>
> > Hi all,
> >
> > I have a driver for scanner device. I install all the
related
> files to
> > system folder of target machine during installation
process
> and inf file
> > to INF folder. When I connect the device the ‘New
hardware
> found’
> > wizard will ask for the path for the files which I copied
to
> the system
> > folder. Is there is any way I can ask the system to copy
this
> relevent
> > files without manual intervention?
> >
> > Any help is appreciated.
> > Thanks and Best regards
> > Srinidhi.
> >
> > ----------------------------------------------------------


> > Robosoft Technologies, Mangalore, India
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as:
xxxxx@ureach.com
> > To unsubscribe send a blank email to leave-ntdev-
> xxxxx@lists.osr.com
> >
> >
>
> ________________________________________________
> Get your own “800” number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
>
> —
> You are currently subscribed to ntdev as:
xxxxx@robosoftin.com
> To unsubscribe send a blank email to leave-ntdev-
xxxxx@lists.osr.com


Robosoft Technologies, Mangalore, India


You are currently subscribed to ntdev as: xxxxx@ureach.com
To unsubscribe send a blank email to leave-ntdev-
xxxxx@lists.osr.com


Get your own “800” number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


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

Hi Khalid,

That was a great help. Thanks a lot…

Best regards
srinidhi.

Khalid Sabri wrote:

Hello Srinidhi,

Need to use SetupCopyOemInf api to copy the inf file.

Here is a quote from the DDK:

"Pre-installing Driver Files
To pre-install driver files, your device installation application should
follow these steps:

  1. On the target system, create a directory for the driver files. If
    your device installation application installs an application, the driver
    files should be stored in a subdirectory of the application directory.
  2. Copy all files in the driver package from the distribution media to
    the directory created in Step 1. The driver package includes the driver
    or drivers, the INF file, the catalog file, and so forth.
  3. Call SetupCopyOEMInf (described in Platform SDK documentation),
    specifying the INF file in the directory created in Step 1. Specify
    SPOST_PATH for the OEMSourceMediaType parameter and specify NULL for the
    OEMSourceMediaLocation parameter. SetupCopyOEMInf copies the INF file
    for the driver package into the %windir%\Inf directory on the target
    system and directs SetupAPI to store the source location of the INF file
    in its list of preprocessed INF files. SetupCopyOEMInf also processes
    the catalog file, so the PnP Manager will install the driver the next
    time it recognizes a device listed in the INF file.
    When the user plugs in the device, the PnP Manager recognizes the
    device, finds the INF file copied by SetupCopyOEMInf, and installs the
    drivers copied in Step 2"

In addition, for XP, the driver package should be digitally signed for
the above to work.

Thanks,
Khalid

-----Original Message-----
From: Srinidhi Rao S [mailto:xxxxx@robosoftin.com]
Sent: Thursday, August 23, 2001 1:08 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Setup files

Hi,

Do you hae any idea how we do it in Win XP??

srinidhi.

vu smith wrote:
>
> I think You can do this with W2k and NT4.0; However, WindowsME
> and bellow do not have this option.
>
> Vu
>
> ---- On Thu, 23 Aug 2001, Srinidhi Rao S
> (xxxxx@robosoftin.com) wrote:
>
> > Hi all,
> >
> > I have a driver for scanner device. I install all the related
> files to
> > system folder of target machine during installation process
> and inf file
> > to INF folder. When I connect the device the ‘New hardware
> found’
> > wizard will ask for the path for the files which I copied to
> the system
> > folder. Is there is any way I can ask the system to copy this
> relevent
> > files without manual intervention?
> >
> > Any help is appreciated.
> > Thanks and Best regards
> > Srinidhi.
> >
> > --------------------------------------------------------------
> > Robosoft Technologies, Mangalore, India
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@ureach.com
> > To unsubscribe send a blank email to leave-ntdev-
> xxxxx@lists.osr.com
> >
> >
>
> ________________________________________________
> Get your own “800” number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
>
> —
> You are currently subscribed to ntdev as: xxxxx@robosoftin.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


Robosoft Technologies, Mangalore, India


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


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


Robosoft Technologies, Mangalore, India


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

There is an example with source code for this exact scenario in this months (September 2001) issue of Windows Developer’s Journal - see page 61 if you happen to have a copy -

Ed Lau

MidCore Software, Inc.
900 Straits Tpke
Middlebury, CT 06762

www.midcore.com
----- Original Message -----
From: Srinidhi Rao S
To: NT Developers Interest List
Sent: Friday, August 24, 2001 1:20 AM
Subject: [ntdev] Re: Setup files

Hi Khalid,

That was a great help. Thanks a lot…

Best regards
srinidhi.

Khalid Sabri wrote:

Hello Srinidhi,

Need to use SetupCopyOemInf api to copy the inf file.

Here is a quote from the DDK:

"Pre-installing Driver Files
To pre-install driver files, your device installation application should
follow these steps:

  1. On the target system, create a directory for the driver files. If
    your device installation application installs an application, the driver
    files should be stored in a subdirectory of the application directory.
  2. Copy all files in the driver package from the distribution media to
    the directory created in Step 1. The driver package includes the driver
    or drivers, the INF file, the catalog file, and so forth.
  3. Call SetupCopyOEMInf (described in Platform SDK documentation),
    specifying the INF file in the directory created in Step 1. Specify
    SPOST_PATH for the OEMSourceMediaType parameter and specify NULL for the
    OEMSourceMediaLocation parameter. SetupCopyOEMInf copies the INF file
    for the driver package into the %windir%\Inf directory on the target
    system and directs SetupAPI to store the source location of the INF file
    in its list of preprocessed INF files. SetupCopyOEMInf also processes
    the catalog file, so the PnP Manager will install the driver the next
    time it recognizes a device listed in the INF file.
    When the user plugs in the device, the PnP Manager recognizes the
    device, finds the INF file copied by SetupCopyOEMInf, and installs the
    drivers copied in Step 2"

In addition, for XP, the driver package should be digitally signed for
the above to work.

Thanks,
Khalid

-----Original Message-----
From: Srinidhi Rao S [mailto:xxxxx@robosoftin.com]
Sent: Thursday, August 23, 2001 1:08 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Setup files

Hi,

Do you hae any idea how we do it in Win XP??

srinidhi.

vu smith wrote:
>
> I think You can do this with W2k and NT4.0; However, WindowsME
> and bellow do not have this option.
>
> Vu
>
> ---- On Thu, 23 Aug 2001, Srinidhi Rao S
> (xxxxx@robosoftin.com) wrote:
>
> > Hi all,
> >
> > I have a driver for scanner device. I install all the related
> files to
> > system folder of target machine during installation process
> and inf file
> > to INF folder. When I connect the device the ‘New hardware
> found’
> > wizard will ask for the path for the files which I copied to
> the system
> > folder. Is there is any way I can ask the system to copy this
> relevent
> > files without manual intervention?
> >
> > Any help is appreciated.
> > Thanks and Best regards
> > Srinidhi.
> >
> > --------------------------------------------------------------
> > Robosoft Technologies, Mangalore, India
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@ureach.com
> > To unsubscribe send a blank email to leave-ntdev-
> xxxxx@lists.osr.com
> >
> >
>
> ________________________________________________
> Get your own “800” number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
>
> —
> You are currently subscribed to ntdev as: xxxxx@robosoftin.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


Robosoft Technologies, Mangalore, India


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


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


Robosoft Technologies, Mangalore, India


You are currently subscribed to ntdev as: xxxxx@midcore.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.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