Installing drivers

I can install my driver via the device manager using an INF file. This
mechanism works fine.

Some products install drivers with what appears to be a normal setup
program, either for the driver only, or as part of a larger product. How
does this work?

Is there any way to install drivers using the Windows Installer?

Is there a well documented API for installing a driver (or is it necessary
to set registry entries directly)?

Are there any good samples of setup programs for drivers?

Phil

Look at the DevCon program (includes source code) in the DDK. This sample
shows how to install and contol drivers.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

“Phil Jollans” wrote in message news:xxxxx@ntdev…
>I can install my driver via the device manager using an INF file. This
>mechanism works fine.
>
> Some products install drivers with what appears to be a normal setup
> program, either for the driver only, or as part of a larger product. How
> does this work?
>
> Is there any way to install drivers using the Windows Installer?
>
> Is there a well documented API for installing a driver (or is it necessary
> to set registry entries directly)?
>
> Are there any good samples of setup programs for drivers?
>
> Phil
>
>

Also look at the driver install framework (difx) at the WHDC website
(http://www.microsoft.com/whdc/driver/install/DIFxtls.mspx ) as this
automates a lot of the standard work that has to be done.

=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Saturday, February 11, 2006 8:16 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] Installing drivers

Look at the DevCon program (includes source code) in the DDK.
This sample shows how to install and contol drivers.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting Remove
StopSpam from the email to reply

“Phil Jollans” wrote in message news:xxxxx@ntdev…
> >I can install my driver via the device manager using an INF
> file. This
> >mechanism works fine.
> >
> > Some products install drivers with what appears to be a
> normal setup
> > program, either for the driver only, or as part of a larger
> product. How
> > does this work?
> >
> > Is there any way to install drivers using the Windows Installer?
> >
> > Is there a well documented API for installing a driver (or
> is it necessary
> > to set registry entries directly)?
> >
> > Are there any good samples of setup programs for drivers?
> >
> > Phil
> >
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@hollistech.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

> Some products install drivers with what appears to be a normal setup

program, either for the driver only, or as part of a larger product. How
does this work?

SetupCopyOEMInf is a call.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

Hi Phil,

Simplest way to install driver is to copy the driver file onto
system32/drivers directory
and create a registry key (by the same name as of driver) under
currentcontrolset/services

This will work for Win2k/xp but not for Vista! Every driver or kernel mode
component needs to be signed for Vista

Ramesh Ahuja
www.winfsd.com

On 2/11/06, Phil Jollans wrote:
>
> I can install my driver via the device manager using an INF file. This
> mechanism works fine.
>
> Some products install drivers with what appears to be a normal setup
> program, either for the driver only, or as part of a larger product. How
> does this work?
>
> Is there any way to install drivers using the Windows Installer?
>
> Is there a well documented API for installing a driver (or is it necessary
> to set registry entries directly)?
>
> Are there any good samples of setup programs for drivers?
>
> Phil
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>


http://winfs.tripod.com

Note this does not work worth a damm for PnP drivers. Also, the is nothing
that says the driver and key have to be the same name, the key’s name is the
service name, not the binary driver file.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

“Ramesh Ahuja” wrote in message news:xxxxx@ntdev…
Hi Phil,

Simplest way to install driver is to copy the driver file onto
system32/drivers directory
and create a registry key (by the same name as of driver) under
currentcontrolset/services

This will work for Win2k/xp but not for Vista! Every driver or kernel mode
component needs to be signed for Vista

Ramesh Ahuja
www.winfsd.com

On 2/11/06, Phil Jollans wrote:
>
> I can install my driver via the device manager using an INF file. This
> mechanism works fine.
>
> Some products install drivers with what appears to be a normal setup
> program, either for the driver only, or as part of a larger product. How
> does this work?
>
> Is there any way to install drivers using the Windows Installer?
>
> Is there a well documented API for installing a driver (or is it necessary
> to set registry entries directly)?
>
> Are there any good samples of setup programs for drivers?
>
> Phil
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>


http://winfs.tripod.com

Hi, phil
You also can call “netcfg” in installshiled to install ndis river .
“netcfg” is a DDK sample .

Josephxu
2006/2/11, Phil Jollans :
>
> I can install my driver via the device manager using an INF file. This
> mechanism works fine.
>
> Some products install drivers with what appears to be a normal setup
> program, either for the driver only, or as part of a larger product. How
> does this work?
>
> Is there any way to install drivers using the Windows Installer?
>
> Is there a well documented API for installing a driver (or is it necessary
> to set registry entries directly)?
>
> Are there any good samples of setup programs for drivers?
>
> Phil
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>