Link to home
Start Free TrialLog in
Avatar of summerset
summerset

asked on

Using INF to install "Client for Microsoft Networks"

I am creating an installer for a client in Visual Basic 4.0 32Bit. The software needs to have "Slip and Scripting for Dial-Up Networking" and "Client for Microsoft Networks" installed to work properly.

I can add "Slip and Scripting for Dial-Up Networking" by running the [DefaultInstall] in Rnaplus.inf (which appears to be the same as [CSLIP]). However, when I try to add the "Client for Microsoft Networks" by running the [VREDIR.Install] in Netcli.inf (which seems to be the only file used for this because there is no [DefaultInstall]), it installs all the drivers and files, but it does not actually add the Client for Microsoft Networks...

Arrg...I'm getting frustrated. When I "manually" install the "Client for Microsoft Networks" it adds all the same files, et al just as it does when I run [VREDIR.Install] in Netcli.inf...EXCEPT it actually adds the "Client for Microsoft Networks" -- is there another inf file I am missing? Perhaps a [] section I do not have? Is there a binary I need to run??? It appears that something is missing after I run [VREDIR.Install] in Netcli.inf.

Any help or direction would be greatly appreciated.

-S
ASKER CERTIFIED SOLUTION
Avatar of kevinb062397
kevinb062397

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of summerset
summerset

ASKER

That would work if I were installing everything from a Batch setup, but I am working with users who already have Windows installed on their machines.

If the VREDIR.install only installs the reg entries, etc...then where do I get the setup finished? Are there a list of command-line parameters or switches for:

Msnp32.dll
Netdi.dll
Shell32.dll

Perhaps the key lies there? Do I need to run the VREDIR.install and then pass commands to the proper dll to finish the install?

-S
Just to get my understanding of your current config.
You are trying to add the client within your program, all works (files and drivers copied) except the client does not show in the network properties???

There are 4 files associated with network (which you seem to already know) net.inf, netcli.inf, nettrans.inf and netservr.inf.
There is also a way to call the NDIInstaller from the netdi.dll, I think it is  NDICALLINSTALLER.  I don't know it's struct but I will find out.
 If you open the netdi.dll with windows 95's quickview you can get some idea of what I'm getting at.  Also try this url http://www.microsoft.com/support/products/developer/ddk_hardware/winddk/Samples/  at the bottom of the page is an ipinst.exe  which is an example of how to do what you are trying.

I'm still looking for more info, but maybe this can help you get you answer.


Very helpful...I am beginning to see the picture. I do have one problem though...I am opening the ipdetect.mak file inside Microsoft Visual C++ (Pro Edition 4.0), but it will not compile because of:

#include "setupx.h"

There is no setupx.h included with the rest of the source. I am not a C writer...I spend most of my time in Unix and (when using Windows) in Visual Basic. Was this file deliberately not included or is there something more that I should know.

ALSO...your help has been extremely excellent, and quite honestly, the best I have recieved here.

Thanks again!!

-S
I'm not up on C coding either.  You might try looking for setup.h or setup<something>.h . It looks like they are indicating a variant of setup.h (i.e setup_mine.h).  Let me ask some of the C coders around here.  I'll get back to.


Thanks for the kind words.

Good Luck.