OEMSETUP.INF Driver File Contents (Token_Ring_2327.zip)

;***********************************************************************
;
; OEMSETUP.INF
;
; Version : 1.01
;
;       Olicom network card and driver SETUP INF file.
;
;***********************************************************************

;-----------------------------------------------------------------------
; OPTION TYPE
; -----------
; This identifies the Option type we are dealing with.  The different
; possible types are:
;
; COMPUTER, DISPLAY, MOUSE, KEYBOARD, LAYOUT, SCSI, PRINTER, ...
;
;  Types specific to networking:
;
; NetAdapter,        a netcard / adapter combination or just a netcard
; NetDriver,         just a netcard driver
; NetTransport,      a complete NDIS-compliant TDI transport stack
; NetService,        an NT networking service
; NetWork,           a complete network ensemble.
; NetProvider        a complete network which supports NT MPR protocol
;-----------------------------------------------------------------------

[Identification]
    OptionType = NetAdapter

;-----------------------------------------------------------------------
; PlatformsSupported
; ------------------
; This identifies the platforms supported by the adapter card.
; Possible types are:
;
; ISA and EISA
;-----------------------------------------------------------------------

[PlatformsSupported]
    ISA
    EISA
    PCI

[LanguagesSupported]
    ENG

;-----------------------------------------------------------------------
; OPTION LIST
; -----------
; This section lists the OEM Option key names.  These keys are locale
; independent and used to represent the option in a locale independent
; manner.
;
;-----------------------------------------------------------------------

[Options]
    OCE5X_2327

[OptionsTextENG]
    OCE5X_2327 = "Olicom RapidFire 2327 Ethernet 10/100 PCI Adapter"


[RecBufCountChoices]
RB_0 = "8",8
RB_1 = "16",16
RB_2 = "32",32
RB_3 = "48",48
RB_4 = "64",64

[BusNumberChoices]
BusNo_1  = "0",0
BusNo_2  = "1",1
BusNo_3  = "2",2
BusNo_4  = "3",3
BusNo_5  = "4",4
BusNo_6  = "5",5
BusNo_7  = "6",6
BusNo_8  = "7",7
BusNo_9  = "8",8
BusNo_10 = "9",9
BusNo_11 = "10",10

[ConnTypeChoices]
ConnType_1 = "Auto negotiate",0
ConnType_2 = "100 Mbps Half Duplex",8
ConnType_3 = "100 Mbps Full Duplex",9
ConnType_4 = "10 Mbps Half Duplex",2
ConnType_5 = "10 Mbps Full Duplex",3

[NoYesChoices]
NoYes_1 = "No",0
NoYes_2 = "Yes",1

[DisEnahoices]
DisEna_1 = "Disable",0
DisEna_2 = "Enable",1

;-----------------------------------------------------------------------
; Constants for use with dialogs
;-----------------------------------------------------------------------

[FileConstants]
UtilityInf      = "UTILITY.INF"
subroutineinf   = "SUBROUTN.INF"
SoftwareType    = "driver"
Exit_Code       = 0
DialogDllName   = "oce5xnd3.dll"
HelpfileName    = "oce5xnd3.hlp"
NetEventDLL     = "%SystemRoot%\System32\netevent.dll;%SystemRoot%\System32\Drivers\Oce5xnd3.sys"
IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
Manufacturer    = "Olicom"
ProductMajorVersion     = "1"
ProductMinorVersion     = "01"
ProductVersion          = $(ProductMajorVersion)"."$(ProductMinorVersion)
ProductSoftwareName     = "OCE5XND3"
ProductSoftwareTitle    = "Olicom RapidFire Ethernet 10/100 PCI Adapter Driver"
ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\oce5xnd3.sys"
NetRuleSoftwareType     = "oce5xnd3Sys ndisDriver oce5xnd3Driver"
NetRuleSoftwareUse      = $(SoftwareType)
NetRuleSoftwareBindForm = """Oce5xNd3Sys"" yes no container"
NetRuleSoftwareClass    = {"oce5xnd3Driver basic"}
NetRuleSoftwareBindable = {"oce5xnd3Driver oce5xnd3Adapter non exclusive 100"}
ProductHardwareName     = "OCE5XND3"
ProductHardwareOCE5X_2327Title    = "Olicom RapidFire 2327 Ethernet 10/100 PCI Adapter"
NetRuleHardwareType     = "oce5xnd3 oce5xnd3Adapter"
NetRuleHardwareBindForm = " yes yes container"
NetRuleHardwareClass    = {"oce5xnd3Adapter basic"}
ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"

[GeneralConstants]
from      = ""
to        = ""
ReturnTo  = ""
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
PCIDetectSupported = $(TRUE)
NT350VersionConstant = "3.50"
NT310VersionConstant = "3.10"

[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:"
OCE5X_2327FunctionTitle = "Olicom RapidFire 2327 Ethernet 10/100 PCI Adapter"
ProductHardwareOCE5X_2327Description = "Olicom RapidFire 2327 Ethernet 10/100 PCI Adapter"
ProductSoftwareDescription           = "Olicom RapidFire Ethernet 10/100 PCI Adapter Driver"
FunctionTitle   = $($(Option)FunctionTitle)

AdapterType_OCE5X_2327 = 5
CFID_OCE5X_2327 = 1642513	;; 0x00191011

RecBufCountList = ^(RecBufCountChoices, 1)
RecBufCountValues = ^(RecBufCountChoices, 2)
ExtPCIList = ^(NoYesChoices, 1)
ExtPCIValues = ^(NoYesChoices, 2)
ConnTypeList = ^(ConnTypeChoices, 1)
ConnTypeValues = ^(ConnTypeChoices, 2)
BusNoList = ^(BusNumberChoices, 1)
BusNoValues = ^(BusNumberChoices, 2)

RecBufCountDefault  = 2
ExtPCIDefault       = 2
ConnTypeDefault     = 1
BusIndexDefault     = 1
BusNoDefault        = 0
SlotNoDefault       = 0
SlotNoUnknown       = 1024

[DialogConstantsENG]
Help        = "&Help"
Exit        = "Cancel"
OK          = "OK"
HelpContext = ""
Continue    = "Continue"
Cancel      = "Cancel"
ContextMinimumID        = 6000
ContextContentsID       = 6000

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

[AskSourceDlgText]
    DlgText        = "Please enter the full path of the Olicom RapidFire Ethernet "+
		     "Adapter driver setup files. Then choose Continue."

;-----------------------------------------------------------------------
; ADAPTER PARAMETER DIALOG NO. 1
; ------------------------------
; This section sets up the adapter parameter dialog. All textstrings
; presented in this dialog are defined here.
;
; OC-2327 Adaptors
;
;-----------------------------------------------------------------------

[AdapterParameterDlg1ENG]
DlgType = "RadioCombination"
DlgTemplate = "OCE5DLG5"
Caption = $(FunctionTitle)
DlgText = "Please select values for the following fields:"
Combo1Label = "&Connection Type:"
Combo2Label = "&Receive Buffers:"
Combo3Label = "&Extended PCI Commands:"
Edit1Label = "&Network Address:"
Combo1List = $(ConnTypeList)
Combo1Out  = $(ConnTypeIndex)
Combo2List = $(RecBufCountList)
Combo2Out  = $(RecBufCountIndex)
Combo3List = $(ExtPCIList)
Combo3Out  = $(ExtPCIIndex)
ComboListItemsIn  = {Combo1List, Combo2List, Combo3List}
ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out}
EditTextLim = 19
EditTextIn = $(NetworkAddress)
RadioOptionGreyed = {}
CBOptionsGreyed = {}
NotifyFields = {NO, NO, NO, NO}
HelpContext = $(ContextContentsID)


;-----------------------------------------------------------------------
; ADAPTER PARAMETER DIALOG NO. 2
; ------------------------------
; This section sets up the adapter parameter dialog. All textstrings
; presented in this dialog are defined here.
;
; OC-2327 Adaptors
;
;-----------------------------------------------------------------------

[AdapterParameterDlg2ENG]
DlgType = "RadioCombination"
DlgTemplate = "OCE5DLG1"
Caption = $(FunctionTitle)
DlgText = "Please select values for the following fields:"
Combo1Label = "&Connection Type:"
Combo2Label = "&Receive Buffers:"
Combo3Label = "&Extended PCI Commands:"
Combo5Label = "&Bus Number:"
Edit1Label = "&Network Address:"
Combo1List = $(ConnTypeList)
Combo1Out  = $(ConnTypeIndex)
Combo2List = $(RecBufCountList)
Combo2Out  = $(RecBufCountIndex)
Combo3List = $(ExtPCIList)
Combo3Out  = $(ExtPCIIndex)
Combo4List = $(BusNoList)
Combo4Out  = $(BusNoIndex)
ComboListItemsIn  = {Combo1List, Combo2List, Combo3List, Combo4List}
ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out, Combo4Out}
EditTextLim = 19
EditTextIn = $(NetworkAddress)
RadioOptionGreyed = {}
CBOptionsGreyed = {}
NotifyFields = {NO, NO, NO, NO}
HelpContext = $(ContextContentsID)


;---------------------------------------------------------------------------
; 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]
    read-syms Identification
    set Status     = STATUS_SUCCESSFUL
    set Identifier = $(OptionType)
    set Media      = #("Source Media Descriptions", 1, 1)
    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 Status         = STATUS_FAILED
    set OptionList     = {}
    set OptionTextList = {}
	set LanguageList = ^(LanguagesSupported, 1)
	Ifcontains(i) $($0) in $(LanguageList)
	ifstr(i) $($1) == ""
	   goto returnoptions
	endif
	set PlatformList = ^(PlatformsSupported, 1)
	Ifcontains(i) $($1) in $(PlatformList)
	   goto returnoptions
	else
	   set Status = STATUS_NOTSUPPORTED
	   goto finish_ReturnOptions
	endif
    else
	set Status = STATUS_NOLANGUAGE
	goto finish_ReturnOptions
    endif
returnoptions = +
    set OptionList     = ^(Options, 1)
    set OptionTextList = ^(OptionsText$($0), 1)
    set Status         = STATUS_SUCCESSFUL
finish_ReturnOptions = +
    Return $(Status) $(OptionList) $(OptionTextList)

;------------------------------------------------------------------------
;
; InstallOption:
;
;      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]
    StartWait
    set SrcDir   = ""
    set Option   = $($1)
    set SrcDir   = $($2)
    set AddCopy  = $($3)
    set DoCopy   = $($4)
    set DoConfig = $($5)
    ifstr(i) $(SrcDir) == ""
       Set SrcDir = "A:\"
    Endif
    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) NOT-IN $(LanguageList)
	Return STATUS_NOLANGUAGE
    endif
    Debug-Output "STF_CWDDIR is: "$(!STF_CWDDIR)
    Debug-Output "STF_LANGUAGE is: "$(!STF_LANGUAGE)
    set-subst LF = "\n"
    read-syms GeneralConstants
    read-syms FileConstants
    read-syms DialogConstants$(!STF_LANGUAGE)
    ifstr(i) $(!NTN_Origination) == "NCPA"
	set Continue = "OK"
    endif
    read-syms FileConstants$(!STF_LANGUAGE)
    detect date
    set-title  $(FunctionTitle)
    set to   = Begin
    set from = Begin
    set CommonStatus = STATUS_SUCCESSFUL
    SetHelpFile $(HelpfileName) 6000 6000
    EndWait
Begin = +
    ;
    ; Get the Windows NT version. We will not install on NT v3.1x
    ;
    set OSTypeValue = 1536
    set CurrentVersionValue = ""
    OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows Nt\CurrentVersion" $(!REG_KEY_READ) KeyNt
    Ifstr(i) $(KeyNt) != ""
         GetRegValue $(KeyNt) "CurrentVersion" CurrentVersionValue
         Debug-Output "$(InfFile) $(Option): WinNT CurrentVersion ="$(CurrentVersionValue)
         CloseRegKey $(KeyNt)
    Endif
    
    ifstr(i) (*($(CurrentVersionValue),4)) == ($(NT310VersionConstant))
         Debug-Output "Running on WindowsNT 3.10"
         set Error = "Windows NT v3.10 is not support by this product"
         goto fatal
    endif
    ifstr(i) (*($(CurrentVersionValue),4)) == ($(NT350VersionConstant))
         Debug-Output "Running on WindowsNT 3.50"
         set Error = "Windows NT v3.50 is not support by this product"
         goto fatal
         
         ;; PCI Detect will be included in NT v3.51
         ;Debug-Output "Running on WindowsNT 3.50"
         ;set PCIDetectSupported = $(FALSE)
         ;set OSTypeValue = 512
    endif

    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
	Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
	    Debug-Output "Cannot configure the 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

    set RecBufCountIndex = *($(RecBufCountList), $(RecBufCountDefault))
    set ExtPCIIndex = *($(ExtPCIList), $(ExtPCIDefault))
    set ConnTypeIndex = *($(ConnTypeList), $(ConnTypeDefault))
    set BusNoIndex = *($(BusNoList), $(BusIndexDefault))
    set BusNumber = $(BusNoDefault)
    set SlotNumber = $(SlotNoDefault)
    set NetworkAddress = *($(EditTextOut), 1)

    Shell "" DebugConfiguration "After parameter querying"
    Shell $(UtilityInf), GetBusTypeNum
    set BusTypeNum = $($R1)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	Debug-Output "ShellCode error."
	goto ShellCodeError
    endif
    Set from = $(fatal)
    Set to = $(fatal)
    Goto $(StartLabel)

;-----------------------------------------------
; Installation Section
;-----------------------------------------------
;
;   Get the current values of all the parameters
;
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)
	       Debug-Output "ShellCode error: cannot get an error string."
	       goto ShellCodeError
	   endif
	   goto end
	else
	   Shell $(UtilityInf), CardExistedDlg
	   ifint $($ShellCode) != $(!SHELL_CODE_OK)
	       Debug-Output "ShellCode error: cannot get an error string."
	       goto ShellCodeError
	   endif
	   ifstr(i) $($R1) != "OK"
	       goto end
	   endif
	   set OldVersionExisted = $(TRUE)
	endif
    endif

    Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) NO
    Ifint $($ShellCode) != $(!SHELL_CODE_OK)
	Goto ShellCodeError
    Else-Ifstr(i) $($R0) == STATUS_FAILED
	Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    goto ShellCodeError
	endif
	set Error = $($R0)
	Goto fatal
    Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
	Goto successful
    Endif
    Set SrcDir = $($R1)
    install "Install-Dll"
    Goto adapteroptions

;-----------------------------------------------
; Configuration Section
;-----------------------------------------------
;
;   Get the current values of all the parameters
;
configureadapter = +
    Ifstr(i) $(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
    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 ValueStr  = ""
    set ValueList = {}
    EnumRegValue $(KeyParameters) ValueList
    ForListDo $(ValueList)
	set ValueItem = $($)
	set ValueName = *($(ValueItem),1)
	set ValueData = *($(ValueItem),4)
	ifstr(i) $(ValueName) == "ReceiveBuffers"
	    set RecBufCountValue = $(ValueData)
	else-ifstr(i) $(ValueName) == "ExtendedPCI"
	    set ExtPCIValue = $(ValueData)
	else-ifstr(i) $(ValueName) == "ConnectionType"
	    set ConnTypeValue = $(ValueData)
	else-ifstr(i) $(ValueName) == "BusNumber"
	    set BusNoValue = $(ValueData)
	else-ifstr(i) $(ValueName) == "SlotNumber"
	    set SlotNumber = $(ValueData)
	else-ifstr(i) $(ValueName) == "NetworkAddress"
	    set NetworkAddress = $(ValueData)
	endif
    EndForListDo
    ;
    ; Combo-lists and radio-buttons use a special list of parameter-names
    ; when dialogs are executed. The following section converts the actual
    ; values into the corresponding names (indexes). If a value is undefined,
    ; the first entry in the index-list is used.
    ;
    set RecBufCountIndex = *($(RecBufCountList), ~($(RecBufCountValues),$(RecBufCountValue)))
    ifstr(i) $(RecBufCountIndex) == ""
	set RecBufCountIndex = *($(RecBufCountList), RecBufCountDefault)
    endif
    set ExtPCIIndex = *($(ExtPCIList), ~($(ExtPCIValues),$(ExtPCIValue)))
    ifstr(i) $(ExtPCIIndex) == ""
	set ExtPCIIndex = *($(ExtPCIList), ExtPCIDefault)
    endif
    set ConnTypeIndex = *($(ConnTypeList), ~($(ConnTypeValues),$(ConnTypeValue)))
    ifstr(i) $(ConnTypeIndex) == ""
	set ConnTypeIndex = *($(ConnTypeList), ConnTypeDefault)
    endif
    set BusNoIndex = *($(BusNoList), ~($(BusNoValues),$(BusNoValue)))
    ifstr(i) $(BusNoIndex) == ""
	set BusNoIndex = *($(BusNoList), BusIndexDefault)
    endif
    ;
adapteroptions = +
    set from = adapteroptions
    ifstr(i) $(!NTN_InstallMode) == "install"
	;
        ; User will NOT be asked to change/verify configuration during
        ; normal or unattended installation, unless we are installing on
        ; NT v3.50.
	;
        ifint $(PCIDetectSupported) == $(TRUE)
             ; We will not ask user for configuration during installation 
             ; if PCI detection is supported
             goto unattended
        endif

        ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
             ; Default parameters for unattended installation
             goto unattended
        endif
    endif
    set OldNetAddress = $(NetworkAddress)
    ;
    ; Load DLL containing dialogs and verification routines
    ;
    LoadLibrary "Olicom Ethernet Driver Disk" $(DialogDllName) DialogHandle
    ;
    ; Read main dialog setup and show dialog
    ;
    ifint $(PCIDetectSupported) == $(FALSE)
         read-syms AdapterParameterDlg2$(!STF_LANGUAGE)
    else
         read-syms AdapterParameterDlg1$(!STF_LANGUAGE)
    endif

    ui start "InputDlg"  $(DialogHandle)

    ifstr(i) $(DLGEVENT) == "CONTINUE"
	;
	; parameters have already been stored at this stage
	;
	;
	; Save new settings because this dialog might be called again.
	; If CANCEL was pressed these values will not be used
	;

        set ConnTypeIndex = $(Combo1Out)
        set RecBufCountIndex = $(Combo2Out)
        set ExtPCIIndex = $(Combo3Out)
        ifint $(PCIDetectSupported) == $(FALSE)
            set BusNoIndex = $(Combo5Out)
        endif
	set NetworkAddress = *($(EditTextOut),1)
	ui pop 1
	goto nextstep
    else-ifstr(i) $(DLGEVENT) == "EXIT"
	set CommonStatus = STATUS_USERCANCEL
	Debug-Output "Action: exit. Bye."
	ui pop 1
	FreeLibrary $(DialogHandle)
	goto end
    else
	ui pop 1
	Debug-Output "Action: unknown: "$(DLGEVENT)
	FreeLibrary $(DialogHandle)
	goto end
    endif

nextstep =+
    ifstr $(NetworkAddress) != ""
	;
	; If network address has been entered then verify that it is a
	; valid address (not a multicast or broadcast address)
	;
	set FLibraryErrCtl = 1
	LibraryProcedure DlgResult $(DialogHandle) VerifyEthAddress $(NetworkAddress)
	set FLibraryErrCtl = 0
	ifstr $(DlgResult) != "STATUS_SUCCESS"
	    FreeLibrary $(DialogHandle)
	    set Error = $(DlgResult)
	    goto nonfatal
	endif
    endif
    FreeLibrary $(DialogHandle)

unattended =+
    ifint $(OldVersionExisted) == $(TRUE)
	ifstr(i) $(!NTN_InstallMode) == configure
	    goto writeparameters
	endif
    endif
    StartWait
    Ifint $(OldVersionExisted) != $(FALSE)
	Goto installhardware
    Endif
    ifstr(i) $(!NTN_InstallMode) == "install"
       Ifstr(i) $(DoCopy) == "YES"
	  Ifstr(i) $(SrcDir) == ""
	     read-syms AskSourceDlgText
	     Shell $(subroutineinf) DoAskSourceEx $(SrcDir) $(DlgText)
	     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
		Goto ShellCodeError
	     Else-Ifstr(i) $($R0) == STATUS_FAILED
		 Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
		 ifint $($ShellCode) != $(!SHELL_CODE_OK)
		     goto ShellCodeError
		 endif
		 set Error = $($R0)
		 Goto fatal
	     Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
		 Goto successful
	     Endif
	     Set SrcDir = $($R1)
	  Endif
       Endif
       install "Install-Option"
       ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
	  Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
	  ifint $($ShellCode) != $(!SHELL_CODE_OK)
	      goto ShellCodeError
	  endif
	  set Error = $($R0)
	  goto fatal
       endif
    endif

;
;   Insert hardware component in registry
;
installhardware =+
    ifint $(PCIDetectSupported) == $(FALSE)
          ifstr(i) $(!AutoNetInterfaceType) != ""
              set BusTypeNum = $(!AutoNetInterfaceType)
          else
              set BusTypeNum = 5
          endif
          ifstr(i) $(!AutoNetBusNumber) != ""
              set BusNumber = $(!AutoNetBusNumber)
          else
              set BusNumber = $(BusNoDefault)
          endif
          Set InstalledAdapter = "NO"
    else
         ;
         ; If We are installing a PCI adapter so go search PCI bus
         ; for our adapter
         ;
         set BusTypeNum = 5
         set VendorID = 4113 ; Vendor ID: 1011h
         set DeviceID = 25   ; Device ID:  19h

         ; Flag adapter already installed
         Set InstalledAdapter = "YES"

         ; Get PCI information 
         Shell $(UtilityInf), GetPCIInformation, $(VendorID) $(DeviceID)
         set AdapterList = $($R0)
         ifint $($ShellCode) != $(!SHELL_CODE_OK)
              goto ShellCodeError
         endif
         ifstr(i) $($R0) == {}
             ;
             ; Adapter list is empty. No adapter of this type was found
             ;
         else
             ;
             ; Adapter(s) has been found. We will try to find out if the (or
             ; these) adapter hasn't been installed already.
             ;
             ForListDo $(AdapterList)
                 ; Run through the Adapter list
                 ; Get Bus number from list:
                 set TestBusNumber = *($($),1)
                 ; Get SLot Number from list:
                 set TestSlotNumber = *($($),2)
 
                 ; Check registry
                 Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(TestBusNumber), +
                       $(TestSlotNumber), $(ProductHardware$(Option)Description), +
                       $(ProductHardwareName), "NO"
                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
                      goto ShellCodeError
                 endif
                 ifstr $($R0) != "NO_ERROR"
                      set Error = $($R0)
                      goto fatal
                 endif
                 ifstr(i) $($R1) == "NO"
                     ; This adapter in the AdapterList has not been install yet
                     ifstr(i) $(InstalledAdapter) == "YES"
                         ; We have found an Adapter for which our driver
                         ; has not been installed. Check if other drivers has 
                         ; been installed for this Adapter.
                         ; Check registry
                         ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
                             ; We will do no further check in unattended install
                             Set InstalledAdapter = "NO"
                             set DetectedBusNumber = $(TestBusNumber)
                             set DetectedSlotNumber = $(TestSlotNumber)
                             Debug-Output "$(InfFile) $(Option): Installing Card at $(DetectedBusNumber):$(DetectedSlotNumber)!"
                         else
                             Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(TestBusNumber), +
                                   $(TestSlotNumber), $(ProductHardware$(Option)Description), +
                                   $(ProductHardwareName), "YES"
                             ifint $($ShellCode) != $(!SHELL_CODE_OK)
                                 goto ShellCodeError
                             endif
                             ifstr $($R0) != "NO_ERROR"
                                 set Error = $($R0)
                                 goto fatal
                             endif
                             ifstr(i) $($R1) == "NO"
                                 ; We have found an Adapter with no other installed
                                 ; drivers. Lets install.
                                 ; We can not Break from ForListDo, so we will
                                 ; just flag that we have found an adapter to install
                                 Set InstalledAdapter = "NO"
                                 set DetectedBusNumber = $(TestBusNumber)
                                 set DetectedSlotNumber = $(TestSlotNumber)
                             else
                                 Debug-Output "$(InfFile) $(Option): Card Already at $(TestBusNumber):$(TestSlotNumber) already installed!"
                                 set Error = "An adapter at "$(TestBusNumber)":"$(TestSlotNumber)" (Bus : Slot) is already "+
                                             "installed with a non Olicom RapidFire Ethernet 10/100 driver. Install anyway?"
                                 Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), WARNING, $(Error)
                                 ifstr(i) $($R0) != STATUS_SUCCESSFUL
                                     set Error = $($R0)
                                     goto fatal
                                 endif
                                 ifstr(i) $($R1) == "OK"
                                     Set InstalledAdapter = "NO"
                                     set DetectedBusNumber = $(TestBusNumber)
                                     set DetectedSlotNumber = $(TestSlotNumber)
                                 endif
                             endif
                         endif
                     endif
                 endif
             EndForListDo
         endif

         Set BusNumber = $(DetectedBusNumber)
         Set SlotNumber = $(DetectedSlotNumber)
     endif

    ifstr(i) $(InstalledAdapter) == "YES"
        ; We had no adapter to install. Exit
        set Error = "Network card is not present in the system "+
                    "or network card already installed"
        set CommonStatus = USER_CANCEL
        set from = end
        goto nonfatal
    endif

    ;
    ; Install this adapter
    ;
    Debug-Output "$(InfFile) $(Option): Installing Card at $(BusNumber):$(SlotNumber)!"

    set ReturnTo = ComponentsHasBeenAdded
    goto AddAdapterComponents
ComponentsHasBeenAdded =+

    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
    set KeyProduct = $($R1)
    set KeyAdapterRules = $($R2)
    set KeyParameters = $($R3)
    set AdapterNumber = $($R4)
    ;    ifint $(PCIDetectSupported) == $(FALSE)
        set ThisProductTitle = "["$($R4)"] "$(ProductHardware$(Option)Title)
    ;    else
    ;        set ThisProductTitle = "["$($R4)"] "$(ProductHardware$(Option)Title)" ("$(BusNumber)":"$(SlotNumber)")"
    ;    endif
    set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
		       {Title,$(NoTitle),$(!REG_VT_SZ),$(ThisProductTitle)},+
		       {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, $(KeyProduct), $(NewValueList)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	Debug-Output "ShellCode error"
	goto ShellCodeError
    endif
    CloseRegKey $(KeyProduct)
    Set KeyProduct = ""
    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
    CloseRegKey $(KeyAdapterRules)
    set RegistryErrorIndex = $($R0)
    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	EndWait
	Debug-Output "Registry error: add value list."
	CloseRegKey $(KeyParameters)
	goto fatalregistry
    endif

;
; Write Adapter Parameters to registry
;
writeparameters = +
    Ifstr(i) $(KeyParameters) == $(KeyNull)
	Debug-Output "*** KeyParameters is NULL at writeparameters"
    Endif
    ;
    ; Convert selections from combo-lists and radio-buttons into actual
    ; parameter values
    ;
    set RecBufCountValue = *($(RecBufCountValues), ~($(RecBufCountList),$(RecBufCountIndex)))
    set ExtPCIValue = *($(ExtPCIValues), ~($(ExtPCIList),$(ExtPCIIndex)))
    set ConnTypeValue = *($(ConnTypeValues), ~($(ConnTypeList),$(ConnTypeIndex)))
    ifstr(i) $(!NTN_InstallMode) != "install"
        set BusNumber = *($(BusNoValues), ~($(BusNoList),$(BusNoIndex)))
    endif
    ;
    ; Set up parameter list for AddValueList routine
    ;
    set NewValueList = {{AdapterCFID,$(NoTitle),$(!REG_VT_DWORD),$(CFID_$(Option))},+
                        {AdapterType,$(NoTitle),$(!REG_VT_DWORD),$(AdapterType_$(Option))},+
                        {OSType,$(NoTitle),$(!REG_VT_DWORD),$(OSTypeValue)},+
                        {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
			{BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
			{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
                        {ReceiveBuffers,$(NoTitle),$(!REG_VT_DWORD),$(RecBufCountValue)},+
			{ExtendedPCI,$(NoTitle),$(!REG_VT_DWORD),$(ExtPCIValue)},+
			{ConnectionType,$(NoTitle),$(!REG_VT_DWORD),$(ConnTypeValue)}}
    ifstr $(NetworkAddress) != ""
       set NewValueList = >($(NewValueList),{NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)})
    endif
    ifint $(PCIDetectSupported) == $(TRUE)
       set NewValueList = >($(NewValueList),{SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNumber)})
    endif

    ;---------------------------------------
    ; Add keyword to prevent driver from
    ; entering promiscuous mode
    ;
    ;set NewValueList = >($(NewValueList),{AllowTrace,$(NoTitle),$(!REG_VT_DWORD),0})

    ;
    ; Now update registry
    ;
    Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
    ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
	Shell $(UtilityInf),AddDefaultNetCardParameters,$(KeyParameters)
    endif
    ;
    ; If the network address has been deleted then also delete it from
    ; the registry.
    ;
    ifstr $(OldNetAddress) != ""
       ifstr $(NetworkAddress) == ""
	  DeleteRegValue $(KeyParameters) NetworkAddress
       endif
    endif
    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
 

;-----------------------------------------------
; Add Software component to registry
;-----------------------------------------------
;
;
AddAdapterComponents =+
   ifint $(OldVersionExisted) == $(TRUE)
      goto $(ReturnTo)
   endif
   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
    set RegistryErrorIndex = $($R0)
    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	EndWait
	Debug-Output "OEMNADUB.INF: Registry error: add software components"
	CloseRegKey $($R1)
	CloseRegKey $($R2)
	CloseRegKey $($R3)
	CloseRegKey $($R4)
	CloseRegKey $($R5)
	goto fatalregistry
    endif
    set SoftProductKey  = $($R1)
    Set SoftNetRuleKey = $($R2)
    Set SoftServiceKey  = $($R3)
    Set SoftParameterKey        = $($R4)
    Set SoftLinkageKey  = $($R5)
    set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
		       {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
		       {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
		       {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
		       {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
		       {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
		       {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
    Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	Debug-Output "ShellCode error."
	goto ShellCodeError
    endif
    set RegistryErrorIndex = $($R0)
    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	EndWait
	Debug-Output "Registry error: add value list."
	CloseRegKey $(SoftProductKey)
	CloseRegKey $(SoftNetRuleKey)
	CloseRegKey $(SoftServiceKey)
	CloseRegKey $(SoftParameterKey)
	CloseRegKey $(SoftLinkageKey)
	goto fatalregistry
    endif
	set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
			{use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
			{bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
			{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
			{bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
			{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
	Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	Debug-Output "ShellCode error."
	goto ShellCodeError
    endif
    set RegistryErrorIndex = $($R0)
    CloseRegKey $(SoftProductKey)
    CloseRegKey $(SoftNetRuleKey)
    CloseRegKey $(SoftServiceKey)
    CloseRegKey $(SoftParameterKey)
    CloseRegKey $(SoftLinkageKey)
    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	EndWait
	Debug-Output "Registry error: add value list."
	goto fatalregistry
    endif
    set OldVersionExisted = $(TRUE)
    goto $(ReturnTo)

;-----------------------------------------------
; Remove Adapter Section
;-----------------------------------------------
;
;   Remove all adapter information from the registry
;
removeadapter = +
    Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
	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
    goto end

UpgradeSoftware = +
    OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
    Ifstr $(KeyProduct) != $(KeyNull)
	Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    Debug-Output "ShellCode error"
	    goto ShellCodeError
	endif
	set !UG_Filename = $($R0)
	install "Install-Update"
	ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
	    goto fatal
	endif
	SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
	SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
	CloseRegKey $(KeyProduct)
    else
	goto fatalregistry
    endif
    goto end
successful = +
    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
fatalregistry = +
    Shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) WARNING "Fatal Error"
    Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	goto ShellCodeError
    endif
    set Error = $($R0)
    goto fatal
fatal = +
    ifstr(i) $(Error) == ""
	Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    goto ShellCodeError
	endif
	set Error = $($R0)
    endif
    Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	goto ShellCodeError
    endif
    goto setfailed
ShellCodeError = +
    set DlgType      = "MessageBox"
    set STF_MB_TITLE = "Error: "$(FunctionTitle)
    set STF_MB_TEXT  = "Shell Code Error"
    set STF_MB_TYPE  = 1
    set STF_MB_ICON  = 3
    set STF_MB_DEF   = 1
    ui start "Error Message"
    goto setfailed
setfailed = +
    set CommonStatus = STATUS_FAILED
    ifstr(i) $(OEM_ABANDON_ON) == TRUE
	set OEM_ABANDON_ON = FALSE
	goto abandon
    endif
    goto end
end = +
    goto term
term = +
    Return $(CommonStatus)

[Install-Option]
    set STF_VITAL = ""
    ifstr(i) $(AddCopy) == "YES"
	AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
    endif
    Debug-Output "OEMSETUP.INF: [Install-Option] DoCopy = "$(DoCopy)
    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-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
   set !STF_NCPA_FLUSH_COPYLIST = TRUE
   CopyFilesInCopyList
   exit

[Install-Dll]
   set STF_VITAL        = ""
   ifstr(i) $(AddCopy) == "YES"
      AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
   endif
   ifstr(i) $(DoCopy) == "YES"
      set !STF_NCPA_FLUSH_COPYLIST = TRUE
      CopyFilesInCopyList
   else
      ; get minimum needed files for configuration
      LibraryProcedure STATUS,$(!NCPA_HANDLE), CopySingleFile $(!STF_HWND) $(SrcDir)\OCE5XND3.DLL $(!STF_WINDOWSSYSPATH)\OCE5XND3.DLL
      LibraryProcedure STATUS,$(!NCPA_HANDLE), CopySingleFile $(!STF_HWND) $(SrcDir)\OCE5XND3.HLP $(!STF_WINDOWSSYSPATH)\OCE5XND3.HLP
   endif
   exit

[Source Media Descriptions]
   1  = "RapidFire 2327 Ethernet 10/100 PCI Adapter Driver Disk"

[ProductType]
STF_PRODUCT  = Winnt
STF_PLATFORM = I386

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

[Files-OCE5X_2327]
1, OCE5XND3.SYS,  SIZE=999

[Files-Dll]
1, oce5xnd3.dll,  SIZE=999
1, oce5xnd3.hlp,  SIZE=999

[Files-dummy]

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: web5, load: 0.67