home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
ntplc424.zip
/
oemsetup.inf
< prev
next >
Wrap
INI File
|
1999-03-15
|
39KB
|
1,133 lines
;*******************************************************************************
;* *
;* OEMSETUP.INF *
;* *
;* DESCRIPTION: Installation script for IBM Networks Coordinated Logon *
;* and Primary Logon Clients for Windows NT. Install through *
;* the Network icon in the Control Panel. *
;* *
;* *
;* IBM Networks Coordinated Logon Client for Windows NT *
;* @Copyright International Business Machines Corp. 1997 *
;* *
;*******************************************************************************
[Identification]
OptionType = NetService
[Options]
IBMNeTNT
IBMGINA
[FileConstants]
UtilityInf = "UTILITY.INF"
subroutineinf = "SUBROUTN.INF"
SoftwareType = "service"
Manufacturer = "IBM"
ProductMajorVersion = "4"
ProductMinorVersion = "2"
ProductOpSupport = 134
Exit_Code = 0
ProductName = "IBMNeTNT"
ProviderName = $(ProductName)
ProviderImagePath = "%SystemRoot%\System32\ibmnetnt.dll"
ServicesKeyName = "System\CurrentControlSet\Services"
WinLogonPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
IBMNetNTPath = "System\CurrentControlSet\Services\IBMNetNT"
DependOnService = {LanmanWorkstation}
InfFileName = "oemibmnt.inf"
ConfigFileName = "ibmntcfg.exe"
IBMNDELfileName = "IBMNDEL.BAT"
TypeOfGroup = "NetworkProvider"
TypeOfObject = ""
[FileConstantsCoLogon]
ProductImagePath = "%SystemRoot%\System32\services.exe"
TypeOfService = "kerneldisable"
OptionName = "IBMNeTNT"
[FileConstantsPriLogon]
ProductImagePath = "%SystemRoot%\System32\ibmginas.exe"
TypeOfService = "serviceauto"
OptionName = "IBMGINA"
IBMGinaDLLName = "ibmgina.dll"
GinaConfigFileName = "ibmginas.exe"
GinaObjectName = ".\IBMGina"
[GeneralConstants]
NON_VOLITILE = 0
NoTitle = 0
MAXIMUM_ALLOWED = 33554432
Indx = 1
NewContextInfName = ""
RebootError = ""
Space = " "
[Identify]
read-syms Identification
set Status = STATUS_SUCCESSFUL
set Identifier = $(OptionType)
set Media = #("Source Media Descriptions", 1, 1)
Return $(Status) $(Identifier) $(Media)
[ReturnOptions]
set Status = STATUS_SUCCESSFUL
set OptionList = ^(Options, 1)
set OptionTextList = ^(OptionsText$($0), 1)
set LanguageList = ^(LanguagesSupported, 1)
Return $(Status) $(OptionList) $(OptionTextList)
[InstallOption]
set Option = $($1)
set SrcDir = $($2)
set AddCopy = $($3)
set DoCopy = $($4)
set DoConfig = $($5)
set LanguageList = ^(LanguagesSupported, 1)
read-syms GeneralConstants
read-syms FileConstants
read-syms FileConstants$($0)
read-syms DialogConstants$($0)
read-syms IconInfo$($0)
set to = Begin
set from = Begin
set CommonStatus = STATUS_FAILED
ifstr(i) $(Option) == "IBMNeTNT"
read-syms FileConstantsCoLogon
read-syms FileConstantsCoLogonENG
else-Ifstr(i) $(Option) == "IBMGINA"
read-syms FileConstantsPriLogon
read-syms FileConstantsPriLogonENG
endif
Begin = +
Ifstr(i) $(!NTN_InstallMode) == deinstall
ifstr(i) $(Option) == "IBMNeTNT"
set StartLabel = removeproductsoftware
else-Ifstr(i) $(Option) == "IBMGINA"
set StartLabel = removeginadata
endif
else-Ifstr(i) $(!NTN_InstallMode) == configure
set StartLabel = configureproduct
else
set StartLabel = installproduct
endif
CheckAdminPrivilege = +
LibraryProcedure STATUS, $(!LIBHANDLE), TestAdmin
ifstr(i) $(STATUS) != "YES"
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(NoAdminPrivilege)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set CommonStatus = STATUS_USERCANCEL
goto finish
endif
goto CheckWindowsNTlevel
CheckWindowsNTlevel = +
Set OS_Key = $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion"
OpenRegKey $(!REG_H_LOCAL), "", $(OS_Key), $(MAXIMUM_ALLOWED), OS_Handle
ifstr $(OS_Handle) != $(KeyNull)
GetRegValue $(OS_Handle), "CurrentVersion", OS_Data
ifint *($(OS_Data),4) < 4
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(InvalidVerMsg)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set CommonStatus = STATUS_USERCANCEL
goto finish
endif
CloseRegKey ($OS_Handle)
endif
set OEM_ABANDON_ON = FALSE
set FILE_DELETE_FLAG = FALSE
goto $(StartLabel)
configureproduct = +
ifstr(i) $(Option) == "IBMNeTNT"
RunProgram ExitCode "" "" $(ConfigFileName) -1 -i
else-Ifstr(i) $(Option) == "IBMGINA"
RunProgram ExitCode "" "" $(ConfigFileName) -2 -i
else
; MS Setup program will display error panel stating that the configuration operation failed.
Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto nonfatal
endif
set CommonStatus = STATUS_USERCANCEL
goto finish
installproduct = +
goto CheckNTWkstaInstall
CheckNTWkstaInstall = +
OpenRegKey $(!REG_H_LOCAL) "" +
$(!NTN_ServiceBase)"\Rdr" +
$(MAXIMUM_ALLOWED) +
KeyServices
Ifstr $(KeyServices) == $(KeyNull)
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(NTWkstaNotInstalled)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set CommonStatus = STATUS_USERCANCEL
goto finish
else
CloseRegKey $(KeyServices)
endif
goto CheckRemovePending
CheckRemovePending = +
OpenRegKey $(!REG_H_LOCAL) "" +
"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" +
$(!REG_KEY_ALL_ACCESS) +
hRunOnceKey
Ifstr(i) $(hRunOnceKey) != ""
GetRegValue $(hRunOnceKey), +
"IBMNeTNTfilesRemove", +
FilesRemoveData
set IBMNeTNTdeletePath = *($(FilesRemoveData), 4)
Ifstr(i) $(IBMNeTNTdeletePath) == $(IBMNDELfileName)
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(RebootErrorMsg1)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set CommonStatus = STATUS_REBOOT
goto finish
endif
endif
goto CheckIfIBMClientInstalled
CheckIfIBMClientInstalled = +
OpenRegKey $(!REG_H_LOCAL) "" +
$(!NTN_ServiceBase)"\"$(ProductName) +
$(MAXIMUM_ALLOWED) +
KeyServices
Ifstr $(KeyServices) != $(KeyNull)
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(AlreadyInstalled)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set CommonStatus = STATUS_USERCANCEL
goto finish
else
CloseRegKey $(KeyServices)
endif
OpenRegKey $(!REG_H_LOCAL) "" +
$(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductName) +
$(MAXIMUM_ALLOWED) +
KeySoftware
Ifstr $(KeySoftware) != $(KeyNull)
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(AlreadyInstalled)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set CommonStatus = STATUS_USERCANCEL
goto finish
else
CloseRegKey $(KeySoftware)
endif
goto startinstallation
startinstallation = +
StartWait
Split-String $(STF_CONTEXTINFNAME), "\", InfNameList
QueryListSize ListSize $(InfNameList)
ForListDo $(InfNameList)
ifint $(Indx) < $(ListSize)
Set NewContextInfName = $(NewContextInfName)$($)
Set-add Indx = $(Indx),1
endif
EndForListDo
Set-add Indx = $(Indx),1
Set NewContextInfName = $(NewContextInfName)$(InfFileName)
set !UG_Filename = $(InfFileName)
install "Install-Inst"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto nonfatal
endif
install "Install-IBMNTClients"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
set OEM_ABANDON_ON = TRUE
set FILE_DELETE_FLAG = TRUE
Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
endif
Ifstr(i) $(Option) == "IBMNeTNT"
install "Install-IBMNeTNT"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
set OEM_ABANDON_ON = TRUE
set FILE_DELETE_FLAG = TRUE
Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
endif
else-Ifstr(i) $(Option) == "IBMGINA"
install "Install-Gina"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
set OEM_ABANDON_ON = TRUE
set FILE_DELETE_FLAG = TRUE
Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
endif
endif
Shell $(UtilityInf), AddSoftwareComponent, +
$(Manufacturer), +
$(ProductName), +
$(ProductName), +
$(ProductDisplayName), +
$(NewContextInfName), +
$(ProductImagePath), +
$(TypeOfService), +
$(TypeOfGroup), +
{}, +
$(TypeOfObject), +
""
ifint $($ShellCode) != $(!SHELL_CODE_OK)
set OEM_ABANDON_ON = TRUE
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
CloseRegKey $($R4)
CloseRegKey $($R5)
set OEM_ABANDON_ON = TRUE
goto fatalregistry
endif
Set SoftProductKey = $($R1)
Set SoftNetRuleKey = $($R2)
Set SoftServiceKey = $($R3)
Set SoftParameterKey = $($R4)
Set SoftLinkageKey = $($R5)
set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)}, +
{MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)}, +
{MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)}, +
{Title,$(NoTitle),$(!REG_VT_SZ),$(ProductTitle)}, +
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductDescription)}, +
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductName)}, +
{OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)}}
Shell $(UtilityInf), AddValueList, +
$(SoftProductKey), +
$(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
set OEM_ABANDON_ON = TRUE
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
CloseRegKey $(SoftProductKey)
CloseRegKey $(SoftNetRuleKey)
CloseRegKey $(SoftServiceKey)
CloseRegKey $(SoftLinkageKey)
CloseRegKey $(SoftParameterKey)
set OEM_ABANDON_ON = TRUE
goto fatalregistry
endif
set NewValueList = {{InfName,$(NoTitle),$(!REG_VT_SZ),$(InfFileName)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(OptionName)}}
Shell $(UtilityInf), AddValueList, +
$(SoftNetRuleKey), +
$(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
set OEM_ABANDON_ON = TRUE
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
CloseRegKey $(SoftProductKey)
CloseRegKey $(SoftNetRuleKey)
CloseRegKey $(SoftServiceKey)
CloseRegKey $(SoftParameterKey)
CloseRegKey $(SoftLinkageKey)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
set OEM_ABANDON_ON = TRUE
EndWait
goto fatalregistry
endif
Shell $(UtilityInf), AddNetworkProvider, +
$(ProviderName), +
$(ProviderImagePath), +
$(ProductDisplayName), +
""
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
set OEM_ABANDON_ON = TRUE
EndWait
goto fatalregistry
endif
OpenRegKey $(!REG_H_LOCAL) "" +
"System\CurrentControlSet\Control\NetworkProvider\Order" +
$(MAXIMUM_ALLOWED) +
NetProviderKey
Ifstr $(NetProviderKey) != ""
GetRegValue $(NetProviderKey),"ProviderOrder", OrderInfo
set OrderList = *($(OrderInfo),4)
Split-String $(OrderList), ",", ProviderList
set NewOrderList = $(ProductName)
ForListDo $(ProviderList)
ifstr(i) $($) != ","
ifstr(i) $($) != $(ProductName)
set NewOrderList = $(NewOrderList)","$($)
endif
endif
EndForListDo
SetRegValue $(NetProviderKey) {"ProviderOrder", +
$(NoTitle), +
$(!REG_VT_SZ), +
$(NewOrderList)}
CloseRegKey $(NetProviderKey)
endif
OpenRegKey $(!REG_H_LOCAL) "" +
$(ServicesKeyName)"\"$(ProductName) +
$(!REG_KEY_ALL_ACCESS) +
hIBMServiceKey
Ifstr(i) $(hIBMServiceKey) == ""
set OEM_ABANDON_ON = TRUE
EndWait
goto fatalregistry
endif
OpenRegKey $(hIBMServiceKey) "" +
"NetworkProvider" +
$(!REG_KEY_ALL_ACCESS) +
hIBMProviderKey
Ifstr(i) $(hIBMProviderKey) == ""
set OEM_ABANDON_ON = TRUE
EndWait
goto fatalregistry
endif
set NewValueList = {{Class,$(NoTitle),$(!REG_VT_DWORD),00000005},+
{PrimaryLogonDomain,$(NoTitle),$(!REG_VT_SZ),""},+
{EnableDiscovery,$(NoTitle),$(!REG_VT_DWORD),00000001},+
{EnableLogonDomainManualEntry,$(NoTitle),$(!REG_VT_DWORD),00000001},+
{UseLogonServer,$(NoTitle),$(!REG_VT_DWORD),00000000},+
{AlternateLogonDomain,$(NoTitle),$(!REG_VT_SZ),""},+
{LogonServer,$(NoTitle),$(!REG_VT_SZ),""},+
{LogonBroadcastAttempts,$(NoTitle),$(!REG_VT_DWORD),00000004},+
{TimerDependency,$(NoTitle),$(!REG_VT_DWORD),00000012},+
{LogonBroadcastWait,$(NoTitle),$(!REG_VT_DWORD),00000018},+
{LogonDomain,$(NoTitle),$(!REG_VT_SZ),""}}
Shell $(UtilityInf), AddValueList, +
$(hIBMProviderKey), +
$(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
set OEM_ABANDON_ON = TRUE
goto ShellCodeError
endif
ifstr(i) $(Option) == "IBMNeTNT"
DeleteRegValue $(hIBMServiceKey) "ImagePath"
goto completeInstall
endif
ginaInstall = +
SetRegValue $(hIBMProviderKey) {SecondaryAuth, +
$(NoTitle), +
$(!REG_VT_DWORD), +
00000000}
OpenRegKey $(hIBMServiceKey) "" +
"Parameters" +
$(!REG_KEY_ALL_ACCESS) +
hIBMParameterKey
Ifstr(i) $(hIBMParameterKey) == ""
set OEM_ABANDON_ON = TRUE
EndWait
goto fatalregistry
endif
set NewValueList = {{DiscoveryAVI,$(NoTitle),$(!REG_VT_EXPAND_SZ),"%SystemRoot%\system32\discovry.avi"},+
{LogonAVI,$(NoTitle),$(!REG_VT_EXPAND_SZ),"%SystemRoot%\system32\logon.avi"},+
{DCacheLimit,$(NoTitle),$(!REG_VT_DWORD),00001000},+
{PasswordChangeInterval,$(NoTitle),$(!REG_VT_DWORD),00000072}}
Shell $(UtilityInf), AddValueList, +
$(hIBMParameterKey), +
$(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
set OEM_ABANDON_ON = TRUE
goto ShellCodeError
endif
SetRegValue $(hIBMServiceKey) {"ObjectName", +
$(NoTitle), +
$(!REG_VT_SZ), +
$(GinaObjectName)}
CreateRegKey $(hIBMServiceKey) {"DomainCache", 0, GenericClass} +
"" +
$(!REG_KEY_ALL_ACCESS) +
"" +
hIBMDomainCacheKey
ifstr(i) $(hIBMDomainCacheKey) == ""
set OEM_AANDON_ON = TRUE
goto fatalregistry
endif
CloseRegKey $(hIBMDomainCacheKey)
CreateRegKey $(hIBMServiceKey) {"DomainDrivers", 0, GenericClass} +
"" +
$(!REG_KEY_ALL_ACCESS) +
"" +
hIBMDomainDriversKey
ifstr(i) $(hIBMDomainDriversKey) == ""
set OEM_AANDON_ON = TRUE
goto fatalregistry
endif
set NewValueList = {{NT,$(NoTitle),$(!REG_VT_MULTI_SZ),{"ntdomain.dll",""}},+
{SMB,$(NoTitle),$(!REG_VT_MULTI_SZ),{"smbdomai.dll",""}},+
{GRADDCE,$(NoTitle),$(!REG_VT_MULTI_SZ),{"graddce.dll",""}}}
Shell $(UtilityInf), AddValueList, +
$(hIBMDomainDriversKey), +
$(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
set OEM_ABANDON_ON = TRUE
goto ShellCodeError
endif
CloseRegKey $(hIBMDomainDriversKey)
CreateRegKey $(hIBMServiceKey) {"LogoffPolicy", 0, GenericClass} +
"" +
$(!REG_KEY_ALL_ACCESS) +
"" +
hIBMLogoffPolicyKey
ifstr(i) $(hIBMLogoffPolicyKey) == ""
set OEM_AANDON_ON = TRUE
goto fatalregistry
endif
SetRegValue $(hIBMLogoffPolicyKey) {"DeleteUser", +
$(NoTitle), +
$(!REG_VT_DWORD), +
1}
CloseRegKey $(hIBMLogoffPolicyKey)
CreateRegKey $(hIBMServiceKey) {"Debug", 0, GenericClass} +
"" +
$(!REG_KEY_ALL_ACCESS) +
"" +
hIBMDebugKey
ifstr(i) $(hIBMDebugKey) == ""
set OEM_AANDON_ON = TRUE
goto fatalregistry
endif
set NewValueList = {{LogFile,$(NoTitle),$(!REG_VT_SZ),"\IBMGina.log"},+
{TraceLevel,$(NoTitle),$(!REG_VT_DWORD),00000000}}
Shell $(UtilityInf), AddValueList, +
$(hIBMDebugKey), +
$(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
set OEM_ABANDON_ON = TRUE
goto ShellCodeError
endif
CloseRegKey $(hIBMDebugKey)
CreateRegKey $(hIBMServiceKey) {"Runtime", 0, GenericClass} +
"" +
$(!REG_KEY_ALL_ACCESS) +
"" +
hIBMRuntimeKey
ifstr(i) $(hIBMRuntimeKey) == ""
set OEM_AANDON_ON = TRUE
goto fatalregistry
endif
set NewValueList = {{CurrentLogonServer,$(NoTitle),$(!REG_VT_SZ),""},+
{CurrentDomainDriver,$(NoTitle),$(!REG_VT_SZ),""},+
{LogonDomain,$(NoTitle),$(!REG_VT_SZ),""}}
Shell $(UtilityInf), AddValueList, +
$(hIBMRuntimeKey), +
$(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
set OEM_ABANDON_ON = TRUE
goto ShellCodeError
endif
DeleteRegValue $(hIBMProviderKey) "LogonDomain"
CloseRegKey $(hIBMRuntimeKey)
;To Add DependOnService Value to the IBMNetNT Key
OpenRegKey $(!REG_H_LOCAL) "" +
$(IBMNetNTPath) +
$(!REG_KEY_ALL_ACCESS) +
IBMNetNTKey
SetRegValue $(IBMNetNTKey) {DependOnService, +
$(NoTitle), +
$(!REG_VT_MULTI_SZ), +
$(DependOnService)}
CloseRegKey $(IBMNetNTKey)
OpenRegKey $(!REG_H_LOCAL) "" +
$(WinLogonPath) +
$(MAXIMUM_ALLOWED) +
WinLogonKey
Ifstr(i) $(WinLogonKey) == ""
set OEM_ABANDON_ON = TRUE
set $(Option) = ""
EndWait
goto fatalregistry
endif
SetRegValue $(WinLogonKey) {GinaDLL, +
$(NOTitle), +
$(!REG_VT_SZ), +
$(IBMGinaDLLName)}
GetRegValue $(WinLogonKey) "GinaDLL" GinaDLLData
set GinaDLLName = *($(GinaDLLData), 4)
Ifstr(i) $(GinaDLLName) == ""
set OEM_ABANDON_ON = TRUE
EndWait
goto fatalregistry
endif
CloseRegKey $(WinLogonKey)
goto completeInstall
completeInstall = +
CloseRegKey $(hIBMProviderKey)
CloseRegKey $(hIBMServiceKey)
ifstr(i) $(Option) == "IBMNeTNT"
RunProgram ExitCode "" "" $(ConfigFileName) -1 -i
else-Ifstr(i) $(Option) == "IBMGINA"
RunProgram ExitCode "" "" $(GinaConfigFileName) -install
RunProgram ExitCode "" "" $(ConfigFileName) -2 -i
else
EndWait
set OEM_ABANDON_ON = TRUE
set RebootError = $(RebootErrorMsg2)
Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
endif
Install Install-Shortcuts
ifstr(i) $(Option) == "IBMNeTNT"
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "STATUS", $(SynchUserMsg)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
endif
EndWait
set CommonStatus = STATUS_SUCCESSFUL
goto finish
removeginadata = +
OpenRegKey $(!REG_H_LOCAL) "" +
$(WinLogonPath) +
$(MAXIMUM_ALLOWED) +
WinLogonKey
DeleteRegValue $(WinLogonKey) "GinaDLL"
CloseRegKey $(WinLogonKey)
removeproductsoftware = +
Shell $(UtilityInf), RemoveSoftwareComponent, +
$(Manufacturer), +
$(ProductName), +
FALSE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
OpenRegKey $(!REG_H_LOCAL) "" +
"System\CurrentControlSet\Control\NetworkProvider\Order" +
$(MAXIMUM_ALLOWED) +
NetProviderKey
Ifstr $(NetProviderKey) != ""
GetRegValue $(NetProviderKey),"ProviderOrder", OrderInfo
set OrderList = *($(OrderInfo),4)
Split-String $(OrderList), ",", ProviderList
set NewOrderList = ""
ForListDo $(ProviderList)
ifstr(i) $($) != ","
ifstr(i) $($) != $(ProductName)
set NewOrderList = $(NewOrderList)$($)","
endif
endif
EndForListDo
SetRegValue $(NetProviderKey) {"ProviderOrder", +
$(NoTitle), +
$(!REG_VT_SZ), +
$(NewOrderList)}
CloseRegKey $(NetProviderKey)
endif
removeproductfiles = +
OpenRegKey $(!REG_H_LOCAL) "" +
"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" +
$(!REG_KEY_ALL_ACCESS) +
hRunOnceKey
Ifstr(i) $(hRunOnceKey) == ""
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(RunOnceError)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
goto fatalregistry
endif
SetRegValue $(hRunOnceKey) {"IBMNeTNTfilesRemove", +
$(NoTitle), +
$(!REG_VT_SZ), +
$(IBMNDELfileName)}
CloseRegKey $(hRunOnceKey)
RunProgram ExitCode "" "" $(ConfigFileName) -r
Install Remove-Shortcuts
set CommonStatus = STATUS_SUCCESSFUL
goto finish
nonfatalinfo = +
Set CommonStatus = STATUS_USERCANCEL
Set Severity = STATUS
goto nonfatalmsg
nonfatal = +
Set Severity = NONFATAL
goto nonfatalmsg
nonfatalmsg = +
ifstr(i) $(Error) == ""
Set Severity = NONFATAL
Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
endif
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), +
$(Error)$(Space)$(Space)$(RebootError)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set CommonStatus = STATUS_USERCANCEL
goto finish
fatalregistry = +
Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
fatal = +
ifstr(i) $(Error) == ""
Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
endif
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", +
$(Error)$(Space)$(Space)$(RebootError)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
goto setfailed
ShellCodeError = +
set DlgType = "MessageBox"
set STF_MB_TITLE = "Error: "$(FunctionTitle)
set STF_MB_TEXT = $(ShellCodeErrorText)
set STF_MB_TYPE = 1
set STF_MB_ICON = 3
set STF_MB_DEF = 1
ui start "Error Message"
goto setfailed
setfailed = +
set CommonStatus = STATUS_FAILED
ifstr(i) $(OEM_ABANDON_ON) == TRUE
set OEM_ABANDON_ON = FALSE
ifstr(i) $(FILE_DELETE_FLAG) == TRUE
set FILE_DELETE_FLAG = FALSE
goto removeproductfiles
else-ifstr(i) $(Option) == "IBMGINA"
goto removeginadata
else
goto removeproductsoftware
endif
endif
goto finish
finish = +
Return $(CommonStatus)
[Install-Inst]
ifstr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-Inst +
$(SrcDir) +
$(!STF_WINDOWSSYSPATH)
endif
ifstr(i) $(DoCopy) == "YES"
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
endif
Exit
[Install-IBMNTClients]
ifstr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-IBMNTClients +
$(SrcDir) +
$(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-System +
$(SrcDir) +
$(!STF_WINDOWSPATH)\System
endif
ifstr(i) $(DoCopy) == "YES"
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
endif
Exit
[Install-IBMNeTNT]
ifstr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-IBMNeTNT +
$(SrcDir) +
$(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Help-IBMNeTNT +
$(SrcDir) +
$(!STF_WINDOWSPATH)\Help
endif
ifstr(i) $(DoCopy) == "YES"
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
endif
Exit
[Install-Gina]
ifstr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-Gina +
$(SrcDir) +
$(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Help-Gina +
$(SrcDir) +
$(!STF_WINDOWSPATH)\Help
endif
ifstr(i) $(DoCopy) == "YES"
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
endif
Exit
[Install-Shortcuts]
ShowCommonProgManGroup $(IconGroupName), 1
CreateCommonProgManItem $(IconGroupName), $(Icon1Name), "wdls.exe" "" 0
CreateCommonProgManItem $(IconGroupName), $(Icon2Name), $(!STF_WINDOWSPATH)"\Help\wntnet.hlp" "" 0
ShowCommonProgManGroup $(IconGroupName), 6
exit
[Remove-Shortcuts]
ShowCommonProgManGroup $(IconGroupName), 1
RemoveCommonProgManItem $(IconGroupName), $(Icon1Name)
RemoveCommonProgManItem $(IconGroupName), $(Icon2Name)
ShowCommonProgManGroup $(IconGroupName), 6
exit
[Files-Inst]
1, OEMSETUP.INF, SIZE=14322, RENAME=$(!UG_Filename)
1, IBMNTCFG.EXE, SIZE=26000
1, IBMNTCFG.HLP, SIZE=8000
1, CHECKVER.EXE, SIZE=29000
[Files-IBMNTClients]
1, GUI.MS_, SIZE=11808 DECOMPRESS RENAME=GUI.MSG
1, IBMNT16.EX_, SIZE=34809 DECOMPRESS RENAME=IBMNT16.EXE
1, IBMNT32.DL_, SIZE=15872 DECOMPRESS RENAME=IBMNT32.DLL
1, LSAPI.DL_, SIZE=131584 DECOMPRESS RENAME=LSAPI.DLL
1, LSAPI.MS_, SIZE=74016 DECOMPRESS RENAME=LSAPI.MSG
1, LSAPIH.MS_, SIZE=165580 DECOMPRESS RENAME=LSAPIH.MSG
1, NET.EX_, SIZE=17408, DECOMPRESS RENAME=NET.EXE BACKUP=NETNT.EXE
1, NET2.EX_, SIZE=133856 DECOMPRESS RENAME=NET2.EXE
1, RUNLSAPP.EX_, SIZE=44032 DECOMPRESS RENAME=RUNLSAPP.EXE
1, WDLS.EX_, SIZE=21044 DECOMPRESS RENAME=WDLS.EXE
1, IBMGINAU.DL_, SIZE=43000 DECOMPRESS RENAME=IBMGINAU.DLL
[Files-System]
1, DLSNET.DL_, SIZE=125612 DECOMPRESS RENAME=DLSNET.DLL
1, DLSTB.DL_, SIZE=12800 DECOMPRESS RENAME=DLSTB.DLL
1, WINDLS.DL_, SIZE=65024 DECOMPRESS RENAME=WINDLS.DLL
[Files-Help-IBMNeTNT]
1, WNTNET.CN_, SIZE=71870 DECOMPRESS RENAME=WNTNET.CNT
1, WNTNET.HL_, SIZE=71870 DECOMPRESS RENAME=WNTNET.HLP
[Files-Help-Gina]
1, WNT2NET.CN_, SIZE=71870 DECOMPRESS RENAME=WNTNET.CNT
1, WNT2NET.HL_, SIZE=71870 DECOMPRESS RENAME=WNTNET.HLP
[Files-IBMNeTNT]
1, IBMNETNT.DL_, SIZE=22016 DECOMPRESS RENAME=IBMNETNT.DLL
[Files-Gina]
1, IBMNT16B.EX_, SIZE=26265 DECOMPRESS RENAME=IBMNT16B.EXE
1, IBMNTMSG.EX_, SIZE=9495 DECOMPRESS RENAME=IBMNTMSG.EXE
1, IBMNETN2.DL_, SIZE=22016 DECOMPRESS RENAME=IBMNETNT.DLL
1, IBMGINAS.EX_, SIZE=16384 DECOMPRESS RENAME=IBMGINAS.EXE
1, IBMGINA.DL_, SIZE=321024 DECOMPRESS RENAME=IBMGINA.DLL
1, DM.DL_, SIZE=64512 DECOMPRESS RENAME=DM.DLL
1, SMBDOMAI.DL_, SIZE=111104 DECOMPRESS RENAME=SMBDOMAI.DLL
1, NTDOMAIN.DL_, SIZE=107000 DECOMPRESS RENAME=NTDOMAIN.DLL
1, GRADDCE.DL_, SIZE=100000 DECOMPRESS RENAME=GRADDCE.DLL
1, REGCREDS.EX_, SIZE=11000 DECOMPRESS RENAME=REGCREDS.EXE
1, FIXNTACC.EX_, SIZE=22000 DECOMPRESS RENAME=FIXNTACC.EXE
1, DISCOVRY.AV_, SIZE=10000 DECOMPRESS RENAME=DISCOVRY.AVI
1, LOGON.AV_, SIZE=10000 DECOMPRESS RENAME=LOGON.AVI
[LanguagesSupported]
ENG
;******************************************************************************
; Translatable Strings - Begin translation here
; Translate ONLY those words between double quotes " "
;******************************************************************************
[DialogConstantsENG]
Help = "&Help"
Exit = "Cancel"
OK = "OK"
HelpContext = ""
Continue = "Continue"
Cancel = "Cancel"
ShellCodeErrorText = "Shell Code Error"
[Source Media Descriptions]
1 = "IBM Networks Client for Windows NT" , TAGFILE = readme.*
[OptionsTextENG]
IBMNeTNT = "IBM Networks Coordinated Logon Client for Windows NT"
IBMGINA = "IBM Networks Primary Logon Client for Windows NT"
[FileConstantsENG]
ProCancel = "Cancel"
ProCancelCap = "IBM Networks Client Setup Message"
ProText1 = "Copying:"
ProText2 = "To:"
NoAdminPrivilege = "You must be logged on with Administrator privilege to install the "$(ProductTitle)"."
RunOnceError = "A required Registry key is missing. Run the IBMNDEL.BAT file in the "%SystemRoot%" directory after rebooting your system."
RebootErrorMsg1 = "A remove of this client is pending. You must reboot the system before reinstalling this client."
RebootErrorMsg2 = "Please close Network, reboot, and try again."
SynchUserMsg = "Your Network Administrator must synchronize your user account on Windows NT and the IBM OS/2 Warp Server domain."
AlreadyInstalled = "An IBM Networks logon client is already installed on your system."
InvalidVerMsg = "The IBM Networks Client requires at least the Windows NT 4.0 product version."
[FileConstantsCoLogonENG]
ProductTitle = "IBM Networks Coordinated Logon Client"
ProductDisplayName = $(ProductTitle)
ProductDescription = "Enables this computer to log on to Warp Server servers and access their resources."
FunctionTitle = $(ProductTitle)" Setup"
ProCaption = $(ProductTitle)" Setup"
ProCancelMsg = $(ProductTitle)" is not correctly installed. "+
"Are you sure you want to cancel copying files?"
NTWkstaNotInstalled = "The Windows NT Workstation service must be installed before you install the "$(ProductTitle)"."
[FileConstantsPriLogonENG]
ProductTitle = "IBM Networks Primary Logon Client"
ProductDisplayName = $(ProductTitle)
ProductDescription = "Provides primary logon authentication with IBM OS/2 Warp Server servers,"+
"as well as enabling access to their resources."
FunctionTitle = $(ProductTitle)" Setup"
ProCaption = $(ProductTitle)" Setup"
ProCancelMsg = $(ProductTitle)" is not correctly installed. "+
"Are you sure you want to cancel copying files?"
NTWkstaNotInstalled = "The Windows NT Workstation service must be installed before you install the "$(ProductTitle)"."
[IconInfoENG]
IconGroupName = "IBM Networks Client"
Icon1Name = $(IconGroupName)
Icon2Name = "Users Guide"