home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Network / 3COM / 3c90x / Ver4.01 / 3c90x2x.exe / ALPHA / OEMSETUP.INF < prev   
INI File  |  1998-12-07  |  32KB  |  1,038 lines

  1.  
  2.  
  3. [Identification]
  4.  OptionType = NetAdapter
  5.  
  6. [PlatformsSupported]
  7.  ISA
  8.  EISA
  9.  "Jazz-Internal Bus"
  10.  PCI
  11.  
  12. [Options]
  13.  3C905 
  14. 3C900 
  15.  
  16. [DriverFilenameConstantsNDIS3]
  17.  NetEventDLL = "%SystemRoot%\System32\netevent.dll;%SystemRoot%\System32\drivers\el90xnd3.sys"
  18.  ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\el90xnd3.sys"
  19.  ProductSoftwareUpgradePath = "\SystemRoot\System32\drivers\el90xnd3.sys"
  20.  
  21. [DriverFilenameConstantsNDIS4]
  22.  NetEventDLL = "%SystemRoot%\System32\netevent.dll;%SystemRoot%\System32\drivers\el90xnd4.sys"
  23.  ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\el90xnd4.sys"
  24.  ProductSoftwareUpgradePath = "\SystemRoot\System32\drivers\el90xnd4.sys"
  25.  
  26.  
  27. [FileConstants]
  28.  UtilityInf = "UTILITY.INF"
  29.  subroutineinf = "SUBROUTN.INF"
  30.  SoftwareType = "driver"
  31.  Exit_Code = 0
  32.  IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll"
  33.  TrayIconExe = "comsmd.exe"
  34.  
  35.  Manufacturer = "3Com"
  36.  ProductMajorVersion = "1"
  37.  ProductMinorVersion = "0"
  38.  ProductReview = "0"
  39.  ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
  40.  ProductSoftwareName = "El90x"
  41.  NetRuleSoftwareType = "El90xSys ndisDriver El90xDriver"
  42.  NetRuleSoftwareUse = $(SoftwareType)
  43.  NetRuleSoftwareBindForm = """El90xSys"" yes no container"
  44.  NetRuleSoftwareClass = {"El90xDriver basic"}
  45.  NetRuleSoftwareBindable = {"El90xDriver El90xAdapter non exclusive 100"}
  46.  ProductHardwareName = "El90x"
  47.  NetRuleHardwareBindForm = " yes yes container"
  48.  
  49.  ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  50.  ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  51.  
  52.  FunctionTitle = "3Com 3C90x Adapter Card Setup"
  53.  ProductSoftwareDescription = "3Com 3C90x Adapter Driver"
  54.  ProductSoftwareTitle = "3Com 3C90x Adapter Driver"
  55.  3CNUMBER = "3C90X"
  56.  
  57. GROUP_NAME = "3Com Fast Etherlink XL/Etherlink XL"
  58.  NetRuleHardwareType = "El90x El90xAdapter"
  59.  NetRuleHardwareClass = {"El90xAdapter basic"}
  60.  
  61.  ProductHardwareXXXXXTitle = "3Com Fast EtherLink/Etherlink XL PCI Busmaster NIC"
  62.  ProductHardwareXXXXXDescription = "3Com Fast EtherLink/Etherlink XL PCI Busmaster NIC"
  63.  
  64.   ProductHardware36944Title = "3Com EtherLink 10/100 PCI NIC (3C905-TX)"
  65.  ProductHardware36944Description = "3Com EtherLink 10/100 PCI NIC (3C905-TX)"
  66.  
  67.  ProductHardware36945Title = "3Com EtherLink 10/100 PCI T4 NIC (3C905-T4)"
  68.  ProductHardware36945Description = "3Com EtherLink 10/100 PCI T4 NIC (3C905-T4)"
  69.  
  70.  ProductHardware36864Title = "3Com EtherLink PCI TPO NIC (3C900-TPO)"
  71.  ProductHardware36864Description = "3Com EtherLink PCI TPO NIC (3C900-TPO)" 
  72.  
  73. ProductHardware36865Title = "3Com EtherLink PCI Combo  NIC (3C900-COMBO)"
  74.  ProductHardware36865Description = "3Com EtherLink PCI Combo  NIC (3C900-COMBO)" 
  75.  
  76. ProductHardware36952Title = "3Com EtherLink 10/100 PCI Combo NIC (3C905B-COMBO)"
  77.  ProductHardware36952Description = "3Com EtherLink 10/100 PCI Combo NIC (3C905B-COMBO)"
  78.  
  79. ProductHardware37376Title = "3Com EtherLink 10/100 PCI NIC (3C905C-TX)"
  80.  ProductHardware37376Description = "3Com EtherLink 10/100 PCI For Complete PC Management NIC (3C905C-TX)"
  81.  
  82.  ProductHardware36949Title = "3Com EtherLink 10/100 PCI NIC (3C905B-TX)"
  83.  ProductHardware36949Description = "3Com EtherLink 10/100 PCI With Remote Wake Up NIC (3C905B-TX)"
  84.  
  85.  ProductHardware36954Title = "3Com EtherLink 100 PCI Fiber NIC (3C905B-FX)"
  86.  ProductHardware36954Description = "3Com EtherLink 100 PCI Fiber NIC (3C905B-FX)" 
  87.  
  88. ProductHardware36868Title = "3Com EtherLink PCI TPO NIC (3C900B-TPO)"
  89.  ProductHardware36868Description = "3Com EtherLink PCI TPO NIC (3C900B-TPO)" 
  90.  
  91. ProductHardware36869Title = "3Com EtherLink PCI Combo NIC (3C900B-COMBO)"
  92.  ProductHardware36869Description = "3Com EtherLink PCI Combo NIC (3C900B-COMBO)" 
  93.  
  94. ProductHardware36870Title = "3Com EtherLink PCI TPC NIC (3C900B-TPC)"
  95.  ProductHardware36870Description = "3Com EtherLink PCI TPC NIC (3C900B-TPC)" 
  96.  
  97. ProductHardware36874Title = "3Com EtherLink PCI Fiber NIC (3C900B-FL)"
  98.  ProductHardware36874Description = "3Com EtherLink PCI Fiber NIC (3C900B-FL)"
  99.  
  100. ;ProductHardware36867Title = "3Com EtherLink XL NIC (3C900B-TPC)"
  101. ; ProductHardware36867Description = "3Com EtherLink XL TPC 10Mb Ethernet NIC (3C900B-TPC)" 
  102.  
  103.  
  104. AdapterType = 5 
  105. CFIDList = {36944, 36945, 36864, 36865, 36949, 36952, 36954,  36868, 36869, 36870, 36874, 37376}
  106.  
  107. ; old list: {36944, 36945, 36949, 36864, 36865, 36867, 36868, 36869}
  108.  
  109.                  
  110.  
  111. [GeneralConstants]
  112.  from = ""
  113.  to = ""
  114.  ExitCodeOk = 0
  115.  ExitCodeCancel = 1 
  116. ExitCodeFatal = 2
  117.  KeyNull = ""
  118.  MAXIMUM_ALLOWED = 33554432
  119.  RegistryErrorIndex = NO_ERROR
  120.  KeyProduct = ""
  121.  KeyParameters = ""
  122.  TRUE = 1
  123.  FALSE = 0
  124.  NoTitle = 0
  125.  ExitState = "Active"
  126.  OldVersionExisted = $(FALSE)
  127.  DriverPath = $(!STF_NTPATH)\drivers
  128.  NT350VersionConstant = "3.50"
  129.  NT310VersionConstant = "3.10"
  130.  NT400VersionConstant = "(4.0)"
  131.  INF_PROCESSER = "Alpha"
  132. [date]
  133.  Now = {} ? $(!LIBHANDLE) GetSystemDate
  134.  
  135. [Identify]
  136.  read-syms Identification
  137.  set Status = STATUS_SUCCESSFUL
  138.  set Identifier = $(OptionType)
  139.  set Media = #("Source Media Descriptions", 1, 1)
  140.  Return $(Status) $(Identifier) $(Media)
  141.  
  142. [ReturnOptions]
  143.  set Status = STATUS_FAILED
  144.  set OptionList = {}
  145.  set OptionTextList = {}
  146.  set LanguageList = ^(LanguagesSupported, 1)
  147.  Ifcontains(i) $($0) in $(LanguageList)
  148.  ifstr(i) $($1) == ""
  149.  goto returnoptions
  150.  endif
  151.  set PlatformList = ^(PlatformsSupported, 1)
  152.  Ifcontains(i) $($1) in $(PlatformList)
  153.  goto returnoptions
  154.  else
  155.  set Status = STATUS_NOTSUPPORTED
  156.  goto finish_ReturnOptions
  157.  endif
  158.  else
  159.  set Status = STATUS_NOLANGUAGE
  160.  goto finish_ReturnOptions
  161.  endif
  162.  
  163. returnoptions = +
  164.  set OptionList = ^(Options, 1)
  165.  set OptionTextList = ^(OptionsText$($0), 1)
  166.  set Status = STATUS_SUCCESSFUL
  167.  
  168. finish_ReturnOptions = +
  169.  Return $(Status) $(OptionList) $(OptionTextList)
  170.  
  171.  
  172.  
  173. [InstallOption]
  174.  
  175.  
  176.  
  177.  
  178. set CurrLang = $($0)
  179.  set Option = $($1)
  180.  set SrcDir = $($2)
  181.  set AddCopy = $($3)
  182.  set DoCopy = $($4)
  183.  set DoConfig = $($5)
  184.  set LanguageList = ^(LanguagesSupported, 1)
  185.  Ifcontains(i) $($0) NOT-IN $(LanguageList)
  186.  Return STATUS_NOLANGUAGE
  187.  endif
  188.  set-subst LF = "\n"
  189.  read-syms GeneralConstants
  190.  read-syms FileConstants
  191.  read-syms DialogConstants$(!STF_LANGUAGE)
  192.  ifstr(i) $(!NTN_Origination) == "NCPA"
  193.  set Continue = "OK"
  194.  endif
  195.  read-syms FileConstants$(!STF_LANGUAGE)
  196.  detect date
  197.  set-title $(FunctionTitle)
  198.  set to = Begin
  199.  set from = Begin
  200.  set CommonStatus = STATUS_SUCCESSFUL
  201.  EndWait
  202.  
  203. Begin = +
  204.  
  205.  
  206.  
  207.  
  208.  
  209. set CurrentVersionValue = ""
  210.  OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows Nt\CurrentVersion" $(!REG_KEY_READ) KeyNt
  211.  Ifstr(i) $(KeyNt) != ""
  212.  GetRegValue $(KeyNt) "CurrentVersion" CurrentVersionValue
  213.  Debug-Output "$(InfFile) : WinNT CurrentVersion ="$(CurrentVersionValue)
  214.  CloseRegKey $(KeyNt)
  215.  Endif
  216.  
  217.  
  218. ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)
  219.      set NDIS_VER = NDIS4
  220.  else
  221.         set NDIS_VER = NDIS3 
  222. endif
  223.     
  224.     read-syms DriverFilenameConstants$(NDIS_VER)
  225.  
  226.  ifstr(i) (*($(CurrentVersionValue),4)) == $(NT310VersionConstant) 
  227. Debug-Output "$(InfFile) : Configureadapter"
  228.  set Error = "Windows NT v3.10 is not support by this product"
  229.  goto fatal
  230.  endif
  231.  
  232. Ifstr(i) $(!NTN_InstallMode) == deinstall
  233.  set StartLabel = removeadapter
  234.  else-Ifstr(i) $(!NTN_InstallMode) == Update
  235.  set StartLabel = UpgradeSoftware
  236.  else-Ifstr(i) $(!NTN_InstallMode) == bind
  237.  set StartLabel = bindingadapter
  238.  else-Ifstr(i) $(!NTN_InstallMode) == configure
  239.  ifstr $(!STF_PLATFORM) == $(INF_PROCESSER) 
  240. ;RunProgram ExitCode "Windows Directory" "" 3nicdiag.exe 
  241. set CommonStatus = STATUS_USERCANCEL
  242.  goto end
  243.  else-Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  244.  Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  245.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  246.  goto ShellCodeError
  247.  endif
  248.  set Error = $($R0)
  249.  set from = end
  250.  set to = end
  251.  goto nonfatalinfo
  252.  else
  253.  set StartLabel = configureadapter
  254.  endif
  255.  else
  256.  set StartLabel = installadapter
  257.  set OEM_ABANDON_OPTIONS = {}
  258.  set OEM_ABANDON_SOFTWARE = FALSE
  259.  set OEM_ABANDON_ON = TRUE
  260.  endif
  261.  
  262.  Debug-Output "$(InfFile) : =================================================="
  263.  Debug-Output "$(InfFile) : STF_CWDIR is: "$(!STF_CWDIR)
  264.  Debug-Output "$(InfFile) : STF_SRCDIR is: "$(!STF_SRCDIR)
  265.  Debug-Output "$(InfFile) : STF_LANGUAGE is: "$(!STF_LANGUAGE)
  266.  Debug-Output "$(InfFile) : Option is: "$(Option)
  267.  Debug-Output "$(InfFile) : !STF_NCN_InstallMode is:"$(!NTN_InstallMode)
  268.  Debug-Output "$(InfFile) : !STF_NCDETECT is: "$(!STF_NCDETECT)
  269.  Debug-Output "$(InfFile) : !STF_NCOPTION is: "$(!STF_NCOPTION)
  270.  Debug-Output "$(InfFile) : !STF_NCDETCARD is: "$(!STF_NCDETCARD)
  271.  Debug-Output "$(InfFile) : !STF_NCDETINFO is: "$(!STF_NCDETINFO)
  272.  Debug-Output "$(InfFile) : !STF_GUI_UNATTENDED is: "$(!STF_GUI_UNATTENDED)
  273.  Debug-Output "$(InfFile) : !STF_BusType is $(!STF_BUSTYPE)" 
  274. Debug-Output "$(InfFile) : !STF_BusTypeList is $(!STF_BUSTYPELIST)" 
  275. Debug-Output "$(InfFile) : =================================================="
  276.  
  277.  set from = $(fatal)
  278.  set to = $(fatal)
  279.  goto $(StartLabel)
  280.  
  281. installadapter = +
  282.  
  283. Debug-Output "$(InfFile) : Installadapter" 
  284. OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(!REG_KEY_READ) KeyProduct
  285.  Ifstr $(KeyProduct) != $(KeyNull)
  286.  CloseRegKey $(KeyProduct)
  287.  ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  288.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  289.  Debug-Output "ShellCode error: cannot get an error string."
  290.  goto ShellCodeError
  291.  endif
  292.  goto end
  293.  else
  294.  set OldVersionExisted = $(TRUE)
  295.  endif
  296.  Endif
  297.  
  298.  Goto adapteroptions 
  299.  
  300. configureadapter = +
  301.  Debug-Output "$(InfFile) : Configureadapter"
  302.  
  303.  set Error = "Cannot configure the software component"
  304.  goto fatal
  305.  
  306. adapteroptions = +
  307.  Debug-Output "$(InfFile) : Adapteroptions"
  308.  set from = adapteroptions
  309.  ifstr(i) $(!NTN_InstallMode) == configure
  310.  goto updateparameters
  311.  endif
  312.  
  313. installproduct =+
  314.  Debug-Output "$(InfFile) : installproduct"
  315.  StartWait 
  316. set AdapterList = $($R1)
  317.  ifint $(OldVersionExisted) == $(FALSE)
  318.  Ifstr(i) $(DoCopy) == "YES"
  319.  Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) NO
  320.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  321.  Goto ShellCodeError
  322.  Else-Ifstr(i) $($R0) == STATUS_FAILED
  323.  Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  324.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  325.  goto ShellCodeError
  326.  endif
  327.  set Error = $($R0)
  328.  Goto fatal
  329.  Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  330.  Goto successful
  331.  Endif
  332.  
  333. Endif
  334.  
  335.  install "Install-Option"
  336.  ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  337.  Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  338.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  339.  goto ShellCodeError
  340.  endif
  341.  set Error = $($R0)
  342.  goto fatal
  343.  endif
  344.  
  345. endif
  346.  
  347.  
  348.  
  349.  
  350.  
  351. OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProductHardwareName) $(!REG_KEY_READ) KeyNt
  352.  CloseRegKey $(KeyNt)
  353.  
  354.  Ifstr(i) $(KeyNt) == ""
  355.  Debug-Output "$(InfFile) : AddSoftwareComponent"
  356.  Debug-Output "$(InfFile) : --> $(Manufacturer)"
  357.  Debug-Output "$(InfFile) : --> $(ProductSoftwareName)"
  358.  Debug-Output "$(InfFile) : --> $(ProductSoftwareTitle)"
  359.  Debug-Output "$(InfFile) : --> $(STF_CONTEXTINFNAME)"
  360.  Debug-Output "$(InfFile) : --> $(ProductSoftwareImagePath)"
  361.  Debug-Output "$(InfFile) : --> $(NetEventDLL)"
  362.  
  363.  Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  364.  $(ProductSoftwareName), +
  365.  $(ProductSoftwareName), +
  366.  $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  367.  $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  368.  $(NetEventDLL)
  369.  
  370. Set OEM_ABANDON_SOFTWARE = TRUE
  371.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  372.  goto ShellCodeError
  373.  endif
  374.  set RegistryErrorIndex = $($R0)
  375.  Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  376.  EndWait
  377.  CloseRegKey $($R1)
  378.  CloseRegKey $($R2)
  379.  CloseRegKey $($R3)
  380.  CloseRegKey $($R4)
  381.  CloseRegKey $($R5)
  382.  goto fatalregistry
  383.  endif
  384.  Set SoftProductKey = $($R1)
  385.  Set SoftNetRuleKey = $($R2)
  386.  Set SoftServiceKey = $($R3)
  387.  Set SoftParameterKey = $($R4)
  388.  Set SoftLinkageKey = $($R5)
  389.  set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  390.  {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  391.  {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  392.  {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  393.  {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  394.               {Review,$(NoTitle),$(!REG_VT_DWORD),$(ProductReview)},+
  395.  {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  396.  {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  397.  Shell $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  398.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  399.  goto ShellCodeError
  400.  endif
  401.  set RegistryErrorIndex = $($R0)
  402.  Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  403.  EndWait
  404.  CloseRegKey $(SoftProductKey)
  405.  CloseRegKey $(SoftNetRuleKey)
  406.  CloseRegKey $(SoftServiceKey)
  407.  CloseRegKey $(SoftParameterKey)
  408.  CloseRegKey $(SoftLinkageKey)
  409.  goto fatalregistry
  410.  endif
  411.  set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  412.  {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  413.  {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  414.  {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  415.  {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  416.  {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  417.  Shell $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  418.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  419.  goto ShellCodeError
  420.  endif
  421.  set RegistryErrorIndex = $($R0)
  422.  CloseRegKey $(SoftProductKey)
  423.  CloseRegKey $(SoftNetRuleKey)
  424.  CloseRegKey $(SoftServiceKey)
  425.  CloseRegKey $(SoftParameterKey)
  426.  CloseRegKey $(SoftLinkageKey)
  427.  
  428.  
  429.  
  430. set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  431.  {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  432.  {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  433.  {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  434.  {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  435.  {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  436.  Shell $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  437.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  438.  goto ShellCodeError
  439.  endif
  440.  
  441.  
  442. Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  443.  EndWait
  444.  goto fatalregistry
  445.  endif
  446.  endif 
  447.  
  448. Debug-Output "$(InfFile) : About to look for 3Com PCI Cards"
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456. set TargetVersion = *($(CurrentVersionValue),4)
  457.  Debug-Output "$(InfFile) : Current Version:"$(TargetVersion)
  458.  
  459.  ifstr $(TargetVersion) == $(NT350VersionConstant) 
  460. Debug-Output "Running on WindowsNT 3.50"
  461.  set Version350 = $(TRUE)
  462.  else
  463.  Debug-Output "Running on WindowsNT 3.51 or higher"
  464.  set Version350 = $(FALSE)
  465.  endif
  466.  
  467.  ifint $(Version350) == $(TRUE)
  468.  Debug-Output "Running on WindowsNT v3.50, Not using PCI Detection!!!"
  469.  ifstr $(!STF_GUI_UNATTENDED) == "YES"
  470.  Debug-Output "$(InfFile) : Running in GUI unattended mode"
  471.  ifstr(i) $(!AutoNetInterfaceType) != ""
  472.  set BusInterfaceType = $(!AutoNetInterfaceType)
  473.  else
  474.  set BusInterfaceType = 5
  475.  endif
  476.  ifstr(i) $(!AutoNetBusNumber) != ""
  477.  set BusNumber = $(!AutoNetBusNumber)
  478.  else
  479.  set BusNumber = 0
  480.  endif
  481.  set NTDetected = $(FALSE)
  482.  set AdapterList = {{$(Option),0, XXXXX}} 
  483. Debug-Output "$(InfFile) : BusInterfaceType = $(BusInterfaceType)"
  484.  Debug-Output "$(InfFile) : BusNumber = $(BusNumber)"
  485.  else 
  486. Debug-Output "$(InfFile) : Running 3.50 Bus Dialog"
  487.  set BusInterfaceType = 5
  488.  set BusNumber = 0
  489.  set NTDetected = $(FALSE)
  490.  Shell $(UtilityInf),GetBusTypeDialog,$(ProductHardwareXXXXXDescription) $(BusInterfaceType) $(BusNumber)
  491.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  492.  Debug-Output "ShellCode error."
  493.  goto ShellCodeError
  494.  endif
  495.  set BusInterfaceType = $($R1)
  496.  set BusNumber = $($R2)
  497.  set AdapterList = {{$(Option),0, XXXXX}} 
  498. Debug-Output "$(InfFile) : BusInterfaceType = $(BusInterfaceType)"
  499.  Debug-Output "$(InfFile) : BusNumber = $(BusNumber)"
  500.  endif 
  501. else
  502.  Debug-Output "$(InfFile) : Running 3.51 or higher using PCI Dectection"
  503.  
  504.  
  505.  
  506. set NTDetected = $(TRUE)
  507.  set Vendor = 4279 
  508. set CFIDList = $(CFIDList)
  509.  Debug-Output "$(InfFile) : VendorID = $(Vendor)"
  510.  Debug-Output "$(InfFile) : CFIDList = $(CFIDList)"
  511.  set AdapterList = {}
  512.  ForListDo $(CFIDList)
  513.  set-div CFID = $($) 1
  514.  set DeviceID = $($)
  515.  Shell $(UtilityInf), GetPCIInformation, $(Vendor) $(CFID)
  516.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  517.  goto ShellCodeError
  518.  endif
  519.  ForListDo $($R0)
  520.  set AdapterList = >($(AdapterList), {*($($),1), *($($),2), $(DeviceID)})
  521.  EndForListDo
  522.  EndForListDo
  523.  ifstr(i) $(AdapterList) == {}
  524.  set Error = $(CANNOT_FIND_ANY_CARD)
  525.  set CommonStatus = USER_CANCEL
  526.  set from = end
  527.  goto nonfatal
  528.  endif
  529.  endif 
  530.  
  531.  
  532.  
  533. Debug-Output "$(InfFile) : Adapterlist = $(AdatperList)"
  534.  ForListDo $(AdapterList)
  535.  Set InstallCard = "YES"
  536.  ifint $(NTDetected) == $(TRUE)
  537.  set DetectedBusNum = *($($),1)
  538.  set DetectedSlotNum = *($($),2)
  539.  set DeviceID = *($($),3)
  540.  Debug-Output "$(InfFile) : DetectedBusNumber = $(DetectedBusNum)"
  541.  Debug-Output "$(InfFile) : DetectedSlotNum = $(DetectedSlotNum)"
  542.  
  543.  Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(DetectedBusNum), +
  544.  $(DetectedSlotNum), $(ProductHardware$(DeviceID)Description), $(ProductHardwareName)
  545.  
  546. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  547.  goto ShellCodeError
  548.  endif
  549.  ifstr $($R0) != "NO_ERROR"
  550.  set Error = $($R0)
  551.  goto fatal
  552.  endif
  553.  ifstr(i) $($R1) == "YES"
  554.  set InstallCard = "NO" 
  555. endif 
  556. endif
  557.  
  558.  
  559.  
  560. ifstr(i) $(InstallCard) == "NO"
  561.  Debug-Output "$(InfFile) : Card Already at $(DetectedBusNum):$(DetectedSlotNum) already installed!"
  562.  set Error = "An adapter at $(DetectedBusNum):$(DetectedSlotNum) is already installed!"
  563.  Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  564.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  565.  goto ShellCodeError
  566.  endif
  567.  else
  568.  Debug-Output "$(InfFile) : Installing Card at $(DetectedBusNum):$(DetectedSlotNum)!"
  569.  Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  570.  ifint $($R4) != -1
  571.  Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  572.  endif
  573.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  574.  goto ShellCodeError
  575.  endif
  576.  set RegistryErrorIndex = $($R0)
  577.  Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  578.  EndWait
  579.  CloseRegKey $($R1)
  580.  CloseRegKey $($R2)
  581.  CloseRegKey $($R3)
  582.  goto fatalregistry
  583.  endif
  584.  Set HardNetCardKey = $($R1)
  585.  Set HardNetRuleKey = $($R2)
  586.  Set HardParameterKey = $($R3)
  587.  set AdapterNumber = $($R4)
  588.  set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  589.  {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(DeviceID)Title)},+
  590.  {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(DeviceID)Description)},+
  591.  {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  592.  {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  593.  {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  594.  Shell $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  595.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  596.  goto ShellCodeError
  597.  endif
  598.  
  599.  
  600.  
  601. set BusTypeNum = 5 
  602. ifstr(i) $(DeviceID) == "36944"
  603.  set CardType = 0
  604.  else-ifstr(i) $(DeviceID) == "36945"
  605.  set CardType = 0
  606.  else-ifstr(i) $(DeviceID) == "36949"
  607.  set CardType = 0
  608.  else
  609.  set CardType = 2
  610.  endif 
  611.  
  612.  
  613.  
  614. ifint $(NTDetected) == $(TRUE)
  615.  set BusNumber = $(DetectedBusNum)
  616.  set SlotNum = $(DetectedSlotNum) 
  617. set BusInterfaceType = $(BusTypeNum)
  618.              set WakeOnLan = YES
  619.              set WakeOnLink = YES 
  620.              set FlowControl = YES 
  621.             
  622.              Debug-Output "$(InfFile) : Set HardwareParameterKey = $(NewValueList)"
  623.  
  624.  
  625.  
  626.  
  627.  
  628. Set NewValueList = {+
  629.  {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
  630.  {Slot,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
  631.                  {WakeOnMagic,$(NoTitle),$(!REG_VT_SZ),$(WakeOnLan)},+
  632.                  {WakeOnLink,$(NoTitle),$(!REG_VT_SZ),$(WakeOnLink)},+
  633.                  {FlowControl,$(NoTitle),$(!REG_VT_SZ),$(FlowControl)},+
  634.  }
  635.  Debug-Output "$(InfFile) : Set HardwareParameterKey = $(NewValueList)"
  636.  Shell $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  637.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  638.  goto ShellCodeError
  639.  endif
  640.  
  641.  Set NewValueList = { {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)} }
  642.  Debug-Output "$(InfFile) : Set HardwareParameterKey = $(NewValueList)"
  643.  Shell $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  644.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  645.  goto ShellCodeError
  646.  endif
  647.  else
  648.  Set NewValueList = {+
  649.  {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
  650.  }
  651.  Debug-Output "$(InfFile) : Set HardwareParameterKey = $(NewValueList)"
  652.  Shell $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  653.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  654.  goto ShellCodeError
  655.  endif
  656.  endif
  657.  
  658.  Set NewValueList = {+
  659.  {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusInterfaceType)},+
  660.  {CardType,$(NoTitle),$(!REG_VT_DWORD),$(CardType)},+
  661.  {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  662.  }
  663.  
  664.  Debug-Output "$(InfFile) : Set HardwareParameterKey = $(NewValueList)"
  665.  Shell $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  666.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  667.  goto ShellCodeError
  668.  endif
  669.  
  670.  set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  671.  set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  672.  set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  673.  {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  674.  {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  675.  {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  676.  
  677. Debug-Output "$(InfFile) : HardwareRuleKey = $(NewValueList)"
  678.  Shell $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  679.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  680.  goto ShellCodeError
  681.  endif
  682.  CloseRegKey $(HardNetCardKey)
  683.  CloseRegKey $(HardNetRuleKey)
  684.  CloseRegKey $(HardParameterKey)
  685.  endif 
  686. EndForListDo
  687.  
  688.  
  689.     
  690.      OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProductHardwareName) $(!REG_KEY_ALL_ACCESS) KeyService
  691.      Ifstr $(KeyService) != "" 
  692.      SetRegValue $(KeyService) {ImagePath,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareUpgradePath)}
  693.      else 
  694.          goto fatalregistry 
  695.      endif                  
  696. CloseRegKey $(KeyService)                                                                     
  697.  
  698.     
  699.      OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\EventLog\System\"$(ProductHardwareName) $(!REG_KEY_ALL_ACCESS) KeyEventLog
  700.      Ifstr $(KeyEventLog) != "" 
  701.      SetRegValue $(KeyEventLog) {EventMessageFile,$(NoTitle),$(!REG_VT_SZ),$(NetEventDLL)} 
  702.      else 
  703.          goto fatalregistry 
  704.      endif                  
  705. CloseRegKey $(KeyEventLog)                                                                     
  706.  
  707.  
  708. EndWait
  709.  goto successful
  710.  
  711. updateparameters =+
  712.  Debug-Output "$(InfFile) : Updateparameters"
  713.  set HardParameterKey = $($R3)
  714.  
  715. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  716.  goto ShellCodeError
  717.  endif
  718.  CloseRegKey $(KeyParameters)
  719.  goto successful
  720.  
  721. bindingadapter =+
  722.     
  723.      set Error = "Binding: Sorry, not yet implemented."
  724.      goto fatal
  725.  
  726. removeadapter = +
  727.  Debug-Output "$(InfFile) : removeadapter"
  728.  Debug-Output "$(InfFile) : ----> $(ProductKeyName), $(!NTN_RegBase)"
  729.  Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  730.  Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  731.  $(ProductSoftwareName)
  732.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  733.  goto ShellCodeError
  734.  endif
  735.  set RegistryErrorIndex = $($R0)
  736.      Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  737.      goto fatalregistry
  738.      endif
  739.  else
  740.      Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  741.      $(ProductSoftwareName), $(!NTN_RegBase)
  742.      ifint $($ShellCode) != $(!SHELL_CODE_OK)
  743.      goto ShellCodeError
  744.      endif
  745.      set RegistryErrorIndex = $($R0)
  746.      Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  747.      goto fatalregistry
  748.      endif
  749.  endif
  750.  goto end
  751.  
  752. UpgradeSoftware = +
  753.  Debug-Output "$(InfFile) : UpdateSoftware" 
  754.  
  755.  
  756.  
  757. install "Install-Option" 
  758. ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS 
  759. Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE" 
  760. ifint $($ShellCode) != $(!SHELL_CODE_OK) 
  761. goto ShellCodeError 
  762. endif 
  763. set Error = $($R0) 
  764. goto fatal 
  765. endif 
  766.  
  767. OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(!REG_KEY_ALL_ACCESS) KeyProduct 
  768. Ifstr $(KeyProduct) != "" 
  769. Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct) 
  770. ifint $($ShellCode) != $(!SHELL_CODE_OK) 
  771. Debug-Output "ShellCode error" 
  772. goto ShellCodeError 
  773. endif 
  774. set !UG_Filename = $($R0) 
  775.  
  776. install "Install-INF" 
  777. ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS 
  778. goto fatal 
  779. endif 
  780.  
  781. SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)} 
  782. SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)} 
  783.         SetRegValue $(KeyProduct) {Review,$(NoTitle),$(!REG_VT_DWORD),$(ProductReview)} 
  784. CloseRegKey $(KeyProduct) 
  785.  
  786.     
  787.      OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProductHardwareName) $(!REG_KEY_ALL_ACCESS) KeyService
  788.      Ifstr $(KeyService) != "" 
  789.      SetRegValue $(KeyService) {ImagePath,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareUpgradePath)}
  790.      else 
  791.          goto fatalregistry 
  792.      endif                  
  793. CloseRegKey $(KeyService)                                                                     
  794.  
  795.     
  796.      OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\EventLog\System\"$(ProductHardwareName) $(!REG_KEY_ALL_ACCESS) KeyEventLog
  797.      Ifstr $(KeyEventLog) != "" 
  798.      SetRegValue $(KeyEventLog) {EventMessageFile,$(NoTitle),$(!REG_VT_SZ),$(NetEventDLL)} 
  799.      else 
  800.          goto fatalregistry 
  801.      endif                  
  802. CloseRegKey $(KeyEventLog)                                                                     
  803.  
  804.         
  805.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase) $(!REG_KEY_ALL_ACCESS) KeyNt 
  806.          
  807.         set LoopList = {1,2,3,4,5,6,7,8} 
  808.         set WinNTList = {WinNT,$(NoTitle),$(!REG_VT_SZ),YES} 
  809.      Set NewValueList = {{WakeOnMagic,$(NoTitle),$(!REG_VT_SZ),"YES"},+      
  810.          {WakeOnLink,$(NoTitle),$(!REG_VT_SZ),"YES"},+ 
  811.          {FlowControl,$(NoTitle),$(!REG_VT_SZ),"YES"}} 
  812.          
  813.         ForListDo $(LoopList) 
  814.          OpenRegKey $(KeyNt) "" $(ProductHardwareName)$($)"\Parameters" $(!REG_KEY_ALL_ACCESS) TestKey 
  815.          
  816.          ifstr $(TestKey) != $(KeyNull) 
  817.          Shell $(UtilityInf), AddValueList, $(TestKey), $(NewValueList) 
  818.          ifint $($ShellCode) != $(!SHELL_CODE_OK) 
  819.          goto ShellCodeError 
  820.          endif 
  821.          endif 
  822.          
  823.          CloseRegKey $(TestKey) 
  824.         EndForListDo 
  825. else 
  826. goto fatalregistry 
  827. endif 
  828.  
  829.  
  830.  
  831. goto end
  832.  
  833. successful = +
  834.  Debug-Output "$(InfFile) : Successful"
  835.  goto end
  836.  
  837. abandon = +
  838.  Debug-Output "$(InfFile) : Abandon"
  839.  ForListDo $(OEM_ABANDON_OPTIONS)
  840.  Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  841.  $(ProductSoftwareName), $($)
  842.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  843.  goto ShellCodeError
  844.  endif
  845.  set RegistryErrorIndex = $($R0)
  846.  Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  847.  goto fatalregistry
  848.  endif
  849.  EndForListDo
  850.  Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  851.  Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  852.  $(ProductSoftwareName), FALSE
  853.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  854.  goto ShellCodeError
  855.  endif
  856.  set RegistryErrorIndex = $($R0)
  857.  Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  858.  goto fatalregistry
  859.  endif
  860.  endif
  861.  goto end
  862.  
  863. warning = +
  864.  Debug-Output "$(InfFile) : warning"
  865.  Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  866.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  867.  goto ShellCodeError
  868.  endif
  869.  ifstr(i) $($R1) == "OK"
  870.  goto $(to)
  871.  else-ifstr(i) $($R1) == "CANCEL"
  872.  goto $(from)
  873.  else
  874.  goto "end"
  875.  endif
  876.  
  877. nonfatalinfo = +
  878.  Debug-Output "$(InfFile) : nonfatalinfo"
  879.  Set CommonStatus = STATUS_USERCANCEL
  880.  Set Severity = STATUS
  881.  goto nonfatalmsg
  882.  
  883. nonfatal = +
  884.  Debug-Output "$(InfFile) : nonfatal"
  885.  Set Severity = NONFATAL
  886.  goto nonfatalmsg
  887.  
  888. nonfatalmsg = +
  889.  Debug-Output "$(InfFile) : nonfatalmsg"
  890.  ifstr(i) $(Error) == ""
  891.  Set Severity = NONFATAL
  892.  Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  893.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  894.  goto ShellCodeError
  895.  endif
  896.  set Error = $($R0)
  897.  endif
  898.  Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  899.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  900.  goto ShellCodeError
  901.  endif
  902.  ifstr(i) $($R1) == "OK"
  903.  goto $(from)
  904.  else
  905.  
  906. goto "RemoveAdapter"
  907.  endif
  908.  
  909. fatalregistry = +
  910.  Debug-Output "$(InfFile) : fatalregistry"
  911.  Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  912.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  913.  goto ShellCodeError
  914.  endif
  915.  set Error = $($R0)
  916.  goto fatal
  917.  
  918. fatal = +
  919.  Debug-Output "$(InfFile) : fatal"
  920.  ifstr(i) $(Error) == ""
  921.  Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  922.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  923.  goto ShellCodeError
  924.  endif
  925.  set Error = $($R0)
  926.  endif
  927.  Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  928.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  929.  goto ShellCodeError
  930.  endif
  931.  goto setfailed
  932.  
  933. ShellCodeError = +
  934.  ifint $($ShellCode) == $(!SHELL_CODE_NO_SUCH_INF)
  935.  Debug-Output "$(InfFile) : ShellCodeError - SHELL_CODE_NO_SUCH_INF"
  936.  else-ifint $($ShellCode) == $(!SHELL_CODE_NO_SUCH_SECTION)
  937.  Debug-Output "$(InfFile) : ShellCodeError - SHELL_CODE_NO_SUCH_SECTION"
  938.  else
  939.  Debug-Output "$(InfFile) : ShellCodeError - SHELL_CODE_ERROR"
  940.  endif
  941.  set DlgType = "MessageBox"
  942.  set STF_MB_TITLE = $(ShellCodeErrorTitle)
  943.  set STF_MB_TEXT = $(ShellCodeErrorText) 
  944. set STF_MB_TYPE = 1
  945.  set STF_MB_ICON = 3
  946.  set STF_MB_DEF = 1
  947.  ui start "Error Message"
  948.  goto setfailed
  949.  
  950. setfailed = +
  951.  Debug-Output "$(InfFile) : Setfailed"
  952.  set CommonStatus = STATUS_FAILED
  953.  ifstr(i) $(OEM_ABANDON_ON) == TRUE
  954.  set OEM_ABANDON_ON = FALSE
  955.  goto abandon
  956.  endif
  957.  goto end
  958.  
  959. end = +
  960.  goto term
  961.  
  962. term = +
  963.  Return $(CommonStatus)
  964.  
  965.  
  966. [Install-Option]
  967.  set STF_VITAL = ""
  968.  set STF_OVERWRITE = "VERIFYSOURCEOLDER"
  969.  Debug-Output $(InfName)"Adding files: Files-$(NDIS_VER), SrcDir=$(SrcDir)"
  970.  AddSectionFilesToCopyList Files-$(NDIS_VER) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  971.  set !STF_NCPA_FLUSH_COPYLIST = TRUE
  972.  CopyFilesInCopyList
  973.  Exit
  974.  
  975. [Install-INF]
  976.  set STF_VITAL = ""
  977.  AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  978.  set !STF_NCPA_FLUSH_COPYLIST = TRUE
  979.  CopyFilesInCopyList
  980.  Exit
  981.  
  982. [Source Media Descriptions]
  983.  1 = "Windows NT Setup Disk #1" 
  984. 2 = "3Com Etherdisk for Fast EtherLink XL / EtherLink XL Adapters (DISK 1)", TAGFILE = 3CDISK1
  985.  3 = "3Com Etherdisk for Fast EtherLink XL / EtherLink XL Adapters (DISK 2)", TAGFILE = 3CDISK2  ;OEMSETUP.INF
  986.  
  987. [ProductType]
  988. STF_PRODUCT = Winnt
  989. STF_PLATFORM = Alpha
  990.  
  991. [Files-Inf] 
  992. 3, oemsetup.inf,SIZE=36000, RENAME=$(!UG_Filename)
  993.  
  994. [Files-NDIS3]
  995. 3,EL90xnd3.SYS , SIZE=25001
  996.  
  997. [Files-NDIS4]
  998. 3,EL90xnd4.SYS , SIZE=25001
  999.  
  1000.  
  1001. [LanguagesSupported]
  1002.  ENG
  1003.  
  1004. [OptionsTextENG]
  1005.  3C905 = "3Com Fast EtherLink/Etherlink XL PCI Busmaster NIC"
  1006.  
  1007. [FileConstantsENG]
  1008.  ProCaption = "Windows NT NIC Setup"
  1009.  ProCancel = "Cancel"
  1010.  ProCancelMsg = "Windows NT Networking is not correctly installed. "+
  1011.  "Are you sure you want to cancel copying files?"
  1012.  ProCancelCap = "Network Setup Message"
  1013.  ProText1 = "Copying:"
  1014.  ProText2 = "To:"
  1015.  
  1016. ConnectionList = ^(ConnectionChoices, 1)
  1017. ConnectionValues = ^(ConnectionChoices, 2)
  1018. NoList = ^(NoChoices, 1)
  1019. NoValues = ^(NoChoices, 2)
  1020. ShellCodeErrorTitle = "Error: "$(Function$(Option)Title)
  1021. ShellCodeErrorText = "Shell Code Error."
  1022. CANNOT_FIND_ANY_CARD = "Network card is not present in the system"
  1023.  
  1024. [DialogConstantsENG]
  1025. Help = "&Help"
  1026. Exit = "Cancel"
  1027. OK = "OK"
  1028. HelpContext = ""
  1029. Continue = "Continue"
  1030. Cancel = "Cancel"
  1031.  
  1032. ; Installation file for 3c90x - ED4.01 -  %VER v4.0.1
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.