Solved

Using INF to install "Client for Microsoft Networks"

Posted on 1997-06-14
5
2,875 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Join & Write a Comment

Update 11/3/2014 - Although the below article will get you to relocate the WINSXS folder, Microsoft has finally released a utility to reduce the size of the WINSXS folder. For some reason, it's not that straightforward. It only works on Windows 2008…
The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

744 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

16 Experts available now in Live!

Get 1:1 Help Now