[Identification] OptionType = NetAdapter [PlatformsSupported] PCMCIA [Options] AIRLANCER [FileConstants] UtilityInf = "UTILITY.INF" subroutineinf = "SUBROUTN.INF" SoftwareType = "driver" PcmciaManufacturer = "ELSA" PcmciaProductNames = {"AirLancer MC-2","AirLancer MC-2 FR"} Exit_Code = 0 NetEventDLL = "%SystemRoot%\System32\netevent.dll" IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll" AIRLANCERBYTE = 0x20246D68 Manufacturer = "ELSA" ProductMajorVersion = "2" ProductMinorVersion = "0" ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion) ProductSoftwareName = "AirLancer" ProductSoftwareTitle = "AirLancer MC-2 Adapter Driver" ProductSoftwareImagePath = "\SystemRoot\System32\drivers\ELSAal2.sys" NetRuleSoftwareType = "AIRLANCERSys ndisDriver AIRLANCERDriver" NetRuleSoftwareUse = $(SoftwareType) NetRuleSoftwareBindForm = """AIRLANCERSys"" yes no container" NetRuleSoftwareClass = {"AIRLANCERDriver basic"} NetRuleSoftwareSWBindable = {"AIRLANCERDriver AIRLANCERAdapter non exclusive 100"} OptionHelpFile = "ELSAal2.hlp" ProductHardwareName = "AirLancer" ProductHardwareAIRLANCERTitle = "ELSA AirLancer MC-2 Network Adapter" NetRuleHardwareAIRLANCERType = "AIRLANCER AIRLANCERAdapter" NetRuleHardwareAIRLANCERClass = {"AIRLANCERAdapter basic"} HelpAIRLANCERId = 20 NetRuleHardwareBindForm = " yes yes container" ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion" ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters" PcmciaKeyName = $(!NTN_ServiceBase)"\PCMCIA\DataBase" [GeneralConstants] from = "" to = "" ExitCodeOk = 0 ExitCodeCancel = 1 ExitCodeFatal = 2 KeyNull = "" MAXIMUM_ALLOWED = 33554432 RegistryErrorIndex = NO_ERROR KeyProduct = "" HardParameterKey = "" TRUE = 1 FALSE = 0 NoTitle = 0 ExitState = "Active" OldVersionExisted = $(FALSE) DriverPath = $(!STF_NTPATH)\drivers [date] 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) [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] set Option = $($1) set SrcDir = $($2) set AddCopy = $($3) set DoCopy = $($4) set DoConfig = $($5) set SrcSubDir = driver\wlan\winnt\ set LanguageList = ^(LanguagesSupported, 1) ifcontains(i) $($0) NOT-IN $(LanguageList) Return STATUS_NOLANGUAGE endif set-subst LF = "\n" read-syms GeneralConstants read-syms FileConstants set NetRuleSoftwareBindable = $($R1) read-syms DialogConstants$(!STF_LANGUAGE) ifstr(i) $(!NTN_Origination) == "NCPA" set Continue = "OK" endif read-syms FileConstants$(!STF_LANGUAGE) detect date set-title $(Function$(Option)Title) set to = Begin set from = Begin set CommonStatus = STATUS_SUCCESSFUL EndWait Begin = + 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 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 else set StartLabel = configureadapter endif else set StartLabel = installadapter set OEM_ABANDON_OPTIONS = {} set OEM_ABANDON_SOFTWARE = FALSE set OEM_ABANDON_ON = TRUE endif Set DLLPATH = $(SrcDir)$(SrcSubDir) set IRQValueIndex = 6 set IoBaseAddrIndex = 7 set ChannelValueIndex = 11 set NetTypeValueIndex = 1 set RTSValueIndex = 31 set LLCTypeValueIndex = 2 Set ESSIDValue = "ELSA" set from = $(fatal) set to = $(fatal) goto $(StartLabel) installadapter = + OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct ifstr $(KeyProduct) != $(KeyNull) CloseRegKey $(KeyProduct) ifstr(i) !(NTN_RegBase) == $(ProductKeyName) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif goto end else set OldVersionExisted = $(TRUE) endif endif 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) install "Install-Hlp" endif goto installproduct configureadapter = + Set DLLPATH = $(!STF_WINDOWSSYSPATH)\drivers\ ifstr(i) $(KeyProduct) == $(KeyNull) OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct ifstr $(KeyProduct) == $(KeyNull) Set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE goto fatalregistry endif endif Shell $(UtilityInf) FindService, $(KeyProduct) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif ifstr(i) $($R0) != NO_ERROR goto fatalregistry endif set HardParameterKey = $($R2) CloseRegKey $($R1) ifstr $(HardParameterKey) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE goto fatalregistry endif set OldVersionExisted = $(TRUE) set ValueName = "" set ValueData = "" set ValueStr = "" set ValueList = {} EnumRegValue $(HardParameterKey) ValueList ForListDo $(ValueList) set ValueItem = $($) set ValueName = *($(ValueItem),1) set ValueData = *($(ValueItem),4) ifstr(i) $(ValueName) == "InterruptNumber" set IRQValueIndex = $(ValueData) else-ifstr(i) $(ValueName) == "IoBaseAddress" set IoBaseAddrIndex = $(ValueData) else-ifstr(i) $(ValueName) == "DefaultChannel" set ChannelValueIndex = $(ValueData) else-ifstr(i) $(ValueName) == "NetworkTypeWLU" set NetTypeValueIndex = $(ValueData) else-ifstr(i) $(ValueName) == "RTSThreshold" set RTSValueIndex = $(ValueData) else-ifstr(i) $(ValueName) == "LLCType" set LLCTypeValueIndex = $(ValueData) else-ifstr(i) $(ValueName) == "NetworkName" set ESSIDValue = $(ValueData) endif EndForListDo set IRQValue = *($(IRQList), ~($(IRQValues),$(IRQValueIndex))) ifstr(i) $(IRQValue) == "" set IRQValue = *($(IRQList), 6) endif set IoBaseAddrValue = *($(IoBaseAddrList), ~($(IoBaseAddrValues),$(IoBaseAddrIndex))) ifstr(i) $(IoBaseAddrValue) == "" set IoBaseAddrValue = *($(IoBaseAddrList), 7) endif set ChannelValue = *($(ChannelList), ~($(ChannelValues),$(ChannelValueIndex))) ifstr(i) $(ChannelValue) == "" set ChannelValue = *($(ChannelList), 3) endif set NetTypeValue = *($(NetTypeList), ~($(NetTypeValues),$(NetTypeValueIndex))) ifstr(i) $(NetTypeValue) == "" set NetTypeValue = *($(NetTypeList), 2) endif set RTSValue = *($(RTSList), ~($(RTSValues),$(RTSValueIndex))) ifstr(i) $(RTSValue) == "" set RTSValue = *($(RTSList), 20) endif set LLCTypeValue = *($(LLCTypeList), ~($(LLCTypeValues),$(LLCTypeValueIndex))) ifstr(i) $(LLCTypeValue) == "" set LLCTypeValue = *($(LLCTypeList), 2) endif ifstr(i) $(ESSIDValue) == "" Set ESSIDValue = "ELSA" endif adapteroptions = + set from = adapteroptions loadlibrary "Install Diskette" $(DLLPATH)ELSAal2.dll DllHandle read-syms FileDependentDlg$(!STF_LANGUAGE) SetHelpFile $(!STF_WINDOWSSYSPATH)"\"$(OptionHelpFile) $(MinHelpId) $(MaxHelpId) $(Help$(Option)Id) EndWait ui start "InputDlg" $(DllHandle) StartWait ifstr(i) $(DLGEVENT) == "CONTINUE" set IRQValueIndex = $(Combo1Out) set IoBaseAddrIndex = $(Combo2Out) set ChannelValueIndex = $(Combo3Out) set NetTypeValueIndex = $(Combo4Out) set RTSValueIndex = $(Combo5Out) set LLCTypeValueIndex = $(Combo6Out) set ESSIDValue = *($(EditTextOut),1) ui pop 1 else-ifstr(i) $(DLGEVENT) == "EXIT" set CommonStatus = STATUS_USERCANCEL ui pop 1 FreeLibrary $(DllHandle) goto end else ui pop 1 FreeLibrary $(DllHandle) goto end endif set IRQValue = *($(IRQValues), ~($(IRQList),$(IRQValueIndex))) set IoBaseAddrValue = *($(IoBaseAddrValues), ~($(IoBaseAddrList),$(IoBaseAddrIndex))) set ChannelValue = *($(ChannelValues), ~($(ChannelList),$(ChannelValueIndex))) set NetTypeValue = *($(NetTypeValues), ~($(NetTypeList),$(NetTypeValueIndex))) set RTSValue = *($(RTSValues), ~($(RTSList),$(RTSValueIndex))) set LLCYTypeValue = *($(LLCTypeValues), ~($(LLCTypeList),$(LLCTypeValueIndex))) ifstr(i) $(!NTN_InstallMode) == configure goto updateparameters endif installproduct =+ StartWait ; Shell $(UtilityInf), EISAFindBus, $(AIRLANCERBYTE) ; ifint $($ShellCode) != $(!SHELL_CODE_OK) ; goto ShellCodeError ; endif ; ifstr $($R0) != "NO_ERROR" ; set Error = $($R0) ; goto fatal ; endif ; ifstr(i) $($R1) == {} ; set Error = $(CANNOT_FIND_ANY_CARD) ; set CommonStatus = STATUS_USERCANCEL ; set from = "end" ; goto nonfatal ; endif ; set AdapterList = $($R1) ifint $(OldVersionExisted) == $(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-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 ; ; Check to see if the product Software key exists already in the system ; service keys before we try to add the software component. ; OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProductHardwareName) $(!REG_KEY_READ) KeyNt CloseRegKey $(KeyNt) ifstr(i) $(KeyNt) == "" Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), + $(ProductSoftwareName), + $(ProductSoftwareName), + $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), + $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+ $(NetEventDLL) Set OEM_ABANDON_SOFTWARE = TRUE ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif 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 SoftParameterKey = $($R4) Set SoftLinkageKey = $($R5) set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+ {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+ {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+ {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+ {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+ {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+ {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}} Shell $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set RegistryErrorIndex = $($R0) ifstr(i) $(RegistryErrorIndex) != "NO_ERROR" EndWait CloseRegKey $(SoftProductKey) CloseRegKey $(SoftNetRuleKey) CloseRegKey $(SoftServiceKey) CloseRegKey $(SoftParameterKey) CloseRegKey $(SoftLinkageKey) 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),$(NetRuleSoftwareSWBindable)}, + {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}} Shell $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set RegistryErrorIndex = $($R0) CloseRegKey $(SoftProductKey) CloseRegKey $(SoftNetRuleKey) CloseRegKey $(SoftServiceKey) CloseRegKey $(SoftParameterKey) CloseRegKey $(SoftLinkageKey) ifstr(i) $(RegistryErrorIndex) != "NO_ERROR" EndWait goto fatalregistry endif endif ; ForListDo $(AdapterList) ; set BusNum = *($($),1) ; set SlotNum = *($($),2) ; Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), + ; $(SlotNum), $(ProductHardware$(Option)Description), $(ProductHardwareName) "YES" ; ifint $($ShellCode) != $(!SHELL_CODE_OK) ; goto ShellCodeError ; endif ; ifstr $($R0) != "NO_ERROR" ; set Error = $($R0) ; goto fatal ; endif ; ifstr(i) $($R1) != "YES" 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) goto ShellCodeError endif set RegistryErrorIndex = $($R0) ifstr(i) $(RegistryErrorIndex) != "NO_ERROR" EndWait CloseRegKey $($R1) CloseRegKey $($R2) CloseRegKey $($R3) goto fatalregistry endif set IRQValue = *($(IRQList),6) set IoBaseAddrValue = *($(IoBaseAddrList),7) set ChannelValue = *($(ChannelList),11) ; default channel 11 set NetTypeValue = *($(NetTypeList),1) ; default topology Infrastructure set RTSValue = *($(RTSList),31) ; default packet size 1550 set LLCTypeValue = *($(LLCTypeList),2) loadlibrary "Install Diskette" $(DLLPATH)ELSAal2.dll DllHandle read-syms FileDependentDlg$(!STF_LANGUAGE) SetHelpFile $(!STF_WINDOWSSYSPATH)"\"$(OptionHelpFile) $(MinHelpId) $(MaxHelpId) $(Help$(Option)Id) EndWait ui start "InputDlg" $(DllHandle) StartWait ifstr(i) $(DLGEVENT) == "CONTINUE" set IRQValueIndex = $(Combo1Out) set IoBaseAddrIndex = $(Combo2Out) set ChannelValueIndex = $(Combo3Out) set NetTypeValueIndex = $(Combo4Out) set RTSValueIndex = $(Combo5Out) set LLCTypeValueIndex = $(Combo6Out) set ESSIDValue = *($(EditTextOut),1) ui pop 1 else-ifstr(i) $(DLGEVENT) == "EXIT" set CommonStatus = STATUS_USERCANCEL ui pop 1 FreeLibrary $(DllHandle) goto setfailed else ui pop 1 FreeLibrary $(DllHandle) goto setfailed endif set IRQValue = *($(IRQValues), ~($(IRQList),$(IRQValueIndex))) set IoBaseAddrValue = *($(IoBaseAddrValues), ~($(IoBaseAddrList),$(IoBaseAddrIndex))) set ChannelValue = *($(ChannelValues), ~($(ChannelList),$(ChannelValueIndex))) set NetTypeValue = *($(NetTypeValues), ~($(NetTypeList),$(NetTypeValueIndex))) set RTSValue = *($(RTSValues), ~($(RTSList),$(RTSValueIndex))) set LLCTypeValue = *($(LLCTypeValues), ~($(LLCTypeList),$(LLCTypeValueIndex))) Set HardNetCardKey = $($R1) Set HardNetRuleKey = $($R2) Set HardParameterKey = $($R3) set AdapterNumber = $($R4) set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+ {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+ {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, $(HardNetCardKey), $(NewValueList) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),0},+ {BusType,$(NoTitle),$(!REG_VT_DWORD),1},+ {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+ {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+ {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IoBaseAddrValue)},+ {IoLength,$(NoTitle),$(!REG_VT_DWORD),64},+ {Pcmcia,$(NoTitle),$(!REG_VT_DWORD),1},+ {DefaultChannel,$(NoTitle),$(!REG_VT_DWORD),$(ChannelValue)},+ {NetworkTypeWLU,$(NoTitle),$(!REG_VT_DWORD),$(NetTypeValue)},+ {RTSThreshold,$(NoTitle),$(!REG_VT_DWORD),$(RTSValue)},+ {LLCType,$(NoTitle),$(!REG_VT_DWORD),$(LLCTypeValue)},+ {NetworkName,$(NoTitle),$(!REG_VT_SZ),$(ESSIDValue)}} Shell $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList) ifstr(i) $(!STF_GUI_UNATTENDED) == "YES" Shell $(UtilityInf),AddDefaultNetCardParameters,$(HardParameterKey) endif CloseRegKey $(HardParameterKey) set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)"""" set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm) set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardware$(Option)Type)},+ {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, + {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardware$(Option)Class)}, + {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}} Shell $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif Shell $(UtilityInf),AddDefaultNetCardParameters,$(HardParameterKey) CloseRegKey $(HardNetCardKey) CloseRegKey $(HardNetRuleKey) CloseRegKey $(HardParameterKey) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif ; endif ; EndForListDo ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; OpenRegKey $(!REG_H_LOCAL) "" $(PcmciaKeyName) $(MAXIMUM_ALLOWED) + hKeyPcmciaDatabase IfStr $(hKeyPcmciaDatabase) == $(hKeyNull) Debug-Output $(ProductSoftwareName)": OpenRegKey failed to open: "$(PcmciaKeyName) Goto fatalRegistry EndIf ;;; ;;; Try to create the manufacturer keys in PCMCIA database, ;;; but don't fail if it's already there. ;;; CreateRegKey $(hKeyPcmciaDatabase) {$(PcmciaManufacturer), 0, GenericClass} + "" $(MAXIMUM_ALLOWED) "" hKeyPcmciaManufacturer IfStr $(hKeyPcmciaManufacturer) == $(hKeyNull) OpenRegKey $(hKeyPcmciaDatabase) "" $(PcmciaManufacturer) $(MAXIMUM_ALLOWED) + hKeyPcmciaManufacturer IfStr $(hKeyPcmciaManufacturer) == $(hKeyNull) Debug-Output $(ProductSoftwareName)": OpenRegKey failed to open: " + $(PcmciaKeyName)"\"$(PcmciaManufacturer) CloseRegKey $(hKeyPcmciaDatabase) Goto fatalRegistry EndIf EndIf ForListDo $(PcmciaProductNames) ;;; ;;; Try to create WaveLAN PCMCIA product key under manufacturer key, ;;; but don't fail if it's already there. ;;; Set PcmciaProductName = $($) CreateRegKey $(hKeyPcmciaManufacturer) { $(PcmciaProductName), 0, GenericClass } "" + $(MAXIMUM_ALLOWED) "" hKeyPcmciaProduct IfStr $(hKeyPcmciaProduct) == $(hKeyNull) OpenRegKey $(hKeyPcmciaManufacturer) "" $(PcmciaProductName) $(MAXIMUM_ALLOWED) + hKeyPcmciaProduct IfStr $(hKeyPcmciaProduct) == $(hKeyNull) Debug-Output $(ProductSoftwareName)": OpenRegKey failed to open: " $(PcmciaKeyName)"\"$(PcmciaManufacturer)"\"$(PcmciaProductName) CloseRegKey $(hKeyPcmciaManufacturer) CloseRegKey $(hKeyPcmciaDatabase) Goto fatalRegistry EndIf Endif ;;; ;;; Now write the values to the registry. ;;; Set NewValueList = {+ {DeviceType,$(NoTitle),$(!REG_VT_SZ),"NET"}, + {Driver,$(NoTitle),$(!REG_VT_SZ), $(ProductSoftwareName)}, + {InfFileName,$(NoTitle),$(!REG_VT_SZ),$(!UG_Filename)}, + {Option,$(NoTitle),$(!REG_VT_SZ),$(Option)}+ } Shell $(UtilityInf), AddValueList, $(hKeyPcmciaProduct), $(NewValueList) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(SWProductName)": Cannot run AddValueList: hKeyPcmciaProduct (Lucent)" CloseRegKey $(hKeyPcmciaProduct) CloseRegKey $(hKeyPcmciaManufacturer) CloseRegKey $(hKeyPcmciaDatabase) Goto ShellCodeError EndIf CloseRegKey $(hKeyPcmciaProduct) EndForListDo CloseRegKey $(hKeyPcmciaManufacturer) CloseRegKey $(hKeyPcmciaDatabase) ;;;;;;;;;;;; goto successful updateparameters =+ set IRQValue = *($(IRQValues), ~($(IRQList),$(IRQValueIndex))) set IoBaseAddrValue = *($(IoBaseAddrValues), ~($(IoBaseAddrList),$(IoBaseAddrIndex))) set ChannelValue = *($(ChannelValues), ~($(ChannelList),$(ChannelValueIndex))) set NetTypeValue = *($(NetTypeValues), ~($(NetTypeList),$(NetTypeValueIndex))) set RTSValue = *($(RTSValues), ~($(RTSList),$(RTSValueIndex))) set LLCTypeValue = *($(LLCTypeValues), ~($(LLCTypeList),$(LLCTypeValueIndex))) set NewValueList = {{InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+ {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IoBaseAddrValue)},+ {IoLength,$(NoTitle),$(!REG_VT_DWORD),64},+ {DefaultChannel,$(NoTitle),$(!REG_VT_DWORD),$(ChannelValue)},+ {NetworkTypeWLU,$(NoTitle),$(!REG_VT_DWORD),$(NetTypeValue)},+ {RTSThreshold,$(NoTitle),$(!REG_VT_DWORD),$(RTSValue)},+ {LLCType,$(NoTitle),$(!REG_VT_DWORD),$(LLCTypeValue)},+ {NetworkName,$(NoTitle),$(!REG_VT_SZ),$(ESSIDValue)}} Shell $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList) ifstr(i) $(!STF_GUI_UNATTENDED) == "YES" Shell $(UtilityInf),AddDefaultNetCardParameters,$(HardParameterKey) endif CloseRegKey $(HardParameterKey) goto successful bindingadapter =+ set Error = "Binding: Sorry, not yet implemented." goto fatal removeadapter = + ifstr(i) $(ProductKeyName) == $(!NTN_RegBase) Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), + $(ProductSoftwareName) ifint $($ShellCode) != $(!SHELL_CODE_OK) 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) goto ShellCodeError endif set RegistryErrorIndex = $($R0) ifstr(i) $(RegistryErrorIndex) != NO_ERROR goto fatalregistry endif endif goto end UpgradeSoftware = + OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct ifstr $(KeyProduct) != $(KeyNull) Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "ShellCode error" goto ShellCodeError endif set !UG_Filename = $($R0) install "Install-Update" ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS goto fatal endif SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)} SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)} CloseRegKey $(KeyProduct) else goto fatalregistry endif goto end successful = + EndWait FreeLibrary $(DllHandle) goto end abandon = + ForListDo $(OEM_ABANDON_OPTIONS) Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), + $(ProductSoftwareName), $($) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set RegistryErrorIndex = $($R0) ifstr(i) $(RegistryErrorIndex) != NO_ERROR goto fatalregistry endif EndForListDo ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), + $(ProductSoftwareName), FALSE ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set RegistryErrorIndex = $($R0) ifstr(i) $(RegistryErrorIndex) != 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 CommonStatus = STATUS_USERCANCEL Set Severity = STATUS goto nonfatalmsg nonfatal = + Set Severity = NONFATAL goto nonfatalmsg nonfatalmsg = + ifstr(i) $(Error) == "" Set Severity = NONFATAL Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL" ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set Error = $($R0) endif Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif ifstr(i) $($R1) == "OK" goto $(from) else goto "end" endif fatalregistry = + Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set Error = $($R0) goto fatal fatal = + ifstr(i) $(Error) == "" Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL" ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set Error = $($R0) endif Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error) 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) [Install-Option] set STF_VITAL = "" ifstr(i) $(AddCopy) == "YES" AddSectionFilesToCopyList Files-$(Option) $(SrcDir)$(SrcSubDir) $(!STF_WINDOWSSYSPATH)\drivers endif ifstr(i) $(DoCopy) == "YES" set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList endif Exit [Install-Hlp] set STF_VITAL = "" AddSectionFilesToCopyList Files-Hlp $(SrcDir)$(SrcSubDir) $(!STF_WINDOWSSYSPATH) set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList Exit [Install-Update] set STF_VITAL = "" set STF_OVERWRITE = "VERIFYSOURCEOLDER" AddSectionFilesToCopyList Files-Hlp $(SrcDir)$(SrcSubDir) $(!STF_WINDOWSSYSPATH) AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH) AddSectionFilesToCopyList Files-$(Option) $(SrcDir)$(SrcSubDir) $(!STF_WINDOWSSYSPATH)\drivers set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList exit [Source Media Descriptions] 1 = "ELSA AirLancer Driver Disk" [ProductType] STF_PRODUCT = Winnt STF_PLATFORM = I386 [Files-Inf] 1, oemsetup.inf, SIZE=99999, RENAME=$(!UG_Filename) [Files-AIRLANCER] 1, ELSAal2.sys, SIZE=9999 1, ELSAal2.DLL, SIZE=9999 [Files-Hlp] 1, ELSAal2.hlp, SIZE=9999 [LanguagesSupported] ENG [OptionsTextENG] AIRLANCER = "ELSA AirLancer MC-2 PCMCIA Wireless Network 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:" ProductSoftwareDescription = "ELSA AirLancer MC-2 PCMCIA Adapter" FunctionAIRLANCERTitle = "ELSA AirLancer MC-2 Network Adapter Setup" ProductHardwareAIRLANCERDescription = "ELSA AirLancer MC-2 PCMCIA Adapter" IRQList = ^(IRQChoices, 1) IRQValues = ^(IRQChoices, 2) IoBaseAddrList = ^(IoBaseAddrChoices, 1) IoBaseAddrValues = ^(IoBaseAddrChoices, 2) ChannelList = ^(ChannelChoices, 1) ChannelValues = ^(ChannelChoices, 2) NetTypeList = ^(NetTypeChoices, 1) NetTypeValues = ^(NetTypeChoices, 2) RTSList = ^(RTSChoices, 1) RTSValues = ^(RTSChoices, 2) LLCTypeList = ^(LLCTypeChoices, 1) LLCTypeValues = ^(LLCTypeChoices, 2) [DialogConstantsENG] Help = "&Help" Exit = "Cancel" OK = "OK" HelpContext = "" Continue = "Continue" Cancel = "Cancel" [FileDependentDlgENG] Label1 = "&IRQ Level:" Label2 = "I/O &Port Address:" DlgType = "RadioCombination" DlgTemplate = "WLA" Caption = $(Function$(Option)Title) Combo1List = $(IRQList) Combo1Out = $(IRQValue) Combo2List = $(IoBaseAddrList) Combo2Out = $(IoBaseAddrValue) Combo3List = $(ChannelList) Combo3Out = $(ChannelValue) Combo4List = $(NetTypeList) Combo4Out = $(NetTypeValue) Combo5List = $(RTSList) Combo5Out = $(RTSValue) Combo6List = $(LLCTypeList) Combo6Out = $(LLCTypeValue) ComboListItemsIn = {Combo1List, Combo2List, Combo3List, Combo4List, Combo5List, Combo6List} ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out, Combo4Out, Combo5Out, Combo6Out} EditTextLim = {32} EditTextIn = {$(ESSIDValue)} EditTextOut = {$(ESSIDValue)} EditFocusOn = "" CBOptionsGreyed = {} NotifyFields = {NO, NO} MinHelpId = 10 MaxHelpId = 1140 HelpContext = $(Help$(Option)Id) [IRQChoices] IRQ_1 = "3",3 IRQ_2 = "4",4 IRQ_3 = "5",5 IRQ_4 = "7",7 IRQ_5 = "9",9 IRQ_6 = "10",10 IRQ_7 = "11",11 IRQ_8 = "12",12 IRQ_9 = "14",14 IRQ_10 = "15",15 [IoBaseAddrChoices] IoBase_1 = "0x100",256 IoBase_2 = "0x140",320 IoBase_3 = "0x180",384 IoBase_4 = "0x1C0",448 IoBase_5 = "0x200",512 IoBase_6 = "0x240",576 IoBase_7 = "0x280",640 IoBase_8 = "0x2C0",704 IoBase_9 = "0x300",768 IoBase_10 = "0x340",832 IoBase_11 = "0x380",896 IoBase_12 = "0x3C0",960 IoBase_13 = "0x400",1024 IoBase_14 = "0x440",1088 IoBase_15 = "0x480",1152 IoBase_16 = "0x4C0",1216 IoBase_17 = "0x500",1280 IoBase_18 = "0x540",1344 IoBase_19 = "0x580",1408 IoBase_20 = "0x5C0",1472 IoBase_21 = "0x600",1536 [ChannelChoices] CH_1 = "Channel 1",1 CH_2 = "Channel 2",2 CH_3 = "Channel 3",3 CH_4 = "Channel 4",4 CH_5 = "Channel 5",5 CH_6 = "Channel 6",6 CH_7 = "Channel 7",7 CH_8 = "Channel 8",8 CH_9 = "Channel 9",9 CH_10 = "Channel 10",10 CH_11 = "Channel 11",11 CH_12 = "Channel 12",12 CH_13 = "Channel 13",13 [NetTypeChoices] NetT_0 = "Infrastructure",0 NetT_1 = "Ad hoc",1 [RTSChoices] RTS_0 = "50" ,50 RTS_1 = "100" ,100 RTS_2 = "150" ,150 RTS_3 = "200" ,200 RTS_4 = "250" ,250 RTS_5 = "300" ,300 RTS_6 = "350" ,350 RTS_7 = "400" ,400 RTS_8 = "450" ,450 RTS_9 = "500" ,500 RTS_10 = "550" ,550 RTS_11 = "600" ,600 RTS_12 = "650" ,650 RTS_13 = "700" ,700 RTS_14 = "750" ,750 RTS_15 = "800" ,800 RTS_16 = "850" ,850 RTS_17 = "900" ,900 RTS_18 = "950" ,950 RTS_19 = "1000",1000 RTS_20 = "1050",1050 RTS_21 = "1100",1100 RTS_22 = "1150",1150 RTS_23 = "1200",1200 RTS_24 = "1250",1250 RTS_25 = "1300",1300 RTS_26 = "1350",1350 RTS_27 = "1400",1400 RTS_28 = "1450",1450 RTS_29 = "1500",1500 RTS_30 = "1550",1550 RTS_31 = "1600",1600 [LLCTypeChoices] ;LLCT_0 = "Auto",0 LLCT_1 = "WaveLAN compatible",1 LLCT_2 = "IEEE 802.11",2Download 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.