Installing network components without the Control PanelID: Q162771
|
In order to install network components (for example, network adapters,
network protocols or network services), you must use the Protocols,
Services, or Adapters tab in Control Panel and then click Add to install
the proper network component.
This article is aimed at providing a way to install any network component
from a batch file, assuming you know the INF file name and the option. This
information can be applied to install network components that are shipped
with Windows NT, or to install any third-party component as soon as an
Oemsetup.inf file is provided.
WARNING: The solution provided in this article doesn't compute the
bindings. Therefore, if the bindings need to be done after the installation
of a network component, the user will have run the Network Control Panel
tool manually.
CAUTION: The solution included in this article has not been extensively
tested in large installations. Microsoft cannot guarantee that modification
of network components as recommended herein will accomplish the objective
described in this article under all circumstances and in all
configurations.
The Network Control Panel tool (loaded from a file called Ncpa.cpl) takes
control over all setup of network components. When you add a network
component through the interface, Ncpa.cpl tells Setup.exe to call
Ncpashel.inf with specific parameters.
Instead of using the Network Control Panel tool, it is possible to call
Setup.exe with the following parameters:
SETUP.EXE /f /i%systemroot%\system32\ncpashel.inf
/T NTN_InstallMode = Install
/T NTN_Origination = install
/T NTN_Infname = OEMSETUP.INF
/T NTN_SRCPATH = D:\I386
/T NTN_Infoption = OPTION
/f = Turns off blue background
/T NTN_InstallMode = Install, Remove, Update, Configure or Bind
This option is identical to the GUI interface
/T NTN_Origination = Install (= NCPA when setup issued by NCPA.CPL)
/T NTN_Infname = Name of the INF file name
/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]. You should find the name of the
option to setup.
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 = D:\I386
/T NTN_InfOption = TCPPRINT
[Options]
TCPPRINT
Keywords : kbsetup ntsetup NTSrvWkst
Version : WinNT:3.51,4.0
Platform : winnt
Issue type : kbinfo
Last Reviewed: February 4, 1999