OEMSETUP.INF Driver File Contents (mt128pci.exe)

;***********************************************************************
; Multitech ISDNLink Driver Setup File for WINDOWS NT
;***********************************************************************
[Identification]
    OptionType = NetAdapter

;***********************************************************************
[PlatformsSupported]
    ISA
    EISA
    PCI
    PCMCIA

;***********************************************************************
[Options]
    IINWANNT

;***********************************************************************
[FileConstants]
    Company                 = "Multitech"
    ProductName             = "ISDNLink"
    SwitchType              = "6"
    VoiceType_Speech        = "1"
    VoiceType_31KAudio      = "4"
    aLawType                = "0"
    uLawType                = "1"
    CodecType               = $(aLawType)
    VoiceType               = $(VoiceType_31KAudio)
    OurMajorVersion         = "2"
    OurMinorVersion         = "30"
    BinList                 = { 0, 0, 0, 0, 0, 0, 0, 0,+
                                0, 0, 0, 0, 32, 0, 0, 0,+
                                34, 0, 0, 0, 0, 0, 0, 0,+
                                34 }
    IIN100KeyName           = "IIN100"
    IIN100PropName          = "IIN100\Properties"
    IIN100EventLog          = "EventLog\System\iin100"
    MessageFileName         = "%SystemRoot%\System32\netevent.dll;"+
                              "%SystemRoot%\System32\Drivers\iin100.sys"
    RunCode                 = 6
    PCMCIA_MANU_ID          = "PCMCIA"
    PCMCIA_NEWDRIVER1       = "IIN1001"
    PCMCIA_NEWDRIVER1_PAR   = "IIN1001\Parameters"
    PCMCIA_DEV_ID           = "PCMCIA\ISDN_CARD/A3000"
; ----------------------------------------------------------------------

    InfName                 = "OEMINWAN.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            = $(Company)
    ProductGroupName        = $(ProductName)
    ProductMajorVersion     = $(OurMajorVersion)
    ProductMinorVersion     = $(OurMinorVersion)
    ProductVersion          = $(ProductMajorVersion)"."$(ProductMinorVersion)
    ProductSoftwareName     = "IINWANNT"
    ProductSoftwareImagePath = "\SystemRoot\System32\drivers\IINWANNT.sys"
    NetRuleSoftwareType     = "IINWANNTSys IINWANNTDriver"
    NetRuleSoftwareUse      = $(SoftwareType)
    NetRuleSoftwareBindForm = """IINWANNTSys"" yes no container"
    NetRuleSoftwareClass    = {"IINWANNTDriver basic"}
    NetRuleSoftwareBindable = {"IINWANNTDriver IINWANNTAdapter non exclusive 100"}
    ProductHardwareName     = "IINWANNT"
    NetRuleHardwareBindForm = " yes yes container"
    NetRuleHardwareIINWANNTType = "IINWANNT IINWANNTAdapter"
    NetRuleHardwareIINWANNTClass = {"IINWANNTAdapter basic"}
    BindableIINWANNTTxt      = {"IINWANNTDriver IINWANNTAdapter non exclusive 100"}
    DeviceMap               = "HARDWARE\DEVICEMAP"
    TapiDevices             = "TAPI DEVICES"
    TapiDeviceKey           = $(ProductHardwareName)
    TapiMediaType           = "ISDN"
    ProductKeyName          = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"+
                              $(ProductSoftwareName)"\CurrentVersion"
    ParamKeyName            = $(!NTN_ServiceBase)"\"$(ProductHardwareName)+
                              "\Parameters"
    LineType                = 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
    IIN100Key               = ""

;***********************************************************************
[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   = $($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-Subst LF = "\n"

    Read-Syms GeneralConstants
    Read-Syms FileConstants

    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

;***********************************************************************
Begin = +
    Set ActivateDetection = FALSE
    IfStr(i) $(!NTN_InstallMode) == deinstall
        Set StartLabel = RemoveAdapter
    Else-IfStr(i) $(!NTN_InstallMode) == Update
        Set StartLabel = UpgradeSoftware
    Else-IfStr(i) $(!NTN_InstallMode) == bind
        Set StartLabel = BindingAdapter
    Else-IfStr(i) $(!NTN_InstallMode) == configure
        Set StartLabel = ConfigureAdapter
        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 = $($R0)
            Set from = end
            Set to = end
            GoTo NonFatalInfo
        EndIf
    Else
        Set StartLabel = InstallAdapter
        Set ActivateDetection = TRUE
        Set OEM_ABANDON_OPTIONS = {}
        Set OEM_ABANDON_SOFTWARE = FALSE
        Set OEM_ABANDON_ON = TRUE
    EndIf

    Set DetectedCard = FALSE
    IfStr(i) $(ActivateDetection) != TRUE
        GoTo $(StartLabel)
    EndIf

    Shell $(ParamInf) Param_SetDefaults {}

    IfStr(i) $(!STF_NCDETECT) == YES
        IfStr(i) $(!STF_NCOPTION) == $(Option)
           Set DetectedCard = TRUE
        EndIf
    EndIf

    Shell "" DebugConfiguration "After parameter querying"
    Set from = FatalError
    Set to = FatalError
    GoTo $(StartLabel)

;***********************************************************************
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 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

;***********************************************************************
ConfigureAdapter = +
    IfStr $(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 KeyParameters = $($R2)
    CloseRegKey $($R1)
    IfStr $(KeyParameters) == $(KeyNull)
        Set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
        GoTo FatalRegistry
    EndIf

    Set OldVersionExisted = $(TRUE)
    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) == "LineType"
            Set LineType = $(ValueData)
        Else-IfStr(i) $(ValueName) == "BusNumber"
            set BusNumber = $(ValueData)
        Else-IfStr(i) $(ValueName) == "BusType"
            set BusType = $(ValueData)
        Else-IfStr(i) $(ValueName) == "ADP_Number"
            set AdpNumber = $(ValueData)
        EndIf
    EndForListDo
    Shell $(ParamInf) Param_SaveValues
    Set CurrParamSettings = $($R0)

;***********************************************************************
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
            GoTo AdapterVerify
        EndIf
    EndIf

;***********************************************************************
AdapterOptions = +
    IfStr(i) $(!STF_NCDETINFO) == {}
        Shell $(UtilityInf),GetBusTypeDialog,$(ProductHardware$(Option)Description) $(BusType) $(BusNumber)
        ifInt $($ShellCode) != $(!SHELL_CODE_OK)
            GoTo ShellCodeError
        EndIf
        Set BusType = $($R1)
        Set BusNumber = $($R2)
    Else
        Set BusType = *($(!STF_NCDETINFO),5)
        Set BusNumber = *($(!STF_NCDETINFO),6)
    EndIf

;***********************************************************************
AdapterVerify = +
    Shell "" DebugConfiguration "after running dialog"
    IfStr(i) $(DetectedCard) != TRUE
        Shell $(ParamInf) Param_SaveValues
        Set NewParamSettings = $($R0)
        IfStr(i) $(CurrParamSettings) == {}
            Set DiffParamSettings = $(NewParamSettings)
        Else
            Shell $(ParamInf) Param_DiffValues $(CurrParamSettings)
            Set DiffParamSettings = $($R0)
        EndIf
        Shell $(ParamInf) Param_VerifyResources $(DiffParamSettings)
        IfStr(i) $($R0) == STATUS_SUCCESSFUL
            GoTo SkipOptions
        EndIf
    Else
        Set CardVerifyIndex = $(!STF_NCDETCARD)
        Shell $(ParamInf) Param_VerifyCard $(!STF_NCDETCARD)
        IfStr(i) $($R0) == STATUS_SUCCESSFUL
            GoTo SkipOptions
        EndIf
    EndIf

    Set from = AdapterOptions
    Set to = SkipOptions
    Shell $(UtilityInf),RegistryErrorString,VERIFY_WARNING
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        GoTo ShellCodeError
    EndIf
    Set Error = $($R0)
    GoTo WarningMsg

;***********************************************************************
SkipOptions =+
    IfInt $(OldVersionExisted) == $(TRUE)
        IfStr(i) $(!NTN_InstallMode) == configure
;
;Modify the bustype in our registry ---Bustype = 5 (PCI) 1 (ISA) 8 (PCMCIA)
;
            OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services" $(MAXIMUM_ALLOWED) BaseKey
            shell "" AsCreateRegKey $(BaseKey) $(IIN100PropName)
            IfStr(i) $($R0) != NO_ERROR
                GoTo FatalRegistry
            EndIf
            Set IIN100Key = $($R1)
            IfStr(i) $(BusType) == "5"
                Set ISDNBusType = "1"
            Else
                IfStr(i) $(BusType) == "1"
                    Set ISDNBusType = "0"
                Else
                    IfStr(i) $(BusType) == "8"
                        Set ISDNBusType = "2"
                    Endif
                Endif
            Endif

;   Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", +
;               "Bustype"+$(BusType)

            Set NewValueList = { +
                         {BUS, $(NoTitle), $(!REG_VT_DWORD), $(ISDNBusType)} }

            Shell  $(UtilityInf), AddValueList, $(IIN100Key), $(NewValueList)
            IfInt $($ShellCode) != $(!SHELL_CODE_OK)
                GoTo ShellCodeError
            EndIf
            Set RegistryErrorIndex = $($R0)
            IfStr(i) $(RegistryErrorIndex) != NO_ERROR
                GoTo FatalRegistry
            EndIf
;
;---------------------
;
            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

;=========================================================================
; add the registry entries for IIN100
;=========================================================================
;   ** if it is a PCMCIA card, write more data into system registry
;   ** PCCardType = 0 (ISDN only) PCCardType =1 (ISDN+LAN)
;
        IfStr(i) $(BusType) == "8"
            OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\Pcmcia\DataBase" $(MAXIMUM_ALLOWED) BaseKey
            shell "" AsCreateRegKey $(BaseKey) $(PCMCIA_MANU_ID)
            IfStr(i) $($R0) != NO_ERROR
                GoTo FatalRegistry
            EndIf
            Set IIN100Key = $($R1)
            CloseRegKey $(IIN100Key)

            shell "" AsCreateRegKey $(BaseKey) $(PCMCIA_DEV_ID)
            IfStr(i) $($R0) != NO_ERROR
                GoTo FatalRegistry
            EndIf
            Set IIN100Key = $($R1)
            Set NewValueList = { {Driver,$(NoTitle),$(!REG_VT_SZ),"IIN100"} }

            Shell  $(UtilityInf), AddValueList, $(IIN100Key), $(NewValueList)
            IfInt $($ShellCode) != $(!SHELL_CODE_OK)
                GoTo ShellCodeError
            EndIf
            Set RegistryErrorIndex = $($R0)
            IfStr(i) $(RegistryErrorIndex) != NO_ERROR
                GoTo FatalRegistry
            EndIf
            CloseRegKey $(IIN100Key)

            OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services" $(MAXIMUM_ALLOWED) BaseKey
            shell "" AsCreateRegKey $(BaseKey) $(PCMCIA_NEWDRIVER1)
            IfStr(i) $($R0) != NO_ERROR
                GoTo FatalRegistry
            EndIf
            Set IIN100Key = $($R1)
            CloseRegKey $(IIN100Key)

            shell "" AsCreateRegKey $(BaseKey) $(PCMCIA_NEWDRIVER1_PAR)
            IfStr(i) $($R0) != NO_ERROR
                GoTo FatalRegistry
            EndIf
            Set IIN100Key = $($R1)
            Set NewValueList = { {Pcmcia, $(NoTitle), $(!REG_VT_DWORD), "1"}, +
                                 {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),"10"}, +
                                 {IoBaseAddress, $(NoTitle), $(!REG_VT_DWORD), "528"}, +
                                 {IoLength, $(NoTitle), $(!REG_VT_DWORD), "8"} }

            Shell  $(UtilityInf), AddValueList, $(IIN100Key), $(NewValueList)
            IfInt $($ShellCode) != $(!SHELL_CODE_OK)
                GoTo ShellCodeError
            EndIf
            Set RegistryErrorIndex = $($R0)
            IfStr(i) $(RegistryErrorIndex) != NO_ERROR
                GoTo FatalRegistry
            EndIf
            CloseRegKey $(IIN100Key)
        Endif
 ;
        OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services" $(MAXIMUM_ALLOWED) BaseKey
        shell "" AsCreateRegKey $(BaseKey) $(IIN100KeyName)
        IfStr(i) $($R0) != NO_ERROR
            GoTo FatalRegistry
        EndIf
        Set IIN100Key = $($R1)
        Set NewValueList = { {DisplayName,$(NoTitle),$(!REG_VT_SZ),"ISDN Driver"},+
                             {Type,$(NoTitle),$(!REG_VT_DWORD),"1"},+
                             {Start,$(NoTitle),$(!REG_VT_DWORD),"1"},+
                             {Group,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
                             {ErrorControl,$(NoTitle),$(!REG_VT_DWORD),"1"} }
        Shell  $(UtilityInf), AddValueList, $(IIN100Key), $(NewValueList)
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            GoTo ShellCodeError
        EndIf
        Set RegistryErrorIndex = $($R0)
        IfStr(i) $(RegistryErrorIndex) != NO_ERROR
            GoTo FatalRegistry
        EndIf
        CloseRegKey $(IIN100Key)

        shell "" AsCreateRegKey $(BaseKey) $(IIN100PropName)
        IfStr(i) $($R0) != NO_ERROR
            GoTo FatalRegistry
        EndIf
        Set IIN100Key = $($R1)
        Set PCCardType = "0"
        IfStr(i) $(BusType) == "5"
            Set ISDNBusType = "1"
        Else
            IfStr(i) $(BusType) == "1"
                Set ISDNBusType = "0"
            Else
                IfStr(i) $(BusType) == "8"
                    Set ISDNBusType = "2"
                Endif
            Endif
        Endif
        IfStr(i) $(BusType) == "8"
            Set NewValueList = { {RECORD,$(NoTitle),$(!REG_VT_BIN), $(BinList) },+
                                 {SWITCH,$(NoTitle),$(!REG_VT_DWORD),$(SwitchType)},+
                                 {CODEC,$(NoTitle),$(!REG_VT_DWORD),$(CodecType)},+
                                 {CALLTYPE(VOICE),$(NoTitle),$(!REG_VT_DWORD),$(VoiceType)},+
                                 {MSN(POTS),$(NoTitle),$(!REG_VT_SZ),""},+
                                 {SPID1,$(NoTitle),$(!REG_VT_SZ),""},+
                                 {SPID2,$(NoTitle),$(!REG_VT_SZ),""},+
                                 {MAJ,$(NoTitle),$(!REG_VT_DWORD),$(OurMajorVersion)},+
                                 {MIN,$(NoTitle),$(!REG_VT_DWORD),$(OurMinorVersion)},+
                                 {MFNAME,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
                                 {STANDBYTIME,$(NoTitle),$(!REG_VT_DWORD),"3"},+
                                 {Action,$(NoTitle),$(!REG_VT_DWORD),"262149"},+
                                 {Auto,$(NoTitle),$(!REG_VT_DWORD),"0"},+
                                 {Param1,$(NoTitle),$(!REG_VT_DWORD),"8714"},+
                                 {Param2,$(NoTitle),$(!REG_VT_DWORD),"0"}, +
                                 {BUS, $(NoTitle), $(!REG_VT_DWORD), $(ISDNBusType)}, +
                                 {PCCARDTYPE, $(NoTitle), $(!REG_VT_DWORD), $(PCCardType)} }
        Else
            Set NewValueList = { {RECORD,$(NoTitle),$(!REG_VT_BIN), $(BinList) },+
                                 {SWITCH,$(NoTitle),$(!REG_VT_DWORD),$(SwitchType)},+
                                 {CODEC,$(NoTitle),$(!REG_VT_DWORD),$(CodecType)},+
                                 {CALLTYPE(VOICE),$(NoTitle),$(!REG_VT_DWORD),$(VoiceType)},+
                                 {MSN(POTS),$(NoTitle),$(!REG_VT_SZ),""},+
                                 {SPID1,$(NoTitle),$(!REG_VT_SZ),""},+
                                 {SPID2,$(NoTitle),$(!REG_VT_SZ),""},+
                                 {MAJ,$(NoTitle),$(!REG_VT_DWORD),$(OurMajorVersion)},+
                                 {MIN,$(NoTitle),$(!REG_VT_DWORD),$(OurMinorVersion)},+
                                 {MFNAME,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
                                 {STANDBYTIME,$(NoTitle),$(!REG_VT_DWORD),"3"},+
                                 {Action,$(NoTitle),$(!REG_VT_DWORD),"262149"},+
                                 {Auto,$(NoTitle),$(!REG_VT_DWORD),"0"},+
                                 {Param1,$(NoTitle),$(!REG_VT_DWORD),"0"},+
                                 {Param2,$(NoTitle),$(!REG_VT_DWORD),"0"}, +
                                 {BUS, $(NoTitle), $(!REG_VT_DWORD), $(ISDNBusType)}, +
                                 {PCCARDTYPE, $(NoTitle), $(!REG_VT_DWORD), $(PCCardType)} }
        Endif
        Shell  $(UtilityInf), AddValueList, $(IIN100Key), $(NewValueList)
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            GoTo ShellCodeError
        EndIf
        Set RegistryErrorIndex = $($R0)
        IfStr(i) $(RegistryErrorIndex) != NO_ERROR
            GoTo FatalRegistry
        EndIf

        shell "" AsCreateRegKey $(BaseKey) $(IIN100EventLog)
        IfStr(i) $($R0) != NO_ERROR
            GoTo FatalRegistry
        EndIf
        Set IIN100Key = $($R1)
        Set NewValueList = { {EventMessageFile,$(NoTitle),$(!REG_VT_EXPAND_SZ), $(MessageFileName) },+
                             {TypesSupported,$(NoTitle),$(!REG_VT_DWORD),"7"} }

        Shell  $(UtilityInf), AddValueList, $(IIN100Key), $(NewValueList)
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            GoTo ShellCodeError
        EndIf
        Set RegistryErrorIndex = $($R0)
        IfStr(i) $(RegistryErrorIndex) != NO_ERROR
            GoTo FatalRegistry
        EndIf
        CloseRegKey $(IIN100Key)

        CloseRegKey $(BaseKey)
;================================================

        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,$(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)
            GoTo ShellCodeError
        EndIf
        Set RegistryErrorIndex = $($R0)
        IfStr(i) $(RegistryErrorIndex) != NO_ERROR
            EndWait
            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)
            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)
    Set AdpNumber = $($R4)
    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 KeyParameters = $($R3)
    Set KeyAdapterRules = $($R2)
    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, $($R1), $(NewValueList)
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        GoTo ShellCodeError
    EndIf
    CloseRegKey $($R1)

    Set TempProdName = """"$(ProductHardwareName)$(AdpNumber)""""
    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)
        GoTo ShellCodeError
    EndIf

    Set RegistryErrorIndex = $($R0)

    IfStr(i) $(RegistryErrorIndex) != NO_ERROR
        EndWait
        CloseRegKey $(KeyParameters)
        CloseRegKey $(KeyAdapterRules)
        GoTo FatalRegistry
    EndIf
    CloseRegKey $(KeyAdapterRules)

    GoTo WriteParameters

;***********************************************************************
WriteParameters = +

    Set TapiAddressList = {$(AdpNumber)"-1-0"}
    Set TapiAddressList = >($(TapiAddressList),$(AdpNumber)"-2-0")

    IfInt $(OldVersionExisted) == $(TRUE)
        RunProgram RunCode "" "" $(!STF_WINDOWSSYSPATH)\iincfg32.exe
    Else
        RunProgram RunCode "" "" $(SrcDir)\iincfg32.exe
    EndIf
;========================================

    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)},+
           {ADP_Number,$(NoTitle),$(!REG_VT_DWORD),$(AdpNumber)},+
           }

    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
;
    IfStr(i) $(!NTN_InstallMode) == configure
        GoTo SuccessfulOption
    EndIf
;
; Create the HARDWARE\DEVICEMAP\TAPI DEVICES\IINWANNT key
;
    OpenRegKey $(!REG_H_LOCAL) "" "HARDWARE\DEVICEMAP" $(MAXIMUM_ALLOWED) BaseKey
    Set TapiKeyName = "TAPI DEVICES\IINWANNT"
    shell "" AsCreateRegKey $(BaseKey) $(TapiKeyName)
    IfStr(i) $($R0) != NO_ERROR
        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)
        GoTo ShellCodeError
    EndIf
    Set RegistryErrorIndex = $($R0)
    IfStr(i) $(RegistryErrorIndex) != NO_ERROR
        GoTo FatalRegistry
    EndIf
    CloseRegKey $(TapiDeviceKey)
    CloseRegKey $(BaseKey)

;
; Check RAS installed or not. To invoke RAS if not
;
;
    Read-Syms InvokeRasDlg$(!STF_LANGUAGE)
    Shell "oemnsvra.inf" CheckRasInstalled
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE),  +
                "STATUS", $(InvokeRasError)
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            GoTo ShellCodeError
        EndIf
    EndIf
;
    Set RasInstalled = $($R0)
    IfStr(i) $(RasInstalled) == FALSE
        Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", +
                $(InvokeRasSetupMsg)
        GoTo SuccessfulOption
        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
;
; change the NTN_InstallMode to configure if RAS was already installed
;
    IfStr(i) $(RasInstalled) == TRUE
            Set SaveNTN_InstallMode = $(!NTN_InstallMode)
            Set !NTN_InstallMode = configure
    Else
        GoTo SuccessfulOption
    EndIf
;
; now invoke RAS setup
;
    Shell "oemnsvra.inf" InstallOption $(!STF_LANGUAGE) "RAS" $(RasDir) $(AddCopy) $(DoCopy) $(DoConfig)

    IfStr(i) $(RasInstalled) == TRUE
            Set !NTN_InstallMode = $(SaveNTN_InstallMode)
    EndIf
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS",  +
                $(InvokeRasError)
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            GoTo ShellCodeError
        EndIf
        GoTo SuccessfulOption
    EndIf

    EndWait
    GoTo SuccessfulOption

;***********************************************************************
BindingAdapter =+
    Set Error = "Binding: Sorry, not yet implemented."
    GoTo FatalError

;***********************************************************************
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

;=============================================================
; Remove the IIN100 entry and isdncfg.cpl
;=============================================================

    IfStr(i) $(BusType) == "8"
        Shell $(UtilityInf), RemoveService, $(PCMCIA_NEWDRIVER1), "NO"
        IfInt $($ShellCode) != $(!SHELL_CODE_OK)
            GoTo ShellCodeError
        EndIf
        Set RegistryErrorIndex = $($R0)
        IfStr(i) $(RegistryErrorIndex) != NO_ERROR
            GoTo FatalRegistry
        EndIf
    Endif

    Shell $(UtilityInf), RemoveService, $(IIN100KeyName), "NO"
    IfInt $($ShellCode) != $(!SHELL_CODE_OK)
        GoTo ShellCodeError
    EndIf
    Set RegistryErrorIndex = $($R0)
    IfStr(i) $(RegistryErrorIndex) != NO_ERROR
        GoTo FatalRegistry
    EndIf

    GoTo end

;***********************************************************************
UpgradeSoftware = +

;IfStr(i) $(ProductKeyName) == $(!NTN_RegBase)
        OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
        IfStr $(KeyProduct) != $(KeyNull)
            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,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
            SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
            IfInt $(Version) != $(ProductVersion)
            EndIf
            CloseRegKey $(KeyProduct)
        Else
            GoTo FatalRegistry
        EndIf
    GoTo end

;***********************************************************************
SuccessfulOption = +
    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

;***********************************************************************
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)
        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)
    IfStr(i) $(!NTN_InstallMode) == "install"
        Return $(CommonStatus)
    Else
        IfInt $(RunCode) == 0
            Return STATUS_USERCANCEL
        Else
            Return $(CommonStatus)
        Endif
    Endif

;***********************************************************************
[AsCreateRegKey]
    Set ECR_Result          = NO_ERROR
    Set ECR_BaseKeyHandle   = $($0)
    Set ECR_NewPath         = $($1)
    Set KeyNull             = ""
    Set MAXIMUM_ALLOWED     = 33554432


    OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_NewPath) $(MAXIMUM_ALLOWED) +
               ECR_BaseKey
    IfStr $(ECR_BaseKey) == $(KeyNull)
    Else
        Set ECR_KeyHandle = $(ECR_BaseKey)
        GoTo  ECR_Return
    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 $(ECR_BaseKeyHandle) "" $(ECR_TmpPath) $(MAXIMUM_ALLOWED) ECR_BaseKey
            IfStr $(ECR_BaseKey) == $(KeyNull)
                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]
    Return

;***********************************************************************
[Install-Option]
    Set STF_VITAL = ""
    IfStr(i) $(AddCopy) == "YES"
        AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
        AddSectionFilesToCopyList Files-System $(SrcDir) $(!STF_WINDOWSSYSPATH)
    EndIf
    IfStr(i) $(DoCopy) == "YES"
       Set !STF_NCPA_FLUSH_COPYLIST = TRUE
       CopyFilesInCopyList
    EndIf
    Exit

;***********************************************************************
[Install-Update]
   Set STF_VITAL        = ""
   Set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
   AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
   AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
   AddSectionFilesToCopyList Files-System $(SrcDir) $(!STF_WINDOWSSYSPATH)
   Set !STF_NCPA_FLUSH_COPYLIST = TRUE
   CopyFilesInCopyList
   Exit

;***********************************************************************
[Source Media Descriptions]
    1  = ""
    2  = ""
    3  = ""
    4  = ""
    5  = ""
    6  = ""

;***********************************************************************
[ProductType]
    STF_PRODUCT         = Winnt
    STF_PLATFORM        = I386

;***********************************************************************
[Files-Inf]
    1, oemsetup.inf, SIZE=49000, RENAME=$(!UG_Filename)

;***********************************************************************
[Files-IINWANNT]
    1, IIN100.SYS,   SIZE=190000
    2, IINWANNT.SYS, SIZE=265724

;***********************************************************************
[Files-System]
    1, CAPI2032.DLL,  SIZE=7680
    2, LOG32.EXE,     SIZE=160256
    3, LT32.EXE,      SIZE=163840
    4, IINCFG32.EXE,  SIZE=98816

;***********************************************************************

[Files-RemoveList]
IINWANNTSYS      = $(!STF_WINDOWSSYSPATH)\drivers\iinwannt.sys
IIN100SYS        = $(!STF_WINDOWSSYSPATH)\drivers\iin100.sys
CAPI2032DLL      = $(!STF_WINDOWSSYSPATH)\capi2032.dll
LOG32EXE         = $(!STF_WINDOWSSYSPATH)\log32.exe
IINCFG32         = $(!STF_WINDOWSSYSPATH)\iincfg32.exe
LT32             = $(!STF_WINDOWSSYSPATH)\lt32.exe

;***********************************************************************
[LanguagesSupported]
    ENG

;***********************************************************************
[OptionsTextENG]
    IINWANNT             = "Multitech's ISDNLink PC 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:"

    FunctionTitleIINWANNT                = $(Company)"'s "$(ProductName)" ISDN Driver Setup"
    ProductSoftwareDescription         = $(Company)"'s "$(ProductName)" ISDN Driver"
    ProductHardwareIINWANNTDescription   = $(Company)"'s "$(ProductName)" ISDN Driver"
    ProductSoftwareTitle               = $(Company)"'s "$(ProductName)" ISDN Driver"
    ProductHardwareIINWANNTTitle         = $(Company)"'s "$(ProductName)" ISDN Driver"

    ShellCodeErrorTitle                = "Error: "$(FunctionTitle)$(Option))
    ShellCodeErrorText                 = "Shell Code Error."

;***********************************************************************
[InvokeRasDlgENG]
    InvokeRasSetupMsg   = $(Company)"'s "$(ProductName)" ISDN Driver setup is "+
                          "complete. Remote Access "+
                          "Services (RAS) MUST NOW BE INSTALLED."+
                          "Please configure the ISDN ports in RAS setup to "+
                          "enable you to use RAS over the ISDN."
    InvokeRasConfigMsg  = $(Company)"'s "$(ProductName)" ISDN Driver setup is "+
                          "complete. Remote Access "+
                          "Services (RAS) setup must now be invoked. "+
                          "Please configure the ISDN ports in RAS setup to "+
                          "enable you to use RAS over the ISDN."
    InvokeRasError      = $(Company)"'s "$(ProductName)" ISDN 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

How To Update Drivers Manually

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.

server: ftp, load: 4.55