Automating FTP Installation
  
PSS ID Number: Q136709
Article last modified on 09-14-1995
 
3.50 3.51
 
WINDOWS
 

-----------------------------------------------------------------
The information in this article applies to:
 
 - Microsoft Windows NT Workstation versions 3.5 and 3.51
 - Microsoft Windows NT Server versions 3.5 and 3.51
 - Microsoft Resource Kit for Windows NT version 3.5
-----------------------------------------------------------------
 
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%\SYSTEM32 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:
 
1. In the DEFAULTS.INF file, change the fifth parameter of
   !TCPIpServiceMask in the [TCPIPServices] section to 1.
 
2. 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
 
3. 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 "Resgitry error: add value list."
              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 "Resgitry error: add value list."
              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.
