examples of driver install applications?

I am looking for guidance for writing a driver installer application.
Specifically, examples on writing into setupapi.dev.log and setupapi.app.log.
There seem to be very few examples on line.
Any books/articles/sample code?
Thanks!
Rachel

Devcon in the WDK is the ultimate sample for this. You don’t typically
write to the setup logs directly, the API’s do it for your actions.

Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

“Michelson Rachel-CRK007” wrote
in message news:xxxxx@ntdev:

> I am looking for guidance for writing a driver installer application.
> Specifically, examples on writing into setupapi.dev.log and setupapi.app.log.
> There seem to be very few examples on line.
> Any books/articles/sample code?
> Thanks!
> Rachel

Have you looked at the source for devcon in the WDK?

Gary Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net

On Mar 14, 2012, at 3:49 PM, Michelson Rachel-CRK007 wrote:

I am looking for guidance for writing a driver installer application.
Specifically, examples on writing into setupapi.dev.log and setupapi.app.log.
There seem to be very few examples on line.
Any books/articles/sample code?
Thanks!
Rachel


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other 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

What kind of driver are you installing?

Good Luck,
Dave Cattley

Our sdio driver works with in-box sdbus.sys but does not work with an OEM Jmicron SD driver, which comes with the specific HP Laptop model. We are writing an install application to force the install of sdbus.sys and then install out driver. On uninstall, we are reversing these actions. We want to log a message in a log to let people know that we uninstalled an OEM driver.
Any suggestions will be appreciated.
Rachel

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of David R. Cattley
Sent: Wednesday, March 14, 2012 4:26 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] examples of driver install applications?

What kind of driver are you installing?

Good Luck,
Dave Cattley


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other 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

Have you considered writing to the system event log? That has been around forever and is still available.

Gary Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net

On Mar 14, 2012, at 5:04 PM, Michelson Rachel-CRK007 wrote:

Our sdio driver works with in-box sdbus.sys but does not work with an OEM Jmicron SD driver, which comes with the specific HP Laptop model. We are writing an install application to force the install of sdbus.sys and then install out driver. On uninstall, we are reversing these actions. We want to log a message in a log to let people know that we uninstalled an OEM driver.
Any suggestions will be appreciated.
Rachel

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of David R. Cattley
Sent: Wednesday, March 14, 2012 4:26 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] examples of driver install applications?

What kind of driver are you installing?

Good Luck,
Dave Cattley


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other 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


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other 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

Michelson Rachel-CRK007 wrote:

Our sdio driver works with in-box sdbus.sys but does not work with an OEM Jmicron SD driver, which comes with the specific HP Laptop model. We are writing an install application to force the install of sdbus.sys and then install out driver. On uninstall, we are reversing these actions. We want to log a message in a log to let people know that we uninstalled an OEM driver.

Assuming you use the standard SetupDi methods to do the installation,
Device Manager will make the log entries for you.


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

Since your install action requires installing drivers for PnP devices (or in
the case of the bus device, updating a PnP device with an alternate driver)
then the DEVCON sample as other’s have pointed out is the illustrative
example of how these operations are performed.

For your own PnP function driver (whatever *your* device requires) you might
look at the higher level functionality of DIFx.

Good Luck,
Dave Cattley