;***********************************************************************
; Im128 ISDN Card WindowsNT Setup File.
;***********************************************************************
;-----------------------------------------------------------------------
; OPTION TYPE
; -----------
; This identifies the Option type we are dealing with. The different
; possible types are:
;
; COMPUTER, DISPLAY, MOUSE, KEYBOARD, LAYOUT, SCSI, PRINTER, ...
;
; Types specific to networking:
;
; NetAdapter, a netcard / adapter combination or just a netcard
; NetDriver, just a netcard driver
; NetTransport, a complete NDIS-compliant TDI transport stack
; NetService, an NT networking service
; NetWork, a complete network ensemble.
; NetProvider a complete network which supports NT MPR protocol
;-----------------------------------------------------------------------
[Identification]
OptionType = NetAdapter
;***********************************************************************
;
;***********************************************************************
[PlatformsSupported]
ISA
;;+ Added by Gary 1997,9,19
PCMCIA
;;-
;***********************************************************************
;
;***********************************************************************
[Options]
MT56128ZLXNT
;***********************************************************************
;
;***********************************************************************
[OptionsTextENG]
MT56128ZLXNT = "56K MODEM + ISDN Adapter for CAPI "
;***********************************************************************
;
;***********************************************************************
[Files-Oem]
1, AboISDN.SYS, SIZE=65536 BACKUP=ABOISDN.BAK, DESTINATION=$(!STF_WINDOWSSYSPATH)\drivers DECOMPRESS RENAME=ABOISDN.SYS
[Files-Oem1]
1, abonaf32.dll, SIZE=65536 BACKUP=ABONAF32.BAK, DESTINATION=$(!STF_WINDOWSSYSPATH) DECOMPRESS RENAME=ABONAF32.DLL
[Files-Oem2]
1, capi2032.dll, SIZE=65536 BACKUP=CAPI2032.BAK, DESTINATION=$(!STF_WINDOWSSYSPATH) DECOMPRESS RENAME=CAPI2032.DLL
[Files-Oem3]
1, status.exe, SIZE=65536 BACKUP=STATUS.BAK, DESTINATION=$(!STF_WINDOWSSYSPATH) DECOMPRESS RENAME=STATUS.EXE
;;[Files-Oem4]
;;1, im128nds.SYS, SIZE=65536 BACKUP=IM128NDS.BAK, DESTINATION=$(!STF_WINDOWSSYSPATH)\drivers DECOMPRESS RENAME=IM128NDS.SYS
[Files-Oem5]
1, pant.exe, SIZE=65536 BACKUP=PANT.BAK, DESTINATION=$(!STF_WINDOWSSYSPATH) DECOMPRESS RENAME=PANT.EXE
[Files-Oem6]
1, dialernt.exe, SIZE=65536 BACKUP=DIALERNT.BAK, DESTINATION=$(!STF_WINDOWSSYSPATH) DECOMPRESS RENAME=DIALERNT.EXE
[Files-Dll]
1, im128nds.dll, SIZE=999
;***********************************************************************
;
;***********************************************************************
[Source Media Descriptions]
1 = "Windows NT Setup Disk #1" , TAGFILE = disk1
;***********************************************************************
;
;***********************************************************************
[FileConstants]
Manufacturer = "MultiMobile"
ProductSoftwareName = "MT56128ZLXNT"
ProductHardwareName = "MT56128ZLXNT"
ProductMajorVersion = "1"
ProductMinorVersion = "0"
ProductDriverName = "aboisdn.SYS"
InfName = "OEMCJDRV.INF"
UtilityInf = "UTILITY.INF"
ParamInf = "NCPARAM.INF"
subroutineinf = "SUBROUTN.INF"
SoftwareType = "driver"
;;+++++++++++++++++++++++++++++++++++++++
BoardName = "MT56128ZLXNT"
NumberOfLines = "1"
Line0SwitchType = "2"
Line0Channel0Phone = ""
Line0Channel1Phone = ""
Line0Channel0Spid = ""
Line0Channel1Spid = ""
PCCARDAttributeMemoryAddress = "868352"
Pcmcia = "1"
;;+++++++++++++++++++++++++++++++++++++++
Exit_Code = 0
NetEventDLL = "%SystemRoot%\System32\netevent.dll"
IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll"
ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
ProductSoftwareImagePath = "\SystemRoot\System32\drivers\"$(ProductDriverName)
NetRuleSoftwareType = $(ProductSoftwareName)"Sys "$(ProductSoftwareName)"Driver"
NetRuleSoftwareUse = $(SoftwareType)
NetRuleSoftwareBindForm = ""$(ProductSoftwareName)"Sys yes no container"
NetRuleSoftwareClass = {$(ProductSoftwareName)"Driver basic"}
NetRuleSoftwareBindable = {$(ProductSoftwareName)"Driver "$(ProductHardwareName)"Adapter non exclusive 100"}
NetRuleHardwareBindForm = " yes yes container"
NetRuleHardwareType = $(ProductHardwareName)" "$(ProductHardwareName)"Adapter"
NetRuleHardwareClass = {$(ProductHardwareName)"Adapter basic"}
DeviceMap = "HARDWARE\DEVICEMAP"
TapiDevices = "TAPI DEVICES"
TapiDeviceKey = $(ProductHardwareName)
TapiMediaType = "ISDN"
ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"+
$(ProductSoftwareName)"\CurrentVersion"
ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductSoftwareName)+
"\Parameters"
;;+ Added by Gary 1997,9,20
PCCardDataBase = $(!NTN_ServiceBase)"\Pcmcia\DataBase"
NICDataBase = $(PCCardDataBase)"\MultiMobile\MT56128ZLX-ST"
DataBaseKey = "MultiMobile\MT56128ZLX-NT"
DataBaseKeyPri = "MultiMobile"
ServiceBase = $(!NTN_ServiceBase)
PCCardIsdnTa = $(!NTN_ServiceBase)"\IsdnTa"
PCCardIsdnTaParam = $(!NTN_ServiceBase)"\IsdnTa\Parameters"
PCCardIsdnTa1 = $(!NTN_ServiceBase)"\IsdnTa1"
PCCardIsdnTa1Param = $(!NTN_ServiceBase)"\IsdnTa1\Parameters"
;;-
IO_List = {272,768,800,832,864,896,928,960,992}
IRQ_List = {5, 9, 10, 11, 12, 15}
; FIXME - Set to zero before release
DebugFlags = 0
;***********************************************************************
;
;***********************************************************************
[GeneralConstants]
from = ""
to = ""
ExitCodeOk = 0
ExitCodeCancel = 1
ExitCodeFatal = 2
KeyNull = ""
MAXIMUM_ALLOWED = 33554432
RegistryErrorIndex = NO_ERROR
KeyProduct = ""
KeyParameters = ""
TRUE = 1
FALSE = 0
NoTitle = 0
ExitState = "Active"
OldVersionExisted = $(FALSE)
DriverPath = $(!STF_NTPATH)\drivers
;;+ Add by Gary 1997,9,19
KeyNull = ""
MAXIMUM_ALLOWED = 33554432
KeyPCCard = ""
KeyDataBase = ""
KeyServiceBase = ""
KeyPCCardIsdnTa = ""
KeyPCCardIsdnTaParam = ""
;;-
;***********************************************************************
;
;***********************************************************************
[Date]
Now = {} ? $(!LIBHANDLE) GetSystemDate
;***************************************************************************
; Identify: The first called section by NCPA
;
; DESCRIPTION: To verify that this INF deals with the same type of options
; as we are choosing currently.
;
; INPUT: None
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL
; $($R1): Option Type (COMPUTER ...)
; $($R2): Diskette description
;***************************************************************************
[Identify]
Read-Syms Identification
Set Status = STATUS_SUCCESSFUL
Set Identifier = $(OptionType)
Set Media = #("Source Media Descriptions", 1, 1)
Return $(Status) $(Identifier) $(Media)
;***********************************************************************
; ReturnOptions: The second called section by NCPA
;
; DESCRIPTION: To return the option list supported by this INF and the
; localised text list representing the options.
;
;
; INPUT: $($0): Language used. ( ENG | FRN | ... )
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
; STATUS_NOLANGUAGE
; STATUS_FAILED
; STATUS_NOTSUPPORTED
;
; $($R1): Option List
; $($R2): Option Text List
;***********************************************************************
[ReturnOptions]
Set Status = STATUS_FAILED
Set OptionList = {}
Set OptionTextList = {}
Set LanguageList = ^(LanguagesSupported, 1)
IfContains(i) $($0) in $(LanguageList)
IfStr(i) $($1) == ""
GoTo SetOptions
EndIf
Set PlatformList = ^(PlatformsSupported, 1)
IfContains(i) $($1) in $(PlatformList)
GoTo SetOptions
Else
Set Status = STATUS_NOTSUPPORTED
GoTo ExitReturnOptions
EndIf
Else
Set Status = STATUS_NOLANGUAGE
GoTo ExitReturnOptions
EndIf
SetOptions = +
Set OptionList = ^(Options, 1)
Set OptionTextList = ^(OptionsText$($0), 1)
Set Status = STATUS_SUCCESSFUL
ExitReturnOptions = +
Return $(Status) $(OptionList) $(OptionTextList)
;**************************************************************************
; InstallOption: This section is shelled to by main installation processing
; or by NCPASHEL.INF during reconfig, removal, update, etc.
;
;
; FUNCTION: To copy files representing Options
; To configure the installed option
; To update the registry for the installed option
;
; INPUT: $($0): Language to use
; $($1): OptionID to install
; $($2): SourceDirectory
; $($3): AddCopy (YES | NO)
; $($4): DoCopy (YES | NO)
; $($5): DoConfig (YES | NO)
;
; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
; STATUS_NOLANGUAGE |
; STATUS_USERCANCEL |
; STATUS_FAILED
;**************************************************************************
[InstallOption]
Set Status = STATUS_FAILED
Set Option = $($1)
Set SrcDir = $($2)
Set RasDir = $($2)
Set AddCopy = $($3)
Set DoCopy = $($4)
Set DoConfig = $($5)
Set LanguageList = ^(LanguagesSupported, 1)
IfContains(i) $($0) NOT-IN $(LanguageList)
Return STATUS_NOLANGUAGE
EndIf
;
; FIXME - make sure this flag is disabled before shipping
;
Set OldDebugControl = $(!DebugOutputControl)
Set !DebugOutputControl = 1
Set-Subst LF = "\n"
Read-Syms GeneralConstants
Read-Syms FileConstants
Read-Syms DialogConstants$(!STF_LANGUAGE)
IfStr(i) $(!NTN_Origination) == "NCPA"
Set Continue = $(OK)
EndIf
Read-Syms FileConstants$(!STF_LANGUAGE)
Detect Date
Set-Title $(FunctionTitle)
Set to = Begin
Set from = Begin
Set CommonStatus = STATUS_SUCCESSFUL
EndWait
;***********************************************************************
;
;***********************************************************************
Begin = +
Set ActivateDetection = FALSE
IfStr(i) $(!NTN_InstallMode) == deinstall
Set StartLabel = RemoveAdapter
Else-IfStr(i) $(!NTN_InstallMode) == Update
Set StartLabel = UpgradeSoftware
Else-IfStr(i) $(!NTN_InstallMode) == bind
Set StartLabel = BindingAdapter
Else-IfStr(i) $(!NTN_InstallMode) == configure
Set StartLabel = ConfigureAdapter
Set ActivateDetection = TRUE
Set CommonStatus = STATUS_REBOOT
IfStr(i) $(ProductKeyName) == $(!NTN_RegBase)
Debug-Output $(InfName)": Cannot configure the EtherWORKS 3 driver software."
Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error: cannot get an error string."
GoTo ShellCodeError
EndIf
Set Error = $($R0)
Set from = end
Set to = end
GoTo NonFatalInfo
EndIf
Else
Set StartLabel = InstallAdapter
Set ActivateDetection = TRUE
Set OEM_ABANDON_OPTIONS = {}
Set OEM_ABANDON_SOFTWARE = FALSE
Set OEM_ABANDON_ON = TRUE
EndIf
Debug-Output $(InfName)": =================================================="
Debug-Output $(InfName)": STF_CWDIR is: "$(!STF_CWDIR)
Debug-Output $(InfName)": STF_LANGUAGE is: "$(!STF_LANGUAGE)
Debug-Output $(InfName)": Option is: "$(Option)
Debug-Output $(InfName)": !STF_NCDETECT is: "$(!STF_NCDETECT)
Debug-Output $(InfName)": !STF_NCOPTION is: "$(!STF_NCOPTION)
Debug-Output $(InfName)": !STF_NCDETCARD is: "$(!STF_NCDETCARD)
Debug-Output $(InfName)": !STF_NCDETINFO is: "$(!STF_NCDETINFO)
Debug-Output $(InfName)": =================================================="
Set DetectedCard = FALSE
IfStr(i) $(ActivateDetection) != TRUE
GoTo $(StartLabel)
EndIf
Debug-Output $(InfName)": Calling Param_SetDefaults"
Shell $(ParamInf) Param_SetDefaults {}
Shell $(ParamInf) HexListFromDecList $(IO_List)
Set IO_Hex_List = $($R0)
IfStr(i) $(!STF_NCDETECT) == YES
IfStr(i) $(!STF_NCOPTION) == $(Option)
Set DetectedCard = TRUE
Debug-Output $(InfName)": Setting DetectedCard to TRUE"
EndIf
EndIf
;; Add by Gary 1997,9,25
; set the default values
; IRQ Level = 11
set IRQValue = *($(IRQList), 7)
; IOBase Address = 0x110
set IOBaseAddrValue = *($(IOBaseAddrList), 1)
; Switch Type = ETSI
set SwitchTypeValue = *($(SwitchTypeList), 3)
; beginning address of attribute memory
set MemAddrValue = *($(MemAddrList),1)
; PCMCIA
set PcmciaValue = *($(PcmciaList),2)
; IOBase_1 Address
set IOBaseAddr_1Value = *($(IOBaseAddr_1List), 1)
; U_A_Law
set U_A_LawChoicesValue = *($(U_A_LawChoicesList),2)
; Modem Choices
set ModemChoicesValue = *($(ModemChoicesList),1)
;;-
Shell "" DebugConfiguration "After parameter querying"
Set from = FatalError
Set to = FatalError
GoTo $(StartLabel)
;***********************************************************************
;
;***********************************************************************
InstallAdapter = +
;;+ Add by Gary 1997,9,25
;;
;; dll load addition
;;
Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Goto ShellCodeError
Else-Ifstr(i) $($R0) == STATUS_FAILED
Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
Goto fatal
Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
Goto successful
Endif
Set SrcDir = $($R1)
install "Install-Dll"
;;-
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
IfStr $(KeyProduct) != $(KeyNull)
CloseRegKey $(KeyProduct)
IfStr(i) !(NTN_RegBase) == $(ProductKeyName)
Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle), $(ProductVersion)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error: cannot get an error string."
GoTo ShellCodeError
EndIf
GoTo end
Else
Shell $(UtilityInf), CardExistedDlg
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error: cannot get an error string."
GoTo ShellCodeError
EndIf
IfStr(i) $($R1) != "OK"
Set CommonStatus = STATUS_USERCANCEL
GoTo end
EndIf
Set OldVersionExisted = $(TRUE)
EndIf
EndIf
Set CurrParamSettings = {}
IfStr(i) $(DetectedCard) != TRUE
GoTo AdapterSetup
EndIf
StartWait
Shell $(ParamInf) Param_QueryCard $(!STF_NCDETCARD)
EndWait
IfStr(i) $($R0) != STATUS_SUCCESSFUL
GoTo AdapterSetup
EndIf
Set DetectedParams = $($R1)
Debug-Output $(InfName)": Calling Param_SetDefaults to merge detected params"
Shell $(ParamInf) Param_SetDefaults $(DetectedParams)
GoTo AdapterSetup
;***********************************************************************
;
;***********************************************************************
ConfigureAdapter = +
;; IfStr $(KeyProduct) == $(KeyNull)
;; OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
;; IfStr $(KeyProduct) == $(KeyNull)
;; Set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
;; Debug-Output $(InfName)": Cannot find component product key"
;; GoTo FatalRegistry
;; EndIf
;; EndIf
;;
;; Debug-Output $(InfName)": Shelling to FindService"
;; Shell $(UtilityInf) FindService, $(KeyProduct)
;; IfInt $($ShellCode) != $(!SHELL_CODE_OK)
;; Debug-Output $(InfName)": FindService shell failure"
;; GoTo ShellCodeError
;; EndIf
;; IfStr(i) $($R0) != NO_ERROR
;; Debug-Output $(InfName)": FindService Shell error: "$($R0)
;; GoTo FatalRegistry
;; EndIf
;;
;; Set KeyParameters = $($R2)
;; CloseRegKey $($R1)
;; IfStr $(KeyParameters) == $(KeyNull)
;; Set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
;; Debug-Output $(InfName)": Cannot find component service"
;; GoTo FatalRegistry
;; EndIf
;;+ add by gary 1998,2,27
OpenRegKey $(!REG_H_LOCAL) "" $(ServiceBase) $(MAXIMUM_ALLOWED) KeyServiceBase
ifstr $(KeyServiceBase) == $(KeyNull)
GoTo end
endif
OpenRegKey $(!REG_H_LOCAL) "" $(PCCardIsdnTaParam) $(MAXIMUM_ALLOWED) KeyPCCardIsdnTaParam
ifstr $(KeyPCCardIsdnTaParam) == $(KeyNull)
CreateRegKey $(KeyServiceBase) {"IsdnTa\Parameters",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyPCCardIsdnTaParam
ifstr $(KeyPCCardIsdnTaParam) == $(KeyNull)
CloseRegkey $(KeyServiceBase)
GoTo end
endif
endif
;;-
Set OldVersionExisted = $(TRUE)
Set ValueName = ""
Set ValueData = ""
Set ValueStr = ""
Set ValueList = {}
;; add by gary 1998,2,27
;; EnumRegValue $(KeyParameters) ValueList
EnumRegValue $(KeyPCCardIsdnTaParam) ValueList
;;-
ForListDo $(ValueList)
Set ValueItem = $($)
Set ValueName = *($(ValueItem),1)
Set ValueData = *($(ValueItem),4)
Debug-Output $(InfName)": "$(ValueName)"="$(ValueData)
;;+ Add by Gary 1997,9,25
IfStr(i) $(ValueName) == "IOBaseAddress"
Set IOBaseAddrIndex = $(ValueData)
Else-IfStr(i) $(ValueName) == "InterruptNumber"
Set IRQValueIndex = $(ValueData)
Else-IfStr(i) $(ValueName) == "PCCARDAttributeMemoryAddress"
Set MemAddrIndex = $(ValueData)
Else-IfStr(i) $(ValueName) == "Pcmcia"
Set PcmciaIndex = $(ValueData)
Else-IfStr(i) $(ValueName) == "Line0.SwitchType"
Set SwitchTypeIndex = $(ValueData)
Else-IfStr(i) $(ValueName) == "Line0.Channel0.Phone"
Set Line0Channel0Phone = $(ValueData)
Else-IfStr(i) $(ValueName) == "Line0.Channel1.Phone"
Set Line0Channel1Phone = $(ValueData)
Else-IfStr(i) $(ValueName) == "Line0.Channel0.Spid"
Set Line0Channel0Spid = $(ValueData)
Else-IfStr(i) $(ValueName) == "Line0.Channel1.Spid"
Set Line0Channel1Spid = $(ValueData)
Else-IfStr(i) $(ValueName) == "IOBaseAddress_1"
Set IOBaseAddr_1Index = $(ValueData)
Else-IfStr(i) $(ValueName) == "capi_mode"
Set Capi_ModeChoicesIndex = $(ValueData)
Else-IfStr(i) $(ValueName) == "capi_phone"
Set Capi_PhoneChoicesIndex = $(ValueData)
Else-IfStr(i) $(ValueName) == "u_a_law"
Set U_A_LawChoicesIndex = $(ValueData)
EndIf
;;-
EndForListDo
;;+ added by Gary 1997,9,25
set IRQValue = *($(IRQList), ~($(IRQValues),$(IRQValueIndex)))
ifstr(i) $(IRQValue) == ""
set IRQValue = *($(IRQList), 3)
endif
Set InterruptNumber = $(IRQValue)
set IOBaseAddrValue = *($(IOBaseAddrList), ~($(IOBaseAddrValues),$(IOBaseAddrIndex)))
ifstr(i) $(IOBaseAddrValue) == ""
set IOBaseAddrValue = *($(IOBaseAddrList), 1)
endif
Set IOBaseAddress = $(IOBaseAddrValue)
set SwitchTypeValue = *($(SwitchTypeList), ~($(SwitchTypeValues),$(SwitchTypeIndex)))
ifstr(i) $(SwitchTypeValue) == ""
set SwitchTypeValue = *($(SwitchTypeList), 1)
endif
set Line0SwitchType = $(SwitchTypeValue)
set MemAddrValue = *($(MemAddrList), ~($(MemAddrValues),$(MemAddrIndex)))
ifstr(i) $(MemAddrValue) == ""
set MemAddrValue = *($(MemAddrList), 1)
endif
set PCCARDAttributeMemoryAddress = $(MemAddrValue)
set PcmciaValue = *($(PcmciaList), ~($(PcmciaValues),$(PcmciaIndex)))
ifstr(i) $(PcmciaValue) == ""
set PcmciaValue = *($(PcmciaList), 1)
endif
set Pcmcia = $(PcmciaValue)
set IOBaseAddr_1Value = *($(IOBaseAddr_1List), ~($(IOBaseAddr_1Values),$(IOBaseAddr_1Index)))
ifstr(i) $(IOBaseAddr_1Value) == ""
set IOBaseAddr_1Value = *($(IOBaseAddr_1List), 1)
endif
Set IOBaseAddress_1 = $(IOBaseAddr_1Value)
set U_A_LawChoicesValue = *($(U_A_LawChoicesList), ~($(U_A_LawChoicesValues),$(U_A_LawChoicesIndex)))
ifstr(i) $(U_A_LawChoicesValue) == ""
set U_A_LawChoicesValue = *($(U_A_LawChoicesList), 1)
endif
Set U_A_LawChoices = $(U_A_LawChoicesValue)
;; set ModemChoicesValue = *($(ModemChoicesList), ~($(ModemChoicesValues),$(ModemChoicesIndex)))
;; ifstr(i) $(ModemChoicesValue) == ""
;; set ModemChoicesValue = *($(ModemChoicesList), 1)
;; endif
;; Set ModemChoices = $(ModemChoicesValue)
set Capi_ModeChoicesValue = *($(Capi_ModeChoicesList), ~($(Capi_ModeChoicesValues),$(Capi_ModeChoicesIndex)))
ifstr(i) $(Capi_ModeChoicesValue) == ""
set Capi_ModeChoicesValue = *($(Capi_ModeChoicesList), 1)
endif
Set Capi_ModeChoices = $(Capi_ModeChoicesValue)
set Capi_PhoneChoicesValue = *($(Capi_PhoneChoicesList), ~($(Capi_PhoneChoicesValues),$(Capi_PhoneChoicesIndex)))
ifstr(i) $(Capi_PhoneChoicesValue) == ""
set Capi_PhoneChoicesValue = *($(Capi_PhoneChoicesList), 1)
endif
Set Capi_PhoneChoices = $(Capi_PhoneChoicesValue)
ifStr(i) $(Capi_ModeChoicesValue) == "1"
set ModemChoicesIndex = "0"
else-ifStr(i) $(Capi_PhoneChoicesValue) == "1"
set ModemChoicesIndex = "1"
else-ifStr(i) $(Capi_PhoneChoicesValue) == "0"
set ModemChoicesIndex = "2"
endif
set ModemChoicesValue = *($(ModemChoicesList), ~($(ModemChoicesValues),$(ModemChoicesIndex)))
ifstr(i) $(ModemChoicesValue) == ""
set ModemChoicesValue = *($(ModemChoicesList), 1)
endif
Set ModemChoices = $(ModemChoicesValue)
CloseRegKey $(KeyServiceBase)
CloseRegKey $(KeyPCCardIsdnTaParam)
;;-
Shell $(ParamInf) Param_SaveValues
Set CurrParamSettings = $($R0)
;***********************************************************************
;
;***********************************************************************
AdapterSetup = +
Shell "" DebugConfiguration "before displaying dialog"
Set from = AdapterOptions
;; Set InterruptNumber = *($(IRQ_List), ~($(IRQ_List),$(InterruptNumber)))
;; Set IO_Hex_Value = *($(IO_Hex_List), ~($(IO_List),$(IOBaseAddress)))
Shell $(ParamInf) Param_ParameterConfidence
IfStr(i) $($R0) != STATUS_SUCCESSFUL
Debug-Output $(InfName)": parameter confidence too low to bypass configuration"
GoTo AdapterOptions
EndIf
IfStr(i) $(DetectedCard) == TRUE
IfStr(i) $(!STF_INSTALL_MODE) != CUSTOM
GoTo AdapterVerify
EndIf
EndIf
;***********************************************************************
;
;***********************************************************************
AdapterOptions = +
;;+ Add by Gary 1997,9,25
LoadLibrary "Disk 1" $(DialogDllName) hLib
Read-Syms FileDependentDlg$(!STF_LANGUAGE)
ui start "InputDlg" $(hLib)
set ExitButton = $(ButtonPressed)
FreeLibrary $(hLib)
IfStr(i) $(DLGEVENT) == "CONTINUE"
Set IOBaseAddrIndex = $(Combo1Out)
Set IRQValueIndex = $(Combo2Out)
Set MemAddrIndex = $(Combo3Out)
Set PcmciaIndex = $(Combo4Out)
Set SwitchTypeIndex = $(Combo5Out)
Set IOBaseAddr_1Index = $(Combo6Out)
Set ModemChoicesIndex = $(Combo7Out)
Set U_A_LawChoicesIndex = $(Combo8Out)
Set Line0Channel0Phone = *($(EditTextOut),1)
Set Line0Channel1Phone = *($(EditTextOut),2)
Set Line0Channel0Spid = *($(EditTextOut),3)
Set Line0Channel1Spid = *($(EditTextOut),4)
ui pop 1
Else-IfStr(i) $(DLGEVENT) == "BACK"
Set CommonStatus = STATUS_USERCANCEL
Debug-Output $(InfName)": Action: exit. Bye."
ui pop 1
GoTo end
Else
Debug-Output $(InfName)": Action: unknown. Bye."
ui pop 1
GoTo end
EndIf
;;-
Set BusType = 1
Set BusNumber = 0
;***********************************************************************
;
;***********************************************************************
AdapterVerify = +
Shell "" DebugConfiguration "after running dialog"
IfStr(i) $(DetectedCard) != TRUE
Shell $(ParamInf) Param_SaveValues
Set NewParamSettings = $($R0)
IfStr(i) $(CurrParamSettings) == {}
Set DiffParamSettings = $(NewParamSettings)
Else
Shell $(ParamInf) Param_DiffValues $(CurrParamSettings)
Set DiffParamSettings = $($R0)
EndIf
Debug-Output $(InfName)": Calling Param_VerifyResources"
Shell $(ParamInf) Param_VerifyResources $(DiffParamSettings)
IfStr(i) $($R0) == STATUS_SUCCESSFUL
Debug-Output $(InfName)": Param_VerifyResources succeeded"
GoTo SkipOptions
EndIf
Else
Set CardVerifyIndex = $(!STF_NCDETCARD)
Debug-Output $(InfName)": Calling Param_VerifyCard"
Shell $(ParamInf) Param_VerifyCard $(!STF_NCDETCARD)
IfStr(i) $($R0) == STATUS_SUCCESSFUL
Debug-Output $(InfName)": Param_VerifyCard succeeded"
GoTo SkipOptions
EndIf
EndIf
Set from = AdapterOptions
Set to = SkipOptions
Shell $(UtilityInf),RegistryErrorString,VERIFY_WARNING
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error: cannot get an error string."
GoTo ShellCodeError
EndIf
Set Error = $($R0)
GoTo WarningMsg
;***********************************************************************
;
;***********************************************************************
SkipOptions =+
IfInt $(OldVersionExisted) == $(TRUE)
IfStr(i) $(!NTN_InstallMode) == configure
GoTo WriteParameters
EndIf
EndIf
StartWait
IfInt $(OldVersionExisted) == $(FALSE)
IfStr(i) $(!NTN_InstallMode) == "install"
IfStr(i) $(DoCopy) == "YES"
Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
GoTo ShellCodeError
Else-IfStr(i) $($R0) == STATUS_FAILED
Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
GoTo ShellCodeError
EndIf
Set Error = $($R0)
GoTo FatalError
Else-IfStr(i) $($R0) == STATUS_USERCANCEL
GoTo SuccessfulOption
EndIf
Set SrcDir = $($R1)
EndIf
Install "Install-Option"
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 FatalError
EndIf
EndIf
Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName), +
$(ProductSoftwareName), +
$(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
$(ProductSoftwareImagePath), "kernelautostart", "NDIS", {}, "",+
$(NetEventDLL)
Set OEM_ABANDON_SOFTWARE = TRUE
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error"
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
Set KeyProduct = $($R1)
Set SoftNetRulesKey = $($R2)
CloseRegKey $($R3)
CloseRegKey $($R4)
CloseRegKey $($R5)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output $(InfName)": Registry error: add software components"
CloseRegKey $(KeyProduct)
CloseRegKey $(SoftNetRulesKey)
GoTo FatalRegistry
EndIf
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),$(ProductSoftwareTitle)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output $(InfName)": Registry error: add value list."
CloseRegKey $(KeyProduct)
CloseRegKey $(SoftNetRulesKey)
GoTo FatalRegistry
EndIf
Set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
{use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
{bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
{bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Shell $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
CloseRegKey $(KeyProduct)
CloseRegKey $(SoftNetRulesKey)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output $(InfName)": Resgitry error: add value list."
GoTo FatalRegistry
EndIf
EndIf
Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
IfInt $($R4) != -1
Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
EndIf
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": Cannot add hardware component"
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output $(InfName)": Registry error: add hardware component"
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
GoTo FatalRegistry
EndIf
Set KeyParameters = $($R3)
Set KeyAdapterRules = $($R2)
Set AdapterNumber = $($R4)
Set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
{Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
{ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(UtilityInf), AddValueList, $($R1), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error"
GoTo ShellCodeError
EndIf
CloseRegKey $($R1)
Set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
Set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
Set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
{bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Shell $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output $(InfName)": Resgitry error: add value list."
CloseRegKey $(KeyParameters)
CloseRegKey $(KeyAdapterRules)
GoTo FatalRegistry
EndIf
CloseRegKey $(KeyAdapterRules)
GoTo WriteParameters
;***********************************************************************
;
;***********************************************************************
WriteParameters = +
;;; You need one address entry in the list for each channel on your device.
;;; FIXME - at this point RAS requires there to be one logical line per address
;;; FIXME - so the address (channel) number is ignored and the line number is used
;;+ Add by Gary 1997,9,25
set IOBaseAddrValue = *($(IOBaseAddrValues), ~($(IOBaseAddrList),$(IOBaseAddrIndex)))
set IOBaseAddress = $(IOBaseAddrValue)
set IRQValue = *($(IRQValues), ~($(IRQList),$(IRQValueIndex)))
set InterruptNumber = $(IRQValue)
set SwitchTypeValue = *($(SwitchTypeValues), ~($(SwitchTypeList),$(SwitchTypeIndex)))
set Line0SwitchType = $(SwitchTypeValue)
set MemAddrValue = *($(MemAddrValues), ~($(MemAddrList),$(MemAddrIndex)))
set PCCARDAttributeMemoryAddress = $(MemAddrValue)
set PcmciaValue = *($(PcmciaValues), ~($(PcmciaList),$(PcmciaIndex)))
set Pcmcia = $(PcmciaValue)
set IOBaseAddr_1Value = *($(IOBaseAddr_1Values), ~($(IOBaseAddr_1List),$(IOBaseAddr_1Index)))
set IOBaseAddress_1 = $(IOBaseAddr_1Value)
set ModemChoicesValue = *($(ModemChoicesValues), ~($(ModemChoicesList),$(ModemChoicesIndex)))
set ModemChoices = $(ModemChoicesValue)
ifStr(i) $(ModemChoicesValue) == "0"
set Capi_ModeChoices = "1"
set Capi_PhoneChoices = "1"
else-ifStr(i) $(ModemChoicesValue) == "1"
set Capi_ModeChoices = "0"
set Capi_PhoneChoices = "1"
else-ifStr(i) $(ModemChoicesValue) == "2"
set Capi_ModeChoices = "0"
set Capi_PhoneChoices = "0"
endif
set U_A_LawChoicesValue = *($(U_A_LawChoicesValues), ~($(U_A_LawChoicesList),$(U_A_LawChoicesIndex)))
set U_A_LawChoices = $(U_A_LawChoicesValue)
GoTo SuccessfulOption
;;-
;;+ added by gary 1998,12,3
IfStr(i) $(!NTN_InstallMode) == configure
Set NewValueList = {+
{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
{BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusType)},+
{DeviceName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
{InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(InterruptNumber)},+
{MediaType,$(NoTitle),$(!REG_VT_SZ),$(TapiMediaType)},+
{IOBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddress)},+
{BoardName,$(NoTitle),$(!REG_VT_SZ),$(BoardName)},+
{NumberOfLines,$(NoTitle),$(!REG_VT_DWORD),$(NumberOfLines)},+
{"Line0.SwitchType",$(NoTitle),$(!REG_VT_DWORD),$(Line0SwitchType)},+
{"Line0.Channel0.Phone",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel0Phone)},+
{"Line0.Channel1.Phone",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel1Phone)},+
{"Line0.Channel0.Spid",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel0Spid)},+
{"Line0.Channel1.Spid",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel1Spid)}+
}
GoTo NextStepOption
endif
;;-
Set TapiAddressList = {$(AdapterNumber)" 1 0",$(AdapterNumber)" 2 0"}
Set NewValueList = {+
{AddressList,$(NoTitle),$(!REG_VT_MULTI_SZ),$(TapiAddressList)},+
{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
{BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusType)},+
{DeviceName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
{InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(InterruptNumber)},+
{MediaType,$(NoTitle),$(!REG_VT_SZ),$(TapiMediaType)},+
{IOBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddress)},+
{BoardName,$(NoTitle),$(!REG_VT_SZ),$(BoardName)},+
{NumberOfLines,$(NoTitle),$(!REG_VT_DWORD),$(NumberOfLines)},+
{"Line0.SwitchType",$(NoTitle),$(!REG_VT_DWORD),$(Line0SwitchType)},+
{"Line0.Channel0.Phone",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel0Phone)},+
{"Line0.Channel1.Phone",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel1Phone)},+
{"Line0.Channel0.Spid",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel0Spid)},+
{"Line0.Channel1.Spid",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel1Spid)}+
}
NextStepOption = +
Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
CloseRegKey $(KeyParameters)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Output $(InfName)": Registry error: Add value list"
GoTo FatalRegistry
EndIf
;;+ add by gary 1998,2,26
;; GoTo SuccessfulOption
;;
;
; Skip TAPI/RAS setup if already installed.
;
IfStr(i) $(!NTN_InstallMode) == configure
;;+add by Gary 1997,9,30
GoTo SuccessfulOption1
;;-
EndIf
;
; Create the HARDWARE\DEVICEMAP\TAPI DEVICES\Prouduct key
;
OpenRegKey $(!REG_H_LOCAL) "" "HARDWARE\DEVICEMAP" $(MAXIMUM_ALLOWED) BaseKey
shell "" OemCreateRegKey $(BaseKey) "TAPI DEVICES\"$(Option)
IfStr(i) $($R0) != NO_ERROR
Debug-Output $(InfName)": Error creating registry key!"
GoTo FatalRegistry
EndIf
Set TapiDeviceKey = $($R1)
Set NewValueList = {+
{Address,$(NoTitle),$(!REG_VT_MULTI_SZ),$(TapiAddressList)},+
{"Media Type",$(NoTitle),$(!REG_VT_SZ),$(TapiMediaType)}}
Shell $(UtilityInf), AddValueList, $(TapiDeviceKey), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Output $(InfName)": Registry error: Add value list"
GoTo FatalRegistry
EndIf
CloseRegKey $(TapiDeviceKey)
CloseRegKey $(BaseKey)
;
; if RAS is not installed, then shell ras setup INF file to install RAS
; else invoke RAS to allow user to configure RAS for Switch56.
;
Read-Syms InvokeRasDlg$(!STF_LANGUAGE)
Shell "oemnsvra.inf" CheckRasInstalled
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": Error Shelling the RAS INF file oemnsvra.inf"
Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", $(InvokeRasError)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
GoTo ShellCodeError
EndIf
GoTo SuccessfulOption
EndIf
Set RasInstalled = $($R0)
Debug-Output $(InfName)": Is RAS Installed? "$(RasInstalled)
;
; display a message to the user that RAS setup will now be invoked
;
IfStr(i) $(RasInstalled) == FALSE
Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", $(InvokeRasSetupMsg)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
GoTo SuccessfulOption
EndIf
Else
Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", $(InvokeRasConfigMsg)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
GoTo SuccessfulOption
EndIf
EndIf
;
; FIXME - RAS INF will not locate the files if it is spawned here.
;
EndWait
GoTo SuccessfulOption
;
; Set the flags based on whether this is an IDW installation
;
IfStr(i) $(!STF_IDW) == TRUE
Set AddCopy = NO
Set DoCopy = NO
Set DoConfig = NO
Else
Set AddCopy = YES
Set DoCopy = YES
Set DoConfig = YES
EndIf
;
; change the global install mode flag to configure if RAS is already installed
;
IfStr(i) $(RasInstalled) == TRUE
Set SaveNTN_InstallMode = $(!NTN_InstallMode)
Set !NTN_InstallMode = configure
EndIf
;
; now invoke RAS setup to do the right thing
;
Shell "oemnsvra.inf" InstallOption $(!STF_LANGUAGE) "RAS" $(RasDir) $(AddCopy) $(DoCopy) $(DoConfig)
;
; restore the global instal mode flag if it was changed
;
IfStr(i) $(RasInstalled) == TRUE
Set !NTN_InstallMode = $(SaveNTN_InstallMode)
EndIf
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": Error Shelling the RAS INF file oemnsvra.inf"
Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", $(InvokeRasError)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
GoTo ShellCodeError
EndIf
GoTo SuccessfulOption
EndIf
EndWait
GoTo SuccessfulOption
;***********************************************************************
;
;***********************************************************************
BindingAdapter =+
Set Error = "Binding: Sorry, not yet implemented."
GoTo FatalError
;***********************************************************************
;
;***********************************************************************
RemoveAdapter = +
IfStr(i) $(ProductKeyName) == $(!NTN_RegBase)
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), $(ProductSoftwareName)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error"
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
GoTo FatalRegistry
EndIf
Else
Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
$(ProductSoftwareName), $(!NTN_RegBase)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error"
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
GoTo FatalRegistry
EndIf
EndIf
;;+ Added by Gary 1997,9,20
OpenRegKey $(!REG_H_LOCAL) "" $(PCCardIsdnTa) $(MAXIMUM_ALLOWED) KeyPCCardIsdnTa
DeleteRegTree $(KeyPCCardIsdnTa) "Parameters"
DeleteRegTree $(KeyPCCardIsdnTa) "Enum"
CloseRegKey $(KeyPCCardIsdnTa)
OpenRegKey $(!REG_H_LOCAL) "" $(ServiceBase) $(MAXIMUM_ALLOWED) KeyServiceBase
DeleteRegTree $(KeyServiceBase) "IsdnTa"
CloseRegKey $(KeyServiceBase)
OpenRegKey $(!REG_H_LOCAL) "" $(PCCardIsdnTa1) $(MAXIMUM_ALLOWED) KeyPCCardIsdnT
DeleteRegTree $(KeyPCCardIsdnTa) "Parameters"
CloseRegKey $(KeyPCCardIsdnTa)
OpenRegKey $(!REG_H_LOCAL) "" $(ServiceBase) $(MAXIMUM_ALLOWED) KeyServiceBase
DeleteRegTree $(KeyServiceBase) "IsdnTa1"
CloseRegKey $(KeyServiceBase)
OpenRegKey $(!REG_H_LOCAL) "" $(PCCardDataBase) $(MAXIMUM_ALLOWED) KeyServiceBase
DeleteRegTree $(KeyServiceBase) $(DataBaseKeyPri)
CloseRegKey $(KeyServiceBase)
;;-
GoTo end
;***********************************************************************
;
;***********************************************************************
UpgradeSoftware = +
IfStr(i) $(ProductKeyName) == $(!NTN_RegBase)
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
IfStr $(KeyProduct) != $(KeyNull)
GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
Set Version = *($(VersionInfo), 4)
Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error"
GoTo ShellCodeError
EndIf
Set !UG_Filename = $($R0)
IfStr(i) $(!UG_Filename) != ""
install "Install-Update"
IfStr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
GoTo FatalError
EndIf
EndIf
SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
IfInt $(Version) != $(ProductVersion)
EndIf
CloseRegKey $(KeyProduct)
Else
GoTo FatalRegistry
EndIf
Else
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) NetworkCardKey
IfStr(i) $(NetworkCardKey) != $(KeyNull)
GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
Set ServiceName = *($(ServiceNameInfo), 4)
OpenRegKey $(NetworkCardKey) "" "NetRules" $(MAXIMUM_ALLOWED) NetRuleKey
IfStr(i) $(NetRuleKey) != $(KeyNull)
Else
GoTo FatalRegistry
EndIf
CloseRegKey $(NetRules)
CloseRegKey $(NetworkCardKey)
Else
GoTo FatalRegistry
EndIf
OpenRegKey $(!REG_H_LOCAL) "" +
$(!NTN_ServiceBase)"\"$(ServiceName) +
$(MAXIMUM_ALLOWED) ServiceKey
IfStr(i) $(ServiceKey) != $(KeyNull)
CloseRegKey $(ServiceKey)
Else
GoTo FatalRegistry
EndIf
EndIf
GoTo end
;***********************************************************************
;
;***********************************************************************
SuccessfulOption = +
;***********************************************************************
; add the pcmcia option into pcmcia\database
;***********************************************************************
;;+ Add By Gary 1997,9,19
OpenRegKey $(!REG_H_LOCAL) "" $(PCCardDataBase) $(MAXIMUM_ALLOWED) KeyPCCard
ifstr $(KeyPCCard) == $(KeyNull)
GoTo end
endif
OpenRegKey $(!REG_H_LOCAL) "" $(NICDataBase) $(MAXIMUM_ALLOWED) KeyDataBase
ifstr $(KeyDataBase) == $(KeyNull)
;; CreateRegKey $(KeyPCCard) {"INTELLIGENT ISDN MODEM \IV128 ",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyDataBase
CreateRegKey $(KeyPCCard) { $(DataBaseKey),$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyDataBase
ifstr $(KeyDataBase) == $(KeyNull)
CloseRegKey $(KeyPCCard)
GoTo end
endif
endif
Set NewValueList = {{"AttributeMemorySize",$(NoTitle),$(!REG_VT_DWORD),65535},+
{"Driver",$(NoTitle),$(!REG_VT_SZ),"IsdnTa"}}
Shell $(UtilityInf), AddValueList, $(KeyDataBase), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Output $(InfName)": Registry error: Add value list"
GoTo FatalRegistry
EndIf
CloseRegKey $(KeyDataBase)
CloseRegKey $(KeyPCCard)
;;-----------------------------------------------------------------
;;+ add the IsdnTa option into the Isdnta and Isdnta\parameter
;;------- IsdnTa-----------------
OpenRegKey $(!REG_H_LOCAL) "" $(ServiceBase) $(MAXIMUM_ALLOWED) KeyServiceBase
ifstr $(KeyServiceBase) == $(KeyNull)
GoTo end
endif
OpenRegKey $(!REG_H_LOCAL) "" $(PCCardIsdnTa) $(MAXIMUM_ALLOWED) KeyPCCardIsdnTa
ifstr $(KeyPCCardIsdnTa) == $(KeyNull)
CreateRegKey $(KeyServiceBase) {"IsdnTa",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyPCCardIsdnTa
ifstr $(KeyPCCardIsdnTa) == $(KeyNull)
CloseRegkey $(KeyServiceBase)
GoTo end
endif
endif
Set NewValueList = {{"ErrorControl",$(NoTitle),$(!REG_VT_DWORD),1},+
{"Group",$(NoTitle),$(!REG_VT_SZ),"Base"},+
{"ImagePath",$(NoTitle),$(!REG_VT_SZ),"\SystemRoot\System32\drivers\AboISDN.sys"},+
{"Start",$(NoTitle),$(!REG_VT_DWORD),1},+
{"Type",$(NoTitle),$(!REG_VT_DWORD),1}}
Shell $(UtilityInf), AddValueList, $(KeyPCCardIsdnTa), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Output $(InfName)": Registry error: Add value list"
GoTo FatalRegistry
EndIf
CloseRegKey $(KeyPCCardIsdnTa)
CloseRegKey $(KeyServiceBase)
;;------ IsdnTa\Parameters ------
SuccessfulOption1 = +
OpenRegKey $(!REG_H_LOCAL) "" $(ServiceBase) $(MAXIMUM_ALLOWED) KeyServiceBase
ifstr $(KeyServiceBase) == $(KeyNull)
GoTo end
endif
OpenRegKey $(!REG_H_LOCAL) "" $(PCCardIsdnTaParam) $(MAXIMUM_ALLOWED) KeyPCCardIsdnTaParam
ifstr $(KeyPCCardIsdnTaParam) == $(KeyNull)
CreateRegKey $(KeyServiceBase) {"IsdnTa\Parameters",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyPCCardIsdnTaParam
ifstr $(KeyPCCardIsdnTaParam) == $(KeyNull)
CloseRegkey $(KeyServiceBase)
GoTo end
endif
endif
Set NewValueList = {{"BusNumber",$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
{"BusType",$(NoTitle),$(!REG_VT_DWORD),$(BusType)},+
{"InterruptNumber",$(NoTitle),$(!REG_VT_DWORD),$(InterruptNumber)},+
{"IoBaseAddress",$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddress)},+
{"IoLength",$(NoTitle),$(!REG_VT_DWORD),8},+
{"IoBaseAddress_1",$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddress_1)},+
{"IoLength_1",$(NoTitle),$(!REG_VT_DWORD),8},+
{"capi_mode",$(NoTitle),$(!REG_VT_DWORD),$(Capi_ModeChoices)},+
{"capi_phone",$(NoTitle),$(!REG_VT_DWORD),$(Capi_PhoneChoices)},+
{"u_a_law",$(NoTitle),$(!REG_VT_DWORD),$(U_A_LawChoices)},+
{"PCCARDAttributeMemoryAddress",$(NoTitle),$(!REG_VT_DWORD),$(PCCARDAttributeMemoryAddress)},+
{"PCCARDAttributeMemoryOffset",$(NoTitle),$(!REG_VT_DWORD),0},+
{"PCCARDAttributeMemorySize",$(NoTitle),$(!REG_VT_DWORD),65535},+
{"Pcmcia",$(NoTitle),$(!REG_VT_DWORD),$(Pcmcia)},+
{"Line0.SwitchType",$(NoTitle),$(!REG_VT_DWORD),$(Line0SwitchType)},+
{"Line0.Channel0.Phone",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel0Phone)},+
{"Line0.Channel1.Phone",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel1Phone)},+
{"Line0.Channel0.Spid",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel0Spid)},+
{"Line0.Channel1.Spid",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel1Spid)}+
}
Shell $(UtilityInf), AddValueList, $(KeyPCCardIsdnTaParam), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Output $(InfName)": Registry error: Add value list"
GoTo FatalRegistry
EndIf
CloseRegKey $(KeyServiceBase)
CloseRegKey $(KeyPCCardIsdnTaParam)
IfStr(i) $(!NTN_InstallMode) == configure
GoTo SuccessfulOption2
EndIf
;-----------------------------------------------------------------
;;-----------------------------------------------------------------
;;+ add the IsdnTa option into the Isdnta and Isdnta\parameter
;;------- IsdnTa1-----------------
OpenRegKey $(!REG_H_LOCAL) "" $(ServiceBase) $(MAXIMUM_ALLOWED) KeyServiceBase
ifstr $(KeyServiceBase) == $(KeyNull)
GoTo end
endif
OpenRegKey $(!REG_H_LOCAL) "" $(PCCardIsdnTa1) $(MAXIMUM_ALLOWED) KeyPCCardIsdnTa
ifstr $(KeyPCCardIsdnTa) == $(KeyNull)
CreateRegKey $(KeyServiceBase) {"IsdnTa1",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyPCCardIsdnTa
ifstr $(KeyPCCardIsdnTa) == $(KeyNull)
CloseRegkey $(KeyServiceBase)
GoTo end
endif
endif
Set NewValueList = {{"ErrorControl",$(NoTitle),$(!REG_VT_DWORD),1},+
{"Start",$(NoTitle),$(!REG_VT_DWORD),3},+
{"Type",$(NoTitle),$(!REG_VT_DWORD),4}}
Shell $(UtilityInf), AddValueList, $(KeyPCCardIsdnTa), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Output $(InfName)": Registry error: Add value list"
GoTo FatalRegistry
EndIf
CloseRegKey $(KeyPCCardIsdnTa)
CloseRegKey $(KeyServiceBase)
;;------ IsdnTa\Parameters ------
;;+ Added by Gary 1997,4,16
;; --- remove IV128 and IV128(adapternumber)
;; OpenRegKey $(!REG_H_LOCAL) "" $(ServiceBase) $(MAXIMUM_ALLOWED) KeyServiceBase
;; DeleteRegTree $(KeyServiceBase) $(ProductSoftwareName)
;; CloseRegKey $(KeyServiceBase)
;; OpenRegKey $(!REG_H_LOCAL) "" $(ServiceBase) $(MAXIMUM_ALLOWED) KeyServiceBase
;; DeleteRegTree $(KeyServiceBase) $(ProductSoftwareName)$(AdapterNumber)
;; CloseRegKey $(KeyServiceBase)
;;-
SuccessfulOption2 = +
OpenRegKey $(!REG_H_LOCAL) "" $(ServiceBase) $(MAXIMUM_ALLOWED) KeyServiceBase
ifstr $(KeyServiceBase) == $(KeyNull)
GoTo end
endif
OpenRegKey $(!REG_H_LOCAL) "" $(PCCardIsdnTa1Param) $(MAXIMUM_ALLOWED) KeyPCCardIsdnTaParam
ifstr $(KeyPCCardIsdnTaParam) == $(KeyNull)
CreateRegKey $(KeyServiceBase) {"IsdnTa1\Parameters",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyPCCardIsdnTaParam
ifstr $(KeyPCCardIsdnTaParam) == $(KeyNull)
CloseRegkey $(KeyServiceBase)
GoTo end
endif
endif
Set NewValueList = {{"BusNumber",$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
{"BusType",$(NoTitle),$(!REG_VT_DWORD),$(BusType)},+
{"InterruptNumber",$(NoTitle),$(!REG_VT_DWORD),$(InterruptNumber)},+
{"IoBaseAddress",$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddress)},+
{"IoLength",$(NoTitle),$(!REG_VT_DWORD),8},+
{"IoBaseAddress_1",$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddress_1)},+
{"IoLength_1",$(NoTitle),$(!REG_VT_DWORD),8},+
{"capi_mode",$(NoTitle),$(!REG_VT_DWORD),$(Capi_ModeChoices)},+
{"capi_phone",$(NoTitle),$(!REG_VT_DWORD),$(Capi_PhoneChoices)},+
{"u_a_law",$(NoTitle),$(!REG_VT_DWORD),$(U_A_LawChoices)},+
{"PCCARDAttributeMemoryAddress",$(NoTitle),$(!REG_VT_DWORD),$(PCCARDAttributeMemoryAddress)},+
{"PCCARDAttributeMemoryOffset",$(NoTitle),$(!REG_VT_DWORD),0},+
{"PCCARDAttributeMemorySize",$(NoTitle),$(!REG_VT_DWORD),65535},+
{"Pcmcia",$(NoTitle),$(!REG_VT_DWORD),$(Pcmcia)},+
{"Line0.SwitchType",$(NoTitle),$(!REG_VT_DWORD),$(Line0SwitchType)},+
{"Line0.Channel0.Phone",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel0Phone)},+
{"Line0.Channel1.Phone",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel1Phone)},+
{"Line0.Channel0.Spid",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel0Spid)},+
{"Line0.Channel1.Spid",$(NoTitle),$(!REG_VT_SZ),$(Line0Channel1Spid)}+
}
Shell $(UtilityInf), AddValueList, $(KeyPCCardIsdnTaParam), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Output $(InfName)": Registry error: Add value list"
GoTo FatalRegistry
EndIf
CloseRegKey $(KeyServiceBase)
CloseRegKey $(KeyPCCardIsdnTaParam)
;-----------------------------------------------------------------
GoTo end
;***********************************************************************
;
;***********************************************************************
Abandon = +
ForListDo $(OEM_ABANDON_OPTIONS)
Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
$(ProductSoftwareName), $($)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error"
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
GoTo FatalRegistry
EndIf
EndForListDo
IfStr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName), FALSE
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error"
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
GoTo FatalRegistry
EndIf
EndIf
GoTo end
;***********************************************************************
;
;***********************************************************************
WarningMsg = +
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
GoTo ShellCodeError
EndIf
IfStr(i) $($R1) == "OK"
GoTo $(to)
Else-IfStr(i) $($R1) == "CANCEL"
GoTo $(from)
EndIf
GoTo end
;***********************************************************************
;
;***********************************************************************
NonFatalInfo = +
Set Severity = STATUS
Set CommonStatus = STATUS_USERCANCEL
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)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
GoTo ShellCodeError
EndIf
IfStr(i) $($R1) == "OK"
GoTo $(from)
EndIf
GoTo end
;***********************************************************************
;
;***********************************************************************
FatalRegistry = +
Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
GoTo ShellCodeError
EndIf
Set Error = $($R0)
GoTo FatalError
;***********************************************************************
;
;***********************************************************************
FatalDetect = +
Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error: cannot get an error string."
GoTo ShellCodeError
EndIf
Set Error = $($R0)
GoTo FatalError
;***********************************************************************
;
;***********************************************************************
FatalError = +
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)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
GoTo ShellCodeError
EndIf
GoTo SetFailed
;***********************************************************************
;
;***********************************************************************
ShellCodeError = +
Set DlgType = "MessageBox"
Set STF_MB_TITLE = $(ShellCodeErrorTitle)
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
GoTo Abandon
EndIf
GoTo end
;***********************************************************************
;
;***********************************************************************
end = +
Set !DebugOutputControl = $(OldDebugControl)
Return $(CommonStatus)
;***********************************************************************
;
;***********************************************************************
[OemCreateRegKey]
Debug-Output $(InfName)": Entering [OemCreateRegKey]"
Set ECR_Result = NO_ERROR
Set ECR_BaseKeyHandle = $($0)
Set ECR_NewPath = $($1)
Set KeyNull = ""
Set MAXIMUM_ALLOWED = 33554432
Debug-Output $(InfName)": OemCreateRegKey - ECR_BaseKeyHandle = "$(ECR_BaseKeyHandle)
Debug-Output $(InfName)": ECR_NewPath = "$(ECR_NewPath)
Debug-Output $(InfName)": MAXIMUM_ALLOWED = "$(MAXIMUM_ALLOWED)
Debug-Output $(InfName)": KeyNull = "$(KeyNull)
OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_NewPath) $(MAXIMUM_ALLOWED) +
ECR_BaseKey
Debug-Output $(InfName)": ECR_BaseKey = "$(ECR_BaseKey)
Debug-Output $(InfName)": OpenRegKey returned "$($R0)
IfStr $(ECR_BaseKey) == $(KeyNull)
Debug-Output $(InfName)": ECR_BaseKey == KeyNull"
Else
Debug-Output $(InfName)": ECR_BaseKey != KeyNull"
Set ECR_KeyHandle = $(ECR_BaseKey)
GoTo ECR_Return
EndIf
Set ECR_TmpPath = ""
Split-String $(ECR_NewPath) "\" ECR_PList
Debug-Output $(InfName)": ECR_PList = "$(ECR_PList)
ForListDo $(ECR_PList)
IfStr(i) $($) != "\"
IfInt $(#) == 1
Set ECR_TmpPath = $($)
Else
Set ECR_TmpPath = $(ECR_TmpPath)"\"$($)
EndIf
Debug-Output $(InfName)": Determining if "$(ECR_TmpPath)" exists"
OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_TmpPath) $(MAXIMUM_ALLOWED) ECR_BaseKey
IfStr $(ECR_BaseKey) == $(KeyNull)
Debug-Output $(InfName)": Creating "$(ECR_TmpPath)
CreateRegKey $(ECR_BaseKeyHandle) {$(ECR_TmpPath),0,GenericClass} "" $(MAXIMUM_ALLOWED) "" ECR_KeyHandle
IfStr(i) $(ECR_KeyHandle) == $(KeyNull)
Set ECR_Result = $($R0)
GoTo ECR_Return
EndIf
EndIf
EndIf
EndForListDo
ECR_Return = +
Return $(ECR_Result) $(ECR_KeyHandle)
;***********************************************************************
;
;***********************************************************************
[DebugConfiguration]
Debug-Output $(!p:InfName)": **CONFIGURATION STATE: "$($0)
Debug-Output $(!p:InfName)": InterruptNumber is "$(!p:InterruptNumber)
Debug-Output $(!p:InfName)": IOBaseAddress is "$(!p:IOBaseAddress)
Return
;***********************************************************************
;
;***********************************************************************
[Install-Option]
Set STF_VITAL = ""
IfStr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-Oem $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-Oem1 $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Oem2 $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Oem3 $(SrcDir) $(!STF_WINDOWSSYSPATH)
;; AddSectionFilesToCopyList Files-Oem4 $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-Oem5 $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Oem6 $(SrcDir) $(!STF_WINDOWSSYSPATH)
EndIf
IfStr(i) $(DoCopy) == "YES"
Set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
EndIf
Exit
;***********************************************************************
;
;***********************************************************************
;;+ Add by Gary 1997,9,25
[Install-Dll]
set STF_VITAL = ""
AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
exit
;;-
;***********************************************************************
;
;***********************************************************************
[Install-Update]
Set STF_VITAL = ""
Set STF_OVERWRITE = "VERIFYSOURCEOLDER"
AddSectionFilesToCopyList Files-Oem $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-Oem1 $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Oem2 $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Oem3 $(SrcDir) $(!STF_WINDOWSSYSPATH)
;; AddSectionFilesToCopyList Files-Oem4 $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-Oem5 $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Oem6 $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
Set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
Exit
;***********************************************************************
;
;***********************************************************************
[ProductType]
STF_PRODUCT = Winnt
STF_PLATFORM = I386
;***********************************************************************
;
;***********************************************************************
[Files-Inf]
1, oemsetnt.inf, SIZE=1000, RENAME=$(!UG_Filename)
;***********************************************************************
;
;***********************************************************************
[LanguagesSupported]
ENG
;***********************************************************************
;
;***********************************************************************
[FileConstantsENG]
ProCaption = "Windows NT Setup"
ProCancel = "Cancel"
ProCancelMsg = "Windows NT Networking is not correctly installed. "+
"Are you sure you want to cancel copying files?"
ProCancelCap = "Network Setup Message"
ProText1 = "Copying:"
ProText2 = "To:"
FunctionTitle = $(Manufacturer)" "$(ProductHardwareName)" Setup"
ProductHardwareDescription = $(Manufacturer)" "$(ProductHardwareName)
ProductHardwareTitle = $(Manufacturer)" "$(ProductHardwareName)" Adapter"
ProductSoftwareDescription = $(Manufacturer)" "$(ProductSoftwareName)" Driver"
ProductSoftwareTitle = $(Manufacturer)" "$(ProductSoftwareName)" Driver"
ShellCodeErrorTitle = "Error: "$(FunctionTitle)))
ShellCodeErrorText = "Shell Code Error."
;;+ add by Gary 1997,9,25
DialogDllName = "im128nds.dll"
IRQList = ^(IRQChoices, 1)
IRQValues = ^(IRQChoices, 2)
IOBaseAddrList = ^(IOBaseAddrChoices, 1)
IOBaseAddrValues = ^(IOBaseAddrChoices, 2)
;; ModemIOBaseAddressList = ^(ModemIOBaseAddressChoices,1)
;; ModemIOBaseAddressValues = ^(ModemIOBaseAddressChoices,2)
SwitchTypeList = ^(SwitchTypeChoices, 1)
SwitchTypeValues = ^(SwitchTypeChoices, 2)
MemAddrList = ^(MemAddrChoices, 1)
MemAddrValues = ^(MemAddrChoices, 2)
PcmciaList = ^(PcmciaChoices, 1)
PcmciaValues = ^(PcmciaChoices, 2)
IOBaseAddr_1List = ^(IOBaseAddr_1Choices, 1)
IOBaseAddr_1Values = ^(IOBaseAddr_1Choices, 2)
ModemChoicesList = ^(ModemChoices,1)
ModemChoicesValues = ^(ModemChoices,2)
U_A_LawChoicesList = ^(U_A_LawChoices,1)
U_A_LawChoicesValues = ^(U_A_LawChoices,2)
Capi_ModeChoicesList = ^(Capi_ModeChoices,1)
Capi_ModeChoicesValues = ^(Capi_ModeChoices,2)
Capi_PhoneChoicesList = ^(Capi_PhoneChoices,1)
Capi_PhoneChoicesValues = ^(Capi_PhoneChoices,2)
;; ComPortList = ^(ComPortChoices, 1)
;; ComPortValues = ^(ComPortChoices, 2)
;; ComIrqList = ^(ComIrqChoices, 1)
;; ComIrqValues = ^(ComIrqChoices, 2)
;;-
;***********************************************************************
;
;***********************************************************************
[DialogConstantsENG]
Help = "&Help"
Exit = "Cancel"
OK = "OK"
HelpContext = ""
Continue = "Continue"
Cancel = "Cancel"
;***********************************************************************
;
;***********************************************************************
[FileDependentDlgENG]
;;+ Add by Gary 1997,9,25
DlgText = "Please select values for the follwing fields:"
DlgType = "RadioCombination"
DlgTemplate = "Kenny"
Caption = $(FunctionTitle)
CBOptionsGreyed = {}
NotifyFields = {NO, NO}
Combo1Label = "I/O &Base:"
Combo2Label = "&Interrupt:"
Combo3Label = "&Mem:"
Combo4Label = "&Pcmcia:"
Combo5Label = "&Switch Type:"
Combo6Label = "&Modem I/O:"
Combo7Label = "&Modem choice:"
Combo8Label = "&Analog encoder:"
Edit1Label = "PHONE 0:"
Edit2Label = "PHONE 1:"
Edit3Label = "SPID 0:"
Edit4Label = "SPID 1:"
EditFocus = "ALL"
Combo1List = $(IOBaseAddrList)
Combo1Out = $(IOBaseAddrValue)
Combo2List = $(IRQList)
Combo2Out = $(IRQValue)
Combo3List = $(MemAddrList)
Combo3Out = $(MemAddrValue)
Combo4List = $(PcmciaList)
Combo4Out = $(PcmciaValue)
Combo5List = $(SwitchTypeList)
Combo5Out = $(SwitchTypeValue)
Combo6List = $(IOBaseAddr_1List)
Combo6Out = $(IOBaseAddr_1Value)
Combo7List = $(ModemChoicesList)
Combo7Out = $(ModemChoicesValue)
Combo8List = $(U_A_LawChoicesList)
Combo8Out = $(U_A_LawChoicesValue)
EditText1In = $(Line0Channel0Phone)
EditText2In = $(Line0Channel1Phone)
EditText3In = $(Line0Channel0Spid)
EditText4In = $(Line0Channel1Spid)
ComboListItemsIn = {Combo1List,Combo2List,Combo3List,Combo4List,Combo5List,Combo6List,Combo7List,Combo8List}
ComboListItemsOut = {Combo1Out,Combo2Out,Combo3Out,Combo4Out,Combo5Out,Combo6Out,Combo7Out,Combo8Out}
;;ComboListItemsIn = {Combo1List,Combo2List,Combo3List,Combo4List}
;;ComboListItemsOut = {Combo1Out,Combo2Out,Combo3Out,Combo4Out}
EditTextIn = { $(EditText1In), $(EditText2In), $(EditText3In), $(EditText4In)}
EditTextOut = { EditText1Out, EditText2Out, EditText3Out, EditText4Out }
EditTextLim = { 30, 30, 30, 30 }
;;EditTextIn = ""
;;EditTextLim = ""
;;-
;***********************************************************************
;
;***********************************************************************
[InvokeRasDlgENG]
InvokeRasSetupMsg = $(Manufacturer)" "$(ProductHardwareName)" setup is complete. "+
"Remote Access Services (RAS) must now be installed. "+
"Please configure the "$(ProductSoftwareName)" ports in RAS "+
"setup to enable you to use RAS over the "$(ProductHardwareName)"."
InvokeRasConfigMsg = $(Manufacturer)" "$(ProductHardwareName)" setup is complete. "+
"Remote Access Services (RAS) setup must now be invoked. "+
"Please configure the "$(ProductSoftwareName)" ports in RAS "+
"setup to enable you to use RAS over the "$(ProductHardwareName)"."
InvokeRasError = $(Manufacturer)" "$(ProductHardwareName)" setup encountered an error "+
"while invoking the RAS setup INF file (OEMNSVRA.INF). "+
"Please make sure that the file is present in the "+
"System32 directory and is the proper file."
;;+ Add by Gary 1997,9,25
[DialogConstantsENG]
Help = "&Help"
Exit = "Cancel"
OK = "OK"
HelpContext = ""
Continue = "Continue"
Cancel = "Cancel"
[CAPI_MODEChoices]
CAPI_MODE_0 = "0",0
CAPI_MODE_1 = "1",1
[CAPI_PHONEChoices]
CAPI_PHONE_0 = "0",0
CAPI_PHONE_1 = "1",1
[IRQChoices]
IRQ_1 = "3",3
IRQ_2 = "4",4
IRQ_3 = "5",5
IRQ_4 = "7",7
IRQ_5 = "9",9
IRQ_6 = "10",10
IRQ_7 = "11",11
IRQ_8 = "12",12
IRQ_9 = "15",15
[IOBaseAddrChoices]
IOBase_1 = "0x110",272
IOBase_2 = "0x120",288
IOBase_3 = "0x130",304
IOBase_4 = "0x140",320
[IOBaseAddr_1Choices]
MdmIOBase_1 = "0x3e8",1000
MdmIOBase_2 = "0x2e8",744
MdmIOBase_3 = "0x2f8",766
[ModemChoices]
MODEMCHOICE_1 = "Modem Over PSTN ",0
MODEMCHOICE_2 = "Modem Over B-Chan",1
MODEMCHOICE_3 = "ISDN Phone ",2
[U_A_LawChoices]
U_A_LAW_1 = "MU_LAW",0
U_A_LAW_2 = "A_LAW",1
[ModemIOBaseAddressChoices]
MdmIOBase_1 = "1",1016
MdmIOBase_2 = "2",760
MdmIOBase_3 = "3",1000
MdmIOBase_4 = "4",744
[SwitchTypeChoices]
SWITCHTYPE_1 = "AT&T 5ESS ",0
SWITCHTYPE_2 = "NORTHERN TELECOM",1
SWITCHTYPE_3 = "DSS1(ETSI) ",2
SWITCHTYPE_4 = "INS-64 ",4
SWITCHTYPE_5 = "US NI-1 ",5
[PcmciaChoices]
PCMCIA_1 = "CARDBUS ",0
PCMCIA_2 = "365 COMP ",1
[MemAddrChoices]
Memory_1 = "0xD0000",851968
Memory_2 = "0xD4000",868352
Memory_3 = "0xD8000",884736
Memory_4 = "0xDC000",901120
;old [SlotChoices]
;old Slot_1 = "0",0
;old Slot_2 = "1",1
;old Slot_3 = "2",2
;old Slot_4 = "3",3
[ComPortChoices]
ComPort_1 = "2",2
ComPort_2 = "3",3
ComPort_3 = "4",4
[ComIrqChoices]
ComIrq_1 = "2",2
ComIrq_2 = "3",3
ComIrq_3 = "4",4
ComIrq_4 = "5",5
ComIrq_5 = "6",6
ComIrq_6 = "7",7
ComIrq_7 = "8",8
ComIrq_8 = "9",9
ComIrq_9 = "10",10
ComIrq_10= "11",11
ComIrq_11= "12",12
ComIrq_12= "13",13
ComIrq_13= "14",14
ComIrq_14= "15",15
Download Driver Pack
After your driver has been downloaded, follow these simple steps to install it.
Expand the archive file (if the download file is in zip or rar format).
If the expanded file has an .exe extension, double click it and follow the installation instructions.
Otherwise, open Device Manager by right-clicking the Start menu and selecting Device Manager.
Find the device and model you want to update in the device list.
Double-click on it to open the Properties dialog box.
From the Properties dialog box, select the Driver tab.
Click the Update Driver button, then follow the instructions.
Very important: You must reboot your system to ensure that any driver updates have taken effect.
For more help, visit our Driver Support section for step-by-step videos on how to install drivers for every file type.