Microsoft KB Archive/136709

Automating FTP Installation

PSS ID Number: Q136709 Article last modified on 09-14-1995

3.50 3.51

WINDOWS

= SUMMARY =

When you run Windows NT Computer Profile Setup (CPS), by default, the FTP Server service is not installed to target computers. However, you can accomplish unattended installation of the FTP Server service by modifying the DEFAULTS.INF file included in the %SystemRoot% directory on the distribution server.

= MORE INFORMATION =

The CPS utility included in the Windows NT Resource Kit simplifies the process for preinstalling and configuring Windows NT workstation and server on a large number of Intel-based computers. The CPS utility uploads a profile of a fully installed Windows NT from a Master computer to a Distribution server and then distributes the Windows NT installation to identically configured target computers.

WARNING: Modification of INF files can cause serious, system-wide problems before and after Setup and may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the modification of INF files can be solved. Make INF modifications at your own risk.

On the distribution server, to make the necessary modifications:

  In the DEFAULTS.INF file, change the fifth parameter of !TCPIpServiceMask in the [TCPIPServices] section to 1.   Optional: Modify the script fragment in OEMNSVFT.INF so that the FTP installation confirm dialog box can not show up. Code fragment before modification: NOTE: The first line of the code fragment is too long to fit into one line in this article. Therefore, each line of code in this article is labeled to indicate where it actually belongs. First line start: LibraryProcedure ResultList, $(!TCPCFG_HANDLE), First line end: CPlFtpdConfirmInstall, $(!STF_HWND) Second line: Set Result = *($ (ResultList),1) Code fragment after modification: First line start: ;LibraryProcedure ResultList, $(!TCPCFG_HANDLE), First line end: CPlFtpdConfirmInstall, $(!STF_HWND) Second line: Set Result = 0   Optional: Modify the script fragment in OEMNSVFT.INF so that the FTP Service dialog box cannot show up. With this modification, Setup does not give you a chance to configure the FTP service and you have to accept the default value. Code fragment before modification: Ifstr(i) $(RegistryErrorIndex) != NO_ERROR EndWait Debug-Output &quot;Resgitry error: add value list.&quot; CloseRegKey $(KeySrvMgrExt) goto fatalregistry endif endif EndWait set FLibraryErrCtl = 1 LibraryProcedure ResultList, $(!TCPCFG_HANDLE), CPlFtpd, $(!STF_HWND) Set Result = *($ (ResultList),1) Code fragment after modification in line 10 and 11: Ifstr(i) $(RegistryErrorIndex) != NO_ERROR EndWait Debug-Output &quot;Resgitry error: add value list.&quot; CloseRegKey $(KeySrvMgrExt) goto fatalregistry endif endif EndWait set FLibraryErrCtl = 1 ;LibraryProcedure ResultList, $(!TCPCFG_HANDLE), CPlFtpd,$ (!STF_HWND) Set Result = 0 

KBCategory: kbsetup KBSubCategory: ntsetup ntutil Additional reference words: prodnt 3.50 3.51 ============================================================================= Copyright Microsoft Corporation 1995.