;***********************************************************************
; Xpeed Inc. X400 PPP ADSL Modem WindowsNT Setup File.
;***********************************************************************
[Identification]
OptionType = NetAdapter
;***********************************************************************
;
;***********************************************************************
[PlatformsSupported]
PCI
;***********************************************************************
;
;***********************************************************************
[Options]
X400PPP
;***********************************************************************
;
;***********************************************************************
[LinkProtocolChoicesX400PPP]
LinkProtocol_0 = "LLC Encapsulation", 0
LinkProtocol_1 = "VC Multiplexed", 1
;***********************************************************************
;
;***********************************************************************
[AdslModeChoicesX400PPP]
AdslMode_0 = "T1.413 Issue2", 1
AdslMode_1 = "G.Dmt", 2
AdslMode_2 = "G.Lite", 8
;***********************************************************************
;
;***********************************************************************
[FileConstants]
;-----------------------------------------------------------------------
; SERVICE PROVIDER SPECIFIC
;-----------------------------------------------------------------------
;Name of Shortcut
DIALER_SHORTCUT_NAME = "XpConnect"
; Name of the shortcut on the desktop
LANGUAGE = 1 ; 1 = English
2 = Korean
AdslModeValue = 1 ; 1 = T1.413 issue 2
; 2 = G.Dmt
; 8 = G.Lite
VPI = 0 ; decimal value
VCI = 35 ; decimal value
LinkProtocolValue = 1 ; 0 = LLC SNAP HEADER ENCAPSULATION
; 1 = VC MULTIPLEXED HEADER ENCAPS
LinkDownTimer = 0 ; Timeout value in seconds before the PPP session is disconnected
GUI_FEATURE = "0" ; string value
; 0 = NO OPTIONS
; 1 = MODIFY VC
; 2 = ALLOW_RETRAIN
; 3 = AUTODIAL
; 4 = MODIFY VC, ALLOW RETRAIN
; 5 = AUTODIAL, MODIFY VC, ALLOW RETRAIN
IP_HDR_COMPRESSION = "0" ; BOOLEAN VALUE
SW_HDR_COMPRESSION = "0" ; BOOLEAN VALUE
PASSWORD_ENCRYPTED = "0" ; BOOLEAN VALUE
;-----------------------------------------------------------------------
; END OF SERVICE PROVIDER SPECIFIC
;-----------------------------------------------------------------------
InfName = "OEMX400P.INF"
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 = "Xpeed Inc"
ProductMajorVersion = "1"
ProductMinorVersion = "07"
ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
ProductSoftwareName = "X400PPP"
ProductSoftwareImagePath = "\SystemRoot\System32\drivers\X400PPP.sys"
NetRuleSoftwareType = "X400PPPSys X400PPPDriver"
NetRuleSoftwareUse = $(SoftwareType)
NetRuleSoftwareBindForm = """X400PPPSys"" yes no container"
NetRuleSoftwareClass = {"X400PPPDriver basic"}
NetRuleSoftwareBindable = {"X400PPPDriver X400PPPAdapter non exclusive 100"}
ProductHardwareName = "X400PPP"
NetRuleHardwareBindForm = " yes yes container"
NetRuleHardwareX400PPPType = "X400PPP X400PPPAdapter"
NetRuleHardwareX400PPPClass = {"X400PPPAdapter basic"}
BindableX400PPPTxt = {"X400PPPDriver X400PPPAdapter non exclusive 100"}
DeviceMap = "HARDWARE\DEVICEMAP"
TapiDevices = "TAPI DEVICES"
TapiDeviceKey = $(ProductHardwareName)
TapiMediaType = "ADSL"
ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"+
$(ProductSoftwareName)"\CurrentVersion"
ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductHardwareName)+
"\Parameters"
TCPIPKeyName = $(!NTN_ServiceBase)"\TCPIP"
TrayIconExe = "XPDIAG.EXE"
RasSetupExe = "XPRASSETUP.EXE"
RasShortcut = "XPRASSETUP.EXE -sInit"
DesktopLnkName = $(DIALER_SHORTCUT_NAME)".lnk"
; FIXME - default to dialup line mode = 1 -- leased line = 0
; In dialup mode we need to write the parameters so RAS/TAPI will bind to us
; In leased mode we need to write the parameters so NDIS/WAN will bind to us
; Right now this file only supports dialup mode - leased line changes are needed
LineType = 1
; FIXME - Set to 3 (notices and warnings) before release
DbgFlags = 0
Framing = 2147483904
OsVersion = 100
DefaultVpiBert = 0 ;;;Alan add
DefaultVciBert = 21 ;;;Alan add
DefaultQoS ="0"
DefaultPCR ="1811"
DefaultSCR ="905"
DefaultMBS ="448"
DefaultAVR ="905"
DefaultMinRate ="1358"
DefaultAtuC_VendorID ="0"
DefaultIncTxPower ="0"
DefaultBoardConf ="1"
;***********************************************************************
;
;***********************************************************************
[GeneralConstants]
from = ""
to = ""
ExitCodeOk = 0
ExitCodeCancel = 1
ExitCodeFatal = 2
KeyNull = ""
MAXIMUM_ALLOWED = 33554432
RegistryErrorIndex = NO_ERROR
KeyProduct = ""
KeyParameters = ""
TRUE = 1
FALSE = 0
NoTitle = 0
ExitState = "Active"
OldVersionExisted = $(FALSE)
DriverPath = $(!STF_NTPATH)\drivers
DialogDllName = "xpppp.dll"
;***********************************************************************
;
;***********************************************************************
[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 SetOptions
EndIf
Set PlatformList = ^(PlatformsSupported, 1)
IfContains(i) $($1) in $(PlatformList)
GoTo SetOptions
Else
Set Status = STATUS_NOTSUPPORTED
GoTo ExitReturnOptions
EndIf
Else
Set Status = STATUS_NOLANGUAGE
GoTo ExitReturnOptions
EndIf
SetOptions = +
Set OptionList = ^(Options, 1)
Set OptionTextList = ^(OptionsText$($0), 1)
Set Status = STATUS_SUCCESSFUL
ExitReturnOptions = +
Return $(Status) $(OptionList) $(OptionTextList)
;***********************************************************************
;
;***********************************************************************
[InstallOption]
Set Status = STATUS_FAILED
Set Option = $($1)
Set SrcDir = $($2)
Set RasDir = $(!STF_NTPATH)
Set AddCopy = $($3)
Set DoCopy = $($4)
Set DoConfig = $($5)
Set LanguageList = ^(LanguagesSupported, 1)
IfContains(i) $($0) NOT-IN $(LanguageList)
Return STATUS_NOLANGUAGE
EndIf
Set !DebugOutputControl = 1
Set-Subst LF = "\n"
Read-Syms GeneralConstants
Read-Syms FileConstants
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 to = Begin
Set from = Begin
Set CommonStatus = STATUS_SUCCESSFUL
EndWait
Debug-Output $(InfName)": Option = "$(Option)
Debug-Output $(InfName)": ScrDir = "$(ScrDir)
Debug-Output $(InfName)": AddCopy = "$(AddCopy)
Debug-Output $(InfName)": DoCopy = "$(DoCopy)
Debug-Output $(InfName)": DoConfig = "$(DoConfig)
;***********************************************************************
;
;***********************************************************************
Begin = +
Set ActivateDetection = FALSE
IfStr(i) $(!NTN_InstallMode) == deinstall
Set StartLabel = RemoveAdapter
Debug-Output $(InfName)": StartLabel = RemoveAdapter."
Else-IfStr(i) $(!NTN_InstallMode) == Update
Set StartLabel = UpgradeSoftware
Debug-Output $(InfName)": StartLabel = UpgradeSoftware."
Else-IfStr(i) $(!NTN_InstallMode) == bind
Set StartLabel = BindingAdapter
Debug-Output $(InfName)": StartLabel = BindingAdapter."
Else-IfStr(i) $(!NTN_InstallMode) == configure
Set StartLabel = ConfigureAdapter
Debug-Output $(InfName)": StartLabel = ConfigureAdapter."
Set ActivateDetection = TRUE
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 )
Set from = end
Set to = end
GoTo NonFatalInfo
EndIf
Else
Set StartLabel = InstallAdapter
Debug-Output $(InfName)": StartLabel = InstallAdapter."
Set ActivateDetection = TRUE
Set OEM_ABANDON_OPTIONS = {}
Set OEM_ABANDON_SOFTWARE = FALSE
Set OEM_ABANDON_ON = TRUE
EndIf
Debug-Output $(InfName)": ================================================"
Debug-Output $(InfName)": STF_CWDIR is: "$(!STF_CWDIR)
Debug-Output $(InfName)": STF_LANGUAGE is: "$(!STF_LANGUAGE)
Debug-Output $(InfName)": Option is: "$(Option)
Debug-Output $(InfName)": !STF_NCDETECT is: "$(!STF_NCDETECT)
Debug-Output $(InfName)": !STF_NCOPTION is: "$(!STF_NCOPTION)
Debug-Output $(InfName)": !STF_NCDETCARD is: "$(!STF_NCDETCARD)
Debug-Output $(InfName)": !STF_NCDETINFO is: "$(!STF_NCDETINFO)
Debug-Output $(InfName)": ================================================"
Set DetectedCard = FALSE
IfStr(i) $(ActivateDetection) != TRUE
GoTo $(StartLabel)
EndIf
Debug-Output $(InfName)": Calling Param_SetDefaults"
Shell $(ParamInf) Param_SetDefaults {}
IfStr(i) $(!STF_NCDETECT) == YES
IfStr(i) $(!STF_NCOPTION) == $(Option)
Set DetectedCard = TRUE
EndIf
EndIf
Set from = FatalError
Set to = FatalError
GoTo $(StartLabel)
;***********************************************************************
;
;***********************************************************************
InstallAdapter = +
Debug-Output $(InfName)": Entering InstallAdapter"
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
IfStr $(KeyProduct) != $(KeyNull)
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 Vendor = 5233
set CFID = 392
shell $(UtilityInf),GetPCIInformation, $(Vendor) $(CFID)
ifint $($ShellCode) != $(!Shell_CODE_OK)
Debug-Output $(InfName)":ShellCode error"
GoTo ShellCodeError
endif
ifstr(i) $($R0) == {}
Debug-Output $(InfName)": Can not find the Adapter"
Set Error = $(CANNOT_FIND_ANY_CARD)
Set from = end
GoTo NonFatalInfo
endif
; set LinkProtocolIndex = 0
; set LinkProtocolValue = *($(LinkProtocolList), ~($(LinkProtocolValues),$(LinkProtocolIndex)))
; ifstr(i) $(LinkProtocolValue) == ""
; set LinkProtocolValue = *($(LinkProtocolList), 0)
; endif
Goto AdapterOptions
Set CurrParamSettings = {}
IfStr(i) $(DetectedCard) != TRUE
GoTo AdapterSetup
EndIf
StartWait
Shell $(ParamInf) Param_QueryCard $(!STF_NCDETCARD)
EndWait
IfStr(i) $($R0) != STATUS_SUCCESSFUL
GoTo AdapterSetup
EndIf
Set DetectedParams = $($R1)
Shell $(ParamInf) Param_SetDefaults $(DetectedParams)
GoTo AdapterSetup
;***********************************************************************
; Configuration: read the registry
;***********************************************************************
ConfigureAdapter = +
Debug-Output $(InfName)": Entering ConfigureAdapter"
Debug-Output $(InfName)": Configure Adapter "$(!NTN_RegBase)
IfStr $(KeyProduct) == $(KeyNull)
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
IfStr $(KeyProduct) == $(KeyNull)
Set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
Debug-Output $(InfName)": Cannot find component product key"
GoTo FatalRegistry
EndIf
EndIf
Debug-Output $(InfName)": Shelling to FindService"
Shell $(UtilityInf) FindService, $(KeyProduct)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": FindService shell failure"
GoTo ShellCodeError
EndIf
IfStr(i) $($R0) != NO_ERROR
Debug-Output $(InfName)": FindService Shell error: "$($R0)
GoTo FatalRegistry
EndIf
Set KeyParameters = $($R2)
CloseRegKey $($R1)
IfStr $(KeyParameters) == $(KeyNull)
Set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
Debug-Output $(InfName)": Cannot find component service"
GoTo FatalRegistry
EndIf
Set OldVersionExisted = $(TRUE)
Debug-Output $(InfName)": Refreshing Dialog parameters"
Debug-Output $(InfName)": AdapterNumber set to "$(AdapterNumber)
Set ValueName = ""
Set ValueData = ""
Set ValueStr = ""
Set ValueList = {}
EnumRegValue $(KeyParameters) ValueList
ForListDo $(ValueList)
set ValueItem = $($)
set ValueName = *($(ValueItem),1)
set ValueData = *($(ValueItem),4)
Ifstr(i) $(ValueName) == "LinkProtocol"
set LinkProtocolIndex = $(ValueData)
else-ifstr(i) $(ValueName) == "modemOpMode"
set AdslModeIndex = $(ValueData)
else-ifstr(i) $(ValueName) == "VPI"
set VPI = $(ValueData)
else-ifstr(i) $(ValueName) == "VCI"
set VCI = $(ValueData)
endif
EndForListDo
set LinkProtocolValue = *($(LinkProtocolList), ~($(LinkProtocolValues),$(LinkProtocolIndex)))
ifstr(i) $(LinkProtocolValue) == ""
set LinkProtocolValue = *($(LinkProtocolList), 2)
endif
set AdslModeValue = *($(AdslModeList), ~($(AdslModeValues),$(AdslModeIndex)))
ifstr(i) $(AdslModeValue) == ""
set AdslModeValue = *($(AdslModeList), 0)
endif
Shell $(ParamInf) Param_SaveValues
Set CurrParamSettings = $($R0)
restart =+
Debug-Output $(InfName)": Displaying dialog in configureadapter."
LoadLibrary "x" $(DialogDllName) hLib
read-syms FileDependentDlg$(!STF_LANGUAGE)
ui start "InputDlg" $(hLib)
FreeLibrary $(hLib)
ifstr(i) $(DLGEVENT) == "CONTINUE"
set LinkProtocolIndex = $(Combo1Out)
set AdslModeIndex = $(Combo2Out)
set VPI = *($(EditTextOut),1)
set VCI = *($(EditTextOut),2)
set AdslModeIndex = $(Combo2Out)
ui pop 1
else-ifstr(i) $(DLGEVENT) == "BACK"
set CommonStatus = STATUS_USERCANCEL
ui pop 1
goto end
else
set CommonStatus = STATUS_USERCANCEL
ui pop 1
goto end
endif
ifint $(VPI) > 256
shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) NONFATAL "VPI value must be between 0 and 256."
goto restart
endif
ifint $(VPI) < 0
shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) NONFATAL "VPI value must be between 0 and 256."
goto restart
endif
ifint $(VCI) < 0
shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) NONFATAL "VCI value must be between 0 and 65535."
goto restart
endif
ifint $(VCI) > 65535
shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) NONFATAL "VCI value must be between 0 and 65535."
goto restart
endif
set LinkProtocolValue = *($(LinkProtocolValues), ~($(LinkProtocolList),$(LinkProtocolIndex)))
set AdslModeValue = *($(AdslModeValues), ~($(AdslModeList),$(AdslModeIndex)))
ifstr(i) $(!NTN_InstallMode) == configure
goto updateparameters
endif
;***********************************************************************
;
;***********************************************************************
AdapterSetup = +
Debug-Output $(InfName)": Entering AdapterSetup"
Shell "" DebugConfiguration "before displaying dialog"
Set from = AdapterOptions
Shell $(ParamInf) Param_ParameterConfidence
IfStr(i) $($R0) != STATUS_SUCCESSFUL
GoTo AdapterOptions
EndIf
IfStr(i) $(DetectedCard) == TRUE
IfStr(i) $(!STF_INSTALL_MODE) != CUSTOM
Debug-Output $(InfName)": Go to AdapterOptions"
GoTo AdapterOptions
EndIf
EndIf
;***********************************************************************
;
;***********************************************************************
AdapterOptions =+
Debug-Output $(InfName)": Entering AdapterOptions"
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 SuccessfulOption
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)
Debug-Output $(InfName)": ShellCode error"
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
Set KeyProduct = $($R1)
Set SoftNetRulesKey = $($R2)
CloseRegKey $($R3)
CloseRegKey $($R4)
CloseRegKey $($R5)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output $(InfName)": Registry error: add software components"
CloseRegKey $(KeyProduct)
CloseRegKey $(SoftNetRulesKey)
GoTo FatalRegistry
EndIf
Set NewValueList = {+
{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
{MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
{MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
{Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output $(InfName)": 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),$(Bindable$(Option)Txt)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Shell $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
CloseRegKey $(KeyProduct)
CloseRegKey $(SoftNetRulesKey)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output $(InfName)": Resgitry error: add value list."
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\CurrentVersion\NetworkCards\"$($R4))
EndIf
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": Cannot add hardware component"
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output $(InfName)": Registry error: add hardware component"
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
GoTo FatalRegistry
EndIf
Set KeyParameters = $($R3)
Set KeyAdapterRules = $($R2)
Set AdapterNumber = $($R4)
Debug-Output $(InfName)": AdapterNumber set to "$(AdapterNumber)
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, $($R1), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error"
GoTo ShellCodeError
EndIf
CloseRegKey $($R1)
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, $(KeyAdapterRules), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output $(InfName)": Resgitry error: add value list."
CloseRegKey $(KeyParameters)
CloseRegKey $(KeyAdapterRules)
GoTo FatalRegistry
EndIf
CloseRegKey $(KeyAdapterRules)
GoTo WriteParameters
;***********************************************************************
;
;***********************************************************************
WriteParameters = +
Debug-Output $(InfName)": Entering WriteParameters"
Debug-Output $(InfName)": AdapterNumber = "$(AdapterNumber)
IfStr(i) $(!NTN_InstallMode) == install
Set TapiAddressList = {$(AdapterNumber)" 1 0"}
Else
Debug-Output $(InfName)": TapiAddressList = "$(TapiAddressList)
EndIf
; set LinkProtocolIndex = 0
; read-syms FileDependentDlg$(!STF_LANGUAGE)
; ui start "InputDlg"
; ifstr(i) $(DLGEVENT) == "CONTINUE"
; set LinkProtocolIndex = $(Combo1Out)
; set VPIVCI = *($(EditTextOut),1)
; ui pop 1
; else-ifstr(i) $(DLGEVENT) == "BACK"
; set CommonStatus = STATUS_USERCANCEL
; ui pop 1
; goto end
; else
; ui pop 1
; goto setfailed
; endif
; set LinkProtocolValue = *($(LinkProtocolValues), ~($(LinkProtocolList),$(LinkProtocolIndex)))
Set BusType = 5
Set NewValueList = {+
{AddressList,$(NoTitle),$(!REG_VT_MULTI_SZ),$(TapiAddressList)},+
{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
{BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusType)},+
{DeviceName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
{LineType,$(NoTitle),$(!REG_VT_DWORD),$(LineType)},+
{MediaType,$(NoTitle),$(!REG_VT_SZ),$(TapiMediaType)},+
{DbgFlags,$(NoTitle),$(!REG_VT_DWORD),$(DbgFlags)},+
{AdapterType,$(NoTitle),$(!REG_VT_DWORD),$(AdapterType)},+
{SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNumber)},+
{FunctionNumber,$(NoTitle),$(!REG_VT_DWORD),$(FunctionNumber)},+
{Framing,$(NoTitle),$(!REG_VT_DWORD),$(Framing)},+
{OsVersion,$(NoTitle),$(!REG_VT_DWORD),$(OsVersion)},+
{LinkProtocol,$(NoTitle),$(!REG_VT_DWORD),$(LinkProtocolValue)},+
{modemOpMode,$(NoTitle),$(!REG_VT_DWORD),$(AdslModeValue)},+
{Vpi_Bert,$(NoTitle),$(!REG_VT_DWORD),$(DefaultVpiBert)},+
{Vci_Bert,$(NoTitle),$(!REG_VT_DWORD),$(DefaultVciBert)},+
{QoS,$(NoTitle),$(!REG_VT_DWORD),$(DefaultQoS)},+
{PCR,$(NoTitle),$(!REG_VT_DWORD),$(DefaultPCR)},+
{SCR,$(NoTitle),$(!REG_VT_DWORD),$(DefaultSCR)},+
{MBS,$(NoTitle),$(!REG_VT_DWORD),$(DefaultMBS)},+
{AVR,$(NoTitle),$(!REG_VT_DWORD),$(DefaultAVR)},+
{MinRate,$(NoTitle),$(!REG_VT_DWORD),$(DefaultMinRate)},+
{BoardConf,$(NoTitle),$(!REG_VT_DWORD),$(DefaultBoardConf)},+
{IncTxPower,$(NoTitle),$(!REG_VT_DWORD),$(DefaultIncTxPower)},+
{AtuC_VendorID,$(NoTitle),$(!REG_VT_DWORD),$(DefaultAtuC_VendorID)},+
{Language,$(NoTitle),$(!REG_VT_DWORD),$(LANGUAGE)},+
{SynchTimeout,$(NoTitle),$(!REG_VT_DWORD),$(LinkDownTimer)},+
{VPI,$(NoTitle),$(!REG_VT_DWORD),$(VPI)},+
{VCI,$(NoTitle),$(!REG_VT_DWORD),$(VCI)}+
}
Debug-Output $(InfName)": Writing parameters to the registry"
Debug-Output $(InfName)": LinkProtocol = "$(LinkProtocolValue)
Debug-Output $(InfName)": AdslMode = "$(AdslModeValue)
Debug-Output $(InfName)": VPI = "$(VPI)
Debug-Output $(InfName)": VCI = "$(VCI)
Debug-Output $(InfName)": TapiAddressList = "$(TapiAddressList)
Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
CloseRegKey $(KeyParameters)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Output $(InfName)": Registry error: Add value list"
GoTo FatalRegistry
EndIf
IfStr(i) $(!NTN_InstallMode) == configure
Debug-Output $(InfName)": Configuration is done"
GoTo SuccessfulOption
EndIf
; Add Tcpip parameters TcpWidnowSize
OpenRegKey $(!REG_H_LOCAL) "" $(TCPIPKeyName)"\Parameters" $(MAXIMUM_ALLOWED) KeyTcpipSoft
ifstr(i) $(KeyTcpipSoft) != ""
set TcpWindowSizeValue = 17520
set NewValueList = {TcpWindowSize,$(NoTitle),$(!REG_VT_DWORD), $(TcpWindowSizeValue)}
SetRegValue $(KeyTcpipSoft) $(NewValueList)
CloseRegKey $(TcpipSoft)
endif
;Run XpDiag automatically on startup
; Debug-Output $(InfName)": Entering XpDiag AutoInstall config"
; OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" +
; $(!REG_KEY_ALL_ACCESS) KeyNt
; set TrayIconList = {XP400EXE,$(NoTitle),$(!REG_VT_SZ),$(TrayIconExe)" -off"}
; SetRegValue $(KeyNt) $(TrayIconList)
; CloseRegKey $(KeyNt)
; Debug-Output $(InfName)": Exiting the XpDiag AutoInstall config"
;End of Xpdiag routine
;Turn on XpDiag features
Debug-Output $(InfName)": Entering XpDiag features config"
OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" +
$(!REG_KEY_ALL_ACCESS) KeyNt
set TrayIconList = {XP400EXE,$(NoTitle),$(!REG_VT_SZ),$(TrayIconExe)" -d"$(GUI_FEATURE)}
SetRegValue $(KeyNt) $(TrayIconList)
CloseRegKey $(KeyNt)
Debug-Output $(InfName)": Exiting the XpDiag features config"
;End of Xpdiag routine
;Create reg key and entries for XpRasSetup phone book entries
OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE" $(MAXIMUM_ALLOWED) TmpKey
shell "" XpCreateRegKey $(TmpKey) "Xpeed"
IfStr(i) $($R0) != NO_ERROR
Debug-Output $(InfName)": Error creating registry key!"
GoTo FatalRegistry
EndIf
Set XpeedKey = $($R1)
Set NewValueList = {+
{"IpHdrComp",$(NoTitle),$(!REG_VT_SZ),$(IP_HDR_COMPRESSION)},+
{"SwHdrComp",$(NoTitle),$(!REG_VT_SZ),$(SW_HDR_COMPRESSION)},+
{"Encryption",$(NoTitle),$(!REG_VT_SZ),$(PASSWORD_ENCRYPTED)},+
{"ShortCutName",$(NoTitle),$(!REG_VT_SZ),$(DIALER_SHORTCUT_NAME)}}
Shell $(UtilityInf), AddValueList, $(XpeedKey), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Output $(InfName)": Registry error: Add value list"
GoTo FatalRegistry
EndIf
CloseRegKey $(XpeedKey)
CloseRegKey $(TmpKey)
;End of create reg key and entries for XpRasSetup phone book entries
;Create DialUp Networking Entry automatically on reboot
Debug-Output $(InfName)": Entering XpRasSetup AutoInstall config"
OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" +
$(!REG_KEY_ALL_ACCESS) KeyNt
set SetupList = {XpConnect,$(NoTitle),$(!REG_VT_SZ),$(RasShortcut)}
SetRegValue $(KeyNt) $(SetupList)
CloseRegKey $(KeyNt)
Debug-Output $(InfName)": Exiting the XpRasSetup AutoInstall config"
;End of XpRasSetup routine
OpenRegKey $(!REG_H_LOCAL) "" "HARDWARE\DEVICEMAP" $(MAXIMUM_ALLOWED) BaseKey
shell "" XpCreateRegKey $(BaseKey) "TAPI DEVICES\X400PPP"
IfStr(i) $($R0) != NO_ERROR
Debug-Output $(InfName)": Error creating registry key!"
GoTo FatalRegistry
EndIf
Set TapiDeviceKey = $($R1)
Set NewValueList = {+
{Address,$(NoTitle),$(!REG_VT_MULTI_SZ),$(TapiAddressList)},+
{"Media Type",$(NoTitle),$(!REG_VT_SZ),$(TapiMediaType)}}
Shell $(UtilityInf), AddValueList, $(TapiDeviceKey), $(NewValueList)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error."
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Output $(InfName)": Registry error: Add value list"
GoTo FatalRegistry
EndIf
CloseRegKey $(TapiDeviceKey)
CloseRegKey $(BaseKey)
Read-Syms InvokeRasDlg$(!STF_LANGUAGE)
Shell "oemnsvra.inf" CheckRasInstalled
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": 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 SuccessfulOption
EndIf
Set RasInstalled = $($R0)
Debug-Output $(InfName)": Is RAS Installed? "$(RasInstalled)
IfStr(i) $(RasInstalled) == FALSE
Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", +
$(InvokeRasSetupMsg)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
GoTo SuccessfulOption
EndIf
Else
Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", +
$(InvokeRasConfigMsg)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
GoTo SuccessfulOption
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
Set SaveNTN_InstallMode = $(!NTN_InstallMode)
IfStr(i) $(RasInstalled) == TRUE
Set !NTN_InstallMode = configure
Else
Set !NTN_InstallMode = install
EndIf
set SaveSTF_SRCDIR_OVERRIDE = $(!STF_SRCDIR_OVERRIDE)
set !STF_SRCDIR_OVERRIDE = ""
Debug-Output $InfName)": STF_LANGUAGE = "$(!STF_LANGUAGE)
Debug-Output $InfName)": RasDir = "$(RasDir)
Debug-Output $InfName)": AddCopy = "$(AddCopy)
Debug-Output $InfName)": DoCopy = "$(DoCopy)
Debug-Output $InfName)": DoConfig = "$(DoConfig)
Shell "oemnsvra.inf" InstallOption $(!STF_LANGUAGE) "RAS" $(RasDir) $(AddCopy) $(DoCopy) $(DoConfig)
set !NTN_InstallMode = $(SaveNTN_InstallMode)
set !STF_SRCDIR_OVERRIDE = $(SaveSTF_SRCDIR_OVERRIDE)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": 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 SuccessfulOption
EndIf
SkipRasSetup =+
EndWait
GoTo SuccessfulOption
updateparameters =+
Debug-Output $(InfName)": Entering update parameters."
set NewValueList = {{LinkProtocol,$(NoTitle),$(!REG_VT_DWORD),$(LinkProtocolValue)},+
{modemOpMode,$(NoTitle),$(!REG_VT_DWORD),$(AdslModeValue)},+
{VPI,$(NoTitle),$(!REG_VT_DWORD),$(VPI)},+
{VCI,$(NoTitle),$(!REG_VT_DWORD),$(VCI)}}
Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
CloseRegKey $(KeyParameters)
goto SuccessfulOption
;***********************************************************************
;
;***********************************************************************
BindingAdapter =+
Set Error = "Binding: Sorry, not yet implemented."
GoTo FatalError
;***********************************************************************
;
;***********************************************************************
RemoveAdapter = +
Debug-Output $(InfName)": Entering RemoveAdapter"
;remove Tcpip TcpWindowSize value
OpenRegKey $(!REG_H_LOCAL) "" $(TCPIPKeyName)"\Parameters" $(MAXIMUM_ALLOWED) KeyTcpipSoft
ifstr(i) $(KeyTcpipSoft) != ""
DeleteRegValue $(KeyTcpipSoft) "TcpWindowSize"
CloseRegKey $(KeyTcpipSoft)
endif
;XpDiag specific
Debug-Output $(InfName)": Entering XpDiag remove config"
OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" +
$(!REG_KEY_ALL_ACCESS) KeyNt
DeleteRegValue $(KeyNt) "XP400EXE"
DeleteRegValue $(KeyNt) "XPCONNECT"
CloseRegKey $(KeyNt)
;End of XpDiag specific
;XpRasSetup specific
Debug-Output $(InfName)": Entering XpRasSetup remove config"
OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE" +
$(!REG_KEY_ALL_ACCESS) KeyNt
; DeleteRegKey $(KeyNt) "XPEED"
; DeleteRegKey $(KeyNt) "Xpeed Inc"
CloseRegKey $(KeyNt)
;End XpRasSetup specific
;Remove shortcut automatically on reboot. This is needed for foreign language PCs
Debug-Output $(InfName)": Entering Uninstall shortcut"
RunProgram ExitCode "Xpeed RAS Install Directory" "" $(!STF_WINDOWSSYSPATH)\XPRMV400.EXE
Debug-Output $(InfName)": Exiting the Uninstall shortcut"
;End of XpRasSetup routine
; remove files
AddfileToDeleteList $(!STF_WINDOWSSYSPATH)"\XPDIAG.exe"
AddfileToDeleteList $(!STF_WINDOWSSYSPATH)"\XPDIAG.cnt"
AddfileToDeleteList $(!STF_WINDOWSSYSPATH)"\XPDIAG.hlp"
AddfileToDeleteList $(!STF_WINDOWSSYSPATH)"\DRIVERS\X400PPP.sys"
AddfileToDeleteList $(!STF_WINDOWSSYSPATH)"\XPPPP.dll"
AddfileToDeleteList $(!STF_WINDOWSSYSPATH)"\XPRASSETUP.exe"
AddfileToDeleteList $(!STF_WINDOWSSYSPATH)"\XPRMV400.EXE"
AddfileToDeleteList $(!STF_WINDOWSPATH)"\XpCustom.ini"
AddfileToDeleteList $(!STF_WINDOWSPATH)\Profiles"\All Users\Desktop\"$(DesktopLnkName)
IfStr(i) $(ProductKeyName) == $(!NTN_RegBase)
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": 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 $(InfName)": ShellCode error"
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
GoTo FatalRegistry
EndIf
EndIf
GoTo end
;***********************************************************************
;
;***********************************************************************
UpgradeSoftware = +
StartWait
Debug-Output $(InfName)": Entering upgrade software."
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
Debug-Output $(InfName)": Updating driver files."
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
EndWait
GoTo end
;***********************************************************************
;
;***********************************************************************
SuccessfulOption = +
Debug-Output $(InfName)": Entering SuccessfulOption"
GoTo end
;***********************************************************************
;
;***********************************************************************
Abandon = +
ForListDo $(OEM_ABANDON_OPTIONS)
Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
$(ProductSoftwareName), $($)
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error"
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)
Debug-Output $(InfName)": ShellCode error"
GoTo ShellCodeError
EndIf
Set RegistryErrorIndex = $($R0)
IfStr(i) $(RegistryErrorIndex) != NO_ERROR
GoTo FatalRegistry
EndIf
EndIf
GoTo end
;***********************************************************************
;
;***********************************************************************
WarningMsg = +
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)
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
;***********************************************************************
;
;***********************************************************************
FatalDetect = +
Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
IfInt $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output $(InfName)": ShellCode error: cannot get an error string."
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 = +
Debug-Output $(InfName)": Entering end."
Return $(CommonStatus)
;***********************************************************************
;
;***********************************************************************
[XpCreateRegKey]
Debug-Output $(InfName)": Entering [XpCreateRegKey]"
Set ECR_Result = NO_ERROR
Set ECR_BaseKeyHandle = $($0)
Set ECR_NewPath = $($1)
Set KeyNull = ""
Set MAXIMUM_ALLOWED = 33554432
Debug-Output $(InfName)": XpCreateRegKey - ECR_BaseKeyHandle = "$(ECR_BaseKeyHandle)
Debug-Output $(InfName)": ECR_NewPath = "$(ECR_NewPath)
Debug-Output $(InfName)": MAXIMUM_ALLOWED = "$(MAXIMUM_ALLOWED)
Debug-Output $(InfName)": KeyNull = "$(KeyNull)
OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_NewPath) $(MAXIMUM_ALLOWED) +
ECR_BaseKey
Debug-Output $(InfName)": ECR_BaseKey = "$(ECR_BaseKey)
Debug-Output $(InfName)": OpenRegKey returned "$($R0)
IfStr $(ECR_BaseKey) == $(KeyNull)
Debug-Output $(InfName)": ECR_BaseKey == KeyNull"
Else
Debug-Output $(InfName)": ECR_BaseKey != KeyNull"
Set ECR_KeyHandle = $(ECR_BaseKey)
GoTo ECR_Return
EndIf
Set ECR_TmpPath = ""
Split-String $(ECR_NewPath) "\" ECR_PList
Debug-Output $(InfName)": ECR_PList = "$(ECR_PList)
ForListDo $(ECR_PList)
IfStr(i) $($) != "\"
IfInt $(#) == 1
Set ECR_TmpPath = $($)
Else
Set ECR_TmpPath = $(ECR_TmpPath)"\"$($)
EndIf
Debug-Output $(InfName)": Determining if "$(ECR_TmpPath)" exists"
OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_TmpPath) $(MAXIMUM_ALLOWED) ECR_BaseKey
IfStr $(ECR_BaseKey) == $(KeyNull)
Debug-Output $(InfName)": 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)
;***********************************************************************
;
;***********************************************************************
[DebugConfiguration]
Debug-Output $(!p:InfName)": **CONFIGURATION STATE: "$($0)
Return
;***********************************************************************
;
;***********************************************************************
[Install-Option]
Set STF_VITAL = ""
IfStr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-Xpdiag $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Hlp1 $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Hlp2 $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-XpCustom $(SrcDir) $(!STF_WINDOWSPATH)
EndIf
IfStr(i) $(DoCopy) == "YES"
Set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
EndIf
Exit
;***********************************************************************
;
;***********************************************************************
[Install-Hlp]
set STF_VITAL = ""
AddSectionFilesToCopyList Files-Hlp1 $(SrcDir)$(Help_Directory) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Hlp2 $(SrcDir)$(Help_Directory) $(!STF_WINDOWSSYSPATH)
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
Exit
;***********************************************************************
;
;***********************************************************************
[Install-Update]
Debug-Output $(InfName)": Entering Install-Update."
Set STF_VITAL = ""
Set STF_OVERWRITE = "VERIFYSOURCEOLDER"
AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Xpdiag $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Hlp1 $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Hlp2 $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-XpCustom $(SrcDir) $(!STF_WINDOWSPATH)
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
Exit
;***********************************************************************
;
;***********************************************************************
[Source Media Descriptions]
1 = "Xpeed 400 ADSL PPP Setup Disk #1" , TAGFILE = X400PPP.sys
;***********************************************************************
;
;***********************************************************************
[ProductType]
STF_PRODUCT = Winnt
STF_PLATFORM = I386
;***********************************************************************
;
;***********************************************************************
[Files-Inf]
1, oemsetup.inf, SIZE=44909, RENAME=$(!UG_Filename)
;***********************************************************************
;
;***********************************************************************
[Files-X400PPP]
1, X400PPP.SYS, SIZE=383328, RENAME=X400PPP.SYS
;***********************************************************************
;
;***********************************************************************
[Files-Xpdiag]
1,XPDIAG.exe , SIZE=99999, RENAME=XPDIAG.exe
1,XPPPP.dll, SIZE=1000,RENAME=XPPPP.dll
1,XPRASSETUP.exe, SIZE=1000,RENAME=XPRASSETUP.exe
1,XPRMV400.exe, SIZE=1000,RENAME=XPRMV400.exe
;***********************************************************************
;
;***********************************************************************
[Files-XpCustom]
1,XPCUSTOM.ini, SIZE=1000,RENAME=XPCUSTOM.ini
;***********************************************************************
;
;***********************************************************************
[Files-Hlp1]
1,XPDIAG.hlp , SIZE=999, RENAME=XPDIAG.hlp
;***********************************************************************
;
;***********************************************************************
[Files-Hlp2]
1,XPDIAG.cnt , SIZE=999, RENAME=XPDIAG.cnt
;***********************************************************************
;
;***********************************************************************
[LanguagesSupported]
ENG
;***********************************************************************
;
;***********************************************************************
[OptionsTextENG]
X400PPP = "Xpeed 400 ADSL PCI Adapter - PPP"
;***********************************************************************
;
;***********************************************************************
[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:"
FunctionX400PPPTitle = "Xpeed 400 ADSL Adapter Setup"
ProductSoftwareDescription = "Xpeed 400 ADSL Driver - PPP"
ProductHardwareX400PPPDescription = "Xpeed 400 ADSL Adapter - PPP"
ProductSoftwareTitle = "Xpeed 400 ADSL Driver - PPP"
ProductHardwareX400PPPTitle = "Xpeed 400 ADSL Adapter - PPP"
ShellCodeErrorTitle = "Error: "$(FunctionTitle)$(Option))
ShellCodeErrorText = "Shell Code Error."
LinkProtocolList = ^(LinkProtocolChoices$(Option), 1)
LinkProtocolValues = ^(LinkProtocolChoices$(Option), 2)
AdslModeList = ^(AdslModeChoices$(Option), 1)
AdslModeValues = ^(AdslModeChoices$(Option), 2)
NoList = ^(NoChoices, 1)
NoValues = ^(NoChoices, 2)
CANNOT_FIND_ANY_CARD = "Network card is not present in the system"
;***********************************************************************
;
;***********************************************************************
[DialogConstantsENG]
Help = "&Help"
Exit = "Cancel"
OK = "OK"
HelpContext = ""
Continue = "Continue"
Cancel = "Cancel"
;***********************************************************************
;
;***********************************************************************
[FileDependentDlgENG]
DlgText = "Choose the proper cable type for the "+
"network adapter. Select [Help] for a detailled "+
"description of the available options of the list."
DlgTemplate = "XPPPP"
DlgType = "RadioCombination"
Caption = $(Function$(Option)Title)
Combo1Label = "Encapsulation:"
Combo1List = $(LinkProtocolList)
Combo1Out = $(LinkProtocolValue)
Combo2Label = "Adsl Mode:"
Combo2List = $(AdslModeList)
Combo2Out = $(AdslModeValue)
ComboListItemsIn = {Combo1List, Combo2List}
ComboListItemsOut = {Combo1Out, Combo2Out}
EditTextLim = {3, 5}
EditTextIn = {$(VPI),$(VCI)}
Edit1Label = "VPI:"
Edit2Label = "VCI:"
;CBOptionsGreyed = {}
MinHelpId = 10
MaxHelpId = 1140
;***********************************************************************
;
;***********************************************************************
[InvokeRasDlgENG]
InvokeRasSetupMsg = "Xpeed 400 PPP ADSL setup is complete. "+
"Remote Access Services (RAS) must now be installed. "+
"Please configure the PPP ports in RAS "+
"setup to enable you to use RAS over the ADSL line."
InvokeRasConfigMsg = "Xpeed 400 PPP ADSL setup is complete. "+
"Remote Access Services (RAS) setup must now be invoked. "+
"Please configure the 400 ports in RAS "+
"setup to enable you to use RAS over the ADSL line."
InvokeRasError = "Xpeed 400 PPP ADSL 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.