Oemsetup.inf Driver File Contents (DSA00H.EXE)

[IntstallOptions]
 Install_3NIC_Diag = "NO"
 Install_Shortcuts = "NO"
 Install_Installer = "NO"

[Identification]
 OptionType = NetAdapter

[PlatformsSupported]
 ISA
 EISA
 "Jazz-Internal Bus"
 PCI

[Options]
3C920
3C905
3C900

[DriverFilenameConstantsNDIS3]
 NetEventDLL = "%SystemRoot%\System32\netevent.dll;%SystemRoot%\System32\drivers\el90xnd3.sys"
 ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\el90xnd3.sys"
 ProductSoftwareUpgradePath = "\SystemRoot\System32\drivers\el90xnd3.sys"

[DriverFilenameConstantsNDIS4]
 NetEventDLL = "%SystemRoot%\System32\netevent.dll;%SystemRoot%\System32\drivers\el90xnd4.sys"
 ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\el90xnd4.sys"
 ProductSoftwareUpgradePath = "\SystemRoot\System32\drivers\el90xnd4.sys"

;*************************************************************************
; For New NDIS4 driver that supports 905B and 905C
;*************************************************************************

[905BCDriverFilenameConstantsNDIS4]
NetEventDLL905BC = "%SystemRoot%\System32\netevent.dll;%SystemRoot%\System32\drivers\EL920BC4.sys"
ProductSoftwareImagePath905BC = "%SystemRoot%\System32\drivers\EL920BC4.sys"
ProductSoftwareUpgradePath905BC = "\SystemRoot\System32\drivers\EL920BC4.sys"

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

[FileConstants]
 UtilityInf = "UTILITY.INF"
 subroutineinf = "SUBROUTN.INF"
 SoftwareType = "driver"
 Exit_Code = 0
 IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll"
 TrayIconExe = "TCAUDIAG.EXE"
 NetworkCardsKey = $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"

Manufacturer = "3Com"
 EtherDiskVersion = "5.0"
 ProductMajorVersion = "1"
 ProductMinorVersion = "0"
 ProductReview = "1"
 ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
 ProductSoftwareName = "El920"
 NetRuleSoftwareType = "El920Sys ndisDriver El920Driver"
 NetRuleSoftwareUse = $(SoftwareType)
 NetRuleSoftwareBindForm = """El920Sys"" yes no container"
 NetRuleSoftwareClass = {"El920Driver basic"}
 NetRuleSoftwareBindable = {"El920Driver El920Adapter non exclusive 100"}
 ProductHardwareName = "El920"
 NetRuleHardwareBindForm = " yes yes container"

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

 FunctionTitle = "3Com 3C920 Adapter Card Setup"
 ProductSoftwareDescription = "3Com 3C920 Adapter Driver"
 ProductSoftwareTitle = "3Com 3C920 Adapter Driver"
 3CNUMBER = "3C920"

GROUP_NAME = "3Com EtherLink PCI NIC"
 NetRuleHardwareType = "El920 El920Adapter"
 NetRuleHardwareClass = {"El920Adapter basic"}

 ProductHardwareXXXXXTitle = "3Com EtherLink PCI NIC "
 ProductHardwareXXXXXDescription = "3Com EtherLink PCI NIC "

;--------------------these NICs use old NDIS4 driver --------------------------------

 ProductHardware36944Title = "3Com EtherLink 10/100 PCI NIC (3C905-TX)"
 ProductHardware36944Description = "3Com EtherLink 10/100 PCI NIC (3C905-TX)"

 ProductHardware36945Title = "3Com EtherLink 10/100 PCI T4 NIC (3C905-T4)"
 ProductHardware36945Description = "3Com EtherLink 10/100 PCI T4 NIC (3C905-T4)"

 ProductHardware36864Title = "3Com EtherLink PCI TPO NIC (3C900-TPO)"
 ProductHardware36864Description = "3Com EtherLink PCI TPO NIC (3C900-TPO)"

ProductHardware36865Title = "3Com EtherLink PCI Combo  NIC (3C900-COMBO)"
 ProductHardware36865Description = "3Com EtherLink PCI Combo  NIC (3C900-COMBO)"

;--------------------these NICs use new NDIS4 driver --------------------------------

ProductHardware36952Title = "3Com EtherLink 10/100 PCI Combo NIC (3C905B-COMBO)"
 ProductHardware36952Description = "3Com EtherLink 10/100 PCI Combo NIC (3C905B-COMBO)"

ProductHardware37376Title = "3Com EtherLink 10/100 PCI NIC (3C905C-TX)"
 ProductHardware37376Description = "3Com EtherLink 10/100 PCI For Complete PC Management NIC (3C905C-TX)"

 ProductHardware36949Title = "3Com EtherLink 10/100 PCI NIC (3C905B-TX)"
 ProductHardware36949Description = "3Com EtherLink 10/100 PCI TX NIC (3C905B-TX)"

 ProductHardware36954Title = "3Com EtherLink 100 PCI Fiber NIC (3C905B-FX)"
 ProductHardware36954Description = "3Com EtherLink 100 PCI Fiber NIC (3C905B-FX)"

ProductHardware36868Title = "3Com EtherLink PCI TPO NIC (3C900B-TPO)"
 ProductHardware36868Description = "3Com EtherLink PCI TPO NIC (3C900B-TPO)"

ProductHardware36869Title = "3Com EtherLink PCI Combo NIC (3C900B-COMBO)"
 ProductHardware36869Description = "3Com EtherLink PCI Combo NIC (3C900B-COMBO)"

ProductHardware36870Title = "3Com EtherLink PCI TPC NIC (3C900B-TPC)"
 ProductHardware36870Description = "3Com EtherLink PCI TPC NIC (3C900B-TPC)"

ProductHardware36874Title = "3Com EtherLink PCI Fiber NIC (3C900B-FL)"
 ProductHardware36874Description = "3Com EtherLink PCI Fiber NIC (3C900B-FL)"

AdapterType = 5

; List of NICs that use old NDIS4 driver
CFIDList = {36944, 36945, 36864, 36865}

; List of NICs that use new NDIS4 driver (905B and 095C)
CFIDListFor905BC = {36868, 36869, 36870, 36874, 36949, 36952, 36954, 37376}

TrayIconExe = TCAUDIAG
 InstallerExe = TCAUDIAG
 UnInstallerEXE = UN3C90XA

[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
 NT350VersionConstant = "3.50"
 NT310VersionConstant = "3.10"
 NT400VersionConstant = "(4.0)"
 INF_PROCESSER = "I386"
 DIAGCARDTYPE = "TCAUM90X"

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

[Identify]
 read-syms Identification
 set Status = STATUS_SUCCESSFUL
 set Identifier = $(OptionType)
 set Media = #("Source Media Descriptions", 1, 1)
 Return $(Status) $(Identifier) $(Media)

[ReturnOptions]
 set Status = STATUS_FAILED
 set OptionList = {}
 set OptionTextList = {}
 set LanguageList = ^(LanguagesSupported, 1)
 Ifcontains(i) $($0) in $(LanguageList)
 ifstr(i) $($1) == ""
 goto 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)

[DiagRegistry]

 OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE" $(!REG_KEY_WRITE) SOFTKEY
 OpenRegKey $(SOFTKEY) "" "3Com" $(!REG_KEY_WRITE) COMKEY
 ifstr $(COMKEY) == ""
 CreateRegKey $(SOFTKEY) {"3Com", 0, GenericClass} "" $(!REG_KEY_WRITE) "" COMKEY
 endif

OpenRegKey $(COMKEY) "" "TCAUDIAG" $(!REG_KEY_WRITE) TCAUDIAGKEY
 ifstr $(TCAUDIAGKEY) == ""
 CreateRegKey $(COMKEY) {"TCAUDIAG", 0, GenericClass} "" $(!REG_KEY_WRITE) "" TCAUDIAGKEY
 endif

OpenRegKey $(TCAUDIAGKEY) "" "TCAUM90X" $(!REG_KEY_WRITE) TCAUM90XKEY
 ifstr $(TCAUM90XKEY) == ""
 CreateRegKey $(TCAUDIAGKEY) {"TCAUM90X", 0, GenericClass} "" $(!REG_KEY_WRITE) "" TCAUM90XKEY
 endif

SetRegValue $(TCAUM90XKEY) {"DriverNames", 0, $(!REG_VT_SZ), "3C90X.COM;EL920.DOS;SYSTEM\EL920ND3.SYS;SYSTEM\EL920ND4.SYS;SYSTEM\EL920BC4.SYS"}

OpenRegKey $(TCAUM90XKEY) "" "Extensions" $(!REG_KEY_WRITE) ExtensionsKEY
 ifstr $(ExtensionsKEY) == ""
 CreateRegKey $(TCAUM90XKEY) {"Extensions", 0, GenericClass} "" $(!REG_KEY_WRITE) "" ExtensionsKEY
 endif

OpenRegKey $(ExtensionsKEY) "" "DA" $(!REG_KEY_WRITE) DAKEY
 ifstr $(DAKEY) == ""
 CreateRegKey $(ExtensionsKEY) {"DA", 0, GenericClass} "" $(!REG_KEY_WRITE) "" DAKEY
 endif


;Vivek1
;SetRegValue $(DAKEY) {"CPLName", 0, $(!REG_VT_SZ), "DAINST.CPL"}
;Vivek2


CloseRegKey $(SOFTKEY)
 CloseRegKey $(COMKEY)
 CloseRegKey $(TCAUDIAGKEY)
 CloseRegKey $(TCAUM90XKEY)
 CloseRegKey $(ExtensionsKEY)
 CloseRegKey $(DAKEY)
 return

[InstallOption]
set CurrLang = $($0)
 set Option = $($1)
 set SrcDir = $($2)
 set AddCopy = $($3)
 set DoCopy = $($4)
 set DoConfig = $($5)
 set !G:DebugOutputControl = 0
 set LanguageList = ^(LanguagesSupported, 1)
 Ifcontains(i) $($0) NOT-IN $(LanguageList)
 Return STATUS_NOLANGUAGE
 endif
 set-subst LF = "\n"
 read-syms IntstallOptions
 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
 EndWait

Begin = +

;*********** add this to check correct platform supported********
   ifstr(i) $(!STF_PLATFORM) == "Alpha"
      set CommonStatus = STATUS_USERCANCEL
      goto end
   else-ifstr(i) $(!STF_PLATFORM) == "Alpha_AXP"
      set CommonStatus = STATUS_USERCANCEL
      goto end
   endif

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) : WinNT CurrentVersion ="$(CurrentVersionValue)
 CloseRegKey $(KeyNt)
 Endif


ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)
 set NDIS_VER = NDIS4
;*********************************************************************************
 read-syms 905BCDriverFilenameConstants$(NDIS_VER)
;**********************************************************************************
 else
 set NDIS_VER = NDIS3
endif
read-syms DriverFilenameConstants$(NDIS_VER)

 ifstr(i) (*($(CurrentVersionValue),4)) == $(NT310VersionConstant)
Debug-Output "$(InfFile) : Configureadapter"
 set Error = "Windows NT v3.10 is not support by this product"
 goto fatal
 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
 ifstr $(!STF_PLATFORM) == $(INF_PROCESSER)
set CommonStatus = STATUS_USERCANCEL
 goto end
 else-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
 set StartLabel = configureadapter
 endif
 else
 set StartLabel = installadapter
 set OEM_ABANDON_OPTIONS = {}
 set OEM_ABANDON_SOFTWARE = FALSE
 set OEM_ABANDON_ON = TRUE
 endif

 Debug-Output "$(InfFile) : =================================================="
 Debug-Output "$(InfFile) : STF_CWDIR is: "$(!STF_CWDIR)
 Debug-Output "$(InfFile) : STF_SRCDIR is: "$(!STF_SRCDIR)
 Debug-Output "$(InfFile) : STF_LANGUAGE is: "$(!STF_LANGUAGE)
 Debug-Output "$(InfFile) : Option is: "$(Option)
 Debug-Output "$(InfFile) : !STF_NCN_InstallMode is:"$(!NTN_InstallMode)
 Debug-Output "$(InfFile) : !STF_NCDETECT is: "$(!STF_NCDETECT)
 Debug-Output "$(InfFile) : !STF_NCOPTION is: "$(!STF_NCOPTION)
 Debug-Output "$(InfFile) : !STF_NCDETCARD is: "$(!STF_NCDETCARD)
 Debug-Output "$(InfFile) : !STF_NCDETINFO is: "$(!STF_NCDETINFO)
 Debug-Output "$(InfFile) : !STF_GUI_UNATTENDED is: "$(!STF_GUI_UNATTENDED)
 Debug-Output "$(InfFile) : !STF_BusType is $(!STF_BUSTYPE)"
Debug-Output "$(InfFile) : !STF_BusTypeList is $(!STF_BUSTYPELIST)"
Debug-Output "$(InfFile) : =================================================="

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

installadapter = +

Debug-Output "$(InfFile) : Installadapter"
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(!REG_KEY_READ) KeyProduct
 Ifstr $(KeyProduct) != $(KeyNull)
 CloseRegKey $(KeyProduct)
 ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 Debug-Output "ShellCode error: cannot get an error string."
 goto ShellCodeError
 endif
 goto end
 else
 set OldVersionExisted = $(TRUE)
 endif
 Endif

 Goto adapteroptions

configureadapter = +
 Debug-Output "$(InfFile) : Configureadapter"

 set Error = "Cannot configure the software component"
 goto fatal

adapteroptions = +
 Debug-Output "$(InfFile) : Adapteroptions"
 set from = adapteroptions
 ifstr(i) $(!NTN_InstallMode) == configure
 goto updateparameters
 endif

installproduct =+
 Debug-Output "$(InfFile) : installproduct"
 Debug-Output "<installproduct> : 01"
 StartWait
set AdapterList = $($R1)

OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProductHardwareName) $(!REG_KEY_READ) KeyNt
 CloseRegKey $(KeyNt)

 Debug-Output "<installproduct> : 2"
 Ifstr(i) $(KeyNt) == ""
 Debug-Output "$(InfFile) : AddSoftwareComponent"
 Debug-Output "$(InfFile) : --> $(Manufacturer)"
 Debug-Output "$(InfFile) : --> $(ProductSoftwareName)"
 Debug-Output "$(InfFile) : --> $(ProductSoftwareTitle)"
 Debug-Output "$(InfFile) : --> $(STF_CONTEXTINFNAME)"
 Debug-Output "$(InfFile) : --> $(ProductSoftwareImagePath)"
 Debug-Output "$(InfFile) : --> $(NetEventDLL)"

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

 Debug-Output "<installproduct> : 3"
Set OEM_ABANDON_SOFTWARE = TRUE
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif
 set RegistryErrorIndex = $($R0)
 Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
 EndWait
 Debug-Output "<installproduct> : 4"
 CloseRegKey $($R1)
 CloseRegKey $($R2)
 CloseRegKey $($R3)
 CloseRegKey $($R4)
 CloseRegKey $($R5)

 Debug-Output "<installproduct> : 5"
//=------------------
set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType905BC)},+
 {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
 {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm905BC)}, +
 {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass905BC)}, +
 {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable905BC)}, +
 {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
 Shell $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif
 goto fatalregistry
 endif
 Debug-Output "<installproduct> : 6"
 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)},+
 {Review,$(NoTitle),$(!REG_VT_DWORD),$(ProductReview)},+
 {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
 {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)},+
 {EDVersion,$(NoTitle),$(!REG_VT_SZ),$(EtherDiskVersion)}}
 Shell $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif
 set RegistryErrorIndex = $($R0)
 Debug-Output "<installproduct> : 7"
 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),$(NetRuleSoftwareBindable)}, +
 {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
 Shell $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif
 Debug-Output "<installproduct> : 8"
 set RegistryErrorIndex = $($R0)
 CloseRegKey $(SoftProductKey)
 CloseRegKey $(SoftNetRuleKey)
 CloseRegKey $(SoftServiceKey)
 CloseRegKey $(SoftParameterKey)
 CloseRegKey $(SoftLinkageKey)

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)
 goto ShellCodeError
 endif

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

 Debug-Output "<installproduct> : 9"
Debug-Output "$(InfFile) : About to look for 3Com PCI Cards"

set TargetVersion = *($(CurrentVersionValue),4)
 Debug-Output "$(InfFile) : Current Version:"$(TargetVersion)

 ifstr $(TargetVersion) == $(NT350VersionConstant)
Debug-Output "Running on WindowsNT 3.50"
 set Version350 = $(TRUE)
 else
 Debug-Output "Running on WindowsNT 3.51 or higher"
 set Version350 = $(FALSE)
 endif

 Debug-Output "<installproduct> : 10"
 ifint $(Version350) == $(TRUE)
 Debug-Output "Running on WindowsNT v3.50, Not using PCI Detection!!!"
 ifstr $(!STF_GUI_UNATTENDED) == "YES"
 Debug-Output "$(InfFile) : Running in GUI unattended mode"
 ifstr(i) $(!AutoNetInterfaceType) != ""
 set BusInterfaceType = $(!AutoNetInterfaceType)
 else
 set BusInterfaceType = 5
 endif
 ifstr(i) $(!AutoNetBusNumber) != ""
 set BusNumber = $(!AutoNetBusNumber)
 else
 set BusNumber = 0
 endif
 set NTDetected = $(FALSE)
 set AdapterList = {{$(Option),0, XXXXX}}
Debug-Output "$(InfFile) : BusInterfaceType = $(BusInterfaceType)"
 Debug-Output "$(InfFile) : BusNumber = $(BusNumber)"
 else     ;;; GUI_UNATTENDED=NO
Debug-Output "$(InfFile) : Running 3.50 Bus Dialog"
 set BusInterfaceType = 5
 set BusNumber = 0
 set NTDetected = $(FALSE)
 Shell $(UtilityInf),GetBusTypeDialog,$(ProductHardwareXXXXXDescription) $(BusInterfaceType) $(BusNumber)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 Debug-Output "ShellCode error."
 goto ShellCodeError
 endif
 set BusInterfaceType = $($R1)
 set BusNumber = $($R2)
 set AdapterList = {{$(Option),0, XXXXX}}
Debug-Output "$(InfFile) : BusInterfaceType = $(BusInterfaceType)"
 Debug-Output "$(InfFile) : BusNumber = $(BusNumber)"
 endif    ;;; end check GUI_UNATTENDED
else      ;;; Version350=FALSE
 Debug-Output "$(InfFile) : Running 3.51 or higher using PCI Dectection"

 Debug-Output "<installproduct> : 11"

set NTDetected = $(TRUE)
 set Vendor = 4279
set CFIDList = $(CFIDList)
 Debug-Output "$(InfFile) : VendorID = $(Vendor)"
 Debug-Output "$(InfFile) : CFIDList = $(CFIDList)"
 Debug-Output "<installproduct> : 12"
 set AdapterList = {}
 ForListDo $(CFIDList)
 set-div CFID = $($) 1
 set DeviceID = $($)
 Shell $(UtilityInf), GetPCIInformation, $(Vendor) $(CFID)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif

 Debug-Output "<installproduct> : 13"
;Vivek
; ForListDo $($R0)
; set AdapterList = >($(AdapterList), {*($($),1), *($($),2), $(DeviceID)})
; EndForListDo
;Vivek

 EndForListDo

;*********************** Check 905BC cards here *************************************
; assuming if there is more cards, they wil be added to the end of "AdapterList"
;************************************************************************************

 Debug-Output "<installproduct> : 14"
set CFIDListFor905BC = $(CFIDListFor905BC)
ForListDo $(CFIDListFor905BC)
 set-div CFID = $($) 1
 set DeviceID = $($)
 Shell $(UtilityInf), GetPCIInformation, $(Vendor) $(CFID)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif

;Vivek1
; ForListDo $($R0)
; set AdapterList = >($(AdapterList), {*($($),1), *($($),2), $(DeviceID)})
; EndForListDo
;Vivek2

 Debug-Output "<installproduct> : 15"
EndForListDo

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

; Commented foll. 6 lines
;ifstr(i) $(AdapterList) == {}
 ;set Error = $(CANNOT_FIND_ANY_CARD)
 ;set CommonStatus = USER_CANCEL
 ;set from = end
 ;goto nonfatal
 ;endif
        Debug-Output "<InstallAdapter> 1"
endif

 Debug-Output "<installproduct> : 16"

set ToInstallList = {}
 Debug-Output "$(InfFile) : Adapterlist = $(AdatperList)"

;Vivek1
; ForListDo $(AdapterList)
;Vivek2

 ifint $(NTDetected) == $(TRUE)
 set DetectedBusNum = *($($),1)
 set DetectedSlotNum = *($($),2)
 set DeviceID = *($($),3)
 Debug-Output "$(InfFile) : DetectedBusNumber = $(DetectedBusNum)"
 Debug-Output "$(InfFile) : DetectedSlotNum = $(DetectedSlotNum)"

;Vivek1
 set DeviceID = 37376           ;; for 3c920 chip
;Vivek2

 Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(DetectedBusNum), +
 $(DetectedSlotNum), $(ProductHardware$(DeviceID)Description), $(ProductHardwareName)

ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif
 ifstr $($R0) != "NO_ERROR"
 set Error = $($R0)
 goto fatal
 endif
ifstr(i) $(ToInstallList) == {}
 ifstr(i) $($R1) != "YES"
 set ToInstallList = >($(ToInstallList), $($))
 endif
endif
 endif
 Debug-Output "<installproduct> : 17"

;Vivek1
; EndForListDo
;Vivek2


ifstr(i) $(ToInstallList) == {}
 set Error = $(CANNOT_FIND_ANY_UNINSTALLED_CARD)
 set CommonStatus = USER_CANCEL
 set from = end
 goto nonfatal
 endif

 Debug-Output "<installproduct> : 18"
;Vivek1
; ForListDo $(ToInstallList)
;Vivek2

 set DetectedBusNum = *($($),1)
 set DetectedSlotNum = *($($),2)

;Vivek1
 ;set DeviceID = *($($),3)
 set DeviceID = 37376           ;; for 3c920 chip
;Vivek2

;**************************************************************************************
; Check if 905BC NIC, change driver name under Eventlog and ImagePath in the registry
; to the name of the new driver for 905BC. Only do this with NT4.0 which use NDIS4 driver
;***************************************************************************************
set BoomCard = FALSE

ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)
ifstr(i) $(DeviceID) == "36944"
    set BoomCard = TRUE
else-ifstr(i) $(DeviceID) == "36945"
    set BoomCard = TRUE
else-ifstr(i) $(DeviceID) == "36864"
    set BoomCard = TRUE
else-ifstr(i) $(DeviceID) == "36865"
    set BoomCard = TRUE
endif
endif

 Debug-Output "<installproduct> : 19"
;**********************************************************************************

 Debug-Output "$(InfFile) : DetectedBusNumber = $(DetectedBusNum)"
 Debug-Output "$(InfFile) : DetectedSlotNum = $(DetectedSlotNum)"
 Debug-Output "$(InfFile) : Installing Card at $(DetectedBusNum):$(DetectedSlotNum)!"
 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)
 goto ShellCodeError
 endif
 set RegistryErrorIndex = $($R0)
 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$(DeviceID)Title)},+
 {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(DeviceID)Description)},+
 {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
 {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
 {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)},+
 {EDVersion,$(NoTitle),$(!REG_VT_SZ),$(EtherDiskVersion)}}
 Shell $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif

 Debug-Output "<installproduct> : 19"
set BusTypeNum = 5

;Vivek1
        ifstr $(OldAdapterName) == ""
                Debug-Output "<InstallAdapter> set OldAdapterName"
                set OldAdapterName = $(ProductHardwareName)$(AdapterNumber)
        endif
        Debug-Output "<InstallAdapter> OldAdapterName = "$(OldAdapterName)
;Vivek2

ifstr(i) $(DeviceID) == "36944"
 set CardType = 0
 else-ifstr(i) $(DeviceID) == "36945"
 set CardType = 0
 else-ifstr(i) $(DeviceID) == "36949"
 set CardType = 0
 else
 set CardType = 2
 endif

 Debug-Output "<installproduct> : 20"
ifint $(NTDetected) == $(TRUE)
 set BusNumber = $(DetectedBusNum)
 set SlotNum = $(DetectedSlotNum)
set BusInterfaceType = $(BusTypeNum)
 set WakeOnLan = YES
 set WakeOnLink = NO
set FlowControl = YES

Debug-Output "$(InfFile) : Set HardwareParameterKey = $(NewValueList)"

ifstr(i) $(BoomCard) == TRUE
Set NewValueList = {+
 {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
 {Slot,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
 {WakeOnMagic,$(NoTitle),$(!REG_VT_SZ),$(WakeOnLan)},+
 {WakeOnLink,$(NoTitle),$(!REG_VT_SZ),$(WakeOnLink)},+
 {FlowControl,$(NoTitle),$(!REG_VT_SZ),$(FlowControl)},+
 }
else
Set NewValueList = {+
 {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+

;Vivek1
 ;{Slot,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
 {SoftexDock,$(NoTitle),$(!REG_VT_DWORD),1},+
 {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),0},+
 {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),0},+
 {MemoryBaseAddress,$(NoTitle),$(!REG_VT_DWORD),0},+
 {AdapterName,$(NoTitle),$(!REG_VT_SZ),$(OldAdapterName)},+
;Vivek2

 ;;;{WakeOnMagic,$(NoTitle),$(!REG_VT_SZ),$(WakeOnLan)},+
 ;;;{WakeOnLink,$(NoTitle),$(!REG_VT_SZ),$(WakeOnLink)},+
 ;;;{FlowControl,$(NoTitle),$(!REG_VT_SZ),$(FlowControl)},+
 }
endif

 Debug-Output "<installproduct> : 21"
 Debug-Output "$(InfFile) : Set HardwareParameterKey = $(NewValueList)"
 Shell $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif

;Vivek1
; Set NewValueList = { {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)} }
;Vivek2
 Debug-Output "$(InfFile) : Set HardwareParameterKey = $(NewValueList)"
 Shell $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif
 else
 Set NewValueList = {+
 {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
 }
 Debug-Output "<installproduct> : 23"
 Debug-Output "$(InfFile) : Set HardwareParameterKey = $(NewValueList)"
 Shell $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif
 endif

 Set NewValueList = {+
 {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusInterfaceType)},+
 {CardType,$(NoTitle),$(!REG_VT_DWORD),$(CardType)},+
 }
 ;;;{MediaType,$(NoTitle),$(!REG_VT_SZ),"HardwareDefault"},+
 ;;;}

 Debug-Output "$(InfFile) : Set HardwareParameterKey = $(NewValueList)"
 Shell $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif

 Debug-Output "<installproduct> : 24"
ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
 Shell $(UtilityInf), AddDefaultNetcardParameters, $(HardParameterKey)
 endif

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)}}

Debug-Output "$(InfFile) : HardwareRuleKey = $(NewValueList)"
 Shell $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeEror
 endif
 CloseRegKey $(HardNetCardKey)
 CloseRegKey $(HardNetRuleKey)
 CloseRegKey $(HardParameterKey)

;Vivek1
; EndForListDo
;Vivek2
 Debug-Output "<installproduct> : 25 BoomCard = "$(BoomCard)

;********************************************************************************************
; Update NetEventdll and  ImagePath for 905B and 905C card
;********************************************************************************************

ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)
ifstr(i) $(BoomCard) == FALSE
        Debug-Output "<installproduct> : 26"
   OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProductHardwareName) $(!REG_KEY_ALL_ACCESS) KeyService
   Ifstr $(KeyService) != ""
      SetRegValue $(KeyService) {ImagePath,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareUpgradePath905BC)}
   else
      goto fatalregistry
   endif
   CloseRegKey $(KeyService)

   OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\EventLog\System\"$(ProductHardwareName) $(!REG_KEY_ALL_ACCESS) KeyEventLog
   Ifstr $(KeyEventLog) != ""
      SetRegValue $(KeyEventLog) {EventMessageFile,$(NoTitle),$(!REG_VT_SZ),$(NetEventDLL905BC)}
   else
      goto fatalregistry
   endif
   CloseRegKey $(KeyEventLog)
        Debug-Output "<installproduct> : 27"
   goto NextCommon
else
        Debug-Output "<installproduct> : 28"
   goto ForBoom
endif
endif

ForBoom =+
;********************************************************************************************

OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProductHardwareName) $(!REG_KEY_ALL_ACCESS) KeyService
 Ifstr $(KeyService) != ""
SetRegValue $(KeyService) {ImagePath,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareUpgradePath)}
 else
goto fatalregistry
endif
CloseRegKey $(KeyService)

OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\EventLog\System\"$(ProductHardwareName) $(!REG_KEY_ALL_ACCESS) KeyEventLog
 Ifstr $(KeyEventLog) != ""
SetRegValue $(KeyEventLog) {EventMessageFile,$(NoTitle),$(!REG_VT_SZ),$(NetEventDLL)}
else
goto fatalregistry
endif
CloseRegKey $(KeyEventLog)

;******************************************************************************************
NextCommon =+
;******************************************************************************************

;Vivek1
;install "Install-Uninstaller"


;OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\3Com\"$(ProductSoftwareName) $(!REG_KEY_ALL_ACCESS) +
;KeyNt

;set TrayIconList = {TCAUDIAG,$(NoTitle),$(!REG_VT_SZ),$(DIAGCARDTYPE)}
;SetRegValue $(KeyNt) $(TrayIconList)
;CloseRegKey $(KeyNt)

;ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)
;ifstr $(Install_3NIC_Diag) == "YES"

;RunProgram ExitCode "Windows Directory" "" $(UnInstallerEXE).EXE "-upgrade"

;OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" +
;$(!REG_KEY_ALL_ACCESS) KeyNt
;ifstr $(KeyNt) == ""
;CreateRegKey $(!REG_H_LOCAL) {"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", +
;0, GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" KeyNt
;endif

;OpenRegKey $(KeyNt) "" "3ComNicUnInstall" $(!REG_KEY_ALL_ACCESS) KeyNt2
;ifstr $(KeyNt2) == ""
;CreateRegKey $(KeyNt) {"3ComNicUnInstall" , 0, GenericClass} "" $(!REG_KEY_ALL_ACCESS) +
 ;"" KeyNt2
;endif

;set NewValueList = {{DisplayName, $(NoTitle), $(!REG_VT_SZ), "3Com NIC Diagnostics"}, +
;{UninstallString, $(NoTitle), $(!REG_VT_SZ), $(UnInstallerEXE).EXE}}

;Shell $(UtilityInf), AddValueList, $(KeyNt2), $(NewValueList)
;ifint $($ShellCode) != $(!SHELL_CODE_OK)
;goto ShellCodeError
;endif

;CloseRegKey $(KeyNt)
;CloseRegKey $(KeyNt2)

;endif
;endif

;ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)

;OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" +
;$(!REG_KEY_ALL_ACCESS) KeyNt

;set TrayIconList = {TCASUTIEXE,$(NoTitle),$(!REG_VT_SZ),$(TrayIconExe)" -off"}
;DeleteRegValue $(KeyNt) "COMSMDEXE"
;SetRegValue $(KeyNt) $(TrayIconList)
;CloseRegKey $(KeyNt)


;        ifstr $(Install_3NIC_Diag) == "YES"
;        Debug-Output "$(InfFile) : (Install_3NIC_Diag) == "YES""

;        Shell "", DiagRegistry

;install "Install-3nicdiag"

;        ifstr $(Install_Installer) == "YES"
;        ifstr(i) $(!STF_GUI_UNATTENDED) != "YES"
;        ForListDo $(ToInstallList)
;        set BusNum = *($($),1)
;        set SlotNum = *($($),2)
;        RunProgram ExitCode "Windows Directory" "" $(InstallerExe).EXE +
;        "cardtype=TCAUM90X" "bus="$(BusNum) "slot="$(SlotNum)
;        EndForListDo
;        endif
;        endif


;set SRCDIR_OVERRIDE_Save = $(!STF_SRCDIR_OVERRIDE)
;set !STF_SRCDIR_OVERRIDE = $(SrcDir)
;        Shell $(!STF_WINDOWSSYSPATH)\TCAITDI.INF, InstallOption, $(CurrLang),+
;        "TCAITDI" ,$(SrcDir), YES, YES, YES, NO
;set !STF_SRCDIR_OVERRIDE = $(SRCDIR_OVERRIDE_Save)

;ifstr(i) $(Install_Shortcuts) == "YES"
;Debug-Output "$(InfFile) : (Install_Shortcuts) == "YES""
;RunProgram ExitCode "Windows Directory" "" $(UnInstallerEXE).EXE "-setup"
;
;Debug-Output "$(InfFile) : Enabling Tray Icon"
;OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" +
; $(!REG_KEY_ALL_ACCESS) KeyNt
;
;set TrayIconList = {TCASUTIEXE,$(NoTitle),$(!REG_VT_SZ),$(TrayIconExe)" -off"}
;SetRegValue $(KeyNt) $(TrayIconList)
;DeleteRegValue $(KeyNt) "COMSMDEXE"
;CloseRegKey $(KeyNt)
;endif
;
;        endif
;
;endif

;Vivek2
 Debug-Output "<FATAL> 0"

ifint $(OldVersionExisted) == $(FALSE)
 Ifstr(i) $(DoCopy) == "YES"
 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

Endif

;**************** check if 905BC and copy new NDIS4 driver ********************

 Debug-Output "<FATAL> 1 BoomCard ="$(BoomCard)
 ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)
 ifstr(i) $(BoomCard) == FALSE
        Debug-Output "<FATAL> 2 Install-OptionNewNDIS"
     install "Install-OptionNewNDIS"
     goto endinstall
 else
    goto oldndis;
 endif
 endif
 oldndis =+
;********************************************************************************

 install "Install-Option"

endinstall =+

 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

 EndWait
 goto successful

updateparameters =+
 Debug-Output "$(InfFile) : Updateparameters"
 set HardParameterKey = $($R3)

ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif
 CloseRegKey $(KeyParameters)
 goto successful

bindingadapter =+
 Debug-Output "$(InfFile) : bindingadapter"
 Return STATUS_SUCCESSFUL

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

removeadapter = +
 Debug-Output "$(InfFile) : removeadapter"
 Debug-Output "$(InfFile) : ----> $(ProductKeyName), $(!NTN_RegBase)"
 Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
 Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
 $(ProductSoftwareName)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif
 set RegistryErrorIndex = $($R0)
 Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
 goto fatalregistry
 endif
 else
 Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
 $(ProductSoftwareName), $(!NTN_RegBase)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif
 set RegistryErrorIndex = $($R0)
 Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
 goto fatalregistry
 endif
 endif


ifstr(i) $(!STF_PLATFORM) == $(INF_PROCESSER)

;Vivek1
;RunProgram ExitCode "Windows Directory" "" $(UnInstallerEXE).EXE "-inf"
;Vivek2

endif


;Vivek1
;OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\TCAITDI" $(!REG_KEY_READ) KeyTCATDI
;
;ifstr $(KeyTCATDI) != ""
;
;Shell $(!STF_WINDOWSSYSPATH)\TCAITDI.INF, InstallOption, $(CurrLang),"TCAITDI" ,$(SrcDir), YES, YES, YES, -inf
;
;CloseRegKey $(KeyTCATDI)
;endif
;Vivek2


goto end

UpgradeSoftware = +

;****************************************************************************************
; Check if 905BC or Boomerang
;****************************************************************************************

set BoomCard = FALSE
set CurrentCardPath =  $(!NTN_RegBase)
set TitleValue = ""
set CardTitle = ""
set NameTokenList = ""

OpenRegKey $(!REG_H_LOCAL) "" $(CurrentCardPath) $(!REG_KEY_READ) CurrentCardKey
Ifstr(i) $(CurrentCardKey) != ""
GetRegValue $(CurrentCardKey) "Title" TitleValue
set CardTitle = *($(TitleValue), 4)
Split-String $(CardTitle) "()" NameTokenList
set NameCode = *($(NameTokenList), 3)

Ifstr(i) $(NameCode) == "3C905-TX"
   set BoomCard = TRUE
Else-Ifstr(i) $(NameCode) == "3C905"       ; name in oemsetup.inf provided by Microsoft
   set BoomCard = TRUE
Else-Ifstr(i) $(NameCode) == "3C905-T4"
   set BoomCard = TRUE
Else-Ifstr(i) $(NameCode) == "3C900-TPO"
   set BoomCard = TRUE
Else-Ifstr(i) $(NameCode) == "3C900-COMBO"
   set BoomCard = TRUE
endif

CloseRegKey $(CurrentCardKey)
Endif                         ;end checking currentCardKey

;****************************************************************************************
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(!REG_KEY_ALL_ACCESS) KeyProduct
Ifstr $(KeyProduct) != ""
Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set !UG_Filename = $($R0)

install "Install-INF"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
goto fatal
endif

SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)}
SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)}
SetRegValue $(KeyProduct) {Review,$(NoTitle),$(!REG_VT_DWORD),$(ProductReview)}
SetRegValue $(KeyProduct) {EDVersion,$(NoTitle),$(!REG_VT_SZ),$(EtherDiskVersion)}
CloseRegKey $(KeyProduct)

;******************************************************************************************
; If 905BC card, update the new NDIS driver
;******************************************************************************************

ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)
ifstr(i) $(BoomCard) == FALSE
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProductHardwareName) $(!REG_KEY_ALL_ACCESS) KeyService
 Ifstr $(KeyService) != ""
SetRegValue $(KeyService) {ImagePath,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareUpgradePath905BC)}
 else
goto fatalregistry
endif
CloseRegKey $(KeyService)
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\EventLog\System\"$(ProductHardwareName) $(!REG_KEY_ALL_ACCESS) KeyEventLog
 Ifstr $(KeyEventLog) != ""
SetRegValue $(KeyEventLog) {EventMessageFile,$(NoTitle),$(!REG_VT_SZ),$(NetEventDLL905BC)}
else
goto fatalregistry
endif
CloseRegKey $(KeyEventLog)
goto ContinueUpgrade
else
   goto UpdateToCorrectDriver
endif                         ; end checking card
endif                         ; end checking NT4.0 version

UpdateToCorrectDriver =+

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

OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProductHardwareName) $(!REG_KEY_ALL_ACCESS) KeyService
 Ifstr $(KeyService) != ""
SetRegValue $(KeyService) {ImagePath,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareUpgradePath)}
 else
goto fatalregistry
endif
CloseRegKey $(KeyService)


OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\EventLog\System\"$(ProductHardwareName) $(!REG_KEY_ALL_ACCESS) KeyEventLog
 Ifstr $(KeyEventLog) != ""
SetRegValue $(KeyEventLog) {EventMessageFile,$(NoTitle),$(!REG_VT_SZ),$(NetEventDLL)}
else
goto fatalregistry
endif
CloseRegKey $(KeyEventLog)

;*****************************************************************************************
ContinueUpgrade =+
;*****************************************************************************************

OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase) $(!REG_KEY_ALL_ACCESS) KeyNt

set LoopList = {1,2,3,4,5,6,7,8}
set WinNTList = {WinNT,$(NoTitle),$(!REG_VT_SZ),YES}

ifstr(i) $(BoomCard) == TRUE
Set NewValueList = {{WakeOnMagic,$(NoTitle),$(!REG_VT_SZ),"YES"},+
{WakeOnLink,$(NoTitle),$(!REG_VT_SZ),"NO"},+
{FlowControl,$(NoTitle),$(!REG_VT_SZ),"YES"}}
endif

ForListDo $(LoopList)
OpenRegKey $(KeyNt) "" $(ProductHardwareName)$($)"\Parameters" $(!REG_KEY_ALL_ACCESS) TestKey

ifstr $(TestKey) != $(KeyNull)
   ifstr(i) $(BoomCard) == TRUE
   Shell $(UtilityInf), AddValueList, $(TestKey), $(NewValueList)
   ifint $($ShellCode) != $(!SHELL_CODE_OK)
      goto ShellCodeError
   endif
   endif

OpenRegKey $(!REG_H_LOCAL) "" $(NetworkCardsKey)$($)"\NetRules" $(!REG_KEY_ALL_ACCESS) NetCardKey

ifstr $(NetCardKey) != $(KeyNull)
SetRegValue $(NetCardKey) {"InfName",$(NoTitle),$(!REG_VT_SZ),$(!UG_Filename)}
CloseRegKey $(NetCardKey)
endif
CloseRegKey $(TestKey)
endif

EndForListDo
else
goto fatalregistry
endif

ifstr $(!STF_PLATFORM) == $(INF_PROCESSER)


;Vivek1
;install "Install-Uninstaller"

;OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\3Com\"$(ProductSoftwareName) $(!REG_KEY_ALL_ACCESS) +
;KeyNt
;
;set TrayIconList = {TCAUDIAG,$(NoTitle),$(!REG_VT_SZ),$(DIAGCARDTYPE)}
;SetRegValue $(KeyNt) $(TrayIconList)
;CloseRegKey $(KeyNt)
;
;
;ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)
;ifstr $(Install_3NIC_Diag) == "YES"
;
;OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" +
;$(!REG_KEY_ALL_ACCESS) KeyNt
;ifstr $(KeyNt) == ""
;CreateRegKey $(!REG_H_LOCAL) {"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall",+
;0, GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" KeyNt
;endif
;
;OpenRegKey $(KeyNt) "" "3ComNicUnInstall" $(!REG_KEY_ALL_ACCESS) KeyNt2
;ifstr $(KeyNt2) == ""
;CreateRegKey $(KeyNt) {"3ComNicUnInstall" , 0, GenericClass} "" $(!REG_KEY_ALL_ACCESS) +
; "" KeyNt2
;endif
;
;set NewValueList = {{DisplayName, $(NoTitle), $(!REG_VT_SZ), "3Com NIC Diagnostics"},+
;{UninstallString, $(NoTitle), $(!REG_VT_SZ), $(UnInstallerEXE).EXE}}
;
;Shell $(UtilityInf), AddValueList, $(KeyNt2), $(NewValueList)
;ifint $($ShellCode) != $(!SHELL_CODE_OK)
;goto ShellCodeError
;endif
;
;CloseRegKey $(KeyNt)
;CloseRegKey $(KeyNt2)
;
;endif
;endif
;

;        ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)

;        OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" +
;        $(!REG_KEY_ALL_ACCESS) KeyNt
;
;        set TrayIconList = {TCASUTIEXE,$(NoTitle),$(!REG_VT_SZ),$(TrayIconExe)" -off"}
;        SetRegValue $(KeyNt) $(TrayIconList)
;
;        DeleteRegValue $(KeyNt) "COMSMDEXE"
;        CloseRegKey $(KeyNt)
;
;        ifstr $(Install_3NIC_Diag) == "YES"
;        Debug-Output "$(InfFile) : (Install_3NIC_Diag) == "YES""
;
;
;        Shell "", DiagRegistry
;
; ;      install "Install-3nicdiag"
;
;        set InstallMode_Save = $(!NTN_InstallMode)
;        set !NTN_InstallMode = install
;        set SRCDIR_OVERRIDE_Save = $(!STF_SRCDIR_OVERRIDE)
;        set !STF_SRCDIR_OVERRIDE = $(SrcDir)
;
;        Shell $(!STF_WINDOWSSYSPATH)\TCAITDI.INF, InstallOption, $(CurrLang), +
;        "TCAITDI" ,$(SrcDir), YES, YES, YES, NO
;        set !NTN_InstallMode = $(InstallMode_Save)
;        set !STF_SRCDIR_OVERRIDE = $(SRCDIR_OVERRIDE_Save)
;
;
;ifstr(i) $(Install_Shortcuts) == "YES"
;Debug-Output "$(InfFile) : (Install_Shortcuts) == "YES""
;RunProgram ExitCode "Windows Directory" "" $(UnInstallerEXE).EXE "-setup"
;
;Debug-Output "$(InfFile) : Enabling Tray Icon"
;OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" +
; $(!REG_KEY_ALL_ACCESS) KeyNt
;
;set TrayIconList = {TCASUTIEXE,$(NoTitle),$(!REG_VT_SZ),$(TrayIconExe)" -off"}
;SetRegValue $(KeyNt) $(TrayIconList)
;DeleteRegValue $(KeyNt) "COMSMDEXE"
;CloseRegKey $(KeyNt)
;endif
;        endif
;endif
;Vivek2

endif


  ;**************** check if 905BC and copy new NDIS4 driver ********************

 ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)
 ifstr(i) $(BoomCard) == FALSE
     install "Install-OptionNewNDIS"
     goto laststep
 else
    goto upgradeOldNDIS;
 endif
 endif
 upgradeOldNDIS =+
 ;********************************************************************************

 install "Install-Option"

;*********************************************************************************
laststep =+
;*********************************************************************************

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

;Vivek1
;RunProgram ExitCode "Windows Directory" "" $(UnInstallerEXE).EXE "-upgrade"
;Vivek2


goto end

successful = +
 Debug-Output "$(InfFile) : Successful"
 goto end

abandon = +
 Debug-Output "$(InfFile) : 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


detect checkFileExist
set Uninst = *($(uninstFound), 1)
ifstr(i) $(Uninst) == "un3c90xa.exe"
 ifstr(i) $(!STF_PLATFORM) == $(INF_PROCESSER)

;Vivek1
;RunProgram ExitCode "Windows Directory" "" $(UnInstallerEXE).EXE "-inf"
;Vivek2

endif
endif


;Vivek1
;OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\TCAITDI" $(!REG_KEY_READ) KeyTCATDI
;ifstr $(KeyTCATDI) != ""
;Shell $(!STF_WINDOWSSYSPATH)\TCAITDI.INF UserAbort
; CloseRegKey $(KeyTCATDI)
;endif
;Vivek2


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

warning = +
 Debug-Output "$(InfFile) : 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 = +
 Debug-Output "$(InfFile) : nonfatalinfo"
 Set CommonStatus = STATUS_USERCANCEL
 Set Severity = STATUS
 goto nonfatalmsg

nonfatal = +
 Debug-Output "$(InfFile) : nonfatal"
 Set Severity = NONFATAL
 goto nonfatalmsg

nonfatalmsg = +
 Debug-Output "$(InfFile) : 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 "RemoveAdapter"
 endif

fatalregistry = +
 Debug-Output "$(InfFile) : fatalregistry"
 Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
 ifint $($ShellCode) != $(!SHELL_CODE_OK)
 goto ShellCodeError
 endif
 set Error = $($R0)
 goto fatal

fatal = +
 Debug-Output "$(InfFile) : 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 = +
 ifint $($ShellCode) == $(!SHELL_CODE_NO_SUCH_INF)
 Debug-Output "$(InfFile) : ShellCodeError - SHELL_CODE_NO_SUCH_INF"
 else-ifint $($ShellCode) == $(!SHELL_CODE_NO_SUCH_SECTION)
 Debug-Output "$(InfFile) : ShellCodeError - SHELL_CODE_NO_SUCH_SECTION"
 else
 Debug-Output "$(InfFile) : ShellCodeError - SHELL_CODE_ERROR"
 endif
 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 = +
 Debug-Output "$(InfFile) : 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)

[checkFileExist]
uninstFound = {} ? $(!LIBHANDLE) FindFileInstances $(!STF_WINDOWSSYSPATH)"\un3c90xa.exe"

[Install-Option]
 set STF_VITAL = ""
 set STF_OVERWRITE = "VERIFYSOURCEOLDER"
 Debug-Output $(InfName)"Adding files: Files-$(NDIS_VER), SrcDir=$(SrcDir)"
 AddSectionFilesToCopyList Files-$(NDIS_VER) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
 ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)

;Vivek1
;AddSectionFilesToCopyList Files-DA $(SrcDir) $(!STF_WINDOWSSYSPATH)
;Vivek2

 endif
 set !STF_NCPA_FLUSH_COPYLIST = TRUE
 CopyFilesInCopyList
 Exit

;***********************************************************************************
[Install-OptionNewNDIS]
 set STF_VITAL = ""
 set STF_OVERWRITE = "VERIFYSOURCEOLDER"
 Debug-Output $(InfName)"Adding files: Files-$(NDIS_VER), SrcDir=$(SrcDir), Path=$(!STF_WINDOWSSYSPATH)"
 AddSectionFilesToCopyList Files-9$(NDIS_VER) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
 ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)

;Vivek1
;AddSectionFilesToCopyList Files-DA $(SrcDir) $(!STF_WINDOWSSYSPATH)
;Vivek2

 endif
 set !STF_NCPA_FLUSH_COPYLIST = TRUE
 CopyFilesInCopyList
 Exit
;**************************************************************************************

[Install-Uninstaller]
;Vivek1
; set STF_VITAL = ""
; set STF_OVERWRITE = "VERIFYSOURCEOLDER"
; AddSectionFilesToCopyList Files-Uninstaller $(SrcDir) $(!STF_WINDOWSSYSPATH)
; set !STF_NCPA_FLUSH_COPYLIST = TRUE
; CopyFilesInCopyList
;Vivek2
 Exit


[Install-3nicdiag]
;Vivek1
; set STF_VITAL = ""
; set STF_OVERWRITE = "VERIFYSOURCEOLDER"
; AddSectionFilesToCopyList Files-3nicdiag $(SrcDir) $(!STF_WINDOWSSYSPATH)
; AddSectionFilesToCopyList Files-Cpl $(SrcDir) $(!STF_WINDOWSPATH)
; set !STF_NCPA_FLUSH_COPYLIST = TRUE
; CopyFilesInCopyList
;Vivek2
 Exit

[Install-INF]
 set STF_VITAL = ""
 AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
 set !STF_NCPA_FLUSH_COPYLIST = TRUE
 CopyFilesInCopyList
 Exit

[Source Media Descriptions]
 1 = "3Com EtherDisk for EtherLink PCI NICs (Diskette 1)", TAGFILE = OEMSETUP.INF

[ProductType]
STF_PRODUCT = Winnt

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

[Files-3nicdiag]
;1,TCAUDIAG.EXE, SIZE=165504
;1,TCAUDIAG.URL, SIZE=15
;1,TCAUDIAG.HLP, SIZE=20877
;1,TCAUPROT.HLP, SIZE=20877
;1,TCAUM90X.HLP, SIZE=20877
;1,TCAUDCUS.TXT, SIZE=113
;1,TCAUDEXP.TXT, SIZE=113
;1,TCAUPROT.DLL, SIZE=12345
;1,TCAUM90X.DLL, SIZE=12345
;1,TCAMHWAC.DLL, SIZE=20198
;1,TCAICCHG.SYS, SIZE=5000
;1,TCAITDI.INF, SIZE=15000

[Files-Cpl]
;1,DAINST.CPL SIZE=15000

[Files-Uninstaller]
;1,UN3C90XA.EXE, SIZE=6617

[Files-NDIS3]
2,EL90xnd3.SYS , SIZE=25001

[Files-9NDIS4]
1,EL920BC4.SYS , SIZE=25001

[Files-NDIS4]
1,EL920nd4.SYS , SIZE=25001

[Files-DA]
;2,DAINST.EXE, SIZE=800000

[LanguagesSupported]
 ENG

[OptionsTextENG]
 3C920 = "3Com EtherLink PCI NIC"

[FileConstantsENG]
 ProCaption = "Windows NT NIC 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:"

ConnectionList = ^(ConnectionChoices, 1)
ConnectionValues = ^(ConnectionChoices, 2)
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"
CANNOT_FIND_ANY_UNINSTALLED_CARD = "All the NICs supported by this product have already been installed."

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

;(%VER OEMSETUP.INF - Installation file for 3C920 - v5.0.9)
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: 1.52