NDIS 6 IM install

I am creating an MSI to install our NDIS 6 Intermediate driver consisting of a .cat, .sys, .dll, and two .inf files. I want to ensure that my install is flexible enough to work with or without an answer file. Any recommendations on the correct way to implement this? What is the correct interface to use with an answer file (so that notify object ReadAnswerFile() gets called)? Should I be looking at INetCfg? Setupapi? Which methods?

Thanks,
Brian

I seem to recall that I used INetCfg for this previously (installing an NDIS IM), though we didn’t have a notify object. Think that DevCon may even have special knowledge of this (try grepping for HrInstallNetComponent perhaps) as an example, but I may be misremembering and I can’t check the WDK right now.

? S

-----Original Message-----
From: xxxxx@Honeywell.com
Sent: Thursday, February 05, 2009 17:19
To: Windows System Software Devs Interest List
Subject: [ntdev] NDIS 6 IM install

I am creating an MSI to install our NDIS 6 Intermediate driver consisting of a .cat, .sys, .dll, and two .inf files. I want to ensure that my install is flexible enough to work with or without an answer file. Any recommendations on the correct way to implement this? What is the correct interface to use with an answer file (so that notify object ReadAnswerFile() gets called)? Should I be looking at INetCfg? Setupapi? Which methods?

Thanks,
Brian


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

The sample that Skywing is referring to is BindView (or going way back
snetcfg.exe). AFAIK all of the versions of DevCon have only been able to
install PnP Device Drivers and root enumerated PnP devices. NetTrans,
NetService, NetClient, etc. have install demonstrated in BindView.

I can’t help you with the answer-file question. Sorry.

-Dave

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Skywing
Sent: Thursday, February 05, 2009 8:32 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] NDIS 6 IM install

I seem to recall that I used INetCfg for this previously (installing an NDIS
IM), though we didn’t have a notify object. Think that DevCon may even have
special knowledge of this (try grepping for HrInstallNetComponent perhaps)
as an example, but I may be misremembering and I can’t check the WDK right
now.

? S

-----Original Message-----
From: xxxxx@Honeywell.com
Sent: Thursday, February 05, 2009 17:19
To: Windows System Software Devs Interest List
Subject: [ntdev] NDIS 6 IM install

I am creating an MSI to install our NDIS 6 Intermediate driver consisting of
a .cat, .sys, .dll, and two .inf files. I want to ensure that my install is
flexible enough to work with or without an answer file. Any recommendations
on the correct way to implement this? What is the correct interface to use
with an answer file (so that notify object ReadAnswerFile() gets called)?
Should I be looking at INetCfg? Setupapi? Which methods?

Thanks,
Brian


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

I appreciate your help with this. I have started looking at BindView as well as ProtInstall for some hints about how I might want to go about my install. Still looking for the answer to that elusive with or without answer file solution. Any suggestions on where a good place to look for an answer might be?

-Brian

Brian,

Do you need “answer file” support for unattended installation?

Basically, your NotifyObject is going to get called at the
INetCfgComponentSetup::ReadAnswerFile() entrypoint in that case and it is up
to you to define what that means to do (ie, what data you are expecting in
the section of the file indicated.)

If you are asking how to leverage an answer file outside the scope of a
system setup (meaning, via your own installer) then I think you are on your
own to do that via a call to INetCfgClassSetup::Install() which takes as
parameters the answerfile and sections.

Depending on your component, it may need to know more information than is
known prior to actually installing adapters, etc.

I have found that it is sometimes useful for both unattended installation
and attended installation (post install provisioning changes) to have a
scriptable command line tool which can perform you customizations. Often
this can be “RunDLL32” entry points in the Notify Object itself.

Good Luck,
Dave Cattley
Consulting Engineer
System Software Development

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@Honeywell.com
Sent: Friday, February 06, 2009 9:29 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] NDIS 6 IM install

I appreciate your help with this. I have started looking at BindView as
well as ProtInstall for some hints about how I might want to go about my
install. Still looking for the answer to that elusive with or without
answer file solution. Any suggestions on where a good place to look for an
answer might be?

-Brian


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