;------------------------------------------------------------ ; ; Copyright (C) 1994 ; Interphase Corporation, Dallas, TX 75234 ; All Rights Reserved ; ; Author: ; Sameer Nanda (06/11/97) ; ;------------------------------------------------------------ ;------------------------------------------------------------ ; ; OEMSETUP.INF file for the Interphase ATM PCI driver. ; ;------------------------------------------------------------ [Identification] OptionType = NetAdapter AsigOptionType = NetTransport [PlatformsSupported] PCI [Options] IP5515 ;************************************************************ ; CONSTANTS FOR USING DIALOGS ;************************************************************ [FileConstants] ; ; File names, etc. ; UtilityInf = "UTILITY.INF" ParamInf = "NCPARAM.INF" subroutineinf = "SUBROUTN.INF" SoftwareType = "driver" Exit_Code = 0 ; ; EventLog Message File ; ;NetEventDLL = "%SystemRoot%\System32\netevent.dll" NetEventDLL = "%SystemRoot%\System32\netevent.dll;%SystemRoot%\System32\drivers\ip5515si.sys;%SystemRoot%\System32\drivers\asig.sys" IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll" ; Product Info ; Manufacturer = "Microsoft" ProductMajorVersion = "0" ProductMinorVersion = "1" ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion) ; ; Software ; ProductSoftwareName = "Ip5515si" ProductSoftwareImagePath = "\SystemRoot\System32\drivers\ip5515si.sys" NetRuleSoftwareType = "ip5515siSys ndisDriver ip5515siDriver" NetRuleSoftwareUse = $(SoftwareType) NetRuleSoftwareBindForm = """Ip5515siSys"" yes no container" NetRuleSoftwareClass = {"ip5515siDriver basic"} NetRuleSoftwareBindable = {"ip5515siDriver ip5515siAdapter non exclusive 100"} ; ; Hardware ; ProductHardwareName = "Ip5515si" NetRuleHardwareType = "ip5515si ip5515siAdapter" NetRuleHardwareBindForm = " yes yes container" NetRuleHardwareClass = {"ip5515siAdapter basic"} ; ; Registry Key ; ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion" ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters" ElanName = "" AtmAddr = "4700790000000000000000000000A03E00000100" ; 1577 Stuff ArpIPAddress = "127.0.0.1" ArpIPMask = "255.255.255.0" ; Asig values AsigSoftwareType = "transport" AsigProductSoftwareName = "Asig" AsigProductSoftwareImagePath = "\SystemRoot\System32\drivers\asig.sys" AsigSoftwareType = "transport" AsigNetRuleSoftwareType = "asig netBiosTransport" AsigNetRuleSoftwareClass = {"netBiosTransport"} AsigNetRuleSoftwareUse = $(AsigSoftwareType)" yes yes" AsigNetRuleSoftwareBindForm = """Asig"" yes yes simple" AsigProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(AsigProductSoftwareName)"\CurrentVersion" AsigParamKeyName = $(!NTN_ServiceBase)"\"$(AsigProductSoftwareName)"\Parameters" AsigOption = "ASIG" [GeneralConstants] ; Set this value to enable debug messages. ;!DebugOutputControl = 1 ; ; Program flow control variables. ; from = "" to = "" ; ; Return codes; Exit_Code is set to one of these ; ExitCodeOk = 0 ExitCodeCancel = 1 ExitCodeFatal = 2 KeyNull = "" MAXIMUM_ALLOWED = 33554432 RegistryErrorIndex = NO_ERROR KeyProduct = "" KeyParameters = "" TRUE = 1 FALSE = 0 NoTitle = 0 ; Number of Client = 4 ; Added one more client for 1577 (from 3 to 4) ;ClientMaxUnit = 4 ClientMaxUnit = 16 ;ClientMaxUnit = 3 ; Number of Client = 8 MaxLesNumber = 7 Slash = "\" ExitState = "Active" OldVersionExisted = $(FALSE) AsigOldVersionExisted = $(FALSE) DriverPath = $(!STF_NTPATH)\drivers IPAddress01 = {""} IPAddress11 = {"10.1.1.2"} IPAddress21 = {"10.1.1.3"} IPAddress31 = {"10.1.1.4"} IPAddress41 = {"10.1.1.5"} IPAddress51 = {"10.1.1.6"} IPAddress61 = {"10.1.1.7"} IPAddress71 = {"10.1.1.8"} IPAddress81 = {"10.1.1.9"} IPAddress91 = {"10.1.1.10"} IPAddress101 = {"10.1.1.11"} IPAddress111 = {"10.1.1.12"} IPAddress121 = {"10.1.1.13"} IPAddress131 = {"10.1.1.14"} IPAddress141 = {"10.1.1.15"} IPAddress151 = {"10.1.1.16"} IPAddress161 = {"10.1.1.17"} IPAddress02 = {""} IPAddress12 = {"10.1.2.2"} IPAddress22 = {"10.1.2.3"} IPAddress32 = {"10.1.2.4"} IPAddress42 = {"10.1.2.5"} IPAddress52 = {"10.1.2.6"} IPAddress62 = {"10.1.2.7"} IPAddress72 = {"10.1.2.8"} IPAddress82 = {"10.1.2.9"} IPAddress92 = {"10.1.2.10"} IPAddress102 = {"10.1.2.11"} IPAddress112 = {"10.1.2.12"} IPAddress122 = {"10.1.2.13"} IPAddress132 = {"10.1.2.14"} IPAddress142 = {"10.1.2.15"} IPAddress152 = {"10.1.2.16"} IPAddress162 = {"10.1.2.17"} IPAddress03 = {""} IPAddress13 = {"10.1.3.2"} IPAddress23 = {"10.1.3.3"} IPAddress33 = {"10.1.3.4"} IPAddress43 = {"10.1.3.5"} IPAddress53 = {"10.1.3.6"} IPAddress63 = {"10.1.3.7"} IPAddress73 = {"10.1.3.8"} IPAddress83 = {"10.1.3.9"} IPAddress93 = {"10.1.3.10"} IPAddress103 = {"10.1.3.11"} IPAddress113 = {"10.1.3.12"} IPAddress123 = {"10.1.3.13"} IPAddress133 = {"10.1.3.14"} IPAddress143 = {"10.1.3.15"} IPAddress153 = {"10.1.3.16"} IPAddress163 = {"10.1.3.17"} IPAddress04 = {""} IPAddress14 = {"10.1.4.2"} IPAddress24 = {"10.1.4.3"} IPAddress34 = {"10.1.4.4"} IPAddress44 = {"10.1.4.5"} IPAddress54 = {"10.1.4.6"} IPAddress64 = {"10.1.4.7"} IPAddress74 = {"10.1.4.8"} IPAddress84 = {"10.1.4.9"} IPAddress94 = {"10.1.4.10"} IPAddress104 = {"10.1.4.11"} IPAddress114 = {"10.1.4.12"} IPAddress124 = {"10.1.4.13"} IPAddress134 = {"10.1.4.14"} IPAddress144 = {"10.1.4.15"} IPAddress154 = {"10.1.4.16"} IPAddress164 = {"10.1.4.17"} IPAddress05 = {""} IPAddress15 = {"10.1.5.2"} IPAddress25 = {"10.1.5.3"} IPAddress35 = {"10.1.5.4"} IPAddress45 = {"10.1.5.5"} IPAddress55 = {"10.1.5.6"} IPAddress65 = {"10.1.5.7"} IPAddress75 = {"10.1.5.8"} IPAddress85 = {"10.1.5.9"} IPAddress95 = {"10.1.5.10"} IPAddress105 = {"10.1.5.11"} IPAddress115 = {"10.1.5.12"} IPAddress125 = {"10.1.5.13"} IPAddress135 = {"10.1.5.14"} IPAddress145 = {"10.1.5.15"} IPAddress155 = {"10.1.5.16"} IPAddress165 = {"10.1.5.17"} IPAddress06 = {""} IPAddress16 = {"10.1.6.2"} IPAddress26 = {"10.1.6.3"} IPAddress36 = {"10.1.6.4"} IPAddress46 = {"10.1.6.5"} IPAddress56 = {"10.1.6.6"} IPAddress66 = {"10.1.6.7"} IPAddress76 = {"10.1.6.8"} IPAddress86 = {"10.1.6.9"} IPAddress96 = {"10.1.6.10"} IPAddress106 = {"10.1.6.11"} IPAddress116 = {"10.1.6.12"} IPAddress126 = {"10.1.6.13"} IPAddress136 = {"10.1.6.14"} IPAddress146 = {"10.1.6.15"} IPAddress156 = {"10.1.6.16"} IPAddress166 = {"10.1.6.17"} IPAddress07 = {""} IPAddress17 = {"10.1.7.2"} IPAddress27 = {"10.1.7.3"} IPAddress37 = {"10.1.7.4"} IPAddress47 = {"10.1.7.5"} IPAddress57 = {"10.1.7.6"} IPAddress67 = {"10.1.7.7"} IPAddress77 = {"10.1.7.8"} IPAddress87 = {"10.1.7.9"} IPAddress97 = {"10.1.7.10"} IPAddress107 = {"10.1.7.11"} IPAddress117 = {"10.1.7.12"} IPAddress127 = {"10.1.7.13"} IPAddress137 = {"10.1.7.14"} IPAddress147 = {"10.1.7.15"} IPAddress157 = {"10.1.7.16"} IPAddress167 = {"10.1.7.17"} IPAddress08 = {""} IPAddress18 = {"10.1.8.2"} IPAddress28 = {"10.1.8.3"} IPAddress38 = {"10.1.8.4"} IPAddress48 = {"10.1.8.5"} IPAddress58 = {"10.1.8.6"} IPAddress68 = {"10.1.8.7"} IPAddress78 = {"10.1.8.8"} IPAddress88 = {"10.1.8.9"} IPAddress98 = {"10.1.8.10"} IPAddress108 = {"10.1.8.11"} IPAddress118 = {"10.1.8.12"} IPAddress128 = {"10.1.8.13"} IPAddress138 = {"10.1.8.14"} IPAddress148 = {"10.1.8.15"} IPAddress158 = {"10.1.8.16"} IPAddress168 = {"10.1.8.17"} IPMask = {"255.255.255.0"} IPAddressString = "IPAddress" IPString = "" [date] ; Now is a list which contains { Sec from 1-1-1970, Year, Month, Day, Hour, ; Minute, Second } Now = {} ? $(!LIBHANDLE) GetSystemDate [Identify] read-syms Identification set Status = STATUS_SUCCESSFUL set Identifier = $(OptionType) set Media = #("Source Media Descriptions", 1, 1) Return $(Status) $(Identifier) $(Media) ;------------------------------------------------------------ ; 2. ReturnOptions: ; ; 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 = {} ; ; Check if the language requested is supported ; set LanguageList = ^(LanguagesSupported, 1) Ifcontains(i) $($0) in $(LanguageList) ; ; Check if the platforms requested is supported ; ifstr(i) $($1) == "" goto returnoptions endif set PlatformList = ^(PlatformsSupported, 1) Ifcontains(i) $($1) in $(PlatformList) goto returnoptions else Debug-Output "IP5515: Platform (Bus) NOT Supported!" set Status = STATUS_NOTSUPPORTED goto finish_ReturnOptions endif else Debug-Output "IP5515: Language NOT Supported!" set Status = STATUS_NOLANGUAGE goto finish_ReturnOptions endif ; ; form a list of all the options and another of the text representing ; returnoptions = + set OptionList = ^(Options, 1) set OptionTextList = ^(OptionsText$($0), 1) set Status = STATUS_SUCCESSFUL finish_ReturnOptions = + 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 AddCopy = $($3) set DoCopy = $($4) set DoConfig = $($5) set LanguageList = ^(LanguagesSupported, 1) Ifcontains(i) $($0) NOT-IN $(LanguageList) Return STATUS_NOLANGUAGE endif set-subst LF = "\n" read-syms GeneralConstants read-syms FileConstants read-syms DialogConstants$(!STF_LANGUAGE) ifstr(i) $(!NTN_Origination) == "NCPA" set Continue = $(OK) else Debug-Output "IP5515: ERROR: NOT NCPA!"$(!NTN_Origination) endif read-syms FileConstants$(!STF_LANGUAGE) detect date set-title $(FunctionTitle) set to = Begin set from = Begin ; ; Assume all is well. ; set CommonStatus = STATUS_SUCCESSFUL EndWait ; ; Set up the operation-mode-based variables and gaily welcome ; the user. If the "install mode" variable is improperly set, ; assume this is a new installation. ; Begin = + Ifstr(i) $(!NTN_InstallMode) == deinstall Ifstr(i) $(AsigProductKeyName) == $(!NTN_RegBase) Debug-Output "ASIG: Cannot remove asig driver by itself." Shell $(UtilityInf),RegistryErrorString,REF_COUNT_NOT_ZERO ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ASIG: ShellCode error: cannot get an error string." goto ShellCodeError endif set Error = $($R0) set from = end set to = end goto nonfatalinfo endif set StartLabel = removeadapter else-Ifstr(i) $(!NTN_InstallMode) == Update set StartLabel = UpgradeSoftware Ifstr(i) $(AsigProductKeyName) == $(!NTN_RegBase) set StartLabel = asigUpgradeSoftware endif else-Ifstr(i) $(!NTN_InstallMode) == bind set StartLabel = bindingadapter else-Ifstr(i) $(!NTN_InstallMode) == configure set CommonStatus = STATUS_REBOOT set StartLabel = configureadapter ; ; Cannot configure the software component. Ifstr(i) $(AsigProductKeyName) == $(!NTN_RegBase) set StartLabel = asigconfigureadapter endif ; Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase) Debug-Output "IP5515: Cannot configure the Ip5515 ATM SVC driver software." Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "IP5515: 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 OEM_ABANDON_OPTIONS = {} set OEM_ABANDON_SOFTWARE = FALSE set OEM_ABANDON_ON = TRUE set CLUnitNumber = 0 set LesNumber = 0 set CLEnabled = 1 endif ; Setup the default values. ; set MTUValue = *($(MTUList), 1) set INTERRUPTValue = *($(INTERRUPTList), 1) ; set BUSValue = *($(BUSList), 5) Debug-Output "------------------------------------------" Debug-Output "IP5515: MTUValue (default): "$(MTUValue) Debug-Output "IP5515: INTERRUPTValue (default): "$(INTERRUPTValue) ; Debug-Output "IP5515: BUSValue (default): "$(BUSValue) Debug-Output "IP5515: StartLabel: "$(StartLabel) ; ; asig default value ; set RadioDefault = 2 set RadioIn = {$(RadioDefault)} set useILMI = 1 set uniRunMode = 1 set debugUME = 0 set debugQ93B = 0 set from = $(fatal) set to = $(fatal) ; ; Setup the default values. ; set APIValue = *($(APIList), 1) Debug-Output "------------------------------------------" Debug-Output "ASIG: APIValue (default): "$(APIValue) Debug-Output "ASIG: StartLabel: "$(StartLabel) Goto $(StartLabel) ;----------------------------------------------- ; Installation Section ;----------------------------------------------- installadapter = + ; ; First, check whether the same version of the software exists ; OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct Ifstr $(KeyProduct) != $(KeyNull) ; ; Same version already existed in the local machine ; Popup the dialog and ask the user whether he wants to continue ; CloseRegKey $(KeyProduct) ifstr(i) !(NTN_RegBase) == $(ProductKeyName) ; ; Cannot Install the same software again ; Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+ $(ProductVersion) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "IP5515: ShellCode error: cannot get an error string." goto ShellCodeError endif goto end else Debug-Output "IP5515: Add adapter CLUnitNumber: "$(CLUnitNumber) ifint $(CLUnitNumber) == 0 ; ; Add a new adapter card? ; Shell $(UtilityInf), CardExistedDlg ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "IP5515: ShellCode error: cannot get an error string." goto ShellCodeError endif ifstr(i) $($R1) != "OK" set CommonStatus = STATUS_USERCANCEL goto end endif endif set OldVersionExisted = $(TRUE) endif endif goto adaptersetup ; ; install Asig ; asiginstalladapter = + ifint $(AsigOldVersionExisted) == $(TRUE) ifstr(i) $(!NTN_InstallMode) == configure goto asiginstallproduct endif endif OpenRegKey $(!REG_H_LOCAL) "" $(AsigProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct Ifstr $(KeyProduct) != $(KeyNull) CloseRegKey $(KeyProduct) ; Shell $(UtilityInf), VerExistedDlg, $(AsigProductSoftwareTitle),+ ; $(ProductVersion) ; ifint $($ShellCode) != $(!SHELL_CODE_OK) ; Debug-Output "ShellCode error: cannot get an error string." ; goto ShellCodeError ; endif goto end endif CloseRegKey $(KeyProduct) goto asiginstallproduct asigconfigureadapter = + Ifstr $(KeyProduct) == $(KeyNull) OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct Ifstr $(KeyProduct) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "ASIG: Configuration cannot find component product key" goto fatalregistry Endif Endif ; ; Get the other parameters; they're attached to the service parameters key ; Debug-Output "ASIG INF: Shelling to FindService" Shell $(UtilityInf) FindService, $(KeyProduct) Ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ASIG INF: FindService shell failure" Goto ShellCodeError Endif Ifstr(i) $($R0) != NO_ERROR Debug-Output "ASIG INF: FindService Shell error: "$($R0) Goto fatalregistry endif Set KeyParameters = $($R2) ; ; We don't need the services key, so close it. ; CloseRegKey $($R1) Ifstr $(KeyParameters) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "Cannot find component service" goto fatalregistry endif set AsigOldVersionExisted = $(TRUE) set ValueName = "" set ValueData = "" set ValueStr = "" set ValueList = {} ; ; Get the old values ; EnumRegValue $(KeyParameters) ValueList ForListDo $(ValueList) set ValueItem = $($) set ValueName = *($(ValueItem),1) set ValueData = *($(ValueItem),4) Ifstr(i) $(ValueName) == "debugAPI" set APIValueIndex = $(ValueData) endif EndForListDo Debug-Output "ASIG: APIValueIndex (from reg): "$(APIValueIndex) set APIValue = *($(APIList), ~($(APIValues),$(APIValueIndex))) ifstr(i) $(APIValue) == "" set APIValue = *($(APIList), 1) endif Debug-Output "ASIG: APIValue (from reg): "$(APIValue) asiginstallproduct = + ; read-syms AsigFileDependentDlg$(!STF_LANGUAGE) ; ; ui start "InputDlg" ; ; ifstr(i) $(DLGEVENT) == "CONTINUE" ; set APIValueIndex = $(C1Out) ; ; Debug-Output "ASIG: (after cont) APIValueIndex: "$(APIValueIndex) ; ui pop 1 ; ; else-ifstr(i) $(DLGEVENT) == "BACK" ; set CommonStatus = STATUS_USERCANCEL ; Debug-Output "Action: exit. Bye." ; ui pop 1 ; goto end ; ; else ; Debug-Output "Action: unknown. Bye." ; ui pop 1 ; goto end ; ; endif StartWait ifint $(AsigOldVersionExisted) == $(FALSE) 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 fatal Else-Ifstr(i) $($R0) == STATUS_USERCANCEL Goto successful Endif Set SrcDir = $($R1) Endif install "Install-OptionAsig" 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 fatal endif set OEM_ABANDON_ON = TRUE Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), + $(AsigProductSoftwareName), + $(AsigProductSoftwareName), + $(AsigProductSoftwareDisplayName), $(STF_CONTEXTINFNAME), + $(AsigProductSoftwareImagePath), "kernel", "TDI", {}, "",+ $(NetEventDLL) set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR EndWait CloseRegKey $($R1) CloseRegKey $($R2) CloseRegKey $($R3) CloseRegKey $($R4) CloseRegKey $($R5) goto fatalRegistry endif Set SoftProductKey = $($R1) Set SoftNetRuleKey = $($R2) Set SoftServiceKey = $($R3) set KeyParameters = $($R4) Set SoftLinkageKey = $($R5) set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(AsigSoftwareType)},+ {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+ {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+ {Title,$(NoTitle),$(!REG_VT_SZ),$(AsigProductSoftwareTitle)},+ {Description,$(NoTitle),$(!REG_VT_SZ),$(AsigProductSoftwareDescription)},+ {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(AsigProductSoftwareName)},+ {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}} Shell $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList) set RegistryErrorIndex = $($R0) Ifstr $(RegistryErrorIndex) != NO_ERROR CloseRegKey $(SoftProductKey) CloseRegKey $(SoftNetRuleKey) CloseRegKey $(SoftServiceKey) CloseRegKey $(SoftLinkageKey) CloseRegKey $(KeyParameters) goto fatalRegistry endif set NewValueList = {{type ,$(NoTitle),$(!REG_VT_SZ),$(AsigNetRuleSoftwareType)}, + {use ,$(NoTitle),$(!REG_VT_SZ),$(AsigNetRuleSoftwareUse)}, + {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(AsigNetRuleSoftwareClass)}, + {bindform,$(NoTitle),$(!REG_VT_SZ),$(AsigNetRuleSoftwareBindForm)}, + {InfOption,$(NoTitle),$(!REG_VT_SZ),$(AsigOption)}} Shell $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList) set RegistryErrorIndex = $($R0) Ifstr $(RegistryErrorIndex) != NO_ERROR CloseRegKey $(SoftProductKey) CloseRegKey $(SoftNetRuleKey) CloseRegKey $(SoftServiceKey) CloseRegKey $(SoftLinkageKey) CloseRegKey $(KeyParameters) goto fatalRegistry endif Set NewValueList = {{NbProvider,$(NoTitle),$(!REG_VT_SZ),"_nb"}} Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList) Ifstr $(RegistryErrorIndex) != NO_ERROR CloseRegKey $(SoftProductKey) CloseRegKey $(SoftNetRuleKey) CloseRegKey $(SoftServiceKey) CloseRegKey $(SoftLinkageKey) goto fatalRegistry endif set APIValue = *($(APIValues), ~($(APIList),$(APIValueIndex))) Debug-Output "ASIG: APIValue (final): "$(APIValue) Set NewValueList = {{debugAPI,$(NoTitle),$(!REG_VT_DWORD),$(APIValue)}} Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList) Ifstr $(RegistryErrorIndex) != NO_ERROR CloseRegKey $(SoftProductKey) CloseRegKey $(SoftNetRuleKey) CloseRegKey $(SoftServiceKey) CloseRegKey $(SoftLinkageKey) goto fatalRegistry endif Set NewValueList = {{useILMI,$(NoTitle),$(!REG_VT_DWORD),$(useILMI)}} Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList) Ifstr $(RegistryErrorIndex) != NO_ERROR CloseRegKey $(SoftProductKey) CloseRegKey $(SoftNetRuleKey) CloseRegKey $(SoftServiceKey) CloseRegKey $(SoftLinkageKey) goto fatalRegistry endif Set NewValueList = {{uniRunMode,$(NoTitle),$(!REG_VT_DWORD),$(uniRunMode)}} Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList) Ifstr $(RegistryErrorIndex) != NO_ERROR CloseRegKey $(SoftProductKey) CloseRegKey $(SoftNetRuleKey) CloseRegKey $(SoftServiceKey) CloseRegKey $(SoftLinkageKey) goto fatalRegistry endif Set NewValueList = {{debugUME,$(NoTitle),$(!REG_VT_DWORD),$(debugUME)}} Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList) Ifstr $(RegistryErrorIndex) != NO_ERROR CloseRegKey $(SoftProductKey) CloseRegKey $(SoftNetRuleKey) CloseRegKey $(SoftServiceKey) CloseRegKey $(SoftLinkageKey) goto fatalRegistry endif Set NewValueList = {{debugQ93B,$(NoTitle),$(!REG_VT_DWORD),$(debugQ93B)}} Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList) Ifstr $(RegistryErrorIndex) != NO_ERROR CloseRegKey $(SoftProductKey) CloseRegKey $(SoftNetRuleKey) CloseRegKey $(SoftServiceKey) CloseRegKey $(SoftLinkageKey) goto fatalRegistry endif CreateRegKey $(SoftServiceKey) {"Performance",$(NoTitle),GenericClass} "" + $(MAXIMUM_ALLOWED) "" KeyPerformance set NewValueList = {{Library,$(NoTitle),$(!REG_VT_SZ),"Perfctrs.dll"},+ {Open,$(NoTitle),$(!REG_VT_SZ),"OpenNbfPerformanceData"},+ {Collect,$(NoTitle),$(!REG_VT_SZ),"CollectNbfPerformanceData"},+ {Close,$(NoTitle),$(!REG_VT_SZ),"CloseNbfPerformanceData"}} Shell $(UtilityInf), AddValueList, $(KeyPerformance), $(NewValueList) set RegistryErrorIndex = $($R0) Ifstr $(RegistryErrorIndex) != NO_ERROR CloseRegKey $(SoftProductKey) CloseRegKey $(SoftNetRuleKey) CloseRegKey $(SoftServiceKey) CloseRegKey $(SoftLinkageKey) CloseRegKey $(KeyParameters) goto fatalRegistry endif CloseRegKey $(KeyPerformance) CloseRegKey $(SoftProductKey) CloseRegKey $(SoftNetRuleKey) CloseRegKey $(SoftServiceKey) CloseRegKey $(SoftLinkageKey) endif goto asigwriteparameters ;----------------------------------------------- ; Configuration Section ;----------------------------------------------- ; ; Get the current values of all the parameters ; configureadapter = + Debug-Output "IP5515: Cannot configure the Ip5515 ATM SVC driver software." Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "IP5515: CONFIG: ShellCode error: cannot get an error string." goto ShellCodeError endif set Error = $($R0) set from = end set to = end goto nonfatalinfo ; configure code below never get use Ifstr $(KeyProduct) == $(KeyNull) OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct Ifstr $(KeyProduct) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "IP5515: Configuration cannot find component product key" goto fatalregistry Endif Endif ; ; Get the other parameters; they're attached to the service parameters key ; Debug-Output "IP5515 INF: Shelling to FindService" Shell $(UtilityInf) FindService, $(KeyProduct) Ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "INF: FindService shell failure" Goto ShellCodeError Endif Ifstr(i) $($R0) != NO_ERROR Debug-Output "IP5515 INF: FindService Shell error: "$($R0) Goto fatalregistry endif Set KeyParameters = $($R2) ; ; We don't need the services key, so close it. ; CloseRegKey $($R1) Ifstr $(KeyParameters) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "Cannot find component service" goto fatalregistry endif set OldVersionExisted = $(TRUE) set AsigOldVersionExisted = $(TRUE) set ValueName = "" set ValueData = "" set ValueStr = "" set ValueList = {} ; ; Get the old values ; EnumRegValue $(KeyParameters) ValueList ForListDo $(ValueList) set ValueItem = $($) set ValueName = *($(ValueItem),1) set ValueData = *($(ValueItem),4) Ifstr(i) $(ValueName) == "ClientMfs" set MTUValueIndex = $(ValueData) else-ifstr(i) $(ValueName) == "InterruptNumber" set INTERRUPTValueIndex = $(ValueData) ; else-ifstr(i) $(ValueName) == "BusType" ; set BUSValueIndex = $(ValueData) else-ifstr(i) $(ValueName) == "ClientNumber" set CLUnitNumber = $(ValueData) else-ifstr(i) $(ValueName) == "MaxMTU" set MaxMTU = $(ValueData) endif EndForListDo Debug-Output "IP5515: MTUValueIndex (from reg): "$(MTUValueIndex) Debug-Output "IP5515: INTERRUPTValueIndex (from reg): "$(INTERRUPTValueIndex) ; Debug-Output "IP5515: BUSValueIndex (from reg): "$(BUSValueIndex) Debug-Output "IP5515: CLUnitNumber (from reg): "$(CLUnitNumber) set MTUValue = *($(MTUList), ~($(MTUValues),$(MTUValueIndex))) ifstr(i) $(MTUValue) == "" set MTUValue = *($(MTUList), 1) endif Debug-Output "IP5515: MTUValue (from reg): "$(MTUValue) set INTERRUPTValue = *($(INTERRUPTList), ~($(INTERRUPTValues),$(INTERRUPTValueIndex))) ifstr(i) $(INTERRUPTValue) == "" set INTERRUPTValue = *($(INTERRUPTList), 1) endif Debug-Output "IP5515: INTERRUPTValue (from reg): "$(INTERRUPTValue) ; set BUSValue = *($(BUSList), ~($(BUSValues),$(BUSValueIndex))) ; ifstr(i) $(BUSValue) == "" ; set BUSValue = *($(BUSList), 1) ; endif ; ; Debug-Output "IP5515: BUSValue (from reg): "$(BUSValue) ; ; Put up the adapter configuration dialog. ; adaptersetup = + Set from = adapteroptions adapteroptions = + ifint $(CLUnitNumber) == 0 ; read-syms FileDependentDlg$(!STF_LANGUAGE) ; ; ui start "InputDlg" ; ; ifstr(i) $(DLGEVENT) == "CONTINUE" ; set MTUValueIndex = $(Combo1Out) ; Debug-Output "IP5515: (after cont) MTUValueIndex: "$(MTUValueIndex) ; set INTERRUPTValueIndex = $(Combo2Out) ; Debug-Output "IP5515: (after cont) INTERRUPTValueIndex: "$(INTERRUPTValueIndex) ; set BUSValueIndex = $(Combo3Out) ; Debug-Output "IP5515: (after cont) BUSValueIndex: "$(BUSValueIndex) ; ; ui pop 1 ; ; else-ifstr(i) $(DLGEVENT) == "BACK" ; set CommonStatus = STATUS_USERCANCEL ; Debug-Output "Action: exit. Bye." ; ui pop 1 ; goto end ; ; else ; Debug-Output "Action: unknown. Bye." ; ui pop 1 ; goto end ; ; endif else ifstr(i) $(!NTN_InstallMode) == configure Debug-Output "IP5515: Cannot configure Client: "$(CLUnitNumber) Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "IP5515: ShellCode error: cannot get an error string." goto ShellCodeError endif set Error = $($R0) set from = end set to = end goto nonfatalinfo endif endif ; ; If installing, go create the necessary keys; ; if configuring, they're already open. ; ifint $(OldVersionExisted) == $(TRUE) ifstr(i) $(!NTN_InstallMode) == configure goto writeparameters endif endif StartWait ; ; Add Software Component ; ifint $(OldVersionExisted) == $(FALSE) ifstr(i) $(!NTN_InstallMode) == "install" Ifstr(i) $(DoCopy) == "YES" Debug-Output "IP5515: DoCopy Yes" Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES Ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "IP5515: DoCopy shell error" Goto ShellCodeError Else-Ifstr(i) $($R0) == STATUS_FAILED Debug-Output "IP5515: DoCopy 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 Debug-Output "IP5515: DoCopy user cancel" Goto successful Endif Set SrcDir = $($R1) Endif install "Install-Option" ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE" Debug-Output "IP5515: DoCopy error cannot copy file" ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set Error = $($R0) goto fatal endif endif Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), + $(ProductSoftwareName), + $(ProductSoftwareName), + $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), + $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+ $(NetEventDLL) Set OEM_ABANDON_SOFTWARE = TRUE ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error" goto ShellCodeError endif ; ; At this point: ; $R1 contains the product version key handle; ; $R2 contains the NetRules subkey handle; ; $R3 contains the new Services key handle; and ; $R4 contains the Parameters key ; $R5 contains the Linkage Key ; set RegistryErrorIndex = $($R0) set KeyProduct = $($R1) Set SoftNetRulesKey = $($R2) CloseRegKey $($R3) CloseRegKey $($R4) CloseRegKey $($R5) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR EndWait Debug-Output "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 "ShellCode error." goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR EndWait Debug-Output "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 "ShellCode error." goto ShellCodeError endif set RegistryErrorIndex = $($R0) CloseRegKey $(KeyProduct) CloseRegKey $(SoftNetRulesKey) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR EndWait Debug-Output "Resgitry error: add value list." goto fatalregistry endif endif ; ; Create the HARDWARE\Netcard region and its corresponding service ; 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)) Debug-Output "IP5515: set OEM_ABANDON_OPTION=\Microsoft\Windows NT\curreentVersion\NetCards"$($R4) endif ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "Cannot add hardware component" goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR EndWait Debug-Output "Registry error: add hardware component" CloseRegKey $($R1) CloseRegKey $($R2) CloseRegKey $($R3) goto fatalregistry endif ; ; At this point: ; $R1 Registry key variable for HARDWARE\Netcard\(n) ; $R2 Registry key variable for HARDWARE\Netcard\(n)\\NetRules ; $R3 Registry key handle for <service>\Parameters key ; $R4 Adapter number assigned to adapter ; $R5 Service name generated by combining svc name with adapter number ; set KeyParameters = $($R3) set KeyAdapterRules = $($R2) set AdapterNumber = $($R4) ifint $(CLUnitNumber) == $(ClientMaxUnit) set DisplayTitleString = $(Client1577String) else set-add DisplayClientNumber = $(CLUnitNumber),1 set DisplayTitleString = $(LaneClientString)$(DisplayClientNumber) endif ; {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)$(CLUnitNumber)},+ set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+ {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(DisplayTitleString)},+ {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+ {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 "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 "ShellCode error." goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR EndWait Debug-Output "Resgitry error: add value list." CloseRegKey $(KeyParameters) CloseRegKey $(KeyAdapterRules) goto fatalregistry endif CloseRegKey $(KeyAdapterRules) goto writeparameters ; ; REQUIRED: $(KeyParameters) contains service Parameters key handle ; writeparameters = + ifstr(i) $(!NTN_InstallMode) == install OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase) $(!REG_KEY_CREATE_SUB_KEY) KeyProduct ifstr $(KeyProduct) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "Cannot find services under CurrentControlSet" goto fatalregistry endif OpenRegKey $(KeyProduct) "" $(ProductSoftwareName) $(!REG_KEY_SET_VALUE) IPHandle ifstr $(IPHandle) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "Cannot find driver entry under Services" goto fatalregistry endif OpenRegKey $(IPHandle) "" "Parameters" $(!REG_KEY_ALL_ACCESS) ParamHandle ifstr $(ParamHandle) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "Cannot find driver parameter entry under Services" goto fatalregistry endif ifint $(OldVersionExisted) == $(FALSE) set LinkNumber = 0 set NumberOfAdapter = 1 else ifint $(CLUnitNumber) == 0 GetRegValue $(ParamHandle),"NumberOfAdapter", NumberOfAdapterInfo set NumberOfAdapter = *($(NumberOfAdapterInfo), 4) Debug-Output "OLD NumberOfAdapter "$(NumberOfAdapter) set LinkNumber = $(NumberOfAdapter) set-add NumberOfAdapter = $(NumberOfAdapter),1 endif endif ifint $(CLUnitNumber) == 0 ifstr(i) $(!NTN_InstallMode) == install Set NewValueList = {{NumberOfAdapter,$(NoTitle),$(!REG_VT_DWORD),$(NumberOfAdapter)}} Shell $(UtilityInf), AddValueList, $(ParamHandle), $(NewValueList) endif CloseRegKey $(ParamHandle) CloseRegKey $(IPHandle) CloseRegKey $(KeyProduct) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "IP5515: ShellCode error add NumberOfAdapter entry." goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR Debug-Output "Registry error: Add value list" goto fatalregistry endif else CloseRegKey $(ParamHandle) CloseRegKey $(IPHandle) CloseRegKey $(KeyProduct) endif endif ; ; ControlSet/Services ; PCI Bus Type = 5 ; ifint $(CLUnitNumber) == 0 set MTUValue = *($(MTUValues), ~($(MTUList),$(MTUValueIndex))) set MaxMtu = $(MTUValue) Debug-Output "IP5515: MTUValue (final): "$(MTUValue) set INTERRUPTValue = *($(INTERRUPTValues), ~($(INTERRUPTList),$(INTERRUPTValueIndex))) Debug-Output "IP5515: INTERRUPTValue (final): "$(INTERRUPTValue) ; set BUSValue = *($(BUSValues), ~($(BUSList),$(BUSValueIndex))) ; Debug-Output "IP5515: BUSValue (final): "$(BUSValue) ; ;LeDebug = 127(0x7f) for all LANE debug ON ; = 123 (0x7b) for all LANE debug ON except LE_READY_DBG ; ifstr(i) $(!NTN_InstallMode) == install Set NewValueList = {{NetworkMedium,$(NoTitle),$(!REG_VT_DWORD),3)},+ {BusNumber,$(NoTitle),$(!REG_VT_DWORD),0},+ ; {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BUSValue)},+ {BusType,$(NoTitle),$(!REG_VT_DWORD),5},+ {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+ {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),255},+ ; {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(INTERRUPTValue)},+ {DriverState,$(NoTitle),$(!REG_VT_DWORD),0},+ {LinkNumber,$(NoTitle),$(!REG_VT_DWORD),$(LinkNumber)},+ {ClientNumber,$(NoTitle),$(!REG_VT_DWORD),$(CLUnitNumber)},+ {LeDebug,$(NoTitle),$(!REG_VT_DWORD),0},+ {PortChangeDetect,$(NoTitle),$(!REG_VT_DWORD),1},+ {AddressRegistration,$(NoTitle),$(!REG_VT_DWORD),1},+ {RegDiffNetPrefix,$(NoTitle),$(!REG_VT_DWORD),1},+ {SUNIMode,$(NoTitle),$(!REG_VT_DWORD),0},+ {UniRev,$(NoTitle),$(!REG_VT_DWORD),0},+ {FirstEnabledClient,$(NoTitle),$(!REG_VT_DWORD),0},+ {MaxMTU,$(NoTitle),$(!REG_VT_DWORD),1}} else ; configure Set NewValueList = {{InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(INTERRUPTValue)},+ {MaxMTU,$(NoTitle),$(!REG_VT_DWORD),$(MaxMTU)}} ; {MaxMTU,$(NoTitle),$(!REG_VT_DWORD),$(MaxMTU)},+ ; {ClientMfs,$(NoTitle),$(!REG_VT_DWORD),$(MTUValue)}} endif Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList) ; Client != 0 else Set NewValueList = {{NetworkMedium,$(NoTitle),$(!REG_VT_DWORD),3)},+ {BusNumber,$(NoTitle),$(!REG_VT_DWORD),0},+ ; {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BUSValue)},+ {BusType,$(NoTitle),$(!REG_VT_DWORD),5},+ {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+ {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),255},+ ; {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(INTERRUPTValue)},+ {DriverState,$(NoTitle),$(!REG_VT_DWORD),0},+ {LinkNumber,$(NoTitle),$(!REG_VT_DWORD),$(LinkNumber)},+ {ClientNumber,$(NoTitle),$(!REG_VT_DWORD),$(CLUnitNumber)},+ {LeDebug,$(NoTitle),$(!REG_VT_DWORD),0},+ {PortChangeDetect,$(NoTitle),$(!REG_VT_DWORD),1},+ {AddressRegistration,$(NoTitle),$(!REG_VT_DWORD),1},+ {RegDiffNetPrefix,$(NoTitle),$(!REG_VT_DWORD),1},+ {SUNIMode,$(NoTitle),$(!REG_VT_DWORD),0},+ {MaxMTU,$(NoTitle),$(!REG_VT_DWORD),1},+ {FirstEnabledClient,$(NoTitle),$(!REG_VT_DWORD),0},+ {UniRev,$(NoTitle),$(!REG_VT_DWORD),0}} Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList) endif ifstr(i) $(!NTN_InstallMode) == install CreateRegKey $(KeyParameters) {"Tcpip",$(NoTitle),GenericClass} "" + $(MAXIMUM_ALLOWED) "" KeyTcpip Set IPString = $(IPAddressString)$(CLUnitNumber)$(NumberOfAdapter) Debug-Output "SSSSSSSSSSSSSSSSSSSSSSSSSS" Debug-Output "IP5515: IPAddressString "$(IPString) Debug-Output "IP5515: IPAddressString "$($(IPString)) Debug-Output "SSSSSSSSSSSSSSSSSSSSSSSSSS" ; Set NewValueList = {{IPAddress,$(NoTitle),$(!REG_VT_MULTI_SZ),"$(IPAddressString)$(CLUnitNumber)},+ Set NewValueList = {{IPAddress,$(NoTitle),$(!REG_VT_MULTI_SZ),$($(IPString))},+ {DefaultGateway,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NoEntry)},+ {LLInterface,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NoEntry)},+ {EnableDHCP,$(NoTitle),$(!REG_VT_DWORD),0},+ {UseZeroBroadcast,$(NoTitle),$(!REG_VT_DWORD),0},+ {SubnetMask,$(NoTitle),$(!REG_VT_MULTI_SZ),$(IPMask)}} Shell $(UtilityInf), AddValueList, $(KeyTcpip), $(NewValueList) set RegistryErrorIndex = $($R0) Ifstr $(RegistryErrorIndex) != NO_ERROR CloseRegKey $(KeyTcpip) CloseRegKey $(KeyParameters) goto fatalRegistry endif CloseRegKey $(KeyTcpip) endif ; ifstr(i) $(!NTN_InstallMode) == install CloseRegKey $(KeyParameters) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "IP5515: ShellCode error add value list." goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR Debug-Output "Registry error: Add value list" goto fatalregistry endif EndWait ifstr(i) $(!NTN_InstallMode) == install set-add CLUnitNumber = $(CLUnitNumber),1 set CLEnabled = $(FALSE) ifint $(CLUnitNumber) <= $(ClientMaxUnit) Debug-Output "IP5515: CLUnitNumber: "$(CLUnitNumber) goto installadapter endif endif ifint $(AsigOldVersionExisted) == $(TRUE) ifstr(i) $(!NTN_InstallMode) == configure ; goto asigconfigureadapter goto successful else goto asiginstalladapter endif endif goto asiginstalladapter asigwriteparameters = + set APIValue = *($(APIValues), ~($(APIList),$(APIValueIndex))) Debug-Output "ASIG: APIValue (config final): "$(APIValue) ifint $(AsigOldVersionExisted) == $(TRUE) OpenRegKey $(!REG_H_LOCAL) "" $(AsigParamKeyName) $(MAXIMUM_ALLOWED) KeyParameters endif set NewValueList = {{debugAPI,$(NoTitle),$(!REG_VT_DWORD),$(APIValue)}} Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList) set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR CloseRegKey $(KeyParameters) goto fatalRegistry endif CloseRegKey $(KeyParameters) EndWait goto successful ;----------------------------------------------- ; Binding section ;----------------------------------------------- bindingadapter =+ set Error = "Binding: Sorry, not yet implemented." goto fatal ;----------------------------------------------- ; Removeadapter section ;----------------------------------------------- removeadapter = + Ifstr $(KeyProduct) == $(KeyNull) Debug-Output "REMOVE: NTN_RegBase: "$(!NTN_RegBase) OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct Ifstr $(KeyProduct) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "IP5515: REMOVE cannot find component product key" goto fatalregistry Endif Endif Debug-Output "IP5515 INF: Shelling to FindService" Shell $(UtilityInf) FindService, $(KeyProduct) Ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "INF: FindService shell failure" Goto ShellCodeError Endif Ifstr(i) $($R0) != NO_ERROR Debug-Output "IP5515 INF: FindService Shell error: "$($R0) Goto fatalregistry endif Set KeyParameters = $($R2) ; ; We don't need the services key, so close it. ; CloseRegKey $($R1) Ifstr $(KeyParameters) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "Cannot find component service" goto fatalregistry endif set ValueName = "" set ValueData = "" set ValueStr = "" set ValueList = {} ; ; Get the old values ; EnumRegValue $(KeyParameters) ValueList ForListDo $(ValueList) set ValueItem = $($) set ValueName = *($(ValueItem),1) set ValueData = *($(ValueItem),4) ifstr(i) $(ValueName) == "ClientNumber" set CLUNumber = $(ValueData) endif EndForListDo Debug-Output "IP5515: REMOVE: CLUNumber (from reg): "$(CLUNumber) ifint $(CLUNumber) == 0 OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase) $(!REG_KEY_CREATE_SUB_KEY) KeyProduct ifstr $(KeyProduct) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "REMOVE: Cannot find services under CurrentControlSet" goto fatalregistry endif OpenRegKey $(KeyProduct) "" $(ProductSoftwareName) $(!REG_KEY_SET_VALUE) IPHandle ifstr $(IPHandle) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "REMOVE: Cannot find driver entry under Services" goto fatalregistry endif OpenRegKey $(IPHandle) "" "Parameters" $(!REG_KEY_ALL_ACCESS) ParamHandle ifstr $(ParamHandle) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "REMOVE: Cannot find driver parameter entry under Services" goto fatalregistry endif GetRegValue $(ParamHandle),"NumberOfAdapter", NumberOfAdapterInfo set NumberOfAdapter = *($(NumberOfAdapterInfo), 4) Debug-Output "REMOVE: OLD NumberOfAdapter "$(NumberOfAdapter) set-sub NumberOfAdapter = $(NumberOfAdapter),1 Set NewValueList = {{NumberOfAdapter,$(NoTitle),$(!REG_VT_DWORD),$(NumberOfAdapter)}} Shell $(UtilityInf), AddValueList, $(ParamHandle), $(NewValueList) CloseRegKey $(ParamHandle) CloseRegKey $(IPHandle) CloseRegKey $(KeyProduct) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "IP5515: ShellCode error subtract NumberOfAdapter entry." goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR Debug-Output "Registry error: Remove value list" goto fatalregistry endif set RemoveCount = 0 Split-String $(!NTN_RegBase), "\", CardInfo set CL_NetCardNum = *($(CardInfo),11) set CL_RegBase = $(!NTN_RegBase) clientremove = + Debug-Output "REMOVE: CL_RegBase: "$(CL_RegBase) set MNetCard = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards" OpenRegKey $(!REG_H_LOCAL) "" $(MNetCard) $(MAXIMUM_ALLOWED) CardHandle ifstr $(CardHandle) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "REMOVE: Cannot find driver CardHandle entry under NetworkCards" goto fatalregistry endif OpenRegKey $(CardHandle) "" $(CL_NetCardNum) $(!REG_KEY_READ) NumHandle ifstr $(NumHandle) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "REMOVE: Cannot find driver CardNum entry under NetworkCards" goto fatalregistry endif GetRegValue $(NumHandle),"Description", CardDescInfo set CardDesc = *($(CardDescInfo),4) Debug-Output "REMOVE: CardDesc: "$(CardDesc) CloseRegKey $(NumHandle) CloseRegKey $(CardHandle) Ifstr(i) $(CardDesc) == $(ProductHardware$(Option)Description) Ifstr(i) $(ProductKeyName) == $(CL_RegBase) Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), + $(ProductSoftwareName) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error" goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR goto fatalregistry endif else Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), + $(ProductSoftwareName), $(CL_RegBase) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error" goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR goto fatalregistry endif endif ifint $(RemoveCount) < $(ClientMaxUnit) set-add RemoveCount = $(RemoveCount),1 set-add CL_NetCardNum = $(CL_NetCardNum),1 Debug-Output "REMOVE: CL_NetCardNum: "$(CL_NetCardNum) set CL_RegBase = *($(CardInfo),1)*($(CardInfo),2)*($(CardInfo),3)*($(CardInfo),4)*($(CardInfo),5)*($(CardInfo),6)*($(CardInfo),7)*($(CardInfo),8)*($(CardInfo),9)$(Slash)$(CL_NetCardNum) Debug-Output "REMOVE: SET CL_RegBase: "$(CL_RegBase) goto clientremove endif else Debug-Output "REMOVE: SKIP: cardnum: "$(CL_NetCardNum) set-add CL_NetCardNum = $(CL_NetCardNum),1 set CL_RegBase = *($(CardInfo),1)*($(CardInfo),2)*($(CardInfo),3)*($(CardInfo),4)*($(CardInfo),5)*($(CardInfo),6)*($(CardInfo),7)*($(CardInfo),8)*($(CardInfo),9)$(Slash)$(CL_NetCardNum) goto clientremove endif Debug-Output "REMOVE: Leccfg NumberOfAdapter: "$(NumberOfAdapter) ifint $(NumberOfAdapter) == 0 AddFileToDeleteList $(!STF_WINDOWSSYSPATH)"\cellview.cpl" endif goto asigremoveadapter else ; CLIENT != 0 Debug-Output "Unable to remove client "$(CLUNumber) Shell $(UtilityInf) RegistryErrorString "UNABLE_REMOVE_CONFIGURE_SERVICE" ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set Error = $($R0) set from = end set to = end goto nonfatalinfo endif ; ; remove Asig ; asigremoveadapter = + OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase) $(!REG_KEY_ALL_ACCESS) AsigKeyProduct ; OpenRegKey $(AsigKeyProduct) "" $(ProductHardwareName) $(!REG_KEY_ALL_ACCESS) ProductHandle OpenRegKey $(AsigKeyProduct) "" $(ProductHardwareName) $(MAXIMUM_ALLOWED) ProductHandle ifstr $(ProductHandle) == $(KeyNull) Debug-Output "NULL Ip5515 handle, remove Asig Handle" Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), + $(AsigProductSoftwareName) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error" goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR goto fatalregistry endif else Debug-Output "NOT NULL IP5515 handle " GetRegValue $(ProductHandle),"DeleteFlag", DeleteFlagInfo set DeleteFlag = *($(DeleteFlagInfo), 4) ifint $(DeleteFlag) == 1 Debug-Output "DeleteFlag == 1" Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), + $(AsigProductSoftwareName) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error" goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR goto fatalregistry endif else Debug-Output "DeleteFlag != 1" endif CloseRegKey $(ProductHandle) endif CloseRegKey $(AsigKeyProduct) goto end ;----------------------------------------------- ; Upgrade Software section ;----------------------------------------------- UpgradeSoftware = + ; ; First determine whether we want to do upgrade or update for software ; or hardware component. Then we will determine whether the Mode is ; update or upgrade. ; ; If the same version of the product existed in the registry, we do ; update. Otherwise, we will do a upgrade ; ifstr(i) $(ProductKeyName) == $(!NTN_RegBase) ; Upgrade software component ; ; see whether the same version exist or not ; OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct Ifstr $(KeyProduct) != $(KeyNull) GetRegValue $(KeyProduct),"MajorVersion", VersionInfo set Version = *($(VersionInfo), 4) Debug-Output "Upgrade: Version: "$(Version) ; ; Update the binaries ; Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error" goto ShellCodeError endif set !UG_Filename = $($R0) Debug-Output "Upgrade: Filename: "$(!UG_Filename) ifstr(i) $(!UG_Filename) != "" install "Install-Update" ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS goto fatal endif endif ; Upgrade the version number ; SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)} SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)} ; ; do nothing for update ; ifint $(Version) != $(ProductVersion) Debug-Output "Upgrade: Version: "$(Version) Debug-Output "Upgrade: ProductVersion: "$(ProductVersion) ; ; If the major version number is not the same, ; it is major upgrade. So let Upgrade the product ; ; ; make other upgrade change if necessary ; endif CloseRegKey $(KeyProduct) else ; ; Cannot Open software key, goto ERROR ; goto fatalregistry endif else Debug-Output "IP5515: Do not support hardware update." Shell $(UtilityInf),RegistryErrorString,OPERATION_UNIMPLEMENTED ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "IP5515: ShellCode error: cannot get an error string." goto ShellCodeError endif set Error = $($R0) set from = end set to = end goto nonfatalinfo ; the following code is not execute. DO NOT support hardware ; upgrade for now. ; ; upgrade/update hardware component ; There is no different between upgrade and update for hardware ; component ; ; 3. Change the service section of the hardware. i.e., ; ParameterName change, value change, etc. ; OpenRegKey $(!REG_H_LOCAL) "" + $(!NTN_ServiceBase)"\"$(ServiceName) + $(MAXIMUM_ALLOWED) ServiceKey Ifstr(i) $(ServiceKey) != $(KeyNull) ; ; Get the ServiceKey to change the Start value ; or Type value. Or open Parameters key to ; change the hardware parameters if necessary. ; CloseRegKey $(ServiceKey) else ; ; Error, cannot open network card key ; goto fatalregistry endif endif goto asigUpgradeSoftware asigUpgradeSoftware = + ; ifstr(i) $(AsigProductKeyName) == $(!NTN_RegBase) OpenRegKey $(!REG_H_LOCAL) "" $(AsigProductKeyName) $(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 "ShellCode error" goto ShellCodeError endif set !UG_Filename = $($R0) Debug-Output "AsigUpgrade: Filename: "$(!UG_Filename) ifstr(i) $(!UG_Filename) != "" install "Install-UpdateAsig" ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS goto fatal endif endif Debug-Output "AsigUpgrade: Version: "$(Version) Debug-Output "AsigUpgrade: ProductVersion: "$(ProductVersion) SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)} SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)} ifint $(Version) != $(ProductVersion) Debug-Output "AsigUpgrade: Version: "$(Version) Debug-Output "AsigUpgrade: ProductVersion: "$(ProductVersion) endif CloseRegKey $(KeyProduct) else goto fatalregistry endif ; endif goto end ; ; End of Upgrade Software ; ; ; Escape hatches ; successful = + goto end abandon = + ForListDo $(OEM_ABANDON_OPTIONS) Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), + $(ProductSoftwareName), $($) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error" goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR goto fatalregistry endif EndForListDo Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE ; Remove Software Component Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), + $(ProductSoftwareName), FALSE ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error" goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR goto fatalregistry endif endif goto end ; ; warning display ; warning = + 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) else goto "end" endif ; ; non fatal error display ; nonfatalinfo = + Set Severity = STATUS Set CommonStatus = STATUS_USERCANCEL 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) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif ifstr(i) $($R1) == "OK" goto $(from) else goto "end" endif ; ; Registry is broken ; fatalregistry = + Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set Error = $($R0) goto fatal ; ; fatal error display ; 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) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif goto setfailed ; ; Shelling error ; 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 ; ; if OEM_ABANDON_ON == TRUE, then remove the registry entries ; ifstr(i) $(OEM_ABANDON_ON) == TRUE set OEM_ABANDON_ON = FALSE goto abandon endif goto end end = + goto term term = + Return $(CommonStatus) ;******************************************************* ; INSTALL SECTIONS ;******************************************************* [Install-Option] set STF_VITAL = "" ifstr(i) $(AddCopy) == "YES" Debug-Output "IP5515: Install-Option: Option: "$(Option) Debug-Output "IP5515: Install-Option: SrcDir: "$(SrcDir) Debug-Output "IP5515: Install-Option: STF_WINDOWSSYSPATH: "$(!STF_WINDOWSSYSPATH)\drivers AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers AddSectionFilesToCopyList Files-AppDll $(SrcDir) $(!STF_WINDOWSSYSPATH) AddSectionFilesToCopyList Files-CvConf $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers\etc\atm endif ifstr(i) $(DoCopy) == "YES" ; ; Copy files in the copy list ; set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList endif Exit [Install-OptionAsig] set STF_VITAL = "" ifstr(i) $(AddCopy) == "YES" Debug-Output "ASIG: Install-Option: Option: "$(AsigOption) Debug-Output "ASIG: Install-Option: SrcDir: "$(SrcDir) Debug-Output "ASIG: Install-Option: STF_WINDOWSSYSPATH: "$(!STF_WINDOWSSYSPATH)\drivers AddSectionFilesToCopyList Files-$(AsigOption) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers endif ifstr(i) $(DoCopy) == "YES" set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList endif Exit [Install-Update] set STF_VITAL = "" set STF_OVERWRITE = "VERIFYSOURCEOLDER" AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers AddSectionFilesToCopyList Files-AppDll $(SrcDir) $(!STF_WINDOWSSYSPATH) AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH) set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList exit [Install-UpdateAsig] set STF_VITAL = "" set STF_OVERWRITE = "VERIFYSOURCEOLDER" AddSectionFilesToCopyList Files-$(AsigOption) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList exit ; ; [Source Media Descriptions] 1 = "Interphase PCI ATM Driver Disk #1" , TAGFILE = disk1 [ProductType] STF_PRODUCT = Winnt STF_PLATFORM = I386 [Files-Inf] 1, oemsetup.inf, SIZE=1000, RENAME=$(!UG_Filename) [Files-Ip5515] ;1, ip5515si.sys, SIZE=47616 1, ip5515si.sys [Files-ASIG] 1,asig.sys [Files-AppDll] 1, CTL3D32.DLL 1, cellview.cpl [Files-CvConf] 1, cvconf [LanguagesSupported] ENG [OptionsTextENG] IP5515 = "Interphase PCI ATM Adapter" [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 = "Interphase ATM Adapter Setup for Client 0" ProductSoftwareDescription = "Interphase PCI ATM Driver" ProductHardwareIP5515Description = "Interphase ATM Adapter" ProductSoftwareTitle = "Interphase PCI ATM Driver" ;ProductHardwareIP5515Title = "Interphase ATM Adapter Client " ProductHardwareIP5515Title = "Interphase ATM " DisplayTitleString = "" DisplayClientNumber = 1 LaneClientString = "Interphase ATM LANE Client " Client1577String = "Interphase ATM 1577 Client/Server" ShellCodeErrorTitle = "Error: "$(FunctionTitle) ShellCodeErrorText = "Shell Code Error." AsigProductSoftwareDescription = "Interphase ATM Signaling Transport" AsigProductSoftwareDisplayName = "Interphase ATM Signaling Transport" AsigProductSoftwareTitle = "Interphase ATM Signaling Transport" AsigFunctionTitle = "Interphase ATM Signaling Transport" MTUList = ^(MTUChoices, 1) MTUValues = ^(MTUChoices, 2) INTERRUPTList = ^(INTERRUPTChoices, 1) INTERRUPTValues = ^(INTERRUPTChoices, 2) ;BUSList = ^(BUSChoices, 1) ;BUSValues = ^(BUSChoices, 2) ; Asig choice APIList = ^(APIChoices, 1) APIValues = ^(APIChoices, 2) [DialogConstantsENG] Help = "&Help" Exit = "Cancel" OK = "OK" HelpContext = "" Continue = "Continue" Cancel = "Cancel" APIDisplayList = { "OFF", "ON"} [FileDependentDlgENG] DlgText = "Please select values for the following fields:" Combo1Label = "&MTU Size:" Combo2Label = "&Interrupt Level:" ;Combo3Label = "&Bus Type:" DlgType = "MultiCombo" ;DlgTemplate = "WD" ;DlgTemplate = "SINGLE_COMBO" ;DlgTemplate = "UBNDIS" DlgTemplate = "NE2000" Label1 = $(Combo1Label) Label2 = $(Combo2Label) ;Label3 = $(Combo3Label) Caption = $(FunctionTitle) Combo1List = $(MTUList) Combo1Out = $(MTUValue) Combo2List = $(INTERRUPTList) Combo2Out = $(INTERRUPTValue) ;Combo3List = $(BUSList) ;Combo3Out = $(BUSValue) ;ComboListItemsIn = {Combo1List, Combo2List, Combo3List} ;ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out} ComboListItemsIn = {Combo1List, Combo2List} ComboListItemsOut = {Combo1Out, Combo2Out} EditTextIn = "" EditTextLim = "" CBOptionsGreyed = {} NotifyFields = {NO, NO, NO} HelpContext = [MTUChoices] MTU_1 = "1514",1 MTU_2 = "4542",2 MTU_3 = "9232",3 [INTERRUPTChoices] INTERRUPT_FF = "Auto Detect",255 INTERRUPT_5 = "5",5 INTERRUPT_9 = "9",9 INTERRUPT_10 = "10",10 INTERRUPT_11 = "11",11 INTERRUPT_12 = "12",12 INTERRUPT_13 = "13",13 INTERRUPT_14 = "14",14 INTERRUPT_15 = "15",15 ;[BUSChoices] ;BUS_5 = "PCI",5 ;BUS_3 = "MCA",3 ; ; Asig Choices ; [AsigFileDependentDlgENG] DlgText = "Please select values for the following fields:" ;C1Label = "&debugAPI:" Combo1Label = "&debugAPI:" ;DlgType = "MultiCombo" DlgTemplate = "SINGLE_COMBO" ;DlgTemplate = "WD" Caption = $(AsigFunctionTitle) C1List = $(APIDisplayList) C1Out = $(APIValue) ComboListItemsIn = {C1List} ComboListItemsOut = {C1Out} EditTextIn = "" EditTextLim = "" CBOptionsGreyed = {} NotifyFields = {NO} ;HelpContext = HelpContext = $(!IDH_DB_OEMNXPNB_INS) [APIChoices] API_0 = "OFF",0 API_1 = "ON",1Download 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.