Driver install question

I suspect this might be more UAC related, but this group has a better chance
of knowing what is going on than anyone else.

My setup program installs my driver using the common rundll32
setupapi,InstallHinfSection DefaultInstall. and everything works great. My
app can also update itself, and in that case the setup program gets launched
from within my service. Whether my service is running as Local System or as
an admin account (my account that I ran setup with originally) the driver
installation never happens. Rundll32 returns 0 and I can’t find any issues
in the event log, so I’m not sure why it’s failing.

Since the setup program is launched from a service, it can’t respond to a
UAC prompt, but everything else about the installation is just fine - just
no driver shows up.

Does anyone know why this might be happening?

Thanks for any help.

Doug

> I suspect this might be more UAC related, but this group has a better chance

of knowing what is going on than anyone else.

Nope, probably you wanted to post this question in NTDEV list.
Anyway… if you run the setup as admin, are there any UAC or other prompts?
If setupapi wants to show a popup but fails to do so for any reason, it will fail the operation.

–pa

Thanks for your response Pavel.

The setup program itself always causes a UAC prompt. If I just run the
rundll32 driver installation command from a command prompt (that was not Run
as Administrator, though I’m using an admin account), there is no prompt and
it works. So maybe this isn’t UAC related after all.

Is there any way to log why the driver installation might fail?

Doug

There’s Windows\INF\setupapi.app.log and setupapi.dev.log.


From: Doug Nebeker
To: Windows File Systems Devs Interest List
Sent: Wednesday, June 15, 2011 3:07 PM
Subject: RE: [ntfsd] Driver install question

Thanks for your response Pavel.

The setup program itself always causes a UAC prompt.? If I just run the
rundll32 driver installation command from a command prompt (that was not Run
as Administrator, though I’m using an admin account), there is no prompt and
it works.? So maybe this isn’t UAC related after all.

Is there any way to log why the driver installation might fail?

Doug


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars

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