Article ID: 142160
Article Last Modified on 11/1/2006
installadapter = +
OpenRegKey $(!REG_H_LOCAL) "" $(TCPIPKeyName) $(MAXIMUM_ALLOWED)
TCPIPKey
Ifstr $(TCPIPKey) == $(KeyNull)
set RegistryErrorIndex = TCPIP_NONEXIST_ERROR_FTPD
goto fatalregistry
endif
CloseRegKey $(TCPIPKey)
set FLibraryErrCtl = 1
LibraryProcedure ResultList, $(!TCPCFG_HANDLE),
CPlFtpdConfirmInstall,
$(!STF_HWND)
Set Result = *($(ResultList),1)
Code fragment after modification:
installadapter = +
OpenRegKey $(!REG_H_LOCAL) "" $(TCPIPKeyName) $(MAXIMUM_ALLOWED)
TCPIPKey
Ifstr $(TCPIPKey) == $(KeyNull)
set RegistryErrorIndex = TCPIP_NONEXIST_ERROR_FTPD
goto fatalregistry
endif
CloseRegKey $(TCPIPKey)
set FLibraryErrCtl = 1
;; Following lines added for CPS or Unattended Setup
ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
Set Result = 0
else
LibraryProcedure ResultList, $(!TCPCFG_HANDLE),
CPlFtpdConfirmInstall, $(!STF_HWND)
Set Result = *($(ResultList),1)
endif
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:
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Resgitry error: add value list."
CloseRegKey $(KeySrvMgrExt)
goto fatalregistry
endif
endif
EndWait
set FLibraryErrCtl = 1
;; Following lines added for CPS or Unattended Setup
ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
Set Result = 0
else
LibraryProcedure ResultList, $(!TCPCFG_HANDLE), CPlFtpd,
$(!STF_HWND)
Set Result = *($(ResultList),1)
endif
;; Previous lines added for CPS or Unattended Setup
ifint $(Result) == 0
set CommonStatus = STATUS_SUCCESSFUL
else-ifint $(Result) == 1
set CommonStatus = STATUS_USERCANCEL
else
set RegistryErrorIndex = $(Result)
goto fatalregistry
endif
Shell $(UtilityInf) SetMasterComponent Microsoft Tcpip
$(STF_CONTEXTINFNAME) FTPD
Goto successful
configureadapter = +
Set MaxConnections = 20 Set HomeDirectory = "C:\" Set AllowAnonymous = 0 read-syms Defaults$(!STF_LANGUAGE) Set WriteAccessMask = 0 Set ReadAccessMask = 0 Set AnonymousOnly = 0 Set ConnectionTimeout = 600
; Original line below
; set InstallList = {"1","1","0","0","1","0","0","0"}
; Modified line below
set InstallList = {"1","1","0","0","1","0","0","0"}
NOTE: It is not necessary to rename Oemnxptc.inf to Oemnxptc.in_.
Windows NT Setup does not require the file to be compressed or named
with an in_ extension.Keywords: kbhowto kbsetup KB142160