;*********************************************************************** ; ; OEMSETUP.INF ; ; NETWAVE AirSurfer Plus Wireless LAN PC Card in 802.11 Mode INF 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 ; ------------------ ; This identifies the platforms supported by the adapter card. ; Possible types are: ; ; ISA, EISA, MCA and PCMCIA ;----------------------------------------------------------------------- [PlatformsSupported] ISA PCI PCMCIA ;----------------------------------------------------------------------- ; OPTION LIST ; ----------- ; This section lists the OEM Option key names. These keys are locale ; independent and used to represent the option in a locale independent ; manner. ; ;----------------------------------------------------------------------- [Options] ASPLUS3 ASPRO3 BSTCK650 BSTCK660 ;*********************************************************************** ; CONSTANTS FOR USING DIALOGS ;*********************************************************************** [FileConstants-ASPLUS3] GenericAdapterName = "Netwave AirSurfer Plus Wireless LAN in 802.11 Mode PC Card" GenericDriverName = "Netwave AirSurfer Plus Wireless LAN in 802.11 Mode Driver" GenericName = "ASPLUS3" Manufacturer = "Netwave Technologies Inc." CISText = "AirSurfer Plus Wireless LAN" CompanyNameText = "Netwave" [FileConstants-ASPRO3] GenericAdapterName = "Netwave AirSurfer Pro Wireless LAN in 802.11 Mode PC Card" GenericDriverName = "Netwave AirSurfer Pro Wireless LAN in 802.11 Mode Driver" GenericName = "ASPRO3" Manufacturer = "Netwave Technologies Inc." CISText = "AirSurfer Pro Wireless LAN" CompanyNameText = "Netwave" [FileConstants-BSTCK650] GenericAdapterName = "BayStack 650 Wireless LAN in 802.11 Mode PC Card" GenericDriverName = "BayStack 650 Wireless LAN in 802.11 Mode Driver" GenericName = "BSTCK650" Manufacturer = "Bay Networks Inc." CISText = "BayStack 650 Wireless LAN" CompanyNameText = "Bay Networks" [FileConstants-BSTCK660] GenericAdapterName = "BayStack 660 Wireless LAN in 802.11 Mode PC Card" GenericDriverName = "BayStack 660 Wireless LAN in 802.11 Mode Driver" GenericName = "BSTCK660" Manufacturer = "Bay Networks Inc." CISText = "BayStack 660 Wireless LAN" CompanyNameText = "Bay Networks" [FileConstants-ALL] GenericSysName = "AspNdis3.sys" DialogDllName = "AspCfg.dll" VER_PRODUCT_MAJOR_STR = "3" VER_PRODUCT_MINOR_STR = "40" VER_PRODUCT_SUB_MINOR_STR = "00" ProductVersion = $(VER_PRODUCT_MAJOR_STR)"."$(VER_PRODUCT_MINOR_STR)"."$(VER_PRODUCT_SUB_MINOR_STR) VER_FILE_MAJOR_STR = "3" VER_FILE_MINOR_STR = "40" VER_FILE_SUB_MINOR_STR = "00" DriverVersion = $(VER_FILE_MAJOR_STR)"."$(VER_FILE_MINOR_STR)"."$(VER_FILE_SUB_MINOR_STR) ; ; Software ; ProductSoftwareName = $(GenericName) ProductSoftwareImagePath = "\SystemRoot\System32\drivers\"$(GenericSysName) NetRuleSoftwareType = $(GenericName)"Sys ndisDriver "$(GenericName)"Driver" NetRuleSoftwareUse = $(SoftwareType) NetRuleSoftwareBindForm = """"$(GenericName)"Sys"" yes no container" NetRuleSoftwareClass = {$(GenericName)"Driver basic"} NetRuleSoftwareBindable = {$(GenericName)"Driver "$(GenericName)"Adapter non exclusive 100"} ; ; Hardware ; ProductHardwareName = $(GenericName) NetRuleHardwareType = $(GenericName)" "$(GenericName)"Adapter" NetRuleHardwareBindForm = " yes yes container" NetRuleHardwareClass = {$(GenericName)"Adapter basic"} ; ; Registry Key ; ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion" ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters" PcmciaDataBaseKeyName = $(!NTN_ServiceBase)"\Pcmcia\Database" [GeneralConstants] ; ; 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 ExitState = "Active" DriverPath = $(!STF_NTPATH)\drivers ; ; 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" IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll" [date] ; Now is a list which contains { Sec from 1-1-1970, Year, Month, Day, Hour, ; Minute, Second } Now = {} ? $(!LIBHANDLE) GetSystemDate ;--------------------------------------------------------------------------- ; 1. Identify ; ; 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) ;------------------------------------------------------------------------ ; 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 Set Status = STATUS_NOTSUPPORTED GoTo finish_ReturnOptions EndIf Else 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 default values for ; Set Status = STATUS_FAILED ; ; extract parameters ; Set Option = $($1) Set SrcDir = $($2) Set AddCopy = $($3) Set DoCopy = $($4) Set DoConfig = $($5) ; ; Check if the language requested is supported ; Set LanguageList = ^(LanguagesSupported, 1) IfContains(i) $($0) NOT-IN $(LanguageList) Return STATUS_NOLANGUAGE EndIf Set-Subst LF = "\n" Read-Syms GeneralConstants Read-Syms FileConstants"-"$(Option) Read-Syms FileConstants-ALL 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 ; ; 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 = + Set !DebugOutputControl = 1 ; Comment this out before shipping 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 = BindAdapter Else-IfStr(i) $(!NTN_InstallMode) == Configure Set StartLabel = ConfigureAdapter ; ; You cannot config the software component ; IfStr(i) $(ProductKeyName) == $(!NTN_RegBase) Debug-Output "Cannot configure the PCNet-Mobile driver software." Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error: cannot get an error string." GoTo ShellCodeError EndIf Set Error = $($R0) Set from = end Set to = end GoTo NonFatalError EndIf Else Set StartLabel = InstallAdapter Set OEM_ABANDON_OPTIONS = {} Set OEM_ABANDON_SOFTWARE = FALSE Set OEM_ABANDON_ON = TRUE EndIf Set from = FatalError Set to = FatalError IfStr(i) $(!NTN_Infname) == "oemsetup.inf" Set !UG_Filename = "NetAspNT.inf" Else Set !UG_Filename = $(!NTN_Infname) EndIf GoTo $(StartLabel) ;----------------------------------------------- ; Trying to install a new adapter ;----------------------------------------------- InstallAdapter = + ; ; Create/recreate the Registry's PCMCIA database entry. ; Set KeyPcmciaDataBase = "" OpenRegKey $(!REG_H_LOCAL) "" $(PcmciaDataBaseKeyName) $(MAXIMUM_ALLOWED) KeyPcmciaDataBase Shell "" ExCreateRegKey $(KeyPcmciaDataBase) $(CompanyNameText)"\"$(CISText)"" OpenRegKey $(!REG_H_LOCAL) "" $(PcmciaDataBaseKeyName)"\"$(CompanyNameText)"\"$(CISText)"" $(MAXIMUM_ALLOWED) KeyTemp SetRegValue $(KeyTemp) {Driver,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)} CloseRegKey $(KeyTemp) CloseRegKey $(KeyPcmciaDataBase) ; ; Check whether the same version of the software exists ; OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct IfStr $(KeyProduct) != $(KeyNull) ; ; The software is already installed on this PC. ; Popup the dialog and ask the user whether he wants to continue ; IfStr(i) !(NTN_RegBase) == $(ProductKeyName) ; ; Cannot Install the same software again, must use upgrade instead ; GetRegValue $(KeyProduct), "MajorVersion", VersionInfo Set MajorVersion = *($(VersionInfo), 4) GetRegValue $(KeyProduct), "MinorVersion", VersionInfo Set MinorVersion = *($(VersionInfo), 4) CloseRegKey $(KeyProduct) Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+ $(MajorVersion)"."$(MinorVersion) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error: cannot get an error string." GoTo ShellCodeError EndIf GoTo end Else CloseRegKey $(KeyProduct) ; ; Add a new adapter card? ; Shell $(UtilityInf), CardExistedDlg IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error: cannot get an error string." GoTo ShellCodeError EndIf IfStr(i) $($R1) != "OK" GoTo end EndIf EndIf Else ; ; First time through we install the software component. ; ;;; If this is not running via the NCPA, we need to change the ;;; SrcDir since DoAskSource won't prompt for the disk. If the ;;; NCPA is not used, the files should be copied before launching ;;; the INF install, and you should do no file copies from the INF. IfStr(i) $(!NTN_InstallPhase) == "primary" ;;; ;;; Make sure the configuration DLL has been copied. If not, setup ;;; will exit after displaying an error message without returning here. ;;; LoadLibrary "" $(DialogDllName) hLib FreeLibrary $(hLib) Set SrcDir = "A:\" Else ;;; ;;; If SrcDir is not set, ask the user to locate it for us. ;;; Set STF_INSTALL_OUTCOME = STF_SUCCESS IfStr(i) $(SrcDir) == "" Shell $(UtilityInf), DoAskSource, + $(!STF_CWDDIR), + $(SrcDir), + "NO" IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "Cannot run DoAskSource: ShellCode="$($ShellCode) Set STF_INSTALL_OUTCOME = STATUS_SHELL_FAILED Else-IfStr(i) $($R0) == STATUS_FAILED Debug-Output "DoAskSource: STATUS_FAILED" Set STF_INSTALL_OUTCOME = STATUS_FAILED Else-IfStr(i) $($R0) == STATUS_USERCANCEL Debug-Output "DoAskSource: STATUS_USERCANCEL" Set STF_INSTALL_OUTCOME = STATUS_USERCANCEL Else Set SrcDir = $($R1) EndIf EndIf ;;; ;;; If all is well, copy the files to the hard disk. ;;; IfStr(i) $(STF_INSTALL_OUTCOME) == STF_SUCCESS StartWait Install "Install-Dll" Install "Install-Option" EndWait Endif 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), "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 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),$(VER_FILE_MAJOR_STR)},+ {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(VER_FILE_MAJOR_STR)},+ {ProductVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductVersion)},+ {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 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 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)) 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 KeyAdapterRules = $($R2) Set KeyParameters = $($R3) Set AdapterNumber = $($R4) Set ServiceName = $($R5) 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),$(ServiceName)},+ {ProductVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductVersion)},+ {DriverVer,$(NoTitle),$(!REG_VT_SZ),$(DriverVersion)},+ {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) ; ; Add the default static parameters to the adapter service area. ; Set NewValueList = {+ {BusNumber,$(NoTitle),$(!REG_VT_DWORD),0},+ {BusType,$(NoTitle),$(!REG_VT_DWORD),8},+ {IoLength,$(NoTitle),$(!REG_VT_DWORD),16},+ {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+ {DriverVer,$(NoTitle),$(!REG_VT_SZ),$(DriverVersion)},+ {MemoryMappedSize,$(NoTitle),$(!REG_VT_DWORD),24576},+ {Pcmcia,$(NoTitle),$(!REG_VT_DWORD),1}} Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList) CloseRegKey $(KeyParameters) GoTo AdapterSetup ;----------------------------------------------- ; Configuration Section ;----------------------------------------------- ConfigureAdapter = + IfStr $(KeyProduct) == $(KeyNull) OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct IfStr $(KeyProduct) == $(KeyNull) Set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "Cannot find component product key" GoTo FatalRegistry EndIf EndIf GetRegValue $(KeyProduct),"ServiceName", ServiceNameInfo Set ServiceName = *($(ServiceNameInfo), 4) CloseRegKey $(KeyProduct) ; ; Put up the adapter configuration dialog. ; AdapterSetup = + LoadLibrary "" $(DialogDllName) hLib Debug-Output ">> Configure("$(Option)","$(ServiceName)")" LibraryProcedure ConfigResult $(hLib) "Configure" $(Option), $(ServiceName) Debug-Output "<< Configure="$(ConfigResult) FreeLibrary $(hLib) Set CommonStatus = *($(ConfigResult),1) IfStr(i) $(CommonStatus) == "STATUS_USERCANCEL" GoTo end Else-IfStr(i) $(CommonStatus) != "STATUS_SUCCESSFUL" GoTo FatalError EndIf GoTo successful ;----------------------------------------------- ; Binding section ;----------------------------------------------- BindAdapter =+ Set Error = "Binding: Sorry, not yet implemented." GoTo FatalError ;----------------------------------------------- ; RemoveAdapter section ;----------------------------------------------- RemoveAdapter = + IfStr(i) $(ProductKeyName) == $(!NTN_RegBase) ; Remove Software Component 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), $(!NTN_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 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) ; ; Update the binaries ; Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "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 ; ; Upgrade the version number ; SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(VER_FILE_MAJOR_STR)} SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(VER_FILE_MAJOR_STR)} SetRegValue $(KeyProduct) {ProductVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductVersion)} CloseRegKey $(KeyProduct) Else ; ; Cannot Open software key, GoTo ERROR ; GoTo FatalRegistry EndIf Else ; ; upgrade/update hardware component ; There is no different between upgrade and update for hardware ; component ; ; 1. Get the Service Name ; 2. Change the NetRule section if necessary ; OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) + $(MAXIMUM_ALLOWED) NetworkCardKey IfStr(i) $(NetworkCardKey) != $(KeyNull) ; ; Get Service name ; GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo Set ServiceName = *($(ServiceNameInfo), 4) ; ; Change the NetRule if necessary ; OpenRegKey $(NetworkCardKey) "" "NetRules" + $(MAXIMUM_ALLOWED) NetRuleKey IfStr(i) $(NetRuleKey) != $(KeyNull) ; ; Make the change.... ; Else ; ; Error, cannot open net rules key ; GoTo FatalRegistry EndIf CloseRegKey $(NetRules) CloseRegKey $(NetworkCardKey) Else ; ; Error, cannot open network card key ; GoTo FatalRegistry EndIf ; ; 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 end ; ; End of Upgrade Software ; ; ; Escape hatches ; 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 ; ; WarningMessage ; WarningMessage = + 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 ; ; NonFatalError message ; NonFatalError = + 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) Else GoTo "end" EndIf ; ; Registry is broken ; FatalRegistry = + Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf Set Error = $($R0) GoTo FatalError ; ; FatalError message ; 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 ; ; 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 successful = + GoTo end end = + Return $(CommonStatus) ;*************************************************************** ; INSTALL SECTIONS ;*************************************************************** [Install-Dll] Set STF_VITAL = "" AddSectionFilesToCopyList Files-Dll $(SrcDir)"\WINNT" $(!STF_WINDOWSSYSPATH) AddSectionFilesToCopyList Files-Hlp $(SrcDir)"\COMMON" $(!STF_WINDOWSSYSPATH) Set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList Exit [Install-Option] Set STF_VITAL = "" ; ; Add the files to the copy list ; IfStr(i) $(AddCopy) == "YES" AddSectionFilesToCopyList Files-$(Option) $(SrcDir)"\WINNT" $(!STF_WINDOWSSYSPATH)\Drivers ; ; Copy files in the copy list ; IfStr(i) $(DoCopy) == "YES" Set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList EndIf EndIf Exit [Install-Update] Set STF_VITAL = "" Set STF_OVERWRITE = "VERIFYSOURCEOLDER" AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH) AddSectionFilesToCopyList Files-Hlp $(SrcDir)"\COMMON" $(!STF_WINDOWSSYSPATH) AddSectionFilesToCopyList Files-Dll $(SrcDir)"\WINNT" $(!STF_WINDOWSSYSPATH) AddSectionFilesToCopyList Files-$(Option) $(SrcDir)"\WINNT" $(!STF_WINDOWSSYSPATH)\Drivers Set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList Exit [Source Media Descriptions] 1 = "BayStack Wireless LAN Install Disk" [ProductType] STF_PRODUCT = Winnt STF_PLATFORM = I386 [Files-Inf] 1, oemsetup.inf, SIZE=40558, RENAME=$(!UG_Filename) [Files-ASPLUS3] 1, AspNdis3.sys, SIZE=100000 [Files-ASPRO3] 1, AspNdis3.sys, SIZE=100000 [Files-BSTCK650] 1, AspNdis3.sys, SIZE=100000 [Files-BSTCK660] 1, AspNdis3.sys, SIZE=100000 [Files-Dll] 1, AspCfg.dll, SIZE=200000 1, AspCsh.dll, SIZE=50000 [Files-Hlp] 1, AspCfg.hlp, SIZE=20000 1, AspCfg.cnt, SIZE=2000 [LanguagesSupported] ENG [OptionsTextENG] ASPLUS3 = "Netwave AirSurfer Plus Wireless LAN in 802.11 Mode PC Card" ASPRO3 = "Netwave AirSurfer Pro Wireless LAN in 802.11 Mode PC Card" BSTCK650 = "Bay Networks BayStack 650 Wireless LAN in 802.11 Mode PC Card." BSTCK660 = "Bay Networks BayStack 660 Wireless LAN in 802.11 Mode PC Card." [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 = $(GenericAdapterName)" Setup" ProductSoftwareDescription = $(GenericDriverName) ProductHardwareDescription = $(GenericAdapterName) ProductSoftwareTitle = $(GenericDriverName) ProductHardwareTitle = $(GenericAdapterName) [DialogConstantsENG] Help = "&Help" Exit = "Cancel" OK = "OK" HelpContext = "" Continue = "Continue" Cancel = "Cancel" [ExCreateRegKey] Debug-Output "******************Entering [ExCreateRegKey]******************" Set ECR_Result = NO_ERROR Set ECR_BaseKeyHandle = $($0) Set ECR_NewPath = $($1) Set KeyNull = "" Set MAXIMUM_ALLOWED = 33554432 Debug-Output "ExCreateRegKey - ECR_BaseKeyHandle = "$(ECR_BaseKeyHandle) Debug-Output " ECR_NewPath = "$(ECR_NewPath) Debug-Output " MAXIMUM_ALLOWED = "$(MAXIMUM_ALLOWED) Debug-Output " KeyNull = "$(KeyNull) OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_NewPath) $(MAXIMUM_ALLOWED) + ECR_BaseKey Debug-Output "ECR_BaseKey = "$(ECR_BaseKey) Debug-Output " OpenRegKey returned "$($R0) IfStr $(ECR_BaseKey) == $(KeyNull) Debug-Output "ECR_BaseKey == KeyNull" Else Debug-Output "ECR_BaseKey != KeyNull" Set ECR_KeyHandle = $(ECR_BaseKey) GoTo ECR_Return EndIf Set ECR_TmpPath = "" Split-String $(ECR_NewPath) "\" ECR_PList Debug-Output "ECR_PList = "$(ECR_PList) ForListDo $(ECR_PList) IfStr(i) $($) != "\" IfInt $(#) == 1 Set ECR_TmpPath = $($) Else Set ECR_TmpPath = $(ECR_TmpPath)"\"$($) EndIf Debug-Output "Determining if "$(ECR_TmpPath)" exists" OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_TmpPath) $(MAXIMUM_ALLOWED) ECR_BaseKey IfStr $(ECR_BaseKey) == $(KeyNull) Debug-Output "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)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.