OEMSETUP.INF Driver File Contents (7150n400.exe)

;--------------------------------------------------------------
; OEMSETUP FILE FOR TDK Network Flyer Fast Ethernet CardBus Card , v4.22
;     NDIS 4.0  - Windows NT 4.0 -
;
;     Supported adapters:
;           TDK Network Flyer 100
;--------------------------------------------------------------

[Identification]
    OptionType = NetAdapter
[PlatformsSupported]
    ISA
    EISA
    "Jazz-Internal Bus"
    PCI
[Options]
    DC21143

[ConnectionTypeChoicesDC21143]
    Connect_0 = "AutoSense", 0
    Connect_1 = "10BaseT (TP) ", 2
    Connect_2 = "10BaseT (TP) Full Duplex ", 3
    Connect_3 = "10BaseT (TP) No_Link_Test", 4
    Connect_4 = "100BaseTx (TP 100)", 8
    Connect_5 = "100BaseTx (TP 100) Full Duplex", 9
;Mike
[IoBaseChoices]
;IO_0 = "Automatic",0
IO_1 = "0x500",1280
IO_2 = "0x1000",4096
IO_3 = "0x1200",4608
IO_4 = "0x1500",5376
IO_5 = "0x2000",8192
IO_6 = "0x4000",16384
IO_7 = "0x7000",28672

[InterruptChoices]
;IRQ_0 = "Automatic", 0
IRQ_1 = "3", 3
IRQ_2 = "4", 4
IRQ_3 = "5", 5
IRQ_4 = "7", 7
IRQ_5 = "9", 9
IRQ_6 = "10", 10
IRQ_7 = "11", 11
IRQ_8 = "12", 12
IRQ_9 = "13", 13
IRQ_10 = "14", 14
IRQ_11 = "15", 15

[StoreAndForwardChoices]
StFd_0 = "Enabled" , 1
StFd_1 = "Disabled" , 0
;Mike


[FileConstants]
UtilityInf      = "UTILITY.INF"
subroutineinf   = "SUBROUTN.INF"
SoftwareType    = "driver"
Exit_Code       = 0
NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
Manufacturer    = "DigitalEquipmentCorporation"
ProductMajorVersion     = "4"
ProductMinorVersion     = "22"
ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)

VendorID = 4113  ;; 1011 (DEC)

ProductSoftwareName     = "TDKFLY"
ProductSoftwareTitle    = "TDK TDKFLY Adapter Driver"
ProductSoftwareImagePath = "\SystemRoot\System32\drivers\TDKFLYS.sys"
NetRuleSoftwareType     = "TDKFLYSys ndisDriver TDKFLYDriver"
NetRuleSoftwareUse        = $(SoftwareType)
NetRuleSoftwareBindForm = """TDKFLYSys"" yes no container"
NetRuleSoftwareClass    = {"TDKFLYDriver basic"}
NetRuleSoftwareSWBindable = {"TDKFLYDriver TDKFLYERAdapter non exclusive 100"}

;OptionHelpFile = "TDKFLY.hlp"
ProductHardwareName = "TDKFLY"

StoreAndForward = 1      ;; Store_and_forward mode enabled
TxmThreshold100 = 512    ;; 100Mbps default threshold

ProductHardwareDC21143Title = "TDK Network Flyer 100"
NetRuleHardwareDC21143Type  = "TDKFLYER TDKFLYERAdapter"
NetRuleHardwareDC21143Class = {"TDKFLYERAdapter basic"}
AdapterDC21143Type = 5   ;; PCI board
HelpDC21143Id = 50
DC21143CFID = 1642513   ;; 0x00191011

NetRuleHardwareBindForm = " yes yes container"
ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"

[GeneralConstants]
from        = ""
to          = ""
ExitCodeOk     = 0
ExitCodeCancel = 1
ExitCodeFatal  = 2
KeyNull           = ""
MAXIMUM_ALLOWED   = 33554432
RegistryErrorIndex = NO_ERROR
KeyProduct        = ""
KeyParameters   = ""
TRUE                = 1
FALSE             = 0
NoTitle                = 0
ExitState   = "Active"
OldVersionExisted = $(FALSE)
DriverPath        = $(!STF_NTPATH)\drivers
[date]
    Now = {} ? $(!LIBHANDLE) GetSystemDate
[Identify]
    set !DebugOutputControl = 0
    read-syms Identification
    set Status     = STATUS_SUCCESSFUL
    set Identifier = $(OptionType)
    set Media        = #("Source Media Descriptions", 1, 1)
    Return $(Status) $(Identifier) $(Media)
[ReturnOptions]
    set Status          = STATUS_FAILED
    set OptionList     = {}
    set OptionTextList = {}
    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) in $(LanguageList)
        ifstr(i) $($1) == ""
           goto 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]
    set Option   = $($1)
    set SrcDir   = $($2)
    set AddCopy  = $($3)
    set DoCopy   = $($4)
    set DoConfig = $($5)
    set !DebugOutputControl = 0

    ; Shradha

    ;
    ; determine whether the SrcDir already has a backslash at the
    ; end
    ;

    Debug-Output "<DBG: InstallOption: SrcDir = "$(SrcDir)
    split-string $(SrcDir) "\." SrcDirList
    QueryListSize SrcDirListSize $(SrcDirList)
    set SrcDirEnd = *($(SrcDirList), $(SrcDirListSize))
    ifstr $(SrcDirEnd) != "\"
        set SrcDir = $(SrcDir)"\"
    endif
    Debug-Output "<DBG: InstallOption: new SrcDir = "$(SrcDir)

    ; setup environment
    read-syms SomeImportantVars
    ; Shradha

    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) NOT-IN $(LanguageList)
        Return STATUS_NOLANGUAGE
    endif
    set-subst LF = "\n"
    read-syms GeneralConstants
    read-syms FileConstants
    set NetRuleSoftwareBindable = $($R1)
    read-syms DialogConstants$(!STF_LANGUAGE)
    ifstr(i) $(!NTN_Origination) == "NCPA"
        set Continue = "OK"
    endif
    read-syms FileConstants$(!STF_LANGUAGE)
    detect date
    set-title  $(Function$(Option)Title)
    set to   = Begin
    set from = Begin
    set CommonStatus = STATUS_SUCCESSFUL

    EndWait

Begin = +

    Debug-Output "<DBG: Begin> NTN_InstallMode = "$(!NTN_InstallMode)
    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
          Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
                 Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
                     goto ShellCodeError
                 endif
                 set Error = $($R0)
                 set from = end
                 set to = end
                 goto nonfatalinfo
          else-ifstr(i) $(Option) == "DE425"
                 Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_HARDWARE
                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
                     goto ShellCodeError
                 endif
                 set Error = $($R0)
                 set from = end
                 set to = end
                 goto nonfatalinfo
          else
                 set StartLabel = configureadapter
          endif
    else
        set StartLabel = installadapter
        set OEM_ABANDON_OPTIONS = {}
        set OEM_ABANDON_SOFTWARE = FALSE
        set OEM_ABANDON_ON = TRUE
    endif

;Mike
    set IoBaseValue = *($(IoBaseList), $(DefaultIoBaseChoice))
    set InterruptValue = *($(InterruptList), $(DefaultIrqChoice))
    set ConnectionValue = *($(ConnectionList), 1)
    set StFdValue = *($(StFdList), 1)

    set EditTextIn = "1"
;Mike

    set from = $(fatal)
    set to = $(fatal)
    goto $(StartLabel)

installadapter = +


    Debug-Output "<DBG: installAdapter> OpenRegKey "$(ProductKeyName)
    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
    Ifstr $(KeyProduct) != $(KeyNull)
        Debug-Output "<DBG: installAdapter> "$(ProductKeyName)" found !"
        CloseRegKey $(KeyProduct)
        Debug-Output "<DBG: installAdapter> NTN_RegBase = "$(!NTN_RegBase)
        ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
           Debug-Output "<DBG: installAdapter> 1"
           Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
                 $(ProductVersion)
           ifint $($ShellCode) != $(!SHELL_CODE_OK)
                 goto ShellCodeError
           endif
           goto end
        else
           Debug-Output "<DBG: installAdapter> 2"
           Shell $(UtilityInf), CardExistedDlg
           ifint $($ShellCode) != $(!SHELL_CODE_OK)
                goto ShellCodeError
           endif
           ifstr(i) $($R1) != "OK"
                 set CommonStatus = STATUS_USERCANCEL
                 goto end
           endif
           Debug-Output "<DBG: installAdapter> Setting OldVersionExisted"
           set OldVersionExisted = $(TRUE)
        endif
    Endif

    Debug-Output "<DBG: installAdapter> DoCopy "$(DoCopy)

    ; NT BUG_FIX Shradha
    Debug-Output "<DBG: installAdapter> Change DoCopy from "$(DoCopy)" to YES"
    set DoCopy = "YES"
    ifint $(UseFixedSrcDir) == 1
            goto set_fixed_srcdir
    endif
    ; NT BUG_FIX Shradha


    ifstr(i) $(DoCopy) == "YES"

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

        ;Shradha
        ; determine whether the SrcDir already has a backslash at the
        ; end
        Debug-Output "<DBG: installAdapter: SrcDir = "$(SrcDir)
        split-string $(SrcDir) "\" SrcDirList
        QueryListSize SrcDirListSize $(SrcDirList)
        set SrcDirEnd = *($(SrcDirList), $(SrcDirListSize))
        ifstr $(SrcDirEnd) != "\"
                set SrcDir = $(SrcDir)"\"
        endif
        ; Shradha
    endif

    ; NT BUG_FIX Shradha
set_fixed_srcdir = +

    ifint $(UseFixedSrcDir) == 1
            Debug-Output "<DBG: installAdapter> changing SrcDir to "+
$(FixedSrcDir)
            set SrcDir = $(FixedSrcDir)
    endif
    ; NT BUG_FIX Shradha

    ifstr(i) $(DoCopy) == "YES"

        Debug-Output "<DBG: installAdapter: SrcDir before install-hlp "$(SrcDir)
        install "install-hlp"

        ; Shradha
        ; ----------------- now do the CSS detection bit
        Debug-Output "<DBG: installAdapter> Calling INF_Get_CSS_Name"
        LoadLibrary $(TDKSetupDiskName), $(!STF_WINDOWSSYSPATH)"\"$(CSSDLL) +
                IdentHandle
        LibraryProcedure ResultStr $(IdentHandle) INF_Get_CSS_Name
        FreeLibrary $(IdentHandle)
        Debug-Output "<DBG: installAdapter> ResultStr "$(ResultStr)

        Ifstr(i) $(ResultStr) != "Softex 187"
                ;
                ; The AbortIfPhoenixCSSNotFound variable
                ; will be set to 1 in the inf shipped with
                ; Softex/Phoenix 187 CSS
                ;
                ifint $(AbortIfPhoenixCSSNotFound) == 1
                        shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) +
                                FATAL $(PhoenixCSSNotFoundMessage)

                        set CommonStatus = STATUS_USERCANCEL
                        goto end
                endif
        endif

        set CSSNone = 0
        set CSS187 = 0
        set CSSSoftex187 = 0
        set CSSOther = 0

        set doAbort = 0


        Ifstr(i) $(ResultStr) == "Softex Cardbus Enabler"

                Debug-Output "<DBG: installAdapter> Softex Cardbus Enabler"
                shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) WARNING +
                        $(PreviousEnablerExistsMessage)

                ifstr(i) $($R0) != STATUS_SUCCESSFUL
                        Debug-Output "<DBG: installAdapter> Error $R0 "$($R0)
                        set CommonStatus = STATUS_USERCANCEL
                        goto end
                else-ifstr(i) $($R1) == "OK"

                        Debug-Output "<DBG: installAdapter> OK"
                        set CSSNone = 1

                else-ifstr(i) $($R1) == "CANCEL"
                        Debug-Output "<DBG: installAdapter> CANCEL"
                        set CommonStatus = STATUS_USERCANCEL
                        goto end
                endif

        else-ifstr(i) $(ResultStr) == "Softex 187"

                Debug-Output "<DBG: installAdapter> Softex 187"
                set CSS187 = 1
                set CSSSoftex187 = 1

                ifint $(AbortIfPhoenixCSSFound) == 1
                        set doAbort = 1
                endif

        else-ifstr(i) $(ResultStr) == "Non Softex 187"

                Debug-Output "<DBG: installAdapter> Non Softex 187"
                set CSS187 = 1

                ifint $(AbortIfCSSFound) == 1
                        set doAbort = 1
                endif

        else-ifstr(i) $(ResultStr) == "SystemSoft CardWizard"

                Debug-Output "<DBG: installAdapter> systemSoft CardWizard"
                set CSSOther = 1

                ifint $(AbortIfCSSFound) == 1
                        set doAbort = 1
                endif

        else-ifstr(i) $(ResultStr) == "Other"

                Debug-Output "<DBG: installAdapter> other"
                set CSSOther = 1

                ifint $(AbortIfCSSFound) == 1
                        set doAbort = 1
                endif

        else-ifstr(i) $(ResultStr) == "None"
                set CSSNone = 1
        Endif

        ifint $(doAbort) == 1
                shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) +
                        FATAL $(SomeCSSFoundMessage)

                set CommonStatus = STATUS_USERCANCEL
                goto end
        endif

        Ifint $(CSSOther) == 1
                shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) +
                        FATAL $(SomeCSSFoundMessage)

                set CommonStatus = STATUS_USERCANCEL
                goto end
        Endif

        Ifint $(CSSNone) == 1
                Debug-Output "<DBG: installAdapter> AddCardbusEnabler"
                install "Install-RemoveCardbusEnabler"
                install "Install-AddCardbusEnabler"
                set CardbusEnablerInstalled = 1
        Endif


        ;
        ; now copy the correct files
        ; we cannot rely on the old driver binaries that may
        ; be installed because the CSS may have changed on this
        ; machine since the last installation

        install "Install-AllFiles"

        ;Shradha

    endif

    Debug-Output "<DBG: installAdapter> goto installProduct"
    Goto installproduct

configureadapter = +
    Ifstr(i) $(KeyProduct) == $(KeyNull)
        OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
        Ifstr $(KeyProduct) == $(KeyNull)
            Set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
           Goto fatalregistry
        Endif
    Endif
    Shell $(UtilityInf) FindService, $(KeyProduct)
    Ifint $($ShellCode) != $(!SHELL_CODE_OK)
        Goto ShellCodeError
    Endif
    Ifstr(i) $($R0) != NO_ERROR
        Goto fatalregistry
    endif
    set KeyParameters = $($R2)
    CloseRegKey $($R1)
    Ifstr $(KeyParameters) == $(KeyNull)
        set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
        goto fatalregistry
    endif
    set OldVersionExisted = $(TRUE)
    set ValueName = ""
    set ValueData = ""
    set ValueStr  = ""
    set ValueList = {}
    EnumRegValue $(KeyParameters) ValueList
    ForListDo $(ValueList)
        set ValueItem = $($)
        set ValueName = *($(ValueItem),1)
        set ValueData = *($(ValueItem),4)
        Ifstr(i) $(ValueName) == "ConnectionType"
            set ConnectionIndex = $(ValueData)
        else-Ifstr(i) $(ValueName) == "IoBaseAddress"
            set IoBaseValueIndex = $(ValueData)
            Debug-Output "<DBG: ConfigureAdapter> IoBaseValueIndex in registry = "$(IoBaseValueIndex)
        else-ifstr(i) $(ValueName) == "InterruptNumber"
            set InterruptIndex = $(ValueData)
            Debug-Output "<DBG: ConfigureAdapter> InterruptIndex in registry = "$(InterruptIndex)
        else-ifstr(i) $(ValueName) == "StoreAndForward"
            set StFdIndex = $(ValueData)

        ;Shradha
        else-ifstr(i) $(ValueName) == "AdapterName"
            set OldAdapterName = $(ValueData)
            Debug-Output "<DBG> AdapterName in registry = "$(OldAdapterName)
        ;Shradha
        endif
    EndForListDo

    ; shradha
    ; ----------------- now do the CSS detection bit
    Debug-Output "<DBG: adapterOptions> Calling INF_Get_CSS_Name"
    LoadLibrary $(TDKSetupDiskName), $(!STF_WINDOWSSYSPATH)"\"$(CSSDLL) +
        IdentHandle
    LibraryProcedure ResultStr $(IdentHandle) INF_Get_CSS_Name
    FreeLibrary $(IdentHandle)
    Debug-Output "<DBG: adapterOptions> ResultStr "$(ResultStr)

    Ifstr(i) $(ResultStr) == "Softex Cardbus Enabler"
        set add_auto_options = 1
    else-ifstr(i) $(ResultStr) == "Softex 187"
        set add_auto_options = 1
    else
        set add_auto_options = 0
    endif
    Debug-Output "<DBG: adapterOptions> IoBaseValue = "$(IoBaseValue)
    Debug-Output "<DBG: adapterOptions> InterruptValue = "$(InterruptValue)
    ifint $(add_auto_options) == 1
        Debug-Output "<DBG: adapterOptions> Adding Auto"
        set IoBaseList = >($(IoBaseList), "Automatic")
        set IoBaseValues = >($(IoBaseValues), 0)
        set DefaultIoBaseChoice = 8
        set IoBaseValue = *($(IoBaseList), $(DefaultIoBaseChoice))
        Debug-Output "<DBG: adapterOptions> new IoBaseValue = "$(IoBaseValue)

        set InterruptList = >($(InterruptList), "Automatic")
        set InterruptValues = >($(InterruptValues), 0)
        set DefaultIrqChoice = 12
        set InterruptValue = *($(InterruptList), $(DefaultIrqChoice))
        Debug-Output "<DBG: adapterOptions> new InterruptValue = "$(InterruptValue)
    endif
    ; Shradha


    set ConnectionValue = *($(ConnectionList), ~($(ConnectionValues),$(ConnectionIndex)))
    ifstr(i) $(ConnectionValue) == ""
        set ConnectionValue = *($(ConnectionList), 2)
    endif

;Mike
    set IoBaseValue = *($(IoBaseList), ~($(IoBaseValues),$(IoBaseValueIndex)))

    Debug-Output "<DBG: ConfigureAdapter> IoBaseValue in registry = "$(IoBaseValue)
    ifstr(i) $(IoBaseValue) == ""
        set IoBaseValue = *($(IoBaseList), $(DefaultIoBaseChoice))
    endif
    set InterruptValue = *($(InterruptList), +
         ~($(InterruptValues),$(InterruptIndex)))

    Debug-Output "<DBG: ConfigureAdapter> InterruptValue in registry = "$(InterruptValue)
    ifstr(i) $(InterruptValue) == ""
        set InterruptValue = *($(InterruptList), $(DefaultIRQChoice))
    endif
    set StFdValue = *($(StFdList), ~($(StFdValues),$(StFdIndex)))
    Debug-Output "<DBG: ConfigureAdapter> StFdValue in registry = "$(StFdValue)
    ifstr(i) $(StFdValue) == ""
        set StFdValue = *($(StFdList), 1)
    endif
;Mike

adapteroptions = +
    ifstr(i) $(Option) != "DE425"
        set from = adapteroptions

        read-syms FileDependentDlg$(!STF_LANGUAGE)
;;      SetHelpFile $(!STF_WINDOWSSYSPATH)"\"$(OptionHelpFile) $(MinHelpId) $(MaxHelpId) $(Help$(Option)Id)

        ui start "InputDlg"


        ifstr(i) $(DLGEVENT) == "CONTINUE"
            set ConnectionIndex = $(Combo1Out)
;Mike
            set IoBaseValueIndex = $(Combo2Out)
            set InterruptIndex = $(Combo3Out)
            set StFdIndex = $(Combo4Out)
;Mike
           ui pop 1
        else-ifstr(i) $(DLGEVENT) == "BACK"
           set CommonStatus = STATUS_USERCANCEL
           ui pop 1
           goto end
        else
           ui pop 1
           goto end
        endif
        set ConnectionValue = *($(ConnectionValues), ~($(ConnectionList),$(ConnectionIndex)))

;Mike
        set IoBaseValue = *($(IoBaseValues), ~($(IoBaseList),$(IoBaseValueIndex)))
        set InterruptValue = *($(InterruptValues), +
         ~($(InterruptList),$(InterruptIndex)))
        set StFdValue = *($(StFdValues), ~($(StFdList),$(StFdIndex)))
;Mike
        ifstr(i) $(!NTN_InstallMode) == configure
           goto updateparameters
        endif
    endif

installproduct =+
    StartWait

    Debug-Output "<DBG: installproduct> Option = "$(Option)

    ifstr(i) $(Option) == "DE425"
        Debug-Output "<DBG: installproduct> Calling EISAFindBus"
        Shell $(UtilityInf), EISAFindBus, $($(Option)_1BYTE),$(EISA_MASK)
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
             goto ShellCodeError
        endif
        ifstr $($R0) != "NO_ERROR"
             set Error = $($R0)
             goto fatal
        endif
        ifstr(i) $($R1) == {}
             set Error = $(CANNOT_FIND_ANY_CARD)
             set CommonStatus = USER_CANCEL
             set from = end
             goto nonfatal
        endif
        set AdapterList = $($R1)
    else
        Debug-Output "<DBG: installproduct> Calling GetPCIInformation"
        set-div DeviceID = $($(Option)CFID) 65536
        Shell $(UtilityInf), GetPCIInformation, $(VendorID) $(DeviceID)
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
             Debug-Output "<DBG: installproduct> GetPCIInformation error"
             goto ShellCodeError
        endif
;        ifstr(i) $($R0) == {}
;             set Error = $(CANNOT_FIND_ANY_CARD)
;             set CommonStatus = USER_CANCEL
;             set from = end
;             goto nonfatal
;        endif

        set AdapterList = $(Network_Flyer)
;        set AdapterList = $($R0)

    endif

    Debug-Output "<DBG: installproduct> AdapterList "$(AdapterList)
    Debug-Output "<DBG: installproduct> OldVersionExisted "$(OldVersionExisted)


    ifint $(OldVersionExisted) == $(FALSE)

        ; NT BUG_FIX Shradha
        Debug-Output "<DBG: installproduct> Changing DoCopy "$(DoCopy)" to YES"
        set DoCopy = "YES"
        ifint $(UseFixedSrcDir) == 1
                Debug-Output "<DBG: installproduct> Setting SrcDir to "$(FixedSrcDir)
                set SrcDir = $(FixedSrcDir)
                goto skip_src_dir
        endif
        ; NT BUG_FIX Shradha

        Debug-Output "<DBG: installproduct> DoCopy "$(DoCopy)
        Ifstr(i) $(DoCopy) == "YES"


           Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
           Ifint $($ShellCode) != $(!SHELL_CODE_OK)
                Debug-Output "<DBG: installproduct> DoAskSource error"
                 Goto ShellCodeError
           Else-Ifstr(i) $($R0) == STATUS_FAILED
                Debug-Output "<DBG: installproduct> DoAskSource error 2"
                 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
                Debug-Output "<DBG: installproduct> DoAskSource user cancel"
                 Goto successful
           Endif
           Set SrcDir = $($R1)
           Debug-Output "<DBG: installproduct> SrcDir "$(SrcDir)


           ;Shradha
           ; determine whether the SrcDir already has a backslash at the
           ; end

           Debug-Output "<DBG: installProduct: SrcDir = "$(SrcDir)
           split-string $(SrcDir) "\" SrcDirList
           QueryListSize SrcDirListSize $(SrcDirList)
           set SrcDirEnd = *($(SrcDirList), $(SrcDirListSize))
           ifstr $(SrcDirEnd) != "\"
                   set SrcDir = $(SrcDir)"\"
           endif
           ;Shradha

        Endif


        ; Shradha
        ;Debug-Output "<DBG: installproduct> Calling install-option"
        ;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
        ; Shradha

; NT BUG_FIX Shradha
skip_src_dir = +
; NT BUG_FIX Shradha

        Debug-Output "<DBG: installproduct> AddSotwareComponent"
        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 "<DBG: installproduct> AddSotwareComponent err "$($ShellCode)
            goto ShellCodeError
        endif
        set RegistryErrorIndex = $($R0)
        Debug-Output "<DBG: installproduct> RegistryErrorIndex "$(RegistryErrorIndex)
        Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
            EndWait
            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)}}
        Debug-Output "<DBG: installproduct> AddValueList"
        Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
            Debug-Output "<DBG: installproduct> AddValueList err "$($ShellCode)
            goto ShellCodeError
        endif
        set RegistryErrorIndex = $($R0)
        Debug-Output "<DBG: installproduct> RegistryErrorIndex "$(RegistryErrorIndex)
        Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
            EndWait
            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),$(NetRuleSoftwareSWBindable)}, +
                            {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
        Debug-Output "<DBG: installproduct> AddValueList 2"
        Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
            Debug-Output "<DBG: installproduct> AddValueList 2 err "$($ShellCode)
            goto ShellCodeError
        endif
        set RegistryErrorIndex = $($R0)
        Debug-Output "<DBG: installproduct> RegistryErrorIndex "$(RegistryErrorIndex)
        CloseRegKey $(SoftProductKey)
        CloseRegKey $(SoftNetRuleKey)
        CloseRegKey $(SoftServiceKey)
        CloseRegKey $(SoftParameterKey)
        CloseRegKey $(SoftLinkageKey)
        Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
            EndWait
            goto fatalregistry
        endif
    endif

    Debug-Output "<DBG: installproduct> before ForListDo "$(AdapterList)
    ForListDo $(AdapterList)
        set BusNum = *($($),1)
        set DeviceNum = *($($),2)
        set FunctionNum = *($($),3)

        Debug-Output "<DBG: installproduct> BusNum "$(BusNum)
        Debug-Output "<DBG: installproduct> DeviceNum "$(DeviceNum)
        Debug-Output "<DBG: installproduct> FunctionNum "$(FunctionNum)
        Debug-Output "<DBG: installproduct> Option "$(Option)

        ifstr(i) $(Option) == "DE425"
                Debug-Output "<DBG: installproduct> IsNetCardAlreadyInstalled "
                Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
                    $(DeviceNum), $(ProductHardware$(Option)Description), $(ProductHardwareName) "YES"
                ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    Debug-Output "<DBG: installproduct> IsNetCard err "$($ShellCode)
                    goto ShellCodeError
                endif
                ifstr $($R0) != "NO_ERROR"
                    Debug-Output "<DBG: installproduct> IsNetCard err 2 "$($R0)
                    set Error = $($R0)
                    goto fatal
                endif
                Debug-Output "<DBG: installproduct> R1 "$($R1)
                ifstr(i) $($R1) != "YES"
                        Debug-Output "<DBG: installproduct> AddHwComponent"
                        Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
                        Debug-Output "<DBG: installproduct> R4 "$($R4)
                        ifint $($R4) != -1
                            Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), +
                                $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
                        endif
                        ifint $($ShellCode) != $(!SHELL_CODE_OK)
                            Debug-Output "<DBG: installproduct> Err ShellCode "$($ShellCode)
                            goto ShellCodeError
                        endif
                        set RegistryErrorIndex = $($R0)
                        Debug-Output "<DBG: installproduct> RegistryErrorIndex "$(RegistryErrorIndex)
                        Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
                            EndWait
                            CloseRegKey $($R1)
                            CloseRegKey $($R2)
                            CloseRegKey $($R3)
                            goto fatalregistry
                        endif
                        Set HardNetCardKey        = $($R1)
                        Set HardNetRuleKey        = $($R2)
                        Set HardParameterKey    = $($R3)
                        set AdapterNumber = $($R4)
                        set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
                                           {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
                                           {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
                                           {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
                                           {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
                                           {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
                        Debug-Output "<DBG: installproduct> AddValueList 3"
                        Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
                        ifint $($ShellCode) != $(!SHELL_CODE_OK)
                            Debug-Output "<DBG: installproduct> AddValueList 3 err "$($ShellCode)
                            goto ShellCodeError
                        endif
                        set BusTypeNum = 2
                        ;Shradha
                        ifstr $(OldAdapterName) == ""
                            Debug-Output "<DBG> setting OldAdapterName"
                            set OldAdapterName = $(ProductHardwareName)$(AdapterNumber)
                        endif
                        Debug-Output "<DBG> OldAdapterName = "$(OldAdapterName)

                        ifint $(CSS187) == 1
                                ; since card may not be present
                                ; when the driver starts, we
                                ; cannot add AdapterCFID to the
                                ; registry
                                set CFIDValName = "SoftexCFID"
                        else
                                set CFIDValName = "AdapterCFID"
                        endif
                        Debug-Output "<DBG> CFIDValName = "$(CFIDValName)

                        ;Shradha

                        set NewValueList = {{AdapterType,$(NoTitle),$(!REG_VT_DWORD),$(Adapter$(Option)Type)},+
                                        {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
                                        {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
                                        {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
                                        {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(DeviceNum)},+
                                        ;Shradha
                                        {CardbusBridgeLatencyTimer,$(NoTitle),$(!REG_VT_DWORD),32},+
                                        {CardbusBridgeCacheLineSize,$(NoTitle),$(!REG_VT_DWORD),8},+
                                        {CardbusCardLatencyTimer,$(NoTitle),$(!REG_VT_DWORD),32},+
                                        {CardbusCardCacheLineSize,$(NoTitle),$(!REG_VT_DWORD),8},+
                                        {CardbusBridgeWritePosting,$(NoTitle),$(!REG_VT_DWORD),1},+
                                        {AdapterName,$(NoTitle),$(!REG_VT_SZ),$(OldAdapterName)},+
                                        ;Shradha
                                        {$(CFIDValName),$(NoTitle),$(!REG_VT_DWORD),$($(Option)CFID)}}
                        Debug-Output "<DBG: installproduct> AddValueList 4"
                        Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
                        ifint $($ShellCode) != $(!SHELL_CODE_OK)
                            Debug-Output "<DBG: installproduct> AddValueList 4 err "$($ShellCode)
                            goto ShellCodeError
                        endif

                        ;Shradha
                        ifint $(CSSSoftex187) == 1
                                set NewValueList = {{SoftexPcmcia,$(NoTitle),$(!REG_VT_DWORD),1}}
                                Debug-Output "<DBG: installproduct> AddValueList 5"
                                Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
                                ifint $($ShellCode) != $(!SHELL_CODE_OK)
                                    Debug-Output "<DBG: installproduct> AddValueList 5 err "$($ShellCode)
                                    goto ShellCodeError
                                endif
                        endif
                        ;Shradha
                        set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
                        set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
                        set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardware$(Option)Type)},+
                                            {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
                                            {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardware$(Option)Class)}, +
                                            {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
                        Debug-Output "<DBG: installproduct> AddValueList 6"
                        Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
                        ifint $($ShellCode) != $(!SHELL_CODE_OK)
                            Debug-Output "<DBG: installproduct> AddValueList 6 err "$($ShellCode)
                            goto ShellCodeError
                        endif
                        CloseRegKey $(HardNetCardKey)
                        CloseRegKey $(HardNetRuleKey)
                        CloseRegKey $(HardParameterKey)
                endif
        else
                Debug-Output "<DBG: installproduct else> IsNetAlready ..."
                Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
                    $(DeviceNum), $(ProductHardware$(Option)Description), $(ProductHardwareName) "YES"
                ifint $($ShellCode) != $(!SHELL_CODE_OK)
                    Debug-Output "<DBG: installproduct else> IsNetAlready err "$($ShellCode)
                    goto ShellCodeError
                endif
                Debug-Output "<DBG: installproduct else> R0 "$($R0)
                ifstr $($R0) != "NO_ERROR"
                    set Error = $($R0)
                    goto fatal
                endif
                Debug-Output "<DBG: installproduct else> R1 "$($R1)
                ifstr(i) $($R1) != "YES"
                  ifstr(i) $(!STF_GUI_UNATTENDED) != "YES"

                    ; Shradha
                    ifint $(CSSSoftex187) == 1
                            set add_auto_options = 1
                    else-ifint $(CardbusEnablerInstalled) == 1
                            set add_auto_options = 1
                    else
                            set add_auto_options = 0
                    endif
                    ifint $(add_auto_options) == 1
                            Debug-Output "<DBG: installProduct> Adding Auto"
                            Debug-Output "<DBG: installProduct> IoBaseValue = "$(IoBaseValue)
                            set IoBaseList = >($(IoBaseList), "Automatic")
                            set IoBaseValues = >($(IoBaseValues), 0)
                            set DefaultIoBaseChoice = 8
                            set IoBaseValue = *($(IoBaseList), +
                                $(DefaultIoBaseChoice))

                            Debug-Output "<DBG: installProduct> new IoBaseValue = "$(IoBaseValue)

                            Debug-Output "<DBG: installProduct> InterruptValue = "$(InterruptValue)
                            set InterruptList = >($(InterruptList), "Automatic")
                            set InterruptValues = >($(InterruptValues), 0)
                            set DefaultIrqChoice = 12
                            set InterruptValue = *($(InterruptList), +
                                $(DefaultIrqChoice))

                            Debug-Output "<DBG: installProduct> new InterruptValue = "$(InterruptValue)
                    endif

                    ; Shradha
                    read-syms FileDependentDlg$(!STF_LANGUAGE)
;;                  SetHelpFile $(!STF_WINDOWSSYSPATH)"\"$(OptionHelpFile) $(MinHelpId) $(MaxHelpId) $(Help$(Option)Id)

                    ui start "InputDlg"

                    ifstr(i) $(DLGEVENT) == "CONTINUE"
                         Debug-Output "<DBG: installproduct Dlgevent CONTINUE"
                         set ConnectionIndex = $(Combo1Out)
;Mike
                         set IoBaseValueIndex = $(Combo2Out)
                         set InterruptIndex = $(Combo3Out)
                         set StFdIndex = $(Combo4Out)
;Mike
                         ui pop 1
                    else-ifstr(i) $(DLGEVENT) == "BACK"
                         Debug-Output "<DBG: installproduct Dlgevent BACK"
                         set CommonStatus = STATUS_USERCANCEL
                         ui pop 1
                         goto end
                    else
                         Debug-Output "<DBG: installproduct Dlgevent "$(DLGEVENT)
                         ui pop 1
                         goto end
                    endif
                  endif
                    Debug-Output "<DBG: installproduct else> AddHwComp"
                    Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
                    Debug-Output "<DBG: installproduct else> R4 "$($R4)
                    ifint $($R4) != -1
                        Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
                    endif
                    Debug-Output "<DBG: installproduct else> ShellCode "$($ShellCode)
                    ifint $($ShellCode) != $(!SHELL_CODE_OK)
                        goto ShellCodeError
                    endif
                    set RegistryErrorIndex = $($R0)
                    Debug-Output "<DBG: installproduct else> RegistryErrorIndex "$(RegistryErrorIndex)
                    Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
                         EndWait
                         CloseRegKey $($R1)
                         CloseRegKey $($R2)
                         CloseRegKey $($R3)
                         goto fatalregistry
                    endif
                    set ConnectionValue = *($(ConnectionValues), ~($(ConnectionList),$(ConnectionIndex)))
;Mike
                    set IoBaseValue = *($(IoBaseValues), ~($(IoBaseList),$(IoBaseValueIndex)))
                    set InterruptValue = *($(InterruptValues), +
                        ~($(InterruptList),$(InterruptIndex)))
                    set StFdValue = *($(StFdValues), ~($(StFdList),$(StFdIndex)))

;Mike
                    Set HardNetCardKey        = $($R1)
                    Set HardNetRuleKey        = $($R2)
                    Set HardParameterKey    = $($R3)
                    set AdapterNumber = $($R4)
                    set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
                                        {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
                                        {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
                                        {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
                                        {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
                                        {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
                    Debug-Output "<DBG: installproduct else> AddValueList"
                    Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
                    ifint $($ShellCode) != $(!SHELL_CODE_OK)
                         Debug-Output "<DBG: installproduct else> ShellCode "$($ShellCode)
                         goto ShellCodeError
                    endif
                    set BusTypeNum = 5

                    ;Shradha
                    ifstr $(OldAdapterName) == ""
                            Debug-Output "<DBG> setting OldAdapterName"
                            set OldAdapterName = $(ProductHardwareName)$(AdapterNumber)
                    endif
                    Debug-Output "<DBG> OldAdapterName = "$(OldAdapterName)


                    ifint $(CSS187) == 1
                        set CFIDValName = "SoftexCFID"
                    else
                        set CFIDValName = "AdapterCFID"
                    endif
                    Debug-Output "<DBG> CFIDValName = "$(CFIDValName)

                    ;Shradha
                    set NewValueList = {{AdapterType,$(NoTitle),$(!REG_VT_DWORD),$(Adapter$(Option)Type)},+
                                        {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
                                        {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
                                        ;Shradha
                                        {AdapterName,$(NoTitle),$(!REG_VT_SZ),$(OldAdapterName)},+
                                        {CardbusBridgeLatencyTimer,$(NoTitle),$(!REG_VT_DWORD),32},+
                                        {CardbusBridgeCacheLineSize,$(NoTitle),$(!REG_VT_DWORD),8},+
                                        {CardbusCardLatencyTimer,$(NoTitle),$(!REG_VT_DWORD),32},+
                                        {CardbusCardCacheLineSize,$(NoTitle),$(!REG_VT_DWORD),8},+
                                        {CardbusBridgeWritePosting,$(NoTitle),$(!REG_VT_DWORD),1},+
                                        ;Shradha
                                        {$(CFIDValName),$(NoTitle),$(!REG_VT_DWORD),$($(Option)CFID)}}
                    Debug-Output "<DBG: installproduct else> AddValueList 2"
                    Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
                    ifint $($ShellCode) != $(!SHELL_CODE_OK)
                        Debug-Output "<DBG: installproduct else> ShellCode "$($ShellCode)
                        goto ShellCodeError
                    endif
                    ;Shradha
                    ifint $(CSSSoftex187) == 1
                            Debug-Output "<DBG: installproduct else> writing SoftexPcmcia"
                            set NewValueList = {{SoftexPcmcia,$(NoTitle),$(!REG_VT_DWORD),1}}
                            Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
                            Debug-Output "<DBG: installproduct else> ShellCode "$($ShellCode)
                            ifint $($ShellCode) != $(!SHELL_CODE_OK)
                                    goto ShellCodeError
                            endif
                    endif
                    ;Shradha

                    ifint $($(Option)CFID) == $(DC21143CFID)
                        set NewValueList = {{StoreAndForward,$(NoTitle),$(!REG_VT_DWORD),$(StoreAndForward)},+
                                            {SnoozeMode,$(NoTitle),$(!REG_VT_DWORD),0}}
                        Debug-Output "<DBG: installproduct else> AddValueList Snooze"
                        Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
                        ifint $($ShellCode) != $(!SHELL_CODE_OK)
                            Debug-Output "<DBG: installproduct else> ShellCode "$($ShellCode)
                            goto ShellCodeError
                        endif
                    endif
                    set NewValueList = {{ConnectionType,$(NoTitle),$(!REG_VT_DWORD),$(ConnectionValue)}}
                    Debug-Output "<DBG: installproduct else> AddValueList ConnType "
                    Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
                    ifint $($ShellCode) != $(!SHELL_CODE_OK)
                        Debug-Output "<DBG: installproduct else> err "$($ShellCode)
                        goto ShellCodeError
                    endif
                    ;Shradha
                    set NewValueList = { +
                    {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IoBaseValue)} +
                    {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(InterruptValue)} +
;Mike
                    {StoreAndForward,$(NoTitle),$(!REG_VT_DWORD),$(StFdValue)}}
;Mike
                    Debug-Output "<DBG: installproduct else> AddValueList iobase irq"
                    Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
                    ifint $($ShellCode) != $(!SHELL_CODE_OK)
                        Debug-Output "<DBG: installproduct else> err "$($ShellCode)
                        goto ShellCodeError
                    endif
                    ;Shradha
                    set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
                    set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
                    set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardware$(Option)Type)},+
                                        {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
                                        {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardware$(Option)Class)}, +
                                        {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
                    Debug-Output "<DBG: installproduct else> AddValueList bindform"
                    Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
                    ifint $($ShellCode) != $(!SHELL_CODE_OK)
                        Debug-Output "<DBG: installproduct else> err "$($ShellCode)
                        goto ShellCodeError
                    endif
                    CloseRegKey $(HardNetCardKey)
                    CloseRegKey $(HardNetRuleKey)
                    set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
                                        {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(DeviceNum)},+
                                        {FunctionNumber,$(NoTitle),$(!REG_VT_DWORD),$(FunctionNum)}}
                    Debug-Output "<DBG: installproduct else> AddValueList busnum"
                    Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
                    CloseRegKey $(HardParameterKey)
                endif
        endif
    EndForListDo
    ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
        Shell $(UtilityInf),AddDefaultNetCardParameters,$(KeyParameters)
    endif
    EndWait
    Debug-Output "<DBG: installproduct else> goto successful"
    goto successful
updateparameters =+
    set HardParameterKey    = $($R3)

;Mike
    set ConnectionValue = *($(ConnectionValues), ~($(ConnectionList),$(ConnectionIndex)))
    set IoBaseValue = *($(IoBaseValues), ~($(IoBaseList),$(IoBaseValueIndex)))
    set InterruptValue = *($(InterruptValues), +
         ~($(InterruptList),$(InterruptIndex)))
    set StFdValue = *($(StFdValues), ~($(StFdList),$(StFdIndex)))
    set NewValueList = {+
                        {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IoBaseValue)},+
                        {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(InterruptValue)},+
                        {ConnectionType,$(NoTitle),$(!REG_VT_DWORD),$(ConnectionValue)},+
                        {StoreAndForward,$(NoTitle),$(!REG_VT_DWORD),$(StFdValue)} }
;Mike

    Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
        goto ShellCodeError
    endif
    CloseRegKey $(KeyParameters)
    goto successful
bindingadapter =+
    set Error = "Binding: Sorry, not yet implemented."
    goto fatal

removeadapter = +

    Debug-Output "<DBG: removeAdapter> ProductKeyName "$(ProductKeyName)
    Debug-Output "<DBG: removeAdapter> NTN_RegBase "$(!NTN_RegBase)

    ; Shradha

    ; ----------------- now do the CSS detection bit

    Debug-Output "<DBG: removeAdapter> Calling INF_Get_CSS_Name"
    LoadLibrary $(TDKSetupDiskName), $(!STF_WINDOWSSYSPATH)"\"$(CSSDLL) +
        IdentHandle
    LibraryProcedure ResultStr $(IdentHandle) INF_Get_CSS_Name
    Debug-Output "<DBG: removeAdapter> ResultStr "$(ResultStr)

    set CSSNone = 0
    set CSS187 = 0
    set CSSSoftex187 = 0
    set CSSOther = 0

    set doAbort = 0

    Ifstr(i) $(ResultStr) == "Softex Cardbus Enabler"

        Debug-Output "<DBG: removeAdapter> Softex Cardbus Enabler"

        Debug-Output "<DBG: removeAdapter> install-RemoveCardbusEnabler"
        install "install-RemoveCardbusEnabler"

        set ourFile = $(!STF_WINDOWSSYSPATH)\drivers\SocketS.sys
        Debug-Output "<DBG: removeAdapter> INF_DeleteFile "$(ourFile)
        LibraryProcedure ResultStr $(IdentHandle) INF_DeleteFile $(ourFile)

        set ourFile = $(!STF_WINDOWSSYSPATH)\drivers\CardS.sys
        Debug-Output "<DBG: removeAdapter> INF_DeleteFile "$(ourFile)
        LibraryProcedure ResultStr $(IdentHandle) INF_DeleteFile $(ourFile)

        set ourFile = $(!STF_WINDOWSSYSPATH)\drivers\Enabler.sys
        Debug-Output "<DBG: removeAdapter> INF_DeleteFile "$(ourFile)
        LibraryProcedure ResultStr $(IdentHandle) INF_DeleteFile $(ourFile)

        Debug-Output "<DBG: removeAdapter> install-DecHalRefCount"
        install "install-DecHalRefCount"

    Endif
    Debug-Output "<DBG: removeAdapter> FreeLibrary "$(CSSDLL)
    FreeLibrary $(IdentHandle)
    ; Shradha

    Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
        Debug-Output "<DBG: removeAdapter> RemoveSoftwareComponent Manuf: "$(Manufacturer)" ProductSoftwareName: "$(ProductSoftwareName)
        Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
            $(ProductSoftwareName)
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
            goto ShellCodeError
        endif
        set RegistryErrorIndex = $($R0)
        Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
            goto fatalregistry
        endif
    else
        Debug-Output "<DBG: removeAdapter> RemoveHardwareComponent Manuf: "$(Manufacturer)" ProductSoftwareName: "$(ProductSoftwareName)
        Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
            $(ProductSoftwareName), $(!NTN_RegBase)
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
            goto ShellCodeError
        endif
        set RegistryErrorIndex = $($R0)
        Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
            goto fatalregistry
        endif
    endif
    goto end
UpgradeSoftware = +
     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
     Ifstr $(KeyProduct) != $(KeyNull)
           Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
           ifint $($ShellCode) != $(!SHELL_CODE_OK)
                 Debug-Output "ShellCode error"
                 goto ShellCodeError
           endif
           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)
            goto ShellCodeError
        endif
        set RegistryErrorIndex = $($R0)
        Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
            goto fatalregistry
        endif
    EndForListDo
    Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
        Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
            $(ProductSoftwareName), FALSE
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
            goto ShellCodeError
        endif
        set RegistryErrorIndex = $($R0)
        Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
            goto fatalregistry
        endif
    endif
    goto end
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 CommonStatus = STATUS_USERCANCEL
    Set Severity = STATUS
    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 $(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 = $(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 = +

    ; Shradha

    Debug-Output "<DBG: term: CommonStatus "$(CommonStatus)
    Debug-Output "<DBG: term: NTN_InstallMode "$(!NTN_InstallMode)

    Ifstr(i) $(!NTN_InstallMode) != install
        goto final_term
    endif

    Debug-Output "<DBG: term>: CardbusEnablerInstalled "+
$(CardbusEnablerInstalled)

    ifint $(CardbusEnablerInstalled) != 1
        goto final_term
    endif

    ;
    ; installation failed/succeeded after having installed cardbus
    ; enabler
    ;
    ifstr(i) $(CommonStatus) == "STATUS_SUCCESSFUL"
        Debug-Output "<DBG: term>: successful installation !"
        Debug-Output "<DBG: term>: install-IncHalRefCount"
        install "install-IncHalRefCount"
        goto final_term
    endif

    Debug-Output "<DBG: term>: Doing cleanup after error !"
    Debug-Output "<DBG: term> install-RemoveCardbusEnabler"
    install "install-RemoveCardbusEnabler"

    Debug-Output "<DBG: term> deleting files"
    LoadLibrary $(TDKSetupDiskName), +
        $(!STF_WINDOWSSYSPATH)"\"$(CSSDLL) IdentHandle

    set ourFile = $(!STF_WINDOWSSYSPATH)\drivers\SocketS.sys
    LibraryProcedure ResultStr $(IdentHandle) +
        INF_DeleteFile $(ourFile)

    set ourFile = $(!STF_WINDOWSSYSPATH)\drivers\CardS.sys
    LibraryProcedure ResultStr $(IdentHandle) +
        INF_DeleteFile $(ourFile)

    set ourFile = $(!STF_WINDOWSSYSPATH)\drivers\Enabler.sys
    LibraryProcedure ResultStr $(IdentHandle) +
        INF_DeleteFile $(ourFile)

    FreeLibrary $(IdentHandle)

final_term = +
    ; Shradha
    Return $(CommonStatus)

[Install-Option]

    ; Shradha
    Exit
    ; Shradha

    set STF_VITAL = ""
    ifstr(i) $(AddCopy) == "YES"
        AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
    endif

    ifstr(i) $(DoCopy) == "YES"
         set !STF_NCPA_FLUSH_COPYLIST = TRUE
         CopyFilesInCopyList
    endif
    Exit

;Shradha
[Install-AllFiles]

    set STF_VITAL = ""
    Ifint $(CSS187) == 1
        ifint $(AbortIfPhoenixCSSNotFound) == 1
                set driverSrcDir = $(SrcDir)
        else
                set driverSrcDir = $(SrcDir)$(TdkDir)187
        endif
    Else
        Ifint $(CSSOther) == 1
                set driverSrcDir = $(SrcDir)$(TdkDir)other
        Else
                set driverSrcDir = $(SrcDir)$(TdkDir)point

                AddSectionFilesToCopyList Files-cbenabler +
                        $(SrcDir)$(TdkDir)enabler $(!STF_WINDOWSSYSPATH)\drivers

                AddSectionFilesToCopyList Files-hal $(SrcDir)$(TdkDir)enabler +
                        $(!STF_WINDOWSSYSPATH)
        EndIf
    Endif
    Debug-Output "<DBG: Option> driverSrcDir = "$(driverSrcDir)
    AddSectionFilesToCopyList Files-$(Option) $(driverSrcDir) +
        $(!STF_WINDOWSSYSPATH)\drivers
    ; Shradha

    set !STF_NCPA_FLUSH_COPYLIST = TRUE
    CopyFilesInCopyList
    Exit

;Shradha

[Install-Hlp]

    set STF_VITAL = ""
;    AddSectionFilesToCopyList Files-Hlp $(SrcDir) $(!STF_WINDOWSSYSPATH)

    ; Shradha
    AddSectionFilesToCopyList Files-CSSDLL $(SrcDir) $(!STF_WINDOWSSYSPATH)
    ;Shradha

    set !STF_NCPA_FLUSH_COPYLIST = TRUE
    CopyFilesInCopyList
    Exit

[Install-AddCardbusEnabler]

        ;
        ;
        ; First setup the PCMCIA database
        ;
        ;

        set CBCardManufKey = $(PcmciaDbKey)"\"$(CBCardManufName)

        Debug-Output "<DBG: AddCardbusEnabler> OpenRegKey "$(CBCardManufKey)
        OpenRegKey $(!REG_H_LOCAL) "" $(CBCardManufKey) $(MAXIMUM_ALLOWED) +
                MyManufHandle

        Ifstr $(MyManufHandle) == $(KeyNull)

                Debug-Output "<DBG: AddCardbusEnabler> OpenRegKey "$(CBCardManufKey)" failed"

                Debug-Output "<DBG: AddCardbusEnabler> OpenRegKey "$(PcmciaDbKey)
                OpenRegKey $(!REG_H_LOCAL) "" $(PcmciaDbKey) +
                        $(MAXIMUM_ALLOWED) MyPcmciaKey
                Ifstr $(MyPcmciaKey) == $(KeyNull)
                        Debug-Output "<DBG: AddCardbusEnabler> OpenRegKey "$(PcmciaDbKey)" failed"
                        goto my_err_exit
                endif

                Debug-Output "<DBG: AddCardbusEnabler> CreateRegKey "$(CBCardManufName)
                CreateRegKey $(MyPcmciaKey) {$(CBCardManufName),0, +
                        GenericClass} "" $(MAXIMUM_ALLOWED) "" MyManufHandle
                CloseRegKey $(MyPcmciaKey)
        endif

        Ifstr $(MyManufHandle) == $(KeyNull)
                Debug-Output "<DBG: AddCardbusEnabler> CreateRegKey failed "$(CBCardManufName)
                goto my_err_exit
        endif

        OpenRegKey $(MyManufHandle) "" $(CBCardProdName) $(MAXIMUM_ALLOWED) +
                MyProdHandle
        Ifstr $(MyProdHandle) == $(KeyNull)
                CreateRegKey $(MyManufHandle) {$(CBCardProdName),0, +
                        GenericClass} "" $(MAXIMUM_ALLOWED) "" MyProdHandle
        endif

        CloseRegKey $(MyManufHandle)

        Ifstr $(MyProdHandle) == $(KeyNull)
                Debug-Output "<DBG: AddCardbusEnabler> CreateRegKey failed "$(CBCardProdName)
                goto my_err_exit
        endif
        SetRegValue $(MyProdHandle) +
                {Driver,$(NoTitle),$(!REG_VT_SZ),$(CBCardDriverName)}
        SetRegValue $(MyProdHandle) +
                {DeviceType,$(NoTitle),$(!REG_VT_SZ),"NET"}
        CloseRegKey $(MyProdHandle)

        ;
        ;
        ; Open up services key
        ;
        ;

        set myKey = "SYSTEM\CurrentControlSet\Services"
        OpenRegKey $(!REG_H_LOCAL) "" $(myKey) $(MAXIMUM_ALLOWED) myKeyHandle
        Ifstr $(myKeyHandle) == $(KeyNull)
                Debug-Output "<DBG: AddCardbusEnabler> OpenRegKey "$(myKey)" failed"
                Exit
        Endif


        ;
        ;
        ; Now install Sockets
        ;
        ;
        set subkey = "SocketS"
        ;set imgName = $(imgPath)"\"$(subkey)".sys"
        Debug-Output "<DBG: AddCardbusEnabler> CreateRegKey "$(myKey)"\"$(subkey)
        CreateRegKey $(myKeyHandle) {$(subkey),0,GenericClass} "" +
                $(MAXIMUM_ALLOWED) "" subKeyHandle
        Ifstr $(subKeyHandle) == $(KeyNull)
                Debug-Output "<DBG: AddCardbusEnabler> CreateRegKey "$(myKey)"\"$(subkey)" failed"
                CloseRegKey $(myKeyHandle)
                goto my_err_exit
        Endif

        SetRegValue $(subKeyHandle) {ErrorControl,$(NoTitle),$(!REG_VT_DWORD),1}
        SetRegValue $(subKeyHandle) {Group,$(NoTitle),$(!REG_VT_SZ),+
                "System Bus Extender"}
        SetRegValue $(subKeyHandle) {Start,$(NoTitle),$(!REG_VT_DWORD),0}
        SetRegValue $(subKeyHandle) {Tag,$(NoTitle),$(!REG_VT_DWORD),1}
        SetRegValue $(subKeyHandle) {Type,$(NoTitle),$(!REG_VT_DWORD),1}

        CloseRegKey $(subKeyHandle)

        ;
        ;
        ; Now install CardS
        ;
        ;
        set subkey = "CardS"
        ;set imgName = $(imgPath)"\"$(subkey)".sys"
        Debug-Output "<DBG: AddCardbusEnabler> CreateRegKey "$(myKey)"\"$(subkey)
        CreateRegKey $(myKeyHandle) {$(subkey),0,GenericClass} "" +
                $(MAXIMUM_ALLOWED) "" subKeyHandle
        Ifstr $(subKeyHandle) == $(KeyNull)
                Debug-Output "<DBG: AddCardbusEnabler> CreateRegKey "$(myKey)"\"$(subkey)" failed"
                CloseRegKey $(myKeyHandle)
                goto my_err_exit
        Endif

        SetRegValue $(subKeyHandle) {ErrorControl,$(NoTitle),$(!REG_VT_DWORD),1}
        SetRegValue $(subKeyHandle) {Group,$(NoTitle),$(!REG_VT_SZ),+
                "System Bus Extender"}
        SetRegValue $(subKeyHandle) {Start,$(NoTitle),$(!REG_VT_DWORD),0}
        SetRegValue $(subKeyHandle) {Tag,$(NoTitle),$(!REG_VT_DWORD),3}
        SetRegValue $(subKeyHandle) {Type,$(NoTitle),$(!REG_VT_DWORD),1}

        CloseRegKey $(subKeyHandle)

        ;
        ;
        ; Now install Enabler
        ;
        ;
        set subkey = "Enabler"
        ;set imgName = $(imgPath)"\"$(subkey)".sys"
        Debug-Output "<DBG: AddCardbusEnabler> CreateRegKey "$(myKey)"\"$(subkey)
        CreateRegKey $(myKeyHandle) {$(subkey),0,GenericClass} "" +
                $(MAXIMUM_ALLOWED) "" subKeyHandle
        Ifstr $(subKeyHandle) == $(KeyNull)
                Debug-Output "<DBG: AddCardbusEnabler> CreateRegKey "$(myKey)"\"$(subkey)" failed"
                CloseRegKey $(myKeyHandle)
                goto my_err_exit
        Endif

        SetRegValue $(subKeyHandle) {ErrorControl,$(NoTitle),$(!REG_VT_DWORD),1}
        SetRegValue $(subKeyHandle) {Group,$(NoTitle),$(!REG_VT_SZ),+
                "System Bus Extender"}
        SetRegValue $(subKeyHandle) {Start,$(NoTitle),$(!REG_VT_DWORD),0}
        SetRegValue $(subKeyHandle) {Tag,$(NoTitle),$(!REG_VT_DWORD),4}
        SetRegValue $(subKeyHandle) {Type,$(NoTitle),$(!REG_VT_DWORD),1}

        CloseRegKey $(subKeyHandle)

        ;
        ;
        ; Update the tag for PCMCIA.sys
        ;
        ;
        set subkey = $(myKey)"\pcmcia"
        Debug-Output "<DBG: AddCardbusEnabler> OpenRegKey "$(subkey)
        OpenRegKey $(!REG_H_LOCAL) "" $(subkey) $(MAXIMUM_ALLOWED) subKeyHandle
        Ifstr $(subKeyHandle) == $(KeyNull)
                Debug-Output "<DBG: AddCardbusEnabler> OpenRegKey "$(subkey)" failed"
                CloseRegKey $(myKeyHandle)
                goto my_err_exit
        Endif

        SetRegValue $(subKeyHandle) {Tag,$(NoTitle),$(!REG_VT_DWORD),2}
        CloseRegKey $(subKeyHandle)

        ;
        ;
        ;
        ; Close the Services key handle
        ;
        ;
        CloseRegKey $(myKeyHandle)

        ;
        ;
        ; Update the Group load order
        ;
        ;
        set myKey = "SYSTEM\CurrentControlSet\Control\GroupOrderList"

        Debug-Output "<DBG: AddCardbusEnabler> OpenRegKey "$(myKey)
        OpenRegKey $(!REG_H_LOCAL) "" $(myKey) $(MAXIMUM_ALLOWED) myKeyHandle
        Ifstr $(myKeyHandle) == $(KeyNull)
                Debug-Output "<DBG: AddCardbusEnabler> OpenRegKey "$(myKey)" failed"
                goto my_err_exit
        Endif

        Debug-Output "<DBG: AddCardbusEnabler> SetRegValue GroupOrderList in "$(myKey)
        SetRegValue $(myKeyHandle) +
                {"System Bus Extender",$(NoTitle),$(!REG_VT_BIN), {04, 00, 00, 00, 01, 00, 00, 00, 02, 00, 00, 00, 03, 00, 00, 00, 04, 00, 00, 00}}

        Debug-Output "<DBG: AddCardbusEnabler> CloseRegKey "$(myKey)
        CloseRegKey $(myKeyHandle)

my_err_exit = +

        Exit


[Install-RemoveCardbusEnabler]

        ;
        ;
        ; Open up services key
        ;
        ;

        set myKey = "SYSTEM\CurrentControlSet\Services"
        OpenRegKey $(!REG_H_LOCAL) "" $(myKey) $(MAXIMUM_ALLOWED) myKeyHandle
        Ifstr $(myKeyHandle) == $(KeyNull)
                Debug-Output "<DBG: RemoveCardbusEnabler> OpenRegKey "$(myKey)" failed"
                Exit
        Endif


        ;
        ;
        ; Now uninstall Sockets
        ;
        ;
        set subkey = "SocketS"
        Debug-Output "<DBG: RemoveCardbusEnabler> DeleteRegTree "$(myKey)"\"$(subkey)
        DeleteRegTree $(myKeyHandle) $(subkey)
        Debug-Output "<DBG: RemoveCardbusEnabler> RegLastError "$(RegLastError)

        ;
        ;
        ; Now uninstall CardS
        ;
        ;
        set subkey = "CardS"
        Debug-Output "<DBG: RemoveCardbusEnabler> DeleteRegTree "$(myKey)"\"$(subkey)
        DeleteRegTree $(myKeyHandle) $(subkey)
        Debug-Output "<DBG: RemoveCardbusEnabler> RegLastError "$(RegLastError)

        ;
        ;
        ; Now uninstall Enabler
        ;
        ;
        set subkey = "Enabler"
        Debug-Output "<DBG: RemoveCardbusEnabler> DeleteRegTree "$(myKey)"\"$(subkey)
        DeleteRegTree $(myKeyHandle) $(subkey)
        Debug-Output "<DBG: RemoveCardbusEnabler> RegLastError "$(RegLastError)

        ;
        ;
        ; Update the tag for PCMCIA.sys
        ;
        ;
        set subkey = $(myKey)"\pcmcia"
        Debug-Output "<DBG: RemoveCardbusEnabler> OpenRegKey "$(subkey)
        OpenRegKey $(!REG_H_LOCAL) "" $(subkey) $(MAXIMUM_ALLOWED) subKeyHandle
        Ifstr $(subKeyHandle) == $(KeyNull)
                Debug-Output "<DBG: RemoveCardbusEnabler> OpenRegKey "$(subkey)" failed"
                CloseRegKey $(myKeyHandle)
                goto my_err_exit2
        Endif

        SetRegValue $(subKeyHandle) {Tag,$(NoTitle),$(!REG_VT_DWORD),1}
        Debug-Output "<DBG: RemoveCardbusEnabler> RegLastError "$(RegLastError)
        CloseRegKey $(subKeyHandle)

        ;
        ;
        ;
        ; Close the Services key handle
        ;
        ;
        CloseRegKey $(myKeyHandle)

        ;
        ;
        ; Update the Group load order back to what it should be !
        ;
        ;
        set myKey = "SYSTEM\CurrentControlSet\Control\GroupOrderList"

        Debug-Output "<DBG: RemoveCardbusEnabler> OpenRegKey "$(myKey)
        OpenRegKey $(!REG_H_LOCAL) "" $(myKey) $(MAXIMUM_ALLOWED) myKeyHandle
        Ifstr $(myKeyHandle) == $(KeyNull)
                Debug-Output "<DBG: RemoveCardbusEnabler> OpenRegKey "$(myKey)" failed"
                goto err_exit
        Endif

        Debug-Output "<DBG: RemoveCardbusEnabler> SetRegValue GroupOrderList in "$(myKey)
        SetRegValue $(myKeyHandle) +
                {"System Bus Extender",$(NoTitle),$(!REG_VT_BIN), {01, 00, 00, 00, 01, 00, 00, 00}}

        Debug-Output "<DBG: RemoveCardbusEnabler> CloseRegKey "$(myKey)
        CloseRegKey $(myKeyHandle)

my_err_exit2 = +
        Exit

[Install-IncHalRefCount]


        Debug-Output "<DBG: IncHalRefCount> OpenRegKey "$(HalRefCountKey)
        OpenRegKey $(!REG_H_LOCAL) "" $(HalRefCountKey) $(MAXIMUM_ALLOWED) +
                HalRefCountKeyHandle

        Ifstr $(HalRefCountKeyHandle) == $(KeyNull)

                Debug-Output "<DBG: IncHalRefCount> OpenRegKey "$(HalRefCountKey)" failed"

                Debug-Output "<DBG: IncHalRefCount> OpenRegKey "$(SystemKey)
                OpenRegKey $(!REG_H_LOCAL) "" $(SystemKey) +
                        $(MAXIMUM_ALLOWED) SystemKeyHandle
                Ifstr $(SystemKeyHandle) == $(KeyNull)
                        Debug-Output "<DBG: IncHalRefCount> OpenRegKey "$(SystemKey)" failed"
                        goto my_err_exit3
                endif

                Debug-Output "<DBG: IncHalRefCount> CreateRegKey "$(HalRefCountKey)
                CreateRegKey $(SystemKeyHandle) {$(SetupKey),0, +
                        GenericClass} "" $(MAXIMUM_ALLOWED) "" +
                        HalRefCountKeyHandle
                CloseRegKey $(SystemKeyHandle)
        endif

        Ifstr $(HalRefCountKeyHandle) == $(KeyNull)
                Debug-Output "<DBG: IncHalRefCount> CreateRegKey failed "$(HalRefCountKey)
                goto my_err_exit3
        endif

        Debug-Output "<DBG: IncHalRefCount> GetRegValue "$(HalRefCountValueName)
        GetRegValue $(HalRefCountKeyHandle) $(HalRefCountValueName) +
                HalRefCountValue

        ifint $(RegLastError) != 0
                Debug-Output "<DBG: IncHalRefCount> RegLastError "$(RegLastError)
                set HalRefCount = 1
        else
                Debug-Output "<DBG: IncHalRefCount> HalRefCountValue "$(HalRefCountValue)
                set HalRefCountValueType = *($(HalRefCountValue), 3)
                set HalRefCount = *($(HalRefCountValue), 4)

                Debug-Output "<DBG: IncHalRefCount> HalRefCountValueType "$(HalRefCountValueType)
                Debug-Output "<DBG: IncHalRefCount> curr HalRefCount "$(HalRefCount)

                ifint $(HalRefCountValueType) != $(!REG_VT_DWORD)
                        Debug-Output "<DBG: IncHalRefCount> not DWORD !"
                        set HalRefCount = 1
                else
                        set-add NewHalRefCount = $(HalRefCount), 1
                        set HalRefCount = $(NewHalRefCount)
                endif
        endif

        Debug-Output "<DBG: IncHalRefCount> SetRegValue HalRefCount = "$(HalRefCount)
        SetRegValue $(HalRefCountKeyHandle) {$(HalRefCountValueName),$(NoTitle),$(!REG_VT_DWORD),$(HalRefCount)}
        Debug-Output "<DBG: IncHalRefCount> RegLastError "$(RegLastError)

        Debug-Output "<DBG: IncHalRefCount> CloseRegKey"
        CloseRegKey $(HalRefCountKeyHandle)

my_err_exit3 = +
        Exit


[Install-DecHalRefCount]


        Debug-Output "<DBG: DecHalRefCount> OpenRegKey "$(HalRefCountKey)
        OpenRegKey $(!REG_H_LOCAL) "" $(HalRefCountKey) $(MAXIMUM_ALLOWED) +
                HalRefCountKeyHandle

        Ifstr $(HalRefCountKeyHandle) == $(KeyNull)
                Debug-Output "<DBG: DecHalRefCount> OpenRegKey failed "$(HalRefCountKey)
                goto my_err_exit4
        endif

        Debug-Output "<DBG: DecHalRefCount> GetRegValue "$(HalRefCountValueName)
        GetRegValue $(HalRefCountKeyHandle) $(HalRefCountValueName) +
                HalRefCountValue

        ifint $(RegLastError) != 0
                Debug-Output "<DBG: DecHalRefCount> RegLastError "$(RegLastError)
                goto my_err_exit4
        endif

        Debug-Output "<DBG: DecHalRefCount> HalRefCountValue "$(HalRefCountValue)
        set HalRefCountValueType = *($(HalRefCountValue), 3)
        set HalRefCount = *($(HalRefCountValue), 4)

        Debug-Output "<DBG: DecHalRefCount> HalRefCountValueType "$(HalRefCountValueType)
        Debug-Output "<DBG: DecHalRefCount> curr HalRefCount "$(HalRefCount)

        ifint $(HalRefCountValueType) != $(!REG_VT_DWORD)
                Debug-Output "<DBG: DecHalRefCount> not DWORD !"
                goto my_err_exit4
        endif

        ifint $(HalRefCount) > 1

                set-sub NewHalRefCount = $(HalRefCount), 1
                set HalRefCount = $(NewHalRefCount)

                Debug-Output "<DBG: DecHalRefCount> SetRegValue HalRefCount = "$(HalRefCount)
                SetRegValue $(HalRefCountKeyHandle) {$(HalRefCountValueName),$(NoTitle),$(!REG_VT_DWORD),$(HalRefCount)}
                Debug-Output "<DBG: DecHalRefCount> RegLastError "$(RegLastError)
        else
                Debug-Output "<DBG: DecHalRefCount> DeleteRegValue "$(HalRefCountValueName)
                DeleteRegValue $(HalRefCountKeyHandle) $(HalRefCountValueName)
        endif

        Debug-Output "<DBG: DecHalRefCount> CloseRegKey"
        CloseRegKey $(HalRefCountKeyHandle)

my_err_exit4 = +
        Exit

[Install-Update]
    set STF_VITAL          = ""
    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
;    AddSectionFilesToCopyList Files-Hlp $(SrcDir) $(!STF_WINDOWSSYSPATH)
    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
    set !STF_NCPA_FLUSH_COPYLIST = TRUE
    CopyFilesInCopyList
    exit
[Source Media Descriptions]
    1  = ""
[ProductType]
STF_PRODUCT  = Winnt
STF_PLATFORM = I386
STF_PLATFORM = PPC
STF_PLATFORM = Alpha
[Files-Inf]
2,        oemsetup.inf,    SIZE=1000,     RENAME=$(!UG_Filename)

[Files-DC21143]
1,TDKFLYS.SYS , SIZE=999

;Shradha
[Files-cbenabler]
1,SocketS.SYS , SIZE=999
1,CardS.SYS , SIZE=999
1,Enabler.SYS , SIZE=999

[Files-hal]
1,hal.dll , SIZE=999 , BACKUP=hal.nt

[Files-CSSDLL]
1,DetectCS.dll , SIZE=999

;Shradha

;[Files-Hlp]
;1,TDKFLY.HLP , SIZE=999

[LanguagesSupported]
    ENG
[OptionsTextENG]
    DC21143  = "TDK Network Flyer 100"
[FileConstantsENG]
ProCaption   = "Windows NT Setup"
ProCancel    = "Cancel"
ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
                 "Are you sure you want to cancel copying files?"
ProCancelCap = "Network Setup Message"
ProText1     = "Copying:"
ProText2     = "To:"

ProductSoftwareDescription = "TDK TDKFLY Driver"

FunctionDC21143Title = "TDK Network Flyer 100 Setup"
ProductHardwareDC21143Description = "TDK Network Flyer 100"

ConnectionList  = ^(ConnectionTypeChoices$(Option), 1)
ConnectionValues = ^(ConnectionTypeChoices$(Option), 2)

;Mike
IoBaseList  = ^(IoBaseChoices, 1)
IoBaseValues = ^(IoBaseChoices, 2)
InterruptList = ^(InterruptChoices, 1)
InterruptValues = ^(InterruptChoices, 2)
StFdList = ^(StoreAndForwardChoices, 1)
StFdValues = ^(StoreAndForwardChoices, 2)
;Mike

NoList  = ^(NoChoices, 1)
NoValues = ^(NoChoices, 2)
ShellCodeErrorTitle     = "Error: "$(Function$(Option)Title)
ShellCodeErrorText        = "Shell Code Error."
CANNOT_FIND_ANY_CARD    = "Network card is not present in the system"

Network_Flyer = "{"{""21"",""0"",""0""}"}"

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

[FileDependentDlgENG]
;;ConnectionValue = *($(ConnectionList), 1)
DlgText = "HELP is not available with this version."
;DlgText = "Choose the proper cable type for the "+
;          "network adapter. Select [Help] for a detailed "+
;          "description of the available options of the list."
;;DlgTemplate = "ADAP_PROTO_COMBO"
;;DlgType = "Combination"
;Mike
DlgType = "RadioCombination"
DlgTemplate = "EE_16"
;Mike
Caption = $(Function$(Option)Title)
Combo1Label = "Connection Type:"
;Mike
Combo2Label = "I/O Base Address:"
Combo3Label = "Interrupt Level:"
Combo4Label = "Store And Forward:"
;Mike
Combo1List = $(ConnectionList)
Combo1Out = $(ConnectionValue)
;Mike
Combo2List = $(IoBaseList)
Combo2Out  = $(IoBaseValue)
Combo3List = $(InterruptList)
Combo3Out  = $(InterruptValue)
Combo4List = $(StFdList)
Combo4Out  = $(StFdValue)
;Mike

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

EditTextLim = ""
CBOptionsGreyed = {}
MinHelpId = 10
MaxHelpId = 1140
HelpContext = $(Help$(Option)Id)

[SomeImportantVars]
;
CBCardManufName = "TDK"
CBCardProdName = "NetworkFlyer"
CBCardDriverName = "TDKFly"
PcmciaDbKey = "SYSTEM\CurrentControlSet\Services\Pcmcia\Database"
TDKSetupDiskName = "TDK NetworkFlyer Setup Disk"
CSSDLL = DetectCS.dll
;
DefaultIoBaseChoice = 1 ;IoBase=0x500,  see List of IoBaseChoices
DefaultIrqChoice = 7    ;IRQ=11,  see List of IrqChoices
;
!G:DebugOutputControl = 0
CardbusEnablerInstalled = 0
;
PreviousEnablerExistsMessage = "A version of TDK Cardbus Enabler "+
"Software has been detected on "+
"your machine. Select OK to overwrite the version that is currently "+
"installed. If you select CANCEL, you must manually uninstall the "+
"software before installing this network adapter."
;
SomeCSSFoundMessage = "Your machine has a Card and Socket "+
"Services installed. Please contact TDK Corporation for the network "+
"adapter driver that works with this Card and Socket Services"
;
PhoenixCSSNotFoundMessage = "Your machine does not have the required "+
"Card and Socket Services installed. Please install the adapter after "+
"you have installed the Card and Socket Services."
;
AbortIfCSSFound = 1
AbortIfPhoenixCSSFound = 0
;
; **************************************************************
; Change the following variables to 1 when distributing inf
; with Softex/Phoenix 187 CSS
; **************************************************************
AbortIfPhoenixCSSNotFound = 1
;
; **************************************************************
; Change the following variables to 0 when distributing inf
; with Softex/Phoenix 187 CSS
; **************************************************************
UseFixedSrcDir = 0
;
;
SystemKey = "SYSTEM"
SetupKey = "Setup"
HalRefCountValueName = "SoftexHalCount"
HalRefCountKey = $(SystemKey)"\"$(SetupKey)
;
FixedSrcDir = "a:\"
TdkDir = "nt4.0\"
;
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: web1, load: 0.99