Solved

Network components install.

Posted on 1998-02-25
2
234 Views
Last Modified: 2013-12-28
How can I install network components from a batch file?
0
Comment
Question by:Alfino
2 Comments
 
LVL 8

Accepted Solution

by:
MaDdUCK earned 610 total points
ID: 1790933
When you install Network Components using Control Panel, the Ncpa.cpl applet configures setup.exe to call Ncpashel.inf with the appropriate parameters. If you know the INF file to use and the OPTION, you can create a batch file to perform the task. You will, unfortuneatly, have to make any adjustments to Binding manually. Here is the syntax: (on one line)

SETUP.EXE /f /i%systemroot%\system32\ncpashel.inf /T NTN_InstallMode = Install
  /T NTN_Origination = install /T NTN_Infname = <PATH>\OEMSETUP.INF
  /T NTN_SRCPATH = <CD-ROM>:\I386 /T NTN_Infoption = OPTION

Where:

 Parameter             D e s c r i p t i o n  
 /f   Turns off blue background.  
 /T NTN_InstallMode =    Install, Remove, Update, Configure or Bind  
 /T NTN_Origination =    Install  
 /T NTN_Infname =    Path/Name of the INF file.  
 /T NTN_SRCPATH =    Path to the distribution files.  
 /T NTN_Infoption =    Name of the option. To figure out which option has to be installed, open the INF file and search for the section [Options].  


To install Microsoft TCP/IP Printing with a batch file: (The Setup command must be on one line.)

cd %systemroot%
setup /f /i%systemroot%\system32\ncpashel.inf /T NTN_InstallMode = Install
  /T NTN_Origination = install /T NTN_Infname = .\OEMNSVTP.INF
  /T NTN_SRCPATH = <CD-ROM>:\I386 /T NTN_InfOption = TCPPRINT
EXIT

Oemnsvtp.inf is the INF file that directs installation of the Microsoft TCP/IP Printing component. It contains the following section:

[Options]
 TCPPRINT
0
 

Author Comment

by:Alfino
ID: 1790934
Thank you, exactly what I needed.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Several part series to implement Internet Explorer 11 Enterprise Mode
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
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). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

705 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

19 Experts available now in Live!

Get 1:1 Help Now