INF

Hi.

Thanks everyone for all your help.

I have one last question I think. How do I install a INF by the command line?

The INF is an ActivityMonitor, and I have been testing it using the scanner example in WDK 7600. dpinst /LM does not work and it appears neither does rundll32.exe, however right clicking on the INF and installing it that way does.

Does anyone know why this is? or if I can be helped?

Thankyou once again.

How about ‘devcon?’

mm

xxxxx@hotmail.co.uk wrote:

The INF is an ActivityMonitor, and I have been testing it using the scanner example in WDK 7600. dpinst /LM does not work and it appears neither does rundll32.exe, however right clicking on the INF and installing it that way does.

Does anyone know why this is? or if I can be helped?

What a right-click install does is call InstallHinfSection from
setupapi.dll to run the [DefaultInstall] section. So, you should be
able to do this:
rundll32 setupapi.dll,InstallHinfSection DefaultInstall 132
c:\path\to\xxx.inf

One common problem is the failure to supply a complete path. The
working directory provided to the DLL is not entirely clear.

Devcon won’t do it, because it’s not a device at all. This is
essentially a poor man’s software installer.


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

>Devcon won’t do it, because it’s not a device at all. This is essentially a poor man’s software installer.

My bad. That’s what I get for trying to answer a question about setup.

mm

Right-click in Explorer is a rundll32.exe command line - look at the shell
registration for INF files.

If that works, well, rundll32 setupapi.dll,InstallHInfSection … should
work just fine.

What rundll32 command line are you trying to use?

Good Luck,
Dave Cattley

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.co.uk
Sent: Thursday, January 14, 2010 7:18 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] INF

Hi.

Thanks everyone for all your help.

I have one last question I think. How do I install a INF by the command
line?

The INF is an ActivityMonitor, and I have been testing it using the scanner
example in WDK 7600. dpinst /LM does not work and it appears neither does
rundll32.exe, however right clicking on the INF and installing it that way
does.

Does anyone know why this is? or if I can be helped?

Thankyou once again.


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

Thankyou very much.

I didn’t have a complete path.

xxxxx@hotmail.co.uk skrev:

I have one last question I think. How do I install a INF by the command line?

pnputil.exe ?

/R