Solved

Using INF to install "Client for Microsoft Networks"

Posted on 1997-06-14
5
2,925 Views
Last Modified: 2013-12-29
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
0
Comment
Question by:summerset
  • 3
  • 2
5 Comments
 
LVL 1

Accepted Solution

by:
kevinb062397 earned 100 total points
ID: 1682910
The VREDIR.Install just sets the VREDIR settings it does not install the Client.

In the [NETWORK] section add this line
Clients=VREDIR

This is excerpt of my bsetup.inf file that is doing something like what you are trying.

[Network]
ComputerName="compname"
Workgroup="workgroup"
Description="New User"
Display=0
Clients=VREDIR
Protocols=NETBEUI, MSTCP
DefaultProtocol=MSTCP
IgnoreDetectedNetCards=0
Security=share
Services=VSERVER
0
 

Author Comment

by:summerset
ID: 1682911
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
0
 
LVL 1

Expert Comment

by:kevinb062397
ID: 1682912
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.


0
 

Author Comment

by:summerset
ID: 1682913
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
0
 
LVL 1

Expert Comment

by:kevinb062397
ID: 1682914
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now