;---------------------------------------------------------------------------- ; NETGEAR FA511 CardBus Mobile Adapter V1.00 ;---------------------------------------------------------------------------- [Identification] OptionType = NetAdapter [PlatformsSupported] ISA EISA MCA PCI [Options] NGR [OptionsTextENG] NGR = "NETGEAR FA511 CardBus Mobile Adapter" [AllFileConstants] GenericInfVersion = " V1.00" UtilityInf = "UTILITY.INF" ParamInf = "NCPARAM.INF" subroutineinf = "SUBROUTN.INF" SoftwareType = "driver" Exit_Code = 0 NetEventDLL = "%SystemRoot%\System32\netevent.dll" IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll" Manufacturer = "NETGEAR" DISABLEPCMCIASYS = "0" ; "1" [FileConstants-NGR] GenericAdapterName = "NETGEAR FA511 CardBus Mobile Adapter" GenericTitleName = "NETGEAR FA511 CardBus Mobile Adapter" GenericDriverName = "NETGEAR FA511 CardBus Mobile Adapter Ndis4 Driver" GenericSysName = "FA511ND4.SYS" GenericName = "FA511" ProductMajorVersion = "1" ProductMinorVersion = "00" ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion) ProductSoftwareName = "FA511" ProductSoftwareDesc = "NETGEAR FA511 CardBus Mobile Adapter" ProductSoftwarePath = "\SystemRoot\System32\drivers\"$(GenericSysName) NetRuleSoftwareType = "FA511Sys ndisDriver FA511Driver" NetRuleSoftwareUse = $(SoftwareType) NetRuleSoftwareBindForm = """FA511Sys"" yes no container" NetRuleSoftwareClass = {"FA511Driver basic"} NetRuleSoftwareBindable = {"FA511Driver FA511Adapter non exclusive 100"} ProductHardwareName = "FA511" ProductHardwareDesc = "NETGEAR FA511 CardBus Mobile Adapter" NetRuleHardwareType = "FA511 FA511Adapter" NetRuleHardwareBindForm = " yes yes container" NetRuleHardwareClass = {"FA511Adapter basic"} ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion" ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters" VERS1Manufacturer = "NETGEAR" VERS1Product = "NETGEAR FA511 CardBus Mobile Adapter" VERS1Type = "FA511" PCMCIA = 1 [GeneralConstants] From = "" To = "" ExitCodeOk = 0 ExitCodeCancel = 1 ExitCodeFatal = 2 KeyNull = "" MaximumAllowed = 33554432 RegistryError = NO_ERROR KeyProduct = "" KeyParameters = "" TRUE = 1 FALSE = 0 NoTitle = 0 ExitState = "Active" OldVersionExist = $(FALSE) DriverPath = $(!STF_NTPATH)\drivers [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 = {} set LanguageList = ^(LanguagesSupported, 1) Ifcontains(i) $($0) in $(LanguageList) 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 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 !DebugOutputControl = 1 Debug-Output "OEMSETNT.INF: InstallOption" set LanguageList = ^(LanguagesSupported, 1) Ifcontains(i) $($0) NOT-IN $(LanguageList) Return STATUS_NOLANGUAGE endif set-subst LF = "\n" read-syms GeneralConstants read-syms AllFileConstants read-syms FileConstants"-"$(Option) read-syms DialogConstants$(!STF_LANGUAGE)"-"$(Option) ifstr(i) $(!NTN_Origination) == "NCPA" set Continue = $(OK) endif read-syms AllFileConstants$(!STF_LANGUAGE) read-syms FileConstants$(!STF_LANGUAGE)"-"$(Option) detect date set-title $(FunctionTitle) set To = Begin set From = Begin set CommonStatus = STATUS_SUCCESSFUL EndWait Begin = + Set ActivateDetection = FALSE Ifstr(i) $(!NTN_InstallMode) == deinstall set StartLabel = removeadapter else-Ifstr(i) $(!NTN_InstallMode) == Update set StartLabel = UpgradeSoftware else-Ifstr(i) $(!NTN_InstallMode) == bind set StartLabel = bindingadapter else-Ifstr(i) $(!NTN_InstallMode) == configure set StartLabel = configureadapter Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase) Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE ifint $($ShellCode) != $(!SHELL_CODE_OK) 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 endif ; Set the Default values set MemoryValue = *($(MemoryList), 9) set InterruptValue = *($(InterruptList), 8) set IOValue = *($(IOList), 11) set TxBuffersValue = *($(TxBuffersList), 2) set RxBuffersValue = *($(RxBuffersList), 2) Set From = $(fatal) Set To = $(fatal) Goto $(StartLabel) ;----------------------------------------------- ; Installation Section ;----------------------------------------------- installadapter = + ; Check whether the same version of the software exists OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MaximumAllowed) 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) Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+ $(ProductVersion) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error: cannot get an error string." goto ShellCodeError endif goto end else ; 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 set OldVersionExist = $(TRUE) endif endif ; DLL load addition Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) NO Ifint $($ShellCode) != $(!SHELL_CODE_OK) Goto ShellCodeError Else-Ifstr(i) $($R0) == STATUS_FAILED Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL" ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set Error = $($R0) Goto fatal Else-Ifstr(i) $($R0) == STATUS_USERCANCEL Goto successful Endif Set SrcDir = $($R1) install "Install-Dll" goto adaptersetup ;----------------------------------------------- ; Configuration Section ;----------------------------------------------- ; Get the current values of all the parameters configureadapter = + Ifstr $(KeyProduct) == $(KeyNull) OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MaximumAllowed) KeyProduct Ifstr $(KeyProduct) == $(KeyNull) set RegistryError = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "Cannot find component product key" goto fatalregistry Endif Endif ; Get the other parameters; they're attached to the service parameters key Debug-Output "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 "INF: FindService Shell error: "$($R0) Goto fatalregistry endif Set KeyParameters = $($R2) CloseRegKey $($R1) Ifstr $(KeyParameters) == $(KeyNull) set RegistryError = CANNOT_FIND_COMPONENT_SERVICE Debug-Output "Cannot find component service" goto fatalregistry endif set OldVersionExist = $(TRUE) set ValueName = "" set ValueData = "" set ValueStr = "" set ValueList = {} ; Get the old values from the Registry [Get Values] EnumRegValue $(KeyParameters) ValueList ForListDo $(ValueList) set ValueItem = $($) set ValueName = *($(ValueItem),1) set ValueData = *($(ValueItem),4) Ifstr(i) $(ValueName) == "MemoryBaseAddress" set MemoryValueIndex = $(ValueData) else-ifstr(i) $(ValueName) == "InterruptNumber" set InterruptIndex = $(ValueData) else-ifstr(i) $(ValueName) == "IOBaseAddress" set IOIndex = $(ValueData) else-ifstr(i) $(ValueName) == "TxDmaDesc" set TxBuffersIndex = $(ValueData) else-ifstr(i) $(ValueName) == "RxDmaDesc" set RxBuffersIndex = $(ValueData) endif EndForListDo set MemoryValue = *($(MemoryList), ~($(MemoryValues), $(MemoryValueIndex))) ifstr(i) $(MemoryValue) == "" set MemoryValue = *($(MemoryList), 1) endif set InterruptValue = *($(InterruptList), ~($(InterruptValues), $(InterruptIndex))) ifstr(i) $(InterruptValue) == "" set InterruptValue = *($(InterruptList), 1) endif set IOValue = *($(IOList), ~($(IOValues), $(IOIndex))) ifstr(i) $(IOValue) == "" set IOValue = *($(IOList), 1) endif set TxBuffersValue = *($(TxBuffersList), ~($(TxBuffersValues), $(TxBuffersIndex))) ifstr(i) $(TxBuffersValue) == "" set TxBuffersValue = *($(TxBuffersList), 1) endif set RxBuffersValue = *($(RxBuffersList), ~($(RxBuffersValues), $(RxBuffersIndex))) ifstr(i) $(RxBuffersValue) == "" set RxBuffersValue = *($(RxBuffersList), 1) endif adaptersetup = + Set From = adapteroptions adapteroptions = + LoadLibrary "disk 1" $(DialogDllName) hLib read-syms FileDependentDlg$(!STF_LANGUAGE)"-"$(Option) set ENABLER = 0 ui start "InputDlg" $(hLib) set ExitButton = $(ButtonPressed) FreeLibrary $(hLib) ifstr(i) $(DLGEVENT) == "CONTINUE" set MemoryValueIndex = $(Combo1Out) set InterruptIndex = $(Combo2Out) set IOIndex = $(Combo3Out) set TxBuffersIndex = $(Combo4Out) set RxBuffersIndex = $(Combo5Out) ui pop 1 else-ifstr(i) $(DLGEVENT) == "EXIT" set CommonStatus = STATUS_USERCANCEL ui pop 1 goto end else set CommonStatus = STATUS_USERCANCEL ui pop 1 Debug-Output "Action: unknown. Bye." goto end endif ; If installing, go create the necessary keys; ; if configuring, they're already open. skipoptions =+ ifint $(OldVersionExist) == $(TRUE) ifstr(i) $(!NTN_InstallMode) == configure goto writeparameters endif endif StartWait ; Add Software Component ifint $(OldVersionExist) == $(FALSE) ifstr(i) $(!NTN_InstallMode) == "install" Ifstr(i) $(DoCopy) == "YES" Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES Ifint $($ShellCode) != $(!SHELL_CODE_OK) Goto ShellCodeError Else-Ifstr(i) $($R0) == STATUS_FAILED Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL" ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set Error = $($R0) Goto fatal Else-Ifstr(i) $($R0) == STATUS_USERCANCEL Goto successful Endif Set SrcDir = $($R1) Endif install "Install-Option" ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE" ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set Error = $($R0) goto fatal endif endif Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), + $(ProductSoftwareName), + $(ProductSoftwareName), + $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), + $(ProductSoftwarePath), "kernel", "NDIS", {}, "",+ $(NetEventDLL) Set OEM_ABANDON_SOFTWARE = TRUE ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error" goto ShellCodeError endif ; $R1 contains the product version key handle ; $R2 contains the NetRules subkey handle ; $R3 contains the new Services key handle ; $R4 contains the Parameters key ; $R5 contains the Linkage Key set RegistryError = $($R0) set KeyProduct = $($R1) Set SoftNetRulesKey = $($R2) CloseRegKey $($R3) CloseRegKey $($R4) CloseRegKey $($R5) Ifstr(i) $(RegistryError) != 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),$(ProductSoftwareDesc)},+ {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 RegistryError = $($R0) Ifstr(i) $(RegistryError) != 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 RegistryError = $($R0) CloseRegKey $(KeyProduct) CloseRegKey $(SoftNetRulesKey) Ifstr(i) $(RegistryError) != 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)) endif ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "Cannot add hardware component" goto ShellCodeError endif set RegistryError = $($R0) Ifstr(i) $(RegistryError) != NO_ERROR EndWait Debug-Output "Registry error: add hardware component" CloseRegKey $($R1) CloseRegKey $($R2) CloseRegKey $($R3) goto fatalregistry endif ; $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) set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+ {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+ {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDesc)},+ {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 RegistryError = $($R0) Ifstr(i) $(RegistryError) != 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 = + Shell $(UtilityInf), GetBusTypeNum set BusTypeNum = $($R1) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error." goto ShellCodeError endif ; Add the rest of the parameters to the Services area Debug-Output "OEMSETNT.INF: - Create Driver Parameters" set MemoryValue = *($(MemoryValues), ~($(MemoryList), $(MemoryValueIndex) )) set InterruptValue = *($(InterruptValues), ~($(InterruptList), $(InterruptIndex) )) set IOValue = *($(IOValues), ~($(IOList), $(IOIndex) )) set TxBuffersValue = *($(TxBuffersValues), ~($(TxBuffersList), $(TxBuffersIndex) )) set RxBuffersValue = *($(RxBuffersValues), ~($(RxBuffersList), $(RxBuffersIndex) )) set NewValueList = {+ { TxPacketDesc, $(NoTitle), $(!REG_VT_DWORD), 75 }, + { RxPacketDesc, $(NoTitle), $(!REG_VT_DWORD), 120 }, + { PacketsPerTxInt, $(NoTitle), $(!REG_VT_DWORD), 10 }, + { PacketsPerRxInd, $(NoTitle), $(!REG_VT_DWORD), 10 }, + { BurstLength, $(NoTitle), $(!REG_VT_DWORD), 0 } , + { Pcmcia, $(NoTitle), $(!REG_VT_DWORD), 0 } , + {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+ {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+ {MemoryBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MemoryValue)},+ {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(InterruptValue)},+ {IOBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOValue)},+ {TxDmaDesc,$(NoTitle),$(!REG_VT_DWORD),$(TxBuffersValue)},+ {RxDmaDesc,$(NoTitle),$(!REG_VT_DWORD),$(RxBuffersValue)},+ {DirectEnable,$(NoTitle),$(!REG_VT_DWORD),1},+ {WorkingEnviroment,$(NoTitle),$(!REG_VT_SZ),$(Enviroment)} } Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList) CloseRegKey $(KeyParameters) ifint $(DISABLEPCMCIASYS) == 1 set PCMCIAKeyName = $(!NTN_ServiceBase)"\Pcmcia" OpenRegKey $(!REG_H_LOCAL) "" $(PCMCIAKeyName) $(MaximumAllowed) PCMCIAKey SetRegValue $(PCMCIAKey) {Start, 0, $(!REG_VT_DWORD),4} ; '4' disables the driver CloseRegKey $(PCMCIAKey) endif ;Add following statements for CardWizard OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\Pcmcia\Database\NETGEAR, Inc.\FA511" $(MaximumAllowed) MyPcmciaHandle Ifstr $(MyPcmciaHandle) == $(KeyNull) OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\Pcmcia\Database" $(MaximumAllowed) MyPcmciaKey CreateRegKey $(MyPcmciaKey) {"NETGEAR, Inc.",0,GenericClass} "" $(MaximumAllowed) "" MyPcmcialHandle CloseRegKey $(MyPcmciaKey) OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\Pcmcia\Database\NETGEAR, Inc." $(MaximumAllowed) MyPcmciaKey CreateRegKey $(MyPcmciaKey) {"FA511",0,GenericClass} "" $(MaximumAllowed) "" MyPcmcialHandle CloseRegKey $(MyPcmciaKey) OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\Pcmcia\Database\NETGEAR, Inc.\FA511" $(MaximumAllowed) MyPcmciaHandle endif set NewValueList = {{Driver,$(NoTitle),$(!REG_VT_SZ),$(GenericName)}} Shell $(UtilityInf), AddValueList, $(MyPcmciaHandle), $(NewValueList) CloseRegKey $(MyPcmciaHandle) ; ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error." goto ShellCodeError endif set RegistryError = $($R0) Ifstr(i) $(RegistryError) != NO_ERROR Debug-Output "Registry error: Add value list" goto fatalregistry endif EndWait ; ---------------------------------------------------------------------------------------------------------- ; add driver info to the SYSTEM\CurrentControlSet\Services\resman\Database\NETGEAR, Inc. for CardWizard ; ---------------------------------------------------------------------------------------------------------- Debug-Output "OEMSETNT.INF: Check the presence of CardWizard" OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\resman" $(MaximumAllowed) MyPcmciaHandle Ifstr $(MyPcmciaHandle) == $(KeyNull) goto successful endif Debug-Output "OEMSETNT.INF: Create Registry Keys for CardWizard" OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\resman\Database\NETGEAR, Inc.\FA511" $(MaximumAllowed) MyPcmciaHandle Ifstr $(MyPcmciaHandle) == $(KeyNull) Debug-Output "OEMSETNT.INF: Create Registry Keys" OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\resman\Database" $(MaximumAllowed) MyPcmciaKey CreateRegKey $(MyPcmciaKey) {"NETGEAR, Inc.",0,GenericClass} "" $(MaximumAllowed) "" MyPcmcialHandle CloseRegKey $(MyPcmciaKey) OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\resman\Database\NETGEAR, Inc." $(MaximumAllowed) MyPcmciaKey CreateRegKey $(MyPcmciaKey) {"FA511",0,GenericClass} "" $(MaximumAllowed) "" MyPcmcialHandle CloseRegKey $(MyPcmciaKey) OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\resman\Database\NETGEAR, Inc.\FA511" $(MaximumAllowed) MyPcmciaHandle endif set NewValueList = {{Driver,$(NoTitle),$(!REG_VT_SZ),$(GenericName)}} Shell $(UtilityInf), AddValueList, $(MyPcmciaHandle), $(NewValueList) Debug-Output "<DBG> AddValueList - Driver:REG_SZ:FA511" CloseRegKey $(MyPcmciaHandle) goto successful ;----------------------------------------------- ; Binding section ;----------------------------------------------- bindingadapter =+ set Error = "Binding: Sorry, not yet implemented." goto fatal ;----------------------------------------------- ; 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 RegistryError = $($R0) Ifstr(i) $(RegistryError) != 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 RegistryError = $($R0) Ifstr(i) $(RegistryError) != NO_ERROR goto fatalregistry endif endif ifint $(DISABLEPCMCIASYS) == 1 set PCMCIAKeyName = $(!NTN_ServiceBase)"\Pcmcia" OpenRegKey $(!REG_H_LOCAL) "" $(PCMCIAKeyName) $(MaximumAllowed) PCMCIAKey SetRegValue $(PCMCIAKey) {Start, 0, $(!REG_VT_DWORD),0} ; '0' restores the driver to "BOOT" CloseRegKey $(PCMCIAKey) endif goto end ;----------------------------------------------- ; Upgrade Software section ;----------------------------------------------- UpgradeSoftware = + ifstr(i) $(ProductKeyName) == $(!NTN_RegBase) OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MaximumAllowed) 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) ifstr(i) $(!UG_Filename) != "" install "Install-Update" ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS goto fatal endif endif SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)} SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)} ifint $(Version) != $(ProductVersion) ; Do nothing for update endif CloseRegKey $(KeyProduct) else goto fatalregistry endif else OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) + $(MaximumAllowed) NetworkCardKey Ifstr(i) $(NetworkCardKey) != $(KeyNull) GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo set ServiceName = *($(ServiceNameInfo), 4) OpenRegKey $(NetworkCardKey) "" "NetRules" + $(MaximumAllowed) NetRuleKey Ifstr(i) $(NetRuleKey) != $(KeyNull) ; Make the change here else goto fatalregistry endif CloseRegKey $(NetRules) CloseRegKey $(NetworkCardKey) else goto fatalregistry endif OpenRegKey $(!REG_H_LOCAL) "" + $(!NTN_ServiceBase)"\"$(ServiceName) + $(MaximumAllowed) ServiceKey Ifstr(i) $(ServiceKey) != $(KeyNull) CloseRegKey $(ServiceKey) else goto fatalregistry endif endif goto end 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 RegistryError = $($R0) Ifstr(i) $(RegistryError) != NO_ERROR goto fatalregistry endif EndForListDo Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), + $(ProductSoftwareName), FALSE ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error" goto ShellCodeError endif set RegistryError = $($R0) Ifstr(i) $(RegistryError) != NO_ERROR goto fatalregistry endif endif goto end 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 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 fatalregistry = + Shell $(UtilityInf) RegistryErrorString $(RegistryError) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set Error = $($R0) goto fatal fataldetect = + Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error: cannot get an error string." goto ShellCodeError endif set Error = $($R0) Goto fatal fatal = + ifstr(i) $(Error) == "" Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL" ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set Error = $($R0) endif Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif goto setfailed ShellCodeError = + set DlgType = "MessageBox" set STF_MB_TITLE = $(ShellCodeErrorTitle) set STF_MB_TEXT = $(ShellCodeErrorText) set STF_MB_TYPE = 1 set STF_MB_ICON = 3 set STF_MB_DEF = 1 ui start "Error Message" goto setfailed setfailed = + set CommonStatus = STATUS_FAILED ifstr(i) $(OEM_ABANDON_ON) == TRUE set OEM_ABANDON_ON = FALSE goto abandon endif goto end end = + goto term term = + Return $(CommonStatus) [DebugConfiguration] Set InfName = "OEMSETNT.INF" return [Install-Option] set STF_VITAL = "" ifstr(i) $(AddCopy) == "YES" AddSectionFilesToCopyList Files-$(Option) $(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-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH) set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList exit [Install-Dll] set STF_VITAL = "" AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH) set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList exit [Source Media Descriptions] 1 = "" [ProductType] STF_PRODUCT = Winnt STF_PLATFORM = I386 [Files-Inf] 1, OEMSETNT.INF, SIZE=58000, RENAME=$(!UG_Filename) [Files-Dll] 1, FA511.DLL, SIZE=21000 [Files-NGR] 1, $(GenericSysName), SIZE=36352 [LanguagesSupported] ENG [AllFileConstantsENG] 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:" DialogDllName = "FA511.DLL" [FileConstantsENG-NGR] DialogDllName = "FA511.DLL" FunctionTitle = $(GenericTitleName)" Setup"$(GenericInfVersion) ProductSoftwareTitle = $(GenericDriverName) ProductHardwareTitle = $(GenericAdapterName) MemoryList = ^(MemoryChoices, 1) MemoryValues = ^(MemoryChoices, 2) InterruptList = ^(InterruptChoices, 1) InterruptValues = ^(InterruptChoices, 2) IOList = ^(IOAddressChoices, 1) IOValues = ^(IOAddressChoices, 2) TxBuffersList = ^(TransmitBufferChoices, 1) TxBuffersValues = ^(TransmitBufferChoices, 2) RxBuffersList = ^(ReceiveBufferChoices, 1) RxBuffersValues = ^(ReceiveBufferChoices, 2) [DialogConstantsENG-NGR] Help = "&Help" Exit = "Cancel" OK = "OK" HelpContext = "" Continue = "Continue" Cancel = "Cancel" [FileDependentDlgENG-NGR] DlgType = "RadioCombination" DlgTemplate = "FA511" Caption = $(FunctionTitle) HelpContext = $(!IDH_DB_OEMNADE2_INS) CBOptionsGreyed = {} NotifyFields = {NO, NO, NO, NO, NO} Combo1Label = "&Memory Base Address:" Combo2Label = "&Interrupt Number:" Combo3Label = "&IO Base Address:" Combo4Label = "&Transmit Buffers:" Combo5Label = "&Receive Buffers:" Combo1List = $(MemoryList) Combo1Out = $(MemoryValue) Combo2List = $(InterruptList) Combo2Out = $(InterruptValue) Combo3List = $(IOList) Combo3Out = $(IOValue) Combo4List = $(TxBuffersList) Combo4Out = $(TxBuffersValue) Combo5List = $(RxBuffersList) Combo5Out = $(RxBuffersValue) ComboListItemsIn = {Combo1List, Combo2List, Combo3List, Combo4List, Combo5List} ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out, Combo4Out, Combo5Out} EditTextIn = {"",""} EditTextLim = {"",""} [MemoryChoices] MemBase_0 = "0xC8000", 819200 MemBase_1 = "0xC9000", 823296 MemBase_2 = "0xCA000", 827392 MemBase_3 = "0xCB000", 831488 MemBase_4 = "0xCC000", 835584 MemBase_5 = "0xCD000", 839680 MemBase_6 = "0xCE000", 843776 MemBase_7 = "0xCF000", 847872 MemBase_8 = "0xD0000", 851968 MemBase_9 = "0xD1000", 856064 MemBase_10 = "0xD2000", 860160 MemBase_11 = "0xD3000", 864256 MemBase_12 = "0xD4000", 868352 MemBase_13 = "0xD5000", 872448 MemBase_14 = "0xD6000", 876544 MemBase_15 = "0xD7000", 880640 MemBase_16 = "0xD8000", 884736 MemBase_17 = "0xD9000", 888832 MemBase_18 = "0xDA000", 892928 MemBase_19 = "0xDB000", 897024 MemBase_20 = "0xDC000", 901120 MemBase_21 = "0xDD000", 905216 MemBase_22 = "0xDE000", 909312 MemBase_23 = "0xDF000", 913408 MemBase_24 = "0xE0000", 917504 MemBase_25 = "0xE1000", 921600 MemBase_26 = "0xE2000", 925696 MemBase_27 = "0xE3000", 929792 MemBase_28 = "0xE4000", 933888 MemBase_29 = "0xE5000", 937984 MemBase_31 = "0xE6000", 942080 MemBase_32 = "0xE7000", 946176 MemBase_33 = "0xE8000", 950272 MemBase_34 = "0xE9000", 954368 MemBase_35 = "0xEA000", 958464 MemBase_36 = "0xEB000", 962560 MemBase_37 = "0xEC000", 966656 MemBase_38 = "0xED000", 970752 MemBase_39 = "0xEE000", 974848 [InterruptChoices] Interrupt_0 = "3", 3 Interrupt_1 = "4", 4 Interrupt_2 = "5", 5 Interrupt_3 = "6", 6 Interrupt_4 = "7", 7 Interrupt_5 = "8", 8 Interrupt_6 = "9", 9 Interrupt_7 = "10", 10 Interrupt_8 = "11", 11 Interrupt_9 = "12", 12 Interrupt_10 = "13", 13 Interrupt_11 = "14", 14 Interrupt_12 = "15", 15 [IOAddressChoices] IoBase_0 = "0x1000", 4096 IoBase_1 = "0x1800", 6144 IoBase_2 = "0x2000", 8192 IoBase_3 = "0x2800", 10240 IoBase_4 = "0x3000", 12288 IoBase_5 = "0x3800", 14336 IoBase_6 = "0x4000", 16384 IoBase_7 = "0x4800", 18432 IoBase_8 = "0x5000", 20480 IoBase_9 = "0x5800", 22528 IoBase_10 = "0x6000", 24576 IoBase_11 = "0x6800", 26624 IoBase_12 = "0x7000", 28672 IoBase_13 = "0x7800", 30720 IoBase_14 = "0x8000", 32768 IoBase_15 = "0x8800", 34816 IoBase_16 = "0x9000", 36864 IoBase_17 = "0x9800", 38912 IoBase_18 = "0xA000", 40960 IoBase_19 = "0xA800", 43008 IoBase_20 = "0xB000", 45056 IoBase_21 = "0xB800", 47104 IoBase_22 = "0xC000", 49152 IoBase_23 = "0xC800", 51200 IoBase_24 = "0xD000", 53248 IoBase_25 = "0xD800", 55296 IoBase_26 = "0xE000", 57344 IoBase_27 = "0xE800", 59392 [TransmitBufferChoices] TxDmaDesc_0 = "16",16 TxDmaDesc_1 = "32",32 TxDmaDesc_2 = "64",64 TxDmaDesc_3 = "128",128 TxDmaDesc_4 = "256",256 [ReceiveBufferChoices] RxDmaDesc_0 = "16",16 RxDmaDesc_1 = "32",32 RxDmaDesc_2 = "64",64 RxDmaDesc_3 = "128",128 RxDmaDesc_4 = "256",256Download 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.