;*********************************************************************** ; NDIS/WAN CAPI 2.0 Driver for WinNT Setup File. ; (c) 1998 AVM Berlin ;*********************************************************************** ; Ports: 1 [Identify] Set Identifier = NetAdapter Set Status = STATUS_SUCCESSFUL Set Media = #("Source Media Descriptions", 1, 1) Return $(Status) $(Identifier) $(Media) [Source Media Descriptions] 1 = "NDIS WAN Setup Disk #1" [ReturnOptions] ;Set !G:DebugOutputControl = 1 Debug-Output "########## avm NdisWan [ReturnOptions] ################" Set Status = STATUS_FAILED Set OptionList = {} Set OptionTextList = {} Set LanguageList = ^(LanguagesSupported, 1) IfContains(i) $($0) in $(LanguageList) GoTo CheckPlatforms EndIf Set Status = STATUS_NOLANGUAGE GoTo ExitReturnOptions CheckPlatforms = + IfStr(i) $($1) == "" GoTo SetOptions EndIf Set PlatformList = ^(PlatformsSupported, 1) IfContains(i) $($1) in $(PlatformList) GoTo SetOptions EndIf Set Status = STATUS_NOTSUPPORTED GoTo ExitReturnOptions SetOptions = + Set OptionList = ^(Options, 1) Set OptionTextList = ^(OptionsText$($0), 1) Set Status = STATUS_SUCCESSFUL GoTo ExitReturnOptions ExitReturnOptions = + Debug-Output "avmwan: End of ReturnOptions !!" Return $(Status) $(OptionList) $(OptionTextList) [InstallOption] ;Set !G:DebugOutputControl = 1 Debug-Output "############################ avm NdisWan #################################" Debug-Output "!STF_LANGUAGE is "$(!STF_LANGUAGE) Debug-Output "$($0) is "$($0) Set Status = STATUS_FAILED Set Option = $($1) Set SrcDir = $($2) Set AddCopy = $($3) Set DoCopy = $($4) Set DoConfig = $($5) Set LanguageList = ^(LanguagesSupported, 1) IfContains(i) $($0) NOT-IN $(LanguageList) Return STATUS_NOLANGUAGE EndIf Set OldDebugControl = $(!DebugOutputControl) Set-Subst LF = "\n" Read-Syms GeneralConstants Read-Syms DialogConstants$(!STF_LANGUAGE) IfStr(i) $(!NTN_Origination) == "NCPA" Set Continue = $(OK) EndIf Read-Syms FileConstants$(!STF_LANGUAGE) Detect Date Set-Title $(FunctionTitle)$(Option) Set CommonStatus = STATUS_SUCCESSFUL Set To = Begin Set From = Begin Begin = + Set WinNTVersionNumber = 0 OpenRegKey $(!REG_H_LOCAL) "" $(WinNTVersionKey) $(MAXIMUM_ALLOWED) WinNTVersionKey IfStr $(WinNTVersionKey) != "" GetRegValue $(WinNTVersionKey),"CurrentVersion", WinNTVersionInfo Debug-Output "WinNTVersionInfo = "$(WinNTVersionInfo) Debug-Output "WinNTVersionInfo[4] = "*($(WinNTVersionInfo),4) IfStr *($(WinNTVersionInfo),4) != "" Set WinNTVersionNumber = *($(WinNTVersionInfo),4) EndIf Endif CloseRegKey (WinNTVersionKey) IfStr(i) $(!NTN_InstallMode) == deinstall Set StartLabel = RemoveAdapter Else-IfStr(i) $(!NTN_InstallMode) == Update Set StartLabel = UpgradeSoftware Else-IfStr(i) $(!NTN_InstallMode) == bind Set StartLabel = BindingAdapter Else-IfStr(i) $(!NTN_InstallMode) == configure Set StartLabel = ConfigureAdapter Set CommonStatus = STATUS_REBOOT 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 GoTo $(StartLabel) InstallAdapter = + Debug-Output "avmwanInstallAdapter" IfInt $(WinNTVersionNumber) >= 4 Set ProductSoftwareDescription = $(ProductSoftwareDescriptionNT40) Set ProductHardwareCAPIWANDescription = $(ProductSoftwareDescriptionNT40) Endif OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct IfStr $(KeyProduct) != "" CloseRegKey $(KeyProduct) IfStr(i) !(NTN_RegBase) == $(ProductKeyName) Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+ $(ProductVersion) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf GoTo End Else Shell $(UtilityInf), CardExistedDlg IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf IfStr(i) $($R1) != "OK" Set CommonStatus = STATUS_USERCANCEL GoTo End EndIf Set OldVersionExisted = $(TRUE) EndIf EndIf Set CurrParamSettings = {} GoTo AdapterSetup ConfigureAdapter = + Debug-Output "avmwanConfigureAdapter" IfStr $(KeyProduct) == "" OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct IfStr $(KeyProduct) == "" Set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE GoTo FatalRegistry EndIf EndIf GetRegValue $(KeyProduct) "ServiceName" AdapterNameList IfStr *($(AdapterNameList),4) == "" GoTo FatalRegistry EndIf Set AvmnwAdapterKey = $(AvmnwAdapterKeyBegin)*($(AdapterNameList),4)"\Parameters" Debug-Output "AvmnwAdapterKey: "$(AvmnwAdapterKey) CloseRegKey $(KeyProduct) GoTo PropertiesUpdate PropertiesUpdate = + Debug-Output "avmnwPropertiesUpdate" LoadLibrary "" $(!STF_WINDOWSSYSPATH)\avmwanpe.dll PropertiesDLL LibraryProcedure Result $(PropertiesDLL) PropertiesDialog $(AvmnwAdapterKey) FreeLibrary $(PropertiesDLL) IfStr(i) $(!NTN_InstallMode) == configure GoTo End EndIf AdapterSetup = + Debug-Output "AdapterSetup" IfInt $(OldVersionExisted) == $(TRUE) IfStr(i) $(!NTN_InstallMode) == configure GoTo WriteParameters EndIf EndIf StartWait IfInt $(OldVersionExisted) == $(FALSE) IfStr(i) $(!NTN_InstallMode) == "install" IfStr(i) $(DoCopy) == "YES" Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError Else-IfStr(i) $($r0) == STATUS_FAILED Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL" IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf Set Error = $($R0) GoTo FatalError Else-IfStr(i) $($R0) == STATUS_USERCANCEL GoTo End EndIf Set SrcDir = $($R1) EndIf Install "Install-Option" IfStr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS Shell $(UtilityInf) registryErrorString "UNABLE_COPY_FILE" IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf Set Error = $($R0) GoTo FatalError EndIf EndIf Shell $(UtilityInf), AddSoftwareComponent, + $(Manufacturer), $(ProductSoftwareName), + $(ProductSoftwareName), $(ProductSoftwareTitle), + $(STF_CONTEXTINFNAME), $(ProductSoftwareImagePath), + "kernelautostart", "NDIS", + {}, "", $(NetEventDLL) Set OEM_ABANDON_SOFTWARE = TRUE IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) Set KeyProduct = $($R1) Set SoftNetRulesKey = $($R2) CloseRegKey $($R3) CloseRegKey $($R4) CloseRegKey $($R5) IfStr(i) $(RegistryErrorIndex) != NO_ERROR EndWait CloseRegKey $(KeyProduct) CloseRegKey $(SoftNetRulesKey) GoTo FatalRegistry EndIf Set NewValueList = { + {SoftwareType,0,$(!REG_VT_SZ), $(SoftwareType)}, + {MajorVersion,0,$(!REG_VT_DWORD), $(ProductMajorVersion)}, + {MinorVersion,0,$(!REG_VT_DWORD), $(ProductMinorVersion)}, + {Title, 0,$(!REG_VT_SZ), $(ProductSoftwareTitle)}, + {Description, 0,$(!REG_VT_SZ), $(ProductSoftwareDescription)}, + {ServiceName, 0,$(!REG_VT_SZ), $(ProductSoftwareName)}, + {InstallDate, 0,$(!REG_VT_DWORD), *($(Now),1)}} Shell $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) IfStr(i) $(RegistryErrorIndex) != NO_ERROR EndWait CloseRegKey $(KeyProduct) CloseRegKey $(SoftNetRulesKey) GoTo FatalRegistry EndIf Set NewValueList = { + {type, 0,$(!REG_VT_SZ), $(NetRuleSoftwareType)}, + {use, 0,$(!REG_VT_SZ), $(NetRuleSoftwareUse)}, + {bindform, 0,$(!REG_VT_SZ), $(NetRuleSoftwareBindForm)}, + {class, 0,$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, + {bindable, 0,$(!REG_VT_MULTI_SZ),$(Bindable$(Option)Txt)}, + {InfOption, 0,$(!REG_VT_SZ), $(Option)}} Shell $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) CloseRegKey $(KeyProduct) CloseRegKey $(SoftNetRulesKey) IfStr(i) $(RegistryErrorIndex) != NO_ERROR EndWait GoTo FatalRegistry EndIf EndIf Shell $(UtilityInf), AddHardwareComponent, + $(ProductHardwareName), $(STF_CONTEXTINFNAME), $(ProductKeyName) IfInt $($R4) != -1 Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVerion\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 KeyParameters = $($R3) Set KeyAdapterRules = $($R2) Set AdapterNumber = $($R4) Set DummyManufacturer = "Digiboard" Set NewValueList = { + {Manufacturer,0,$(!REG_VT_SZ), $(DummyManufacturer)}, + {Title, 0,$(!REG_VT_SZ), "["$(AdapterNumber)"] "$(ProductHardware$(Option)Title)}, + {Description, 0,$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+ {ProductName, 0,$(!REG_VT_SZ), $(ProductHardwareName)}, + {ServiceName, 0,$(!REG_VT_SZ), $($R5)}, + {InstallDate, 0,$(!REG_VT_DWORD), *($(Now),1)}} Shell $(UtilityInf), AddValueList, $($R1), $(NewValueList) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf CloseRegKey $($R1) Set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)"""" Set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm) Set NewValueList = { + {type, 0,$(!REG_VT_SZ), $(NetRuleHardware$(Option)Type)}, + {bindform, 0,$(!REG_VT_SZ), $(TempBindForm)}, + {class, 0,$(!REG_VT_MULTI_SZ),$(NetRuleHardware$(Option)Class)},+ {InfOption, 0,$(!REG_VT_SZ), $(Option)}} Shell $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) CloseRegKey $(KeyAdapterRules) IfStr(i) $(RegistryErrorIndex) != NO_ERROR EndWait CloseRegKey $(KeyParameters) GoTo FatalRegistry EndIf GoTo WriteParameters WriteParameters = + Debug-Output "avmwanWriteParameters" Set TapiAddressListL0 = $(AdapterNumber)" 1 0" Set TapiAddressListL1 = $(AdapterNumber)" 2 0" Set NewValueList = { + {AddressList0, 0,$(!REG_VT_SZ),$(TapiAddressListL0)}, + {AddressList1, 0,$(!REG_VT_SZ),$(TapiAddressListL1)}, + {MsnLine0, 0,$(!REG_VT_SZ),""}, + {MsnLine1, 0,$(!REG_VT_SZ),""}} Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList) CloseRegKey $(KeyParameters) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) IfStr(i) $(RegistryErrorIndex) != NO_ERROR GoTo FatalRegistry EndIf Set AvmnwAdapterKey = $(AvmnwAdapterKeyBegin)$(ProductHardwareName)$(AdapterNumber)"\Parameters" Debug-Output "AvmnwAdapterKey:"$(AvmnwAdapterKey) LoadLibrary "" $(SrcDir)\avmwanpe.dll PropertiesDLL LibraryProcedure Result $(PropertiesDLL) PropertiesDialog $(AvmnwAdapterKey) FreeLibrary $(PropertiesDLL) IfStr(i) $(!NTN_InstallMode) == configure GoTo End EndIf Set ECR_BaseKeyName = "HARDWARE\DEVICEMAP" WriteTapiDevices = + Debug-Output "avmwanWriteTapiDevices:"$(ECR_BaseKeyName) OpenRegKey $(!REG_H_LOCAL) "" $(ECR_BaseKeyName) $(MAXIMUM_ALLOWED) BaseKey Set ECR_Result = NO_ERROR Set ECR_NewPath = "Tapi Devices\CAPIWAN" OpenRegKey $(BaseKey) "" $(ECR_NewPath) $(MAXIMUM_ALLOWED) ECR_BaseKey IfStr $(ECR_BaseKey) != "" Set ECR_KeyHandle = $(ECR_BaseKey) GoTo ECR_End EndIf Set ECR_TmpPath = "" Split-String $(ECR_NewPath) "\" ECR_Plist ForListDo $(ECR_Plist) IfStr(i) $($) != "\" IfInt $(#) == 1 Set ECR_TmpPath = $($) Else Set ECR_TmpPath = $(ECR_TmpPath)"\"$($) EndIf OpenRegKey $(BaseKey) "" $(ECR_TmpPath) $(MAXIMUM_ALLOWED) ECR_BaseKey IfStr $(ECR_BaseKey) == "" CreateRegKey $(BaseKey) {$(ECR_TmpPath),0,GenericClass} "" $(MAXIMUM_ALLOWED) "" ECR_KeyHandle IfStr(i) $(ECR_KeyHandle) == "" Set ECR_Result = $($R0) GoTo ECR_End EndIf EndIf EndIf EndForListDo GoTo ECR_End ECR_End = + Debug-Output "avmwanECR_End" IfStr(i) $(ECR_Result) != NO_ERROR GoTo FatalRegistry EndIf Set TapiDeviceKey = $(ECR_KeyHandle) Set TapiAddressList = {$(TapiAddressListL0), $(TapiAddressListL1)} Set NewValueList = { + {Address, 0,$(!REG_VT_MULTI_SZ),$(TapiAddressList)},+ {"Media Type",0,$(!REG_VT_SZ), $(TapiMediaType)}} Shell $(UtilityInf), AddValueList, $(TapiDeviceKey), $(NewValueList) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) IfStr(i) $(RegistryErrorIndex) != NO_ERROR GoTo FatalRegistry EndIf CloseRegKey $(TapiDeviceKey) CloseRegKey $(BaseKey) IfStr(i) $(ECR_BaseKeyName) == "HARDWARE\DEVICEMAP" Set ECR_BaseKeyName = "SOFTWARE\Microsoft" GoTo WriteTapiDevices EndIf read-syms InvokeRasDlg$(!STF_LANGUAGE) Ifstr(i) $(!NTN_InstallMode) == configure goto skipRAS endif Shell "oemnsvra.inf" CheckRasInstalled ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "avmwan: Error Shelling the RAS INF file oemnsvra.inf" Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), + "STATUS", $(InvokeRasError) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif goto successful endif set RasInstalled = $($R0) Debug-Output "avmwan: Is RAS Installed? "$(RasInstalled) ifstr(i) $(RasInstalled) == FALSE Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", + $(InvokeRasSetupMsg) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto successful endif else Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", + $(InvokeRasConfigMsg) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto successful endif endif Ifstr(i) $(!STF_IDW) == TRUE set AddCopy = NO set DoCopy = NO set DoConfig = NO else set AddCopy = YES set DoCopy = YES set DoConfig = YES endif Debug-Output "avmwan: before - NTN_InstallMode = "$(!NTN_InstallMode) set SaveNTN_InstallMode = $(!NTN_InstallMode) ifstr(i) $(RasInstalled) == TRUE set !NTN_InstallMode = configure else set !NTN_InstallMode = install endif Debug-Output "avmwan: after - NTN_InstallMode = "$(!NTN_InstallMode) set SaveSTF_SRCDIR_OVERRIDE = $(!STF_SRCDIR_OVERRIDE) set !STF_SRCDIR_OVERRIDE = "" Debug-Output "avmwanInstallRas: Shelling to oemnsvra.inf InstallOption with parameters:" Debug-Output " STF_LANGUAGE = "$(!STF_LANGUAGE) Debug-Output " SrcDir = "$(SrcDir) Debug-Output " AddCopy = "$(AddCopy) Debug-Output " DoCopy = "$(DoCopy) Debug-Output " DoConfig = "$(DoConfig) Debug-Output " STF_SRCDIR = "$(!STF_SRCDIR) Shell "oemnsvra.inf" InstallOption $(!STF_LANGUAGE) "RAS" $(!STF_SRCDIR) $(AddCopy) $(DoCopy) $(DoConfig) Debug-Output "avmwanInstallRas: Ready !!!!" set !NTN_InstallMode = $(SaveNTN_InstallMode) set !STF_SRCDIR_OVERRIDE = $(SaveSTF_SRCDIR_OVERRIDE) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "avmwan: Error Shelling the RAS INF file oemnsvra.inf" Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", + $(InvokeRasError) IfInt $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError EndIf goto successful EndIf IfStr(i) $(!NTN_InstallMode) == "install" IfInt $(WinNTVersionNumber) < 4 GoTo skipRAS EndIf set iSearch = 1 nextnci = + Shell $(UtilityInf), FindNextNetworkCard, $(ProductHardwareName), $(iSearch) set KeyNetcard = $($R0) set iSearch = $($R1) Debug-Output "OemNadEp.Inf: FindNextNetworkCard "$(KeyNetcard)","$(iSearch) Ifstr $(KeyNetcard) != $(KeyNull) Debug-Output "OemNadEp.Inf: Setting OperationsSupport value" SetRegValue $(KeyNetcard) {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)} CloseRegKey $(KeyNetcard) goto nextnci Endif EndIf IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "avmwan: Error Shelling the RAS INF file oemnsvra.inf" Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", + $(InvokeRasError) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif goto successful Endif skipRAS = + EndWait Set BaseKey = $(ProSerName)"Ras"$(KDriverST) OpenRegKey $(!REG_H_LOCAL) "" $(BaseKey) $(MAXIMUM_ALLOWED) WichtigInfKey IfStr $(WichtigInfKey) != "" SetRegValue $(WichtigInfKey) {"Start","",$(!REG_VT_DWORD),$(ProductOpMinimum)} CloseRegKey $(WichtigInfKey) EndIf GoTo End RASMessagesForWinNT351 = + Read-Syms InvokeRas351Dlg$(!STF_LANGUAGE) Shell $(RasInf) CheckRasInstalled IfInt $($ShellCode) != $(!SHELL_CODE_OK) Shell $(SubRoutineInf) SetupMessage, $(!STF_LANGUAGE), + "STATUS", $(InvokeRasError) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf GoTo End EndIf Set RasInstalled = $($R0) IfStr(i) $(RasInstalled) == FALSE Shell $(SubRoutineInf) SetupMessage, $(!STF_LANGUAGE), + "STATUS", $(InvokeRasSetupMsg) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo End EndIf Else Shell $(SubRoutineInf) SetupMessage, $(!STF_LANGUAGE), + "STATUS", $(InvokeRasConfigMsg) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo End EndIf EndIf EndWait GoTo End UpgradeSoftware = + IfStr(i) $(ProductKeyName) == $(!NTN_RegBase) OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct IfStr $(KeyProduct) != "" GetRegValue $(KeyProduct),"MajorVersion", VersionInfo Set Version = *($(VersionInfo),4) Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf Set !UG_Filename = $($R0) IfStr(i) $(!UG_Filename) != "" install "Install-Update" IfStr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS GoTo FatalError EndIf EndIf SetRegValue $(KeyProduct) {MajorVersion,"",$(REG_VT_SZ),$(ProductMajorVersion)} SetRegValue $(KeyProduct) {MinorVersion,"",$(REG_VT_SZ),$(ProductMinorVersion)} CloseRegKey $(KeyProduct) Else GoTo FatalRegistry EndIf Else OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) NetworkCardKey IfStr(i) $(NetworkCardKey) != "" GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo Set ServiceName = *($(ServiceNameInfo), 4) OpenRegKey $(NetworkCardKey) "" "NetRules" $(MAXIMUM_ALLOWED) NetRuleKey IfStr(i) $(NetRuleKey) != "" Else GoTo FatalRegistry EndIf CloseRegKey $(NetRules) CloseRegKey $(NetworkCardKey) Else GoTo FatalRegistry EndIf OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ServiceName) $(MAXIMUM_ALLOWED) ServiceKey IfStr(i) $(ServiceKey) != "" CloseRegKey $(ServiceKey) Else GoTo FatalRegistry EndIf EndIf GoTo End 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 Set TapiDKeyName = "HARDWARE\DEVICEMAP\Tapi Devices" DeleteTapiDevices = + OpenRegKey $(!REG_H_LOCAL) "" $(TapiDKeyName) $(MAXIMUM_ALLOWED) TapiDKey IfStr(i) $(TapiDKey) != "" DeleteRegKey $(TapiDKey) "CAPIWAN" CloseRegKey $(TapiDKey) EndIf IfStr(i) $(TapiDKeyName) == "HARDWARE\DEVICEMAP\Tapi Devices" Set TapiDKeyName = "SOFTWARE\Microsoft\Tapi Devices" GoTo DeleteTapiDevices EndIf GoTo End BindingAdapter = + Set Error = "Binding: Sorry, not implemented." GoTo FatalError 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 NonFatalInfo = + Set Severity = STATUS Set CommonStatus = STATUS_USERCANCEL IfStr(i) $(Error) == "" Set Severity = NONFATAL Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL" IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf Set Error = $($R0) EndIf Shell $(SubRoutineInf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf IfStr(i) $($R1) == "OK" GoTo $(From) EndIf GoTo End FatalRegistry = + Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIF Set Error = $($R0) GoTo FatalError FatalError = + IfStr(i) $(Error) == "" Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL" IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf Set Error = $($R0) EndIf Shell $(SubRoutineInf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf GoTo SetFailed ShellCodeError = + Set DlgType = "MessageBox" Set STF_MB_TITLE = $(ShellCodeErrorTitle) Set STF_MB_TEXT = $(ShellCodeErrorText) Set STF_MB_TYPE = 1 Set STF_MB_ICON = 3 Set STF_MB_DEF = 1 UI Start "Error Message" GoTo SetFailed SetFailed = + Set CommonStatus = STATUS_FAILED IfStr(i) $(OEM_ABANDON_ON) == TRUE Set OEM_ABANDON_ON = FALSE GoTo Abandon EndIf GoTo End End = + Set !DebugOutputControl = $(OldDebugControl) Return $(CommonStatus) [PlatformsSupported] ISA EISA "Jazz-Internal Bus" [Options] CAPIWAN [LanguagesSupported] ENG [Date] Now = {} ? $(!LIBHANDLE) GetSystemDate [GeneralConstants] ExitCodeOk = 0 ExitCodeCancel = 1 ExitCodeFatal = 2 RegistryErrorIndex = NO_ERROR KeyProduct = "" KeyParameters = "" TRUE = 1 FALSE = 0 NoTitle = 0 MAXIMUM_ALLOWED = 33554432 InfName = "OEMSETNT.INF" UtilityInf = "UTILITY.INF" SubRoutineInf = "SUBROUTN.INF" RasInf = "OEMNSVRA.INF" SoftwareType = "driver" Manufacturer = "AVM Berlin" ProductMajorVersion = "1" ProductMinorVersion = "0" ProductOpSupport = 134 ProductOpMinimum = 4 ProductSoftwareName = "CAPIWAN" ProductSoftwareImagePath = "\SystemRoot\System32\drivers\AVMWAN.SYS" NetRuleSoftwareType = "CAPIWANSys CAPIWANDriver" NetRuleSoftwareUse = $(SoftwareType) NetRuleSoftwareBindForm = """CAPIWANSys"" yes no container" NetRuleSoftwareClass = {"CAPIWANDriver basic"} ProductHardwareName = "CAPIWAN" Msn = "" NetRuleHardwareBindForm = " yes yes container" NetRuleHardwareCAPIWANType = "CAPIWAN CAPIWANAdapter" NetRuleHardwareCAPIWANClass = {"CAPIWANAdapter basic"} KDriverST = "Auto" BindableCAPIWANTxt = {"CAPIWANDriver CAPIWANAdapter non exclusive 100"} TapiMediaType = "ISDN" ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"+ $(ProductSoftwareName)"\CurrentVersion" WinNTVersionKey = $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion" ProSerName = "SYSTEM\CurrentControlSet\Services\" AvmnwAdapterKeyBegin = "SYSTEM\CurrentControlSet\Services\" [Files-SYS] 1, AVMWAN.SYS, SIZE=39680 [Files-DLL] 1, AVMWANPE.DLL, SIZE=22528 [Files-HLP] 1, NDIS_NTe.hlp, SIZE=117808 [Install-Option] Set STF_VITAL = "" IfStr(i) $(AddCopy) == "YES" AddSectionFilesToCopyList Files-SYS $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers AddSectionFilesToCopyList Files-DLL $(SrcDir) $(!STF_WINDOWSSYSPATH) IfInt $(WinNTVersionNumber) >= 4 AddSectionFilesToCopyList Files-HLP $(SrcDir) $(!STF_WINDOWSPATH)"\Profiles\All Users\Desktop" EndIf 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-SYS $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers AddSectionFilesToCopyList Files-DLL $(SrcDir) $(!STF_WINDOWSSYSPATH) IfInt $(WinNTVersionNumber) >= 4 AddSectionFilesToCopyList Files-HLP $(SrcDir) $(!STF_WINDOWSPATH)"\Profiles\All Users\Desktop" EndIf Set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList Exit [OptionsTextENG] CAPIWAN = "NDIS WAN CAPI Driver for Windows NT" [DialogConstantsENG] Help = "&Help" Exit = "Cancel" OK = "OK" HelpContext = "" Continue = "Continue" Cancel = "Cancel" [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 = "NDIS WAN CAPI 2.0 Driver" ProductSoftwareDescriptionNT40 = "The NDIS WAN CAPI Driver registers to the COMMON-ISDN-API (CAPI 2.0). It features fast access to the Internet and online services." ProductSoftwareTitle = "NDIS WAN CAPI Driver" ProductHardwareCAPIWANDescription= $(ProductSoftwareDescription) ProductHardwareCAPIWANTitle = $(ProductSoftwareTitle) [InvokeRasDlgENG] InvokeRasSetupMsg = "NDIS WAN CAPI Driver Setup is complete. Remote "+ "Access Services (RAS) will now be installed! Please "+ "configure the ISDN ports in RAS setup to enable you "+ "to use RAS over ISDN. " InvokeRasConfigMsg= "NDIS WAN CAPI Driver Setup is complete. Remote "+ "Access Services (RAS) setup will now be invoked. "+ "Please configure the ISDN ports in RAS setup to "+ "enable you to use RAS over ISDN. " InvokeRasError = "NDIS WAN CAPI Driver Setup encountered an error "+ "while invoking the RAS Setup INF file (OEMNSVRA.INF). "+ "Please make sure that the file is present in the "+ "System32-Directory and is the proper file. "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.