OEMSETUP.INF Driver File Contents (d9317g.exe)

;
; The format for INF revision number is:
;	[Driver Revision].[INF Revision]
;	Example 1.00.0 where 1.00 is the driver
;	revision and .0 is the INF file revision.
;   
; July 8, 96 Rev. 4.26.0 kbs
;	-> Ver 4.26 driver release
;

[Identification]
    OptionType = NetAdapter
[PlatformsSupported]
    ISA
    EISA
    MCA
    PCMCIA
    PCI
[Options]
    RTR16NDS
;*******************************************************************
; 
; Constants for using dialogs
;
;*******************************************************************
[FileConstants]
;
; Product Information
;
Manufacturer    = "Racore"
ProductMajorVersion     = "4"
ProductMinorVersion     = "26"
ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
;
; Filenames
;
UtilityInf      = "UTILITY.INF"
ParamInf        = "NCPARAM.INF"
subroutineinf   = "SUBROUTN.INF"
SoftwareType    = "driver"
Exit_Code       = 0
;
; Software Configuration Registry Information
;
ProductSoftwareName     = "Rtr16nds"
ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\rtr16nds.sys"
NetRuleSoftwareType     = "rtr16ndsSys ndisDriver rtr16ndsDriver"
NetRuleSoftwareUse      = $(SoftwareType)
NetRuleSoftwareBindForm = """Rtr16ndsSys"" yes no container"
NetRuleSoftwareClass    = {"rtr16ndsDriver basic"}
NetRuleSoftwareBindable = {"rtr16ndsDriver rtr16ndsAdapter non exclusive 100"}
;
; Hardware Configuration Registry Information
;
ProductHardwareName     = "Rtr16nds"
NetRuleHardwareType     = "rtr16nds rtr16ndsAdapter"
NetRuleHardwareBindForm = " yes yes container"
NetRuleHardwareClass    = {"rtr16ndsAdapter basic"}
;
; Registry Keys
;
ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
PcmciaKeyName   = $(!NTN_ServiceBase)"\Pcmcia\DataBase"
PcmciaSubKeyName = "RACORE\TOKEN RING"
PcmciaDeleteKeyName = "RACORE"
;
; Message files
;
NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"

[GeneralConstants]
;
; Program flow variables
;
from      = ""
to        = ""
;
; Exit codes
;
ExitCodeOk     = 0
ExitCodeCancel = 1
ExitCodeFatal  = 2

;
; Misc. global variables
;
KeyNull         = ""
MAXIMUM_ALLOWED   = 33554432
RegistryErrorIndex = NO_ERROR
KeyProduct      = ""
KeyParameters   = ""
VendorPcmciaKey = ""
TRUE            = 1
FALSE           = 0
NoTitle            = 0
ExitState   = "Active"
OldVersionExisted = $(FALSE)
DriverPath      = $(!STF_NTPATH)\drivers
;
; Adapter Bus & Card type etc...
;
BusNumberValue = 0
PCICARD = 12
EISACARD = 9
UNKNOWN = 0
ISABUS = 1
EISABUS = 2
PCMCIABUS = 8
PCIBUS = 5

[date]
    Now = {} ? $(!LIBHANDLE) GetSystemDate

;---------------------------------------------------------------------------
; 1. Identify
;
; DESCRIPTION:   To verify that this INF deals with the same type of options
;                as we are choosing currently.
;
; INPUT:         None
;
; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
;                $($R1): Option Type (COMPUTER ...)
;                $($R2): Diskette description
;---------------------------------------------------------------------------
[Identify]
    Set !G:DebugOutputControl = 1
    read-syms Identification
    set Status     = STATUS_SUCCESSFUL
    set Identifier = $(OptionType)
    set Media      = #("Source Media Descriptions", 1, 1)
    Debug-Output "*********************Identify Section *****************"
    Return $(Status) $(Identifier) $(Media)

;------------------------------------------------------------------------
; 2. ReturnOptions:
;
; DESCRIPTION:   To return the option list supported by this INF and the
;                localised text list representing the options.
;
;
; INPUT:         $($0):  Language used. ( ENG | FRN | ... )
;
; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL |
;                                STATUS_NOLANGUAGE
;                                STATUS_FAILED
;                                STATUS_NOTSUPPORTED
;
;                $($R1): Option List
;                $($R2): Option Text List
;------------------------------------------------------------------------
[ReturnOptions]
    Set !G:DebugOutputControl = 1
    Debug-Output "*********************Return Options *****************"
    set Status        = STATUS_FAILED
    set OptionList     = {}
    set OptionTextList = {}
;
; Determine if requested language is supported.
;
    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) in $(LanguageList)
        ifstr(i) $($1) == ""
                        goto returnoptions
        endif
	;
	; Determine if requested platform is supported
	;
        set PlatformList = ^(PlatformsSupported, 1)
        Ifcontains(i) $($1) in $(PlatformList)
                        goto returnoptions
        else
                        set Status = STATUS_NOTSUPPORTED
                        goto finish_ReturnOptions
        endif
    else
                set Status = STATUS_NOLANGUAGE
                goto finish_ReturnOptions
    endif
returnoptions = +
    set OptionList     = ^(Options, 1)
    set OptionTextList = ^(OptionsText$($0), 1)
    set Status         = STATUS_SUCCESSFUL
finish_ReturnOptions = +
    Return $(Status) $(OptionList) $(OptionTextList)

;------------------------------------------------------------------------
;
; InstallOption:
;
;      This section is shelled to by main installation processing
;      or by NCPASHEL.INF during reconfig, removal, update, etc.
;
;
; FUNCTION:  To copy files representing Options
;            To configure the installed option
;            To update the registry for the installed option
;
; INPUT:     $($0):  Language to use
;            $($1):  OptionID to install
;            $($2):  SourceDirectory
;            $($3):  AddCopy  (YES | NO)
;            $($4):  DoCopy   (YES | NO)
;            $($5):  DoConfig (YES | NO)
;
; OUTPUT:    $($R0): STATUS: STATUS_SUCCESSFUL |
;                            STATUS_NOLANGUAGE |
;                            STATUS_USERCANCEL |
;                            STATUS_FAILED
;
;------------------------------------------------------------------------
[InstallOption]
    Set !G:DebugOutputControl = 1
    Debug-Output "*********************InstallOption*****************"
    set Status   = STATUS_FAILED
;
; get parameters
;
    set Option   = $($1)
    set SrcDir   = $($2)
    set AddCopy  = $($3)
    set DoCopy   = $($4)
    set DoConfig = $($5)

;
; Check for language support
;
    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) NOT-IN $(LanguageList)
        Return STATUS_NOLANGUAGE
    endif

    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)

    SetHelpFile "rtr16nds.hlp" 1 1

    detect date

    set-title  $(FunctionTitle)

    set to   = Begin
    set from = Begin
;
; so far, so good
;
    set CommonStatus = STATUS_SUCCESSFUL
    EndWait
;
;
Begin = +
   Debug-Output "begin"

    Ifstr(i) $(!NTN_InstallMode) == deinstall
        set StartLabel = removeadapter
    else-Ifstr(i) $(!NTN_InstallMode) == Update
        set StartLabel = UpgradeSoftware
    else-Ifstr(i) $(!NTN_InstallMode) == bind
        set StartLabel = bindingadapter
    else-Ifstr(i) $(!NTN_InstallMode) == configure
        set CommonStatus = STATUS_REBOOT
        set StartLabel = configureadapter
        Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
            Debug-Output "Cannot configure the Rtr16nds driver software."
            Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
            ifint $($ShellCode) != $(!SHELL_CODE_OK)
                Debug-Output "ShellCode error: cannot get an error string."
                goto ShellCodeError
            endif
            set Error = $($R0)
            set from = end
            set to = end
            goto nonfatalinfo
        endif
    else
        set StartLabel = installadapter
        set OEM_ABANDON_OPTIONS = {}
        set OEM_ABANDON_SOFTWARE = FALSE
        set OEM_ABANDON_ON = TRUE
    endif
;
; Go to the request operation
;
    Set from = $(fatal)
    Set to   = $(fatal)
    Goto $(StartLabel)

;-----------------------------------------------
; Installation Section
;-----------------------------------------------

installadapter = +
    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
;
; Determine if same version is already installed
;
    Ifstr $(KeyProduct) != $(KeyNull)
	;
	;  Same version already installed
	;
        CloseRegKey $(KeyProduct)
        ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
	   ;
      ; Can not install same software again
	   ; 
           Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
               $(ProductVersion)
           ifint $($ShellCode) != $(!SHELL_CODE_OK)
               Debug-Output "ShellCode error: cannot get an error string."
               goto ShellCodeError
           endif
           goto end
        else
	   ;
	   ; Add a new adapter card?
      ;
           Shell $(UtilityInf), CardExistedDlg
           ifint $($ShellCode) != $(!SHELL_CODE_OK)
               Debug-Output "ShellCode error: cannot get an error string."
               goto ShellCodeError
           endif

           ifstr(i) $($R1) != "OK"
               set CommonStatus = STATUS_USERCANCEL
               goto end
           endif
           set OldVersionExisted = $(TRUE)
        endif
    endif

;
; Copy files
;
ifint $(OldVersionExisted) != $(TRUE)

    Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), ""
    Ifint $($ShellCode) != $(!SHELL_CODE_OK)
	  Goto fatal
    Else-Ifstr(i) $($R0) == STATUS_FAILED
	  Goto fatal
    Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
	  Goto nonfatalinfo
    Endif
    Set SrcDir = $($R1)

    Debug-Output "DllLoad: SrcDir <"$(SrcDir)">"
    install "Install-Option"

endif 

;
; Get the bus type
;
    Shell $(UtilityInf),GetBusTypeDialog,$(ProductHardware$(Option)Description) $(BusInterfaceType) $(BusNumber)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output "ShellCode error."
        goto ShellCodeError
    endif

    set BusTypeValue = $($R1)
    set BusNumberValue = $($R2)
    Debug-Output "INF: Bus Type $(BusTypeValue)"
;
; Set default values for adapter paramters
;
   ifint $(BusTypeValue) == $(PCIBUS)
    Debug-Output "INF: Setup for PCI $(PCIBUS)"
       set DMAChannelValue = *($(DMAChannelList), 19)
       set MemoryValue = *($(MemoryList), 6)
       set IOBaseAddrValue = *($(IOBaseAddrList), 10)
       set IrqValue = *($(IRQList), 15)
       set NetworkAddressValue = ""
       set SpeedValue = 16
       set NoConfigValue = 0
       set PcmciaIntfValue = 0
       set PcmciaValue = 0
       set MaxFrameSizeValue = 4096
       set TXListValue = 10
       set RXListValue = 10
       set PromiscuousValue = 0
       set WaitStateValue = 0
       set CheckItemsIn = {ON, OFF, OFF}
   else-ifint $(BusTypeValue) == $(PCMCIABUS)
    Debug-Output "INF: Setup for PCMCIA $(PCMCIABUS)"
       set DMAChannelValue = *($(DMAChannelList), 2)
       set MemoryValue = *($(MemoryList), 2)
       set IOBaseAddrValue = *($(IOBaseAddrList), 1)
       set IrqValue = *($(IRQList), 1)
       set NetworkAddressValue = ""
       set SpeedValue = 16
       set NoConfigValue = 1
       set PcmciaIntfValue = 0
       set PcmciaValue = 1
       set MaxFrameSizeValue = 4096
       set TXListValue = 10
       set RXListValue = 10
       set PromiscuousValue = 0
       set WaitStateValue = 0
       set CheckItemsIn = {OFF, OFF, OFF}
   else
    Debug-Output "INF: Setup for others"
       set DMAChannelValue = *($(DMAChannelList), 1)
       set MemoryValue = *($(MemoryList), 1)
       set IOBaseAddrValue = *($(IOBaseAddrList), 1)
       set IrqValue = *($(IRQList), 8)
       set NetworkAddressValue = ""
       set SpeedValue = 16
       set NoConfigValue = 0
       set PcmciaIntfValue = 0
       set PcmciaValue = 0
       set MaxFrameSizeValue = 4096
       set TXListValue = 10
       set RXListValue = 10
       set PromiscuousValue = 0
       set WaitStateValue = 0
       set CheckItemsIn = {ON, OFF, OFF}
   endif

   goto adapteroptions

;-----------------------------------------------
; Configuration Section
;-----------------------------------------------
;
;   Get the current values of all the parameters
;
configureadapter = +
    Debug-Output "INF: Configure Adapter"
    Ifstr $(KeyProduct) == $(KeyNull)
        OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
        Ifstr $(KeyProduct) == $(KeyNull)
            set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
            Debug-Output "Cannot find component product key"
            goto fatalregistry
        Endif
    Endif
    ;
    ; Get the other paramters
    ;
    Debug-Output "INF: Shelling to FindService"
    Shell $(UtilityInf) FindService, $(KeyProduct)
    Ifint $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output "INF: FindService shell failure"
        Goto ShellCodeError
    Endif
    Ifstr(i) $($R0) != NO_ERROR
        Debug-Output "INF: FindService Shell error: "$($R0)
        Goto fatalregistry
    endif

    Set KeyParameters = $($R2)

    CloseRegKey $($R1)

    Ifstr $(KeyParameters) == $(KeyNull)
        set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
        Debug-Output "Cannot find component service"
        goto fatalregistry
    endif

    set OldVersionExisted = $(TRUE)

    set ValueName = ""
    set ValueData = ""
    set ValueList = {}

    ;
    ; Get the old values
    ;
    EnumRegValue $(KeyParameters) ValueList

    ForListDo $(ValueList)
        set ValueItem = $($)
        set ValueName = *($(ValueItem),1)
        set ValueData = *($(ValueItem),4)
        ifstr(i) $(ValueName) == "IoAddress"
            set IOBaseAddrIndex = $(ValueData)
        else-ifstr(i) $(ValueName) == "DMACHANNEL"
            set DMAChannelIndex = $(ValueData)
        else-ifstr(i) $(ValueName) == "Interrupt"
            set IrqIndex = $(ValueData)
        else-ifstr(i) $(ValueName) == "Pcmcia"
            set PcmciaValue = $(ValueData)
        else-ifstr(i) $(ValueName) == "PcmciaIntf"
            set PcmciaIntfValue = $(ValueData)
        else-ifstr(i) $(ValueName) == "RingSpeed"
            set SpeedValue = $(ValueData)
        else-ifstr(i) $(ValueName) == "MEMORY"
            set MemoryValue = $(ValueData)
        else-ifstr(i) $(ValueName) == "NoConfig"
            set NoConfigValue = $(ValueData)
        else-ifstr(i) $(ValueName) == "NetworkAddress"
            set NetworkAddressValue = $(ValueData)
        else-ifstr(i) $(ValueName) == "MAXFRAMESIZE"
            set MaxFrameSizeValue = $(ValueData)
        else-ifstr(i) $(ValueName) == "TransmitList"
            set TXListValue = $(ValueData)
        else-ifstr(i) $(ValueName) == "ReceiveList"
            set RXListValue = $(ValueData)
        else-ifstr(i) $(ValueName) == "Promiscuous"
            set PromiscuousValue = $(ValueData)
        else-ifstr(i) $(ValueName) == "WaitState"
            set WaitStateValue = $(ValueData)
        else-ifstr(i) $(ValueName) == "BusType"
            set BusTypeValue = $(ValueData)
        else-ifstr(i) $(ValueName) == "BusNumber"
            set BusNumberValue = $(ValueData)
        endif

    EndForListDo

;
; Set the parameter list so they have the current values at the top
; of the list.  This will allow the display of the current values not
; the default values in the input dialog.
;
    LoadLibrary "Disk 1" $(DialogDllName) hLib
;
; Setup the first dialog
;
    read-syms FileConfigDlg$(!STF_LANGUAGE)

    set IOBaseAddrHex = *($(IOBaseAddrList), ~($(IOBaseAddrValues), $(IOBaseAddrIndex) ))
    set IrqValue  = *($(IRQList), ~($(IRQValues), $(IrqIndex) ))
    set DMATextValue  = *($(DMAChannelList), ~($(DMAChannelValues), $(DMAChannelIndex) ))
    set MemoryHex = *($(MemoryList), ~($(MemoryValues), $(MemoryValue) ))

    Debug-Output "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"
    Debug-Output "INF: IOBaseAddrIndex <"$(IOBaseAddrIndex)"> IOBaseAddrHex <"$(IOBaseAddrHex)">"
    Debug-Output "INF: IrqIndex <"$(IrqIndex)"> IrqValue <"$(IrqValue)">"
    Debug-Output "INF: DMAChannelIndex <"$(DMAChannelIndex)"> DMATextValue <"$(DMATextValue)">"
    Debug-Output "INF: MemoryValue <"$(MemoryValue)"> MemoryHex <"$(MemoryHex)">"
    Debug-Output "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"


;
; build combo1list and combo1out with one occurrance of the current value
; of the port.
;
    set NewListHex = $(IOBaseAddrHex)
    set NewListValues = $(IOBaseAddrIndex)

    ForListDo $(IOBaseAddrValues)
	set CurrVal = $($)
	ifint $(CurrVal) != $(IOBaseAddrIndex)
	   set HexValue   = *($(IOBaseAddrList), ~($(IOBaseAddrValues), $(CurrVal) ))
	   set NewListHex =  >($(NewListHex), $(HexValue)) 
	   set NewListValues =  >($(NewListValues), $(CurrVal) )
	endif
    EndForListDo

    set Combo1List = $(NewListHex)
    set Combo1Out  = $(NewListValues)

    Debug-Output "INF: Finished setting up io "

    set NewIntList     = $(IrqValue)
    set NewListValues  = $(IrqIndex)

    Debug-Output "NewIntList <"$(NewIntList)"> NewListValues <"$(NewListValues)">"

    ForListDo $(IRQValues)
	set CurrVal = $($)
	ifint $(CurrVal) != $(IrqIndex)
	   set NewValue   = *($(IRQList), ~($(IRQValues), $(CurrVal) ))
	   set NewIntList =  >($(NewIntList), $(NewValue)) 
	   set NewListValues =  >($(NewListValues), $(CurrVal) )
	endif
    EndForListDo


    set Combo2List = $(NewIntList)
    set Combo2Out  = $(NewListValues)


    set NewList = $(DMATextValue)
    set NewListValues = $(DMAChannelIndex)

    ForListDo $(DMAChannelValues)
	set CurrVal = $($)
	ifint $(CurrVal) != $(DMAChannelIndex)
	   set NewValue   = *($(DMAChannelList), ~($(DMAChannelValues), $(CurrVal) ))
	   set NewList =  >($(NewList), $(NewValue)) 
	   set NewListValues =  >($(NewListValues), $(CurrVal) )
	endif
    EndForListDo


    set Combo3List = $(NewList)
    set Combo3Out  = $(NewListValues)

;
; build combo4list and combo4out with one occurrance of the current value
; of the memory.
;
    set NewListHex = $(MemoryHex)
    set NewListValues = $(MemoryValue)

    ForListDo $(MemoryValues)
	set CurrVal = $($)
	ifint $(CurrVal) != $(MemoryValue)
	   set HexValue   = *($(MemoryList), ~($(MemoryValues), $(CurrVal) ))
	   set NewListHex =  >($(NewListHex), $(HexValue)) 
	   set NewListValues =  >($(NewListValues), $(CurrVal) )
	endif
    EndForListDo

    set Combo4List = $(NewListHex)
    set Combo4Out  = $(NewListValues)

    set ComboListItemsIn  = {Combo1List, Combo2List, Combo3List, Combo4List}
    set ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out, Combo4Out}

    Debug-Output "INF: Setting Up speed "

    Ifint $(SpeedValue) == 16
      set RadioIn = {1}
    Else
      set RadioIn = {2}
    Endif

    ifint $(NoConfigValue) == 0
	    set CheckItemsIn = { ON }
    else
	    set CheckItemsIn = { OFF }
    endif

    ifint $(PromiscuousValue) == 0
	    set CheckItemsIn = >($(CheckItemsIn), OFF)
    else 
	    set CheckItemsIn = >($(CheckItemsIn), ON)
    endif

    ifint $(WaitStateValue) == 0
	set CheckItemsIn = >($(CheckItemsIn), OFF)
    else 
	set CheckItemsIn = >($(CheckItemsIn), ON)
    endif

    Debug-Output "NoConfig <"$(NoConfigValue)">"
    Debug-Output "CheckItemsIn <"$(CheckItemsIn)">"

    Debug-Output "INF: Finished setting up dialog "

    goto   adapterdialog

adapteroptions = +

    Debug-Output "Reading dialog for rtr16nds"
;
; Load the rtr16nds dll 
;
    LoadLibrary "Disk 1" $(DialogDllName) hLib
;
; Setup the first dialog
;
    read-syms FileDependentDlg$(!STF_LANGUAGE)
;
; Display the dialog
;
adapterdialog = +
    Debug-Output "Starting dialog for rtr16nds"
    ui start "InputDlg" $(hLib)

    Debug-Output "$(DLGEVENT)"
        ifstr(i) $(DLGEVENT) == "CONTINUE"
	     ;
	     ; Set config parameters
	     ;
	     set IOBaseAddrIndex = $(Combo1Out)
        set IrqIndex = $(Combo2Out)
        set DMAChannelIndex = $(Combo3Out)
        set MemoryIndex = $(Combo4Out)
        set SpeedIndex = *($(RadioOut),1)
        set NoConfigIndex = *($(CheckItemsOut),1)
        set PromiscuousIndex = *($(CheckItemsOut),2)
        set WaitStateIndex = *($(CheckItemsOut),3)

	     Debug-Output "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
	     Debug-Output "Speed <"$(SpeedValue)"> Memory <"$(MemoryIndex)">"
	     Debug-Output "Bit16Index<"$(Bit16Index)"> 	Inst8Index <"$(Inst8Index)">"
	     Debug-Output "******IO Index 1 ****<"$(IOBaseAddrIndex)">*****"
	     Debug-Output "******IRQ Index  ****<"$(IrqIndex)">*****"
	     Debug-Output "NoConfigIndex<"$(NoConfigIndex)">"
	     Debug-Output "PromiscuousIndex<"$(PromiscuousIndex)">"
	     Debug-Output "Wait State Index<"$(WaitStateIndex)">"
	     Debug-Output "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"
	

             Ifint $(SpeedIndex) == 1
                 Set SpeedValue = 16
             else-Ifint $(SpeedIndex) == 2
                 Set SpeedValue = 4
             Endif

	     ;
        ; Save network address, it maybe null 
	     ;
        set NetworkAddressValue = *($(EditTextOut),1)
        set MaxFrameSizeValue = *($(EditTextOut),2)
        set TXListValue = *($(EditTextOut),3)
        set RXListValue = *($(EditTextOut),4)
        ;
	     ; If operator select NoConfig check box is set
	     ;	
	     Ifstr(i) $(NoConfigIndex) == "ON"
		     Set NoConfigValue = 0
	     else
		     Set NoConfigValue = 1
	     Endif
        ;
	     ; If operator select Promisucous check box is set
	     ;	
	     Ifstr(i) $(PromiscuousIndex) == "ON"
		     Set PromiscuousValue = 1
	     else
		     Set PromiscuousValue = 0
	     Endif
        ;
	     ; If operator select Wait State check box is set
	     ;	
	     Ifstr(i) $(WaitStateIndex) == "ON"
		     Set WaitStateValue = 1
	     else
		     Set WaitStateValue = 0
	     Endif
 
        Debug-Output "Config IRQ <"$(IrqIndex)"> IO <"$(IOBaseAddrIndex)"> DMA <"$(DMAChannelIndex)">"
	     Debug-Output "Speed <"$(SpeedValue)"> Bit16 <"$(Bit16Value)">"
	     Debug-Output "Inst8 <"$(Inst8Value)"> IrqValue <"$(IrqValue)">"
	     Debug-Output "NoConfigIndex<"$(NoConfigIndex)">"
	     ;
	     ; clear the dialog from the screen
	     ;
             ui pop 1
             FreeLibrary $(hLib)
        else-ifstr(i) $(DLGEVENT) == "EXIT"
	        FreeLibrary $(hLib)
           set CommonStatus = STATUS_USERCANCEL
           Debug-Output "Action: cancel Bye."
           ui pop 1
           goto end
        else
	        FreeLibrary $(hLib)
           Debug-Output "Action: unknown. Bye."
           ui pop 1
           goto end

         endif

;
;   If installing, go create the necessary keys;
;   if configuring, they're already open.
;
skipoptions =+
    ifint $(OldVersionExisted) == $(TRUE)
        ifstr(i) $(!NTN_InstallMode) == configure
            goto writeparameters
        endif
        goto  installhardware
    endif
    StartWait
    ;
    ; Add Software Component
    ;
        Debug-Output "Invoking AddSoftwareComponent"

        Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
            $(ProductSoftwareName), +
            $(ProductSoftwareName), +
            $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
            $(ProductSoftwareImagePath), "kernel", "NDIS" , {}, "",+
            $(NetEventDLL)

        Set OEM_ABANDON_SOFTWARE = TRUE

        ifint $($ShellCode) != $(!SHELL_CODE_OK)
            Debug-Output "ShellCode error"
            goto ShellCodeError
        endif

        ;
        ;   At this point:
        ;     $R1 contains the product version key handle;
        ;     $R2 contains the NetRules subkey handle;
        ;     $R3 contains the new Services key handle; and
        ;     $R4 contains the Parameters key
        ;     $R5 contains the Linkage Key
        ;
        set RegistryErrorIndex = $($R0)
        set KeyProduct      = $($R1)
        Set SoftNetRulesKey = $($R2)
        CloseRegKey $($R3)
        CloseRegKey $($R4)
        CloseRegKey $($R5)

        Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
            EndWait
            Debug-Output "Registry error: add software components"
            CloseRegKey $(KeyProduct)
            CloseRegKey $(SoftNetRulesKey)
            goto fatalregistry
        endif

        set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
                           {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
                           {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
                           {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
                           {Description,$(NoTitle),$(!REG_VT_SZ),$(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 "ShellCode error."
            goto ShellCodeError
        endif

        set RegistryErrorIndex = $($R0)

        Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
            EndWait
            Debug-Output "Registry error: add value list."
            CloseRegKey $(KeyProduct)
            CloseRegKey $(SoftNetRulesKey)
            goto fatalregistry
        endif

        set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
                            {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
                            {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
                            {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
                            {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
                            {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}

        Shell  $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
            Debug-Output "ShellCode error."
            goto ShellCodeError
        endif

        set RegistryErrorIndex = $($R0)

        CloseRegKey $(KeyProduct)
        CloseRegKey $(SoftNetRulesKey)

        Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
            EndWait
            Debug-Output "Resgitry error: add value list."
            goto fatalregistry
        endif
    endif
;
; Create the hardware entries and its corresponding service
;
installhardware =+
    Debug-Output "Invoking AddHardwareComponent <"$(STF_CONTEXTINFNAME)">"
    Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)

    ifint $($R4) != -1
        Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
    endif

    ifint $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output "Cannot add hardware component"
        goto ShellCodeError
    endif

    set RegistryErrorIndex = $($R0)

    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
        EndWait
        Debug-Output "Registry error: add hardware component"
        CloseRegKey $($R1)
        CloseRegKey $($R2)
        CloseRegKey $($R3)
        goto fatalregistry
    endif

;
;   At this point:
;     $R1  Registry key variable for HARDWARE\Netcard\(n)
;     $R2  Registry key variable for HARDWARE\Netcard\(n)\\NetRules
;     $R3  Registry key handle for <service>\Parameters key
;     $R4  Adapter number assigned to adapter
;     $R5  Service name generated by combining svc name with adapter number
;
    set KeyParameters = $($R3)
    set KeyAdapterRules = $($R2)
    set AdapterNumber = $($R4)

    set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
                       {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
                       {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
                       {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
                       {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
                       {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}

    Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)

    ifint $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output "ShellCode error"
        goto ShellCodeError
    endif

    CloseRegKey $($R1)

    set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
    set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)

    set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
                        {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
                        {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
                        {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}

    Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output "ShellCode error."
        goto ShellCodeError
    endif

    set RegistryErrorIndex = $($R0)

    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
        EndWait
        Debug-Output "Resgitry error: add value list."
        CloseRegKey $(KeyParameters)
        CloseRegKey $(KeyAdapterRules)
        goto fatalregistry
    endif

    CloseRegKey $(KeyAdapterRules)

    goto writeparameters
;
;   REQUIRED:   $(KeyParameters) contains service Parameters key handle
;
writeparameters = +
    set IOBaseAddrValue = *($(IOBaseAddrValues), ~($(IOBaseAddrList),$(IOBaseAddrIndex)))
    set IrqValue = *($(IRQValues), ~($(IRQList),$(IrqIndex)))
    set DMAChannelValue = *($(DMAChannelValues), ~($(DMAChannelList),$(DMAChannelIndex)))
    set MemoryValue = *($(MemoryValues), ~($(MemoryList),$(MemoryIndex)))
    set PcmciaSlotValue = *($(PcmciaSlotValues), ~($(PcmciaSlotList),$(PcmciaSlotIndex)))

;
; This is because NT doesn't support PCMCIA bus type
; and to allow ISA on an EISA bus type
;
    ifint $(PcmciaValue) == 1
       set PcmciaIntfValue = 0
   	set BusTypeValue = $(ISABUS)
       set NewValueList = {+
           {PCCARDAttributeMemoryAddress,$(NoTitle),$(!REG_VT_DWORD),$(MemoryValue)},+
           {PCCARDAttributeMemorySize,$(NoTitle),$(!REG_VT_DWORD),4096},+
           {PCCARDAttributeMemoryOffset,$(NoTitle),$(!REG_VT_DWORD),0},+
           {Pcmcia,$(NoTitle),$(!REG_VT_DWORD),$(PcmciaValue)},+
           {PcmciaIntf,$(NoTitle),$(!REG_VT_DWORD),$(PcmciaIntfValue)},+
           {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IrqValue)},+
           {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)}}

       Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)

       ifint $($ShellCode) != $(!SHELL_CODE_OK)
           Debug-Output "ShellCode error"
           goto ShellCodeError
       endif

       ;                          
       ; Create the 
       ; SYSTEM\CurrenControlSet\Pcmcia\DataBase\[VENODR]\TOKEN RING key
       ;
       OpenRegKey $(!REG_H_LOCAL) "" $(PcmciaKeyName) $(MAXIMUM_ALLOWED) BaseKey
       shell "" HtCreateRegKey $(BaseKey) $(PcmciaSubKeyName)
       IfStr(i) $($R0) != NO_ERROR
           Debug-Output $(InfName)": Error creating registry key!"
           GoTo fatalregistry
       EndIf
       Set VendorPcmciaKey = $($R1)
       Set NewValueList = {+
                    {Driver,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)}}
       Shell  $(UtilityInf), AddValueList, $(VendorPcmciaKey), $(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 $(VendorPcmciaKey)
       CloseRegKey $(BaseKey)
    endif	

    ifint $(BusTypeValue) == $(EISABUS)
	    set BusTypeValue = $(ISABUS)
    endif	

;
; The cardtype is set to the value of the enum type CardType in 
; driversf.h in the drivers source.  This allows the driver to know
; what type of card it is starting on since the bustype is always isa.
; At this time NdisMInitInterrupt fails if it is passed as bustype other
; than isa.
;
     Set CardType = $(UNKNOWN)
     ifint $(IOBaseAddrValue) == 98
   	Set CardType = $(PCICARD)
	    Debug-Output "IO Addr is PCI"
     endif
     ifint $(IOBaseAddrValue) == 96
   	; Card is an 8120
	    Set CardType = $(EISACARD)
	Debug-Output "IO Addr is EISA"
     endif
;;;;
;;;;
     Debug-Output "*****************************************************"
     Debug-Output "Config IRQ <"$(IrqIndex)"> IO <"$(IOBaseAddrIndex)"> DMA <"$(DMAChannelValue)">"
     Debug-Output "Speed <"$(SpeedValue)"> Bit16 <"$(Bit16Value)">"
     Debug-Output "Inst8 <"$(Inst8Value)">"
     Debug-Output "IrqValue <"$(IrqValue)">"
     Debug-Output "NoConfig <"$(NoConfigValue)">"
     Debug-Output "*****************************************************"

    Set NewValueList = {+
           {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeValue)},+
           {Interrupt,$(NoTitle),$(!REG_VT_DWORD),$(IrqValue)},+
           {DMACHANNEL,$(NoTitle),$(!REG_VT_DWORD),$(DMAChannelValue)},+
           {RingSpeed,$(NoTitle),$(!REG_VT_DWORD),$(SpeedValue)},+
           {Promiscuous,$(NoTitle),$(!REG_VT_DWORD),$(PromiscuousValue)},+
           {WaitState,$(NoTitle),$(!REG_VT_DWORD),$(WaitStateValue)},+
           {MEMORY,$(NoTitle),$(!REG_VT_DWORD),$(MemoryValue)},+
           {IoAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)} +
           {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumberValue)} +
           {NoConfig,$(NoTitle),$(!REG_VT_DWORD),$(NoConfigValue)} +
           {CardType,$(NoTitle),$(!REG_VT_DWORD),$(CardType)}, +
           {MediaType,$(NoTitle),$(!REG_VT_DWORD),2}, +
           {MAXFRAMESIZE,$(NoTitle),$(!REG_VT_DWORD),$(MaxFrameSizeValue)}, +
           {TransmitList,$(NoTitle),$(!REG_VT_DWORD),$(TXListValue)}, +
           {ReceiveList,$(NoTitle),$(!REG_VT_DWORD),$(RXListValue)}, +
           {NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddressValue)}}

    Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)

    CloseRegKey $(KeyParameters)

    ifint $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output "ShellCode error."
        goto ShellCodeError
    endif

    set RegistryErrorIndex = $($R0)

    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
        Debug-Output "Registry error: Add value list"
        goto fatalregistry
    endif

    EndWait

    goto successful

bindingadapter =+
    set Error = "Binding: Sorry, not yet implemented."
    goto fatal

;-----------------------------------------------
; Removeadapter section
;-----------------------------------------------

removeadapter = +
    Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
        ;
        ; Remove Software Componet
        ;
        Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
            $(ProductSoftwareName)
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
            Debug-Output "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 "ShellCode error"
            goto ShellCodeError
        endif

        set RegistryErrorIndex = $($R0)

        Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
            goto fatalregistry
        endif
    endif

    OpenRegKey $(!REG_H_LOCAL) "" $(PcmciaKeyName) $(MAXIMUM_ALLOWED) BaseKey
    DeleteRegTree $(BaseKey) $(PcmciaDeleteKeyName)
    CloseRegKey $(BaseKey)

    goto end

;-----------------------------------------------
; Upgrade Software section
;-----------------------------------------------

UpgradeSoftware = +
     Debug-Output "*******************UpGrade Software********************"
     Debug-Output "*******************UpGrade Software********************"
     Debug-Output "*******************UpGrade Software********************"
     Debug-Output "*******************UpGrade Software********************"
     Debug-Output "*******************UpGrade Software********************"
     set Error = "UpgradeSoftware: Not implemented, Remove and Install"
     goto fatal

;
;  Escape hatches
;
successful = +
    goto end

abandon = +
    ForListDo $(OEM_ABANDON_OPTIONS)
        Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
            $(ProductSoftwareName), $($)
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
            Debug-Output "ShellCode error"
            goto ShellCodeError
        endif

        set 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 "ShellCode error"
            goto ShellCodeError
        endif

        set RegistryErrorIndex = $($R0)

        Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
            goto fatalregistry
        endif
    endif
    goto end

warning = +
    Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
        goto ShellCodeError
    endif
    ifstr(i) $($R1) == "OK"
        goto $(to)
    else-ifstr(i) $($R1) == "CANCEL"
        goto $(from)
    else
        goto "end"
    endif

nonfatalinfo = +
    Set Severity = STATUS
    Set CommonStatus = STATUS_USERCANCEL
    goto nonfatalmsg

nonfatal = +
    Set Severity = NONFATAL
    goto nonfatalmsg

nonfatalmsg = +
    ifstr(i) $(Error) == ""
        Set Severity = NONFATAL
        Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
            goto ShellCodeError
        endif
        set Error = $($R0)
    endif
    Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
        goto ShellCodeError
    endif
    ifstr(i) $($R1) == "OK"
        goto $(from)
    else
        goto "end"
    endif
;
; Registry is broken....  very bad if this happens
;
fatalregistry = +
    Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
        goto ShellCodeError
    endif
    set Error = $($R0)
    goto fatal

fataldetect = +
    Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
        Debug-Output "ShellCode error: cannot get an error string."
        goto ShellCodeError
    endif
    set Error = $($R0)
    Goto fatal

fatal = +
    ifstr(i) $(Error) == ""
        Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
            goto ShellCodeError
        endif
        set Error = $($R0)
    endif
    Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
        goto ShellCodeError
    endif
    goto setfailed

ShellCodeError = +
    set DlgType      = "MessageBox"
    set STF_MB_TITLE = $(ShellCodeErrorTitle)
    set STF_MB_TEXT  = $(ShellCodeErrorText)
    set STF_MB_TYPE  = 1
    set STF_MB_ICON  = 3
    set STF_MB_DEF   = 1
    ui start "Error Message"
    goto setfailed

setfailed = +
    set CommonStatus = STATUS_FAILED
    ifstr(i) $(OEM_ABANDON_ON) == TRUE
        set OEM_ABANDON_ON = FALSE
        goto abandon
    endif
    goto end

end = +
    goto term

term = +
    Return $(CommonStatus)

;***********************************************************************
;
;***********************************************************************
[HtCreateRegKey]
    Debug-Output $(InfName)": Entering [HtCreateRegKey]"
    Set ECR_Result          = NO_ERROR
    Set ECR_BaseKeyHandle   = $($0)
    Set ECR_NewPath         = $($1)
    Set KeyNull             = ""
    Set MAXIMUM_ALLOWED     = 33554432

    Debug-Output $(InfName)": HtCreateRegKey - 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]
    Set InfName = "OEMSETUP.INF"
    Debug-Output $(InfName)" **CONFIGURATION STATE: "$($0)
    Debug-Output $(InfName)" IRQ_Level is "$(!p:IrqValue)
    Debug-Output $(InfName)" DMAChannel is "$(!p:DMAChannelValue)
    Debug-Output $(InfName)" Memory is "$(!p:MemoryValue)
    Debug-Output $(InfName)" Bit16 "$(!p:Bit16Value)
    Debug-Output $(InfName)" Inst8 "$(!p:Inst8Value)
    Debug-Output $(InfName)" NoConfig"$(!p:NoConfigValue)
    Debug-Output $(InfName)" Speed is "$(!p:SpeedValue)
    Debug-Output $(InfName)" IOBaseAddrValue is "$(!p:IOBaseAddrValue)
    return
[Install-Option]
   Debug-Output "Install Option"
;
; Copy files from diskette
; Files to copy: rtr16nds.sys and rtr16nds.dll

   set STF_VITAL        = ""

   AddSectionKeyFileToCopyList Files-Rtr16nds 1 $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
   AddSectionKeyFileToCopyList Files-Dll 1 $(SrcDir) $(!STF_WINDOWSSYSPATH)

   set !STF_NCPA_FLUSH_COPYLIST = TRUE
   CopyFilesInCopyList


[Install-Update]
   Debug-Output "Install Update"
   set STF_VITAL        = ""
   set STF_OVERWRITE    = "VERIFYSOURCEOLDER"

   AddSectionFilesToCopyList Files-Rtr16nds $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
   AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)

   set !STF_NCPA_FLUSH_COPYLIST = TRUE
   CopyFilesInCopyList

   exit

[Source Media Descriptions]
    1  = "Rtr16nds Install Disk"  , TAGFILE = disk.id

[ProductType]
STF_PRODUCT  = Winnt
STF_PLATFORM = I386

[Files-Inf]
2,	oemsetup.inf,	 SIZE=1000,	RENAME=$(!UG_Filename)

[Files-Rtr16nds]
1 = 1, RTR16NDS.SYS

[Files-Dll]
1 = 1, rtr16nds.dll

[LanguagesSupported]
    ENG

[OptionsTextENG]
    RTR16NDS     = "Rtr16nds Token Ring NDIS Driver"

[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:"

FunctionTitle   = "RTR16NDS Token Ring Adapter Card Setup"

ProductSoftwareDescription      = "Rtr16nds Token Ring Adapter Driver"
ProductHardwareDescription        = "Rtr16nds Token Ring Adapter"

ProductSoftwareTitle    = "Rtr16nds Token Ring Adapter Driver"
ProductHardwareTitle = "Rtr16nds Token Ring Adapter"

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

DialogDllName   = "rtr16nds.dll"

IOBaseAddrList = ^(IOBaseAddrChoices, 1)
IOBaseAddrValues = ^(IOBaseAddrChoices, 2)

IRQList  = ^(IRQChoices, 1)
IRQValues = ^(IRQChoices, 2)

DMAChannelList = ^(DMAChannelChoices,1)
DMAChannelValues = ^(DMAChannelChoices,2)

MemoryList = ^(MemoryChoices,1)
MemoryValues = ^(MemoryChoices,2)

SpeedList = ^(SpeedChoices,1)
SpeedValues = ^(SpeedChoices,2)

[DialogConstantsENG]
Help        = "&Help"
Exit        = "&Cancel"
Advanced    = "A&dvanced"
OK          = "O&K"
HelpContext = ""
Continue    = "C&ontinue"
Cancel      = "&Cancel"

[FileDependentDlgENG]

DlgText = "Please select values for the follwing fields:"

DlgType = "RadioCombination"
DlgTemplate = "CONFIGNDIS"
Caption = $(FunctionTitle)

CBOptionsGreyed = {}
NotifyFields = {NO, NO}
HelpContext = 1

Combo1Label = "&Port Address"
Combo2Label = "&IRQ Level"
Combo3Label = "&Dma Channel"
Combo4Label = "&Memory Address"

Edit1Label = "&Network Address"
Edit2Label = "Max &Frame Size"
Edit3Label = "&Transmit Lists"
Edit4Label = "Receive &Lists"

Combo1List = $(IOBaseAddrList)
Combo1Out  = $(IOBaseAddrValue)

Combo2List = $(IRQList)
Combo2Out  = $(IrqValue)

Combo3List = $(DMAChannelList)
Combo3Out  = $(DMAChannelValue)

Combo4List = $(MemoryList)
Combo4Out  = $(MemoryValue)

Group1 = "Speed Setting"
Group2 = "Advanced Configuration"

Radio1 = "&16 Mb/s"
Radio2 = "&4 Mb/s"

CheckBox1 = "Use Config Register"
CheckBox2 = "Promiscuous Mode"
CheckBox3 = "Wait State (PCMCIA)"

ComboListItemsIn  = {Combo1List, Combo2List, Combo3List, Combo4List}
ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out, Combo4Out}

EditTextIn = {$(NetworkAddressValue), $(MaxFrameSizeValue), $(TXListValue), $(RXListValue)}
EditTextLim = {12,5,3,3}
EditTextOut = {}

RadioIn = {1}

[FileConfigDlgENG]

DlgText = "Please select values for the following fields:"

DlgType = "RadioCombination"
DlgTemplate = "CONFIGNDIS"
Caption = $(FunctionTitle)

CBOptionsGreyed = {}
NotifyFields = {NO, NO}
HelpContext = $(!IDH_DB_OEMNADE2_INS)

Combo1Label = "&Port Address"
Combo2Label = "&IRQ Level"
Combo3Label = "&Dma Channel"
Combo4Label = "&Memory Address"

Edit1Label = "&Network Address"
Edit2Label = "Max &Frame Size"
Edit3Label = "&Transmit Lists"
Edit4Label = "Receive &Lists"

Group1 = "Speed Setting"
Group2 = "Advanced Configuration"

Radio1 = "&16 Mb/s"
Radio2 = "&4 Mb/s"

CheckBox1 = "Use Config Register"
CheckBox2 = "Promiscuous Mode"
CheckBox3 = "Wait State (PCMCIA)"

EditTextIn = {$(NetworkAddressValue), $(MaxFrameSizeValue), $(TXListValue), $(RXListValue)}
EditTextLim = {12,5,3,3}
EditTextOut = {}

[IRQChoices]
   IRQ_1 = "2",2
   IRQ_2 = "3",3
   IRQ_3 = "4",4
   IRQ_4 = "5",5
   IRQ_5 = "6",6
   IRQ_6 = "7",7
   IRQ_7 = "8",8
   IRQ_8 = "9",9
   IRQ_9 = "10",10
   IRQ_10 = "11",11
   IRQ_11 = "12",12
   IRQ_12 = "13",13
   IRQ_13 = "14",14
   IRQ_14 = "15",15
   IRQ_15 = "Autodetect",98

[IOBaseAddrChoices]
   IOBase_1  = "A20",2592
   IOBase_2  = "1A20",6688
   IOBase_3  = "2A20",10784
   IOBase_4  = "3A20",14880
   IOBase_5  = "A40",2624
   IOBase_6  = "A60",2656
   IOBase_7  = "A00",2560
   IOBase_8  = "300",768
   IOBase_9  = "320",800
   IOBase_10 = "PCI",98

[DMAChannelChoices]
   DMAChannel_1= "Pseudo DMA",99
   DMAChannel_2= "Fast Access",98
   DMAChannel_3 = "1",1
   DMAChannel_4 = "2",2
   DMAChannel_5 = "3",3
   DMAChannel_6 = "4",4
   DMAChannel_7 = "5",5
   DMAChannel_8 = "6",6
   DMAChannel_9 = "7",7
   DMAChannel_10 = "8",8
   DMAChannel_11 = "9",9
   DMAChannel_12 = "10",10
   DMAChannel_13 = "11",11
   DMAChannel_14 = "12",12
   DMAChannel_15 = "13",13
   DMAChannel_16 = "14",14
   DMAChannel_17 = "15",15
   DMAChannel_18 = "16",16
   DMAChannel_19 = "Autodetect",97

[MemoryChoices]
   Memory_1  = "No Memory",99
   Memory_2  = "CC000",835584
   Memory_3  = "D0000",851968
   Memory_4  = "D8000",884736
   Memory_5  = "DC000",901120
   Memory_6  = "Autodetect",98

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: 1.43