Installing WDF Driver

Hallo!

Is it possible to install an unsigned WDF driver via setup automatically, so
that the user doesn’t need to do anything?
Like this: “setup.exe” -> “Forward” -> …installing driver… -> “Ready”

Markus

Markus wrote:

Hallo!

Is it possible to install an unsigned WDF driver via setup automatically, so
that the user doesn’t need to do anything?
Like this: “setup.exe” -> “Forward” -> …installing driver… -> “Ready”

Officially? No. Unofficially? The check for driver signing is
switchable in the system control panel. The state of that switch is
stored in the registry. An unethical setup app could change the value,
install, and restore the value.

The better thing to do is warn your users that “you may see a warning
about an unsigned driver; please click ‘continue anyway’.”

Of course, the best thing is to get your driver signed…


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

OK, the second way is better.
Can you also tell me with program i have to call, to let this window pop up
for my driver?

“Tim Roberts” schrieb im Newsbeitrag news:xxxxx@ntdev…
> Markus wrote:
>
> >Hallo!
> >
> >Is it possible to install an unsigned WDF driver via setup automatically,
so
> >that the user doesn’t need to do anything?
> >Like this: “setup.exe” -> “Forward” -> …installing driver… -> “Ready”
> >
> >
>
> Officially? No. Unofficially? The check for driver signing is
> switchable in the system control panel. The state of that switch is
> stored in the registry. An unethical setup app could change the value,
> install, and restore the value.
>
> The better thing to do is warn your users that “you may see a warning
> about an unsigned driver; please click ‘continue anyway’.”
>
> Of course, the best thing is to get your driver signed…
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>

The user will still need to do something. It can be set so that the user
will not see the prompt about and unsigned driver, but will still need
to click the dialog boxes even if the software is installed first. The
only way around that is to get your driver signed.

Personally, I think that if the administrator of the sytem said “go
ahead and install unsigned drivers wihtout warning me” that a
software-first device installation should not prompt, but MS disagrees
with me. They told me that this behavior was by design so that the user
will always know that a driver is being installed. But if the user said
“go ahead an install unisgned drivers without wraning me”, he has
clearly indicated that he does not WANT to be informed.

Beverly

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Thursday, April 27, 2006 1:20 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Installing WDF Driver

Markus wrote:

Hallo!

Is it possible to install an unsigned WDF driver via setup
automatically, so that the user doesn’t need to do anything?
Like this: “setup.exe” -> “Forward” -> …installing driver… ->
“Ready”

Officially? No. Unofficially? The check for driver signing is
switchable in the system control panel. The state of that switch is
stored in the registry. An unethical setup app could change the value,
install, and restore the value.

The better thing to do is warn your users that “you may see a warning
about an unsigned driver; please click ‘continue anyway’.”

Of course, the best thing is to get your driver signed…


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Markus wrote:

OK, the second way is better.
Can you also tell me with program i have to call, to let this window pop up
for my driver?

If you have a setup.exe, just put up the message box from there.

Or are you actually asking how to install the driver?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

“Or are you actually asking how to install the driver?”

Well, yes.
I know how to install the driver using the HW manager, but not by using some
Code (C, C++)

“Tim Roberts” schrieb im Newsbeitrag news:xxxxx@ntdev…
> Markus wrote:
>
> >OK, the second way is better.
> >Can you also tell me with program i have to call, to let this window pop
up
> >for my driver?
> >
> >
>
> If you have a setup.exe, just put up the message box from there.
>
> Or are you actually asking how to install the driver?
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>

Markus wrote:

“Or are you actually asking how to install the driver?”

Well, yes.
I know how to install the driver using the HW manager, but not by using some
Code (C, C++)

Ah, now I see. I assumed you were asking a different question.

Is this a PnP driver? If so, just have your setup utility copy the
driver binaries into place, then call SetupCopyOEMInf to get the INF
copied to the right place. The next time your device appears, the
system will Do The Right Thing.

If it’s not a PnP driver, go look at the source for “devcon” in the
DDK. The “install” command handler does what you want. It only takes
about 5 calls to SetupDi APIs to do the install.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.