home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / d / d423_liu / 8.ddi / OEMNADWM.IN_ / OEMNADWM.IN
Encoding:
INI File  |  1993-07-24  |  26.9 KB  |  681 lines

  1. [Identification]
  2.     OptionType = NetAdapter
  3. [PlatformsSupported]
  4.     MCA
  5. [Options]
  6.     WD8003EA
  7.     WD8003WA
  8.     WD8013WPA
  9.     WD8013EPA
  10. [CardInfo]
  11.     WD8003EA = 192, 111, wd8003ea, 28608
  12.     WD8003WA = 194, 111, wd8003wa, 28610
  13.     WD8013WPA = 201, 97, wd8013wpa, 25033
  14.     WD8013EPA = 200, 97, wd8013epa, 25032
  15. [FileConstants]
  16. UtilityInf      = "UTILITY.INF"
  17. subroutineinf   = "SUBROUTN.INF"
  18. SoftwareType    = "driver"
  19. Exit_Code       = 0
  20. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  21. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  22. CardList = ^(CardInfo,0)
  23. Card1ByteList = ^(CardInfo, 1)
  24. Card2ByteList = ^(CardInfo, 2)
  25. CardRuleList = ^(CardInfo, 3)
  26. CardIDList = ^(CardInfo, 4 )
  27. Card1Byte = *($(Card1ByteList), ~($(CardList), $(Option)))
  28. Card2Byte = *($(Card2ByteList), ~($(CardList), $(Option)))
  29. NETCARD_ID = *($(CardIDList), ~($(CardList), $(Option)))
  30. CardRule = *($(CardRuleList), ~($(CardList), $(Option)))
  31. EthernetCards  = { WD8003EA, WD8003SA, WD8003WA, WD8013EA, WD8013WA, +
  32.                   WD8013WPA, WD8013EPA, +
  33.                   BISTOR003EA, BISTOR013EA, BISTOR013WA }
  34. TokenRingCards = { WD8115TRA }
  35. Manufacturer    = "Microsoft"
  36. ProductMajorVersion     = "3"
  37. ProductMinorVersion     = "1"
  38. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  39. ProductSoftwareName     = "SMC8000N"
  40. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\smc8000n.sys"
  41. NetRuleSoftwareType     = "smc8000nSys ndisDriver smc8000nDriver"
  42. NetRuleSoftwareUse      = $(SoftwareType)
  43. NetRuleSoftwareBindForm = """Smc8000nDriver"" yes no container"
  44. NetRuleSoftwareClass    = {"smc8000nDriver basic"}
  45. ProductHardwareName     = $(Option)
  46. NetRuleHardwareType     = $(CardRule)" "$(CardRule)"Adapter"
  47. NetRuleHardwareBindForm = " yes yes container"
  48. NetRuleHardwareClass    = {""$(CardRule)"Adapter basic"}
  49. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  50. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  51. [GeneralConstants]
  52. from      = ""
  53. to        = ""
  54. ExitCodeOk     = 0
  55. ExitCodeCancel = 1
  56. ExitCodeFatal  = 2
  57. KeyNull         = ""
  58. MAXIMUM_ALLOWED   = 33554432
  59. RegistryErrorIndex = NO_ERROR
  60. KeyProduct      = ""
  61. KeyParameters   = ""
  62. TRUE            = 1
  63. FALSE           = 0
  64. NoTitle            = 0
  65. ExitState   = "Active"
  66. OldVersionExisted = $(FALSE)
  67. DriverPath      = $(!STF_NTPATH)\drivers
  68. [date]
  69.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  70. [Identify]
  71.     read-syms Identification
  72.     set Status     = STATUS_SUCCESSFUL
  73.     set Identifier = $(OptionType)
  74.     set Media      = #("Source Media Descriptions", 1, 1)
  75.     Return $(Status) $(Identifier) $(Media)
  76. [ReturnOptions]
  77.     set Status        = STATUS_FAILED
  78.     set OptionList     = {}
  79.     set OptionTextList = {}
  80.     set LanguageList = ^(LanguagesSupported, 1)
  81.     Ifcontains(i) $($0) in $(LanguageList)
  82.         ifstr(i) $($1) == ""
  83.            goto returnoptions
  84.         endif
  85.         set PlatformList = ^(PlatformsSupported, 1)
  86.         Ifcontains(i) $($1) in $(PlatformList)
  87.            goto returnoptions
  88.         else
  89.            set Status = STATUS_NOTSUPPORTED
  90.            goto finish_ReturnOptions
  91.         endif
  92.     else
  93.         set Status = STATUS_NOLANGUAGE
  94.         goto finish_ReturnOptions
  95.     endif
  96. returnoptions = +
  97.     set OptionList     = ^(Options, 1)
  98.     set OptionTextList = ^(OptionsText$($0), 1)
  99.     set Status         = STATUS_SUCCESSFUL
  100. finish_ReturnOptions = +
  101.     Return $(Status) $(OptionList) $(OptionTextList)
  102. [InstallOption]
  103.     set Option   = $($1)
  104.     set SrcDir   = $($2)
  105.     set AddCopy  = $($3)
  106.     set DoCopy   = $($4)
  107.     set DoConfig = $($5)
  108.     set LanguageList = ^(LanguagesSupported, 1)
  109.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  110.         Return STATUS_NOLANGUAGE
  111.     endif
  112.     Debug-Output "OEMNADWM.INF: STF_CWDIR is: "$(!STF_CWDIR)
  113.     Debug-Output "OEMNADWM.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  114.     set-subst LF = "\n"
  115.     read-syms GeneralConstants
  116.     read-syms FileConstants
  117.     Shell $(UtilityInf), GetBindingInfo, "WD"
  118.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  119.         Debug-Output "ShellCode error: cannot get an error string."
  120.         goto ShellCodeError
  121.     endif
  122.     set NetRuleSoftwareBindable = $($R1)
  123.     read-syms DialogConstants$(!STF_LANGUAGE)
  124.     read-syms FileConstants$(!STF_LANGUAGE)
  125.     detect date
  126.     set-title  $(FunctionTitle)
  127.     set to   = Begin
  128.     set from = Begin
  129.     set CommonStatus = STATUS_SUCCESSFUL
  130.     EndWait
  131. Begin = +
  132.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  133.         set StartLabel = removeadapter
  134.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  135.         set StartLabel = UpgradeSoftware
  136.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  137.         set StartLabel = bindingadapter
  138.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  139.         set CommonStatus = STATUS_REBOOT
  140.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  141.             Debug-Output "Cannot configure the western digital driver software."
  142.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  143.         else
  144.             Debug-Output "Cannot configure the western digital adapter card."
  145.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_HARDWARE
  146.         endif
  147.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  148.             Debug-Output "ShellCode error: cannot get an error string."
  149.             goto ShellCodeError
  150.         endif
  151.         set Error = $($R0)
  152.         set from = end
  153.         set to = end
  154.         goto nonfatalinfo
  155.     else
  156.         set StartLabel = installadapter
  157.         set OEM_ABANDON_OPTIONS = {}
  158.         set OEM_ABANDON_SOFTWARE = FALSE
  159.         set OEM_ABANDON_ON = TRUE
  160.     endif
  161.     set from = $(fatal)
  162.     set to = $(fatal)
  163.     goto $(StartLabel)
  164. installadapter = +
  165.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  166.     Ifstr $(KeyProduct) != $(KeyNull)
  167.         CloseRegKey $(KeyProduct)
  168.         ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  169.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  170.                $(ProductVersion)
  171.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  172.                Debug-Output "ShellCode error: cannot get an error string."
  173.                goto ShellCodeError
  174.            endif
  175.            goto end
  176.         else
  177.            Shell $(UtilityInf), CardExistedDlg
  178.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  179.                Debug-Output "ShellCode error: cannot get an error string."
  180.                goto ShellCodeError
  181.            endif
  182.            ifstr(i) $($R1) != "OK"
  183.                Set CommonStatus = STATUS_USERCANCEL
  184.                goto end
  185.            endif
  186.            set OldVersionExisted = $(TRUE)
  187.         endif
  188.     endif
  189.     goto nextstep
  190. configureadapter = +
  191.     set Error = "Configure: Sorry, not yet implemented."
  192.     goto fatal
  193. nextstep = +
  194.     StartWait
  195. installproduct = +
  196.     Shell $(UtilityInf), MCAFindBus, $(Card1Byte), $(Card2Byte)
  197.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  198.         goto ShellCodeError
  199.     endif
  200.     ifstr $($R0) != "NO_ERROR"
  201.         set Error = $($R0)
  202.         goto fatal
  203.     endif
  204.     ifstr(i) $($R1) == {}
  205.         set Error = $(CANNOT_FIND_ANY_CARD)
  206.         set CommonStatus = STATUS_USERCANCEL
  207.         set from = "end"
  208.         goto nonfatal
  209.     endif
  210.     set AdapterList = $($R1)
  211.     Ifint $(OldVersionExisted) == $(FALSE)
  212.         ifstr(i) $(!NTN_InstallMode) == "install"
  213.            Ifstr(i) $(DoCopy) == "YES"
  214.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  215.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  216.                   Goto ShellCodeError
  217.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  218.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  219.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  220.                       goto ShellCodeError
  221.                   endif
  222.                   set Error = $($R0)
  223.                   Goto fatal
  224.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  225.                   Goto successful
  226.               Endif
  227.               Set SrcDir = $($R1)
  228.            Endif
  229.            install "Install-Option"
  230.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  231.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  232.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  233.                   goto ShellCodeError
  234.               endif
  235.               set Error = $($R0)
  236.               goto fatal
  237.            endif
  238.         endif
  239.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  240.             $(ProductSoftwareName), +
  241.             $(ProductSoftwareName), +
  242.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  243.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  244.             $(NetEventDLL)
  245.         Set OEM_ABANDON_SOFTWARE = TRUE
  246.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  247.             goto ShellCodeError
  248.         endif
  249.         set RegistryErrorIndex = $($R0)
  250.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  251.             EndWait
  252.             CloseRegKey $($R1)
  253.             CloseRegKey $($R2)
  254.             CloseRegKey $($R3)
  255.             CloseRegKey $($R4)
  256.             CloseRegKey $($R5)
  257.             goto fatalregistry
  258.         endif
  259.         Set SoftProductKey      = $($R1)
  260.         Set SoftNetRuleKey      = $($R2)
  261.         Set SoftServiceKey      = $($R3)
  262.         Set SoftParameterKey    = $($R4)
  263.         Set SoftLinkageKey      = $($R5)
  264.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  265.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  266.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  267.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  268.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  269.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  270.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  271.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  272.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  273.             goto ShellCodeError
  274.         endif
  275.         set RegistryErrorIndex = $($R0)
  276.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  277.             EndWait
  278.             CloseRegKey $(SoftProductKey)
  279.             CloseRegKey $(SoftNetRuleKey)
  280.             CloseRegKey $(SoftServiceKey)
  281.             CloseRegKey $(SoftParameterKey)
  282.             CloseRegKey $(SoftLinkageKey)
  283.             goto fatalregistry
  284.         endif
  285.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  286.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  287.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  288.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  289.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  290.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  291.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  292.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  293.             goto ShellCodeError
  294.         endif
  295.         set RegistryErrorIndex = $($R0)
  296.         CloseRegKey $(SoftProductKey)
  297.         CloseRegKey $(SoftNetRuleKey)
  298.         CloseRegKey $(SoftServiceKey)
  299.         CloseRegKey $(SoftParameterKey)
  300.         CloseRegKey $(SoftLinkageKey)
  301.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  302.             EndWait
  303.             goto fatalregistry
  304.         endif
  305.     endif
  306.     ForListDo $(AdapterList)
  307.         set BusNum = *($($),1)
  308.         set SlotNum = *($($),2)
  309.         Debug-Output $(BusNum)
  310.         Debug-Output $(SlotNum)
  311.         Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
  312.             $(SlotNum), $(ProductHardwareDescription), $(ProductHardwareName)
  313.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  314.             goto ShellCodeError
  315.         endif
  316.         ifstr $($R0) != "NO_ERROR"
  317.             set Error = $($R0)
  318.             goto fatal
  319.         endif
  320.         ifstr(i) $($R1) != "YES"
  321.                 Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  322.                 ifint $($R4) != -1
  323.                     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  324.                 endif
  325.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  326.                     goto ShellCodeError
  327.                 endif
  328.                 set RegistryErrorIndex = $($R0)
  329.                 Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  330.                     EndWait
  331.                     CloseRegKey $($R1)
  332.                     CloseRegKey $($R2)
  333.                     CloseRegKey $($R3)
  334.                     goto fatalregistry
  335.                 endif
  336.                 Set HardNetCardKey      = $($R1)
  337.                 Set HardNetRuleKey      = $($R2)
  338.                 Set HardParameterKey    = $($R3)
  339.                 set AdapterNumber = $($R4)
  340.                 set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  341.                                    {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  342.                                    {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  343.                                    {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  344.                                    {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  345.                                    {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  346.                 Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  347.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  348.                     goto ShellCodeError
  349.                 endif
  350.                 Shell $(UtilityInf), GetBusTypeNum
  351.                 set BusTypeNum = $($R1)
  352.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  353.                     Debug-Output "ShellCode error."
  354.                     goto ShellCodeError
  355.                 endif
  356.                 IfContains $(Option) in $(EthernetCards)
  357.                     set CardMediaType = 1
  358.                     set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  359.                                        {McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(NETCARD_ID)},+
  360.                                        {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  361.                                        {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
  362.                                        {MediaType,$(NoTitle),$(!REG_VT_DWORD), $(CardMediaType)}}
  363.                 else
  364.                     set CardMediaType = 2
  365.                     set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  366.                                        {McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(NETCARD_ID)},+
  367.                                        {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  368.                                        {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
  369.                                        {MediaType,$(NoTitle),$(!REG_VT_DWORD), $(CardMediaType)},+
  370.                                        {MaximumPacketSize,$(NoTitle),$(!REG_VT_DWORD), 8192}}
  371.                 endif
  372.                 Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  373.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  374.                     goto ShellCodeError
  375.                 endif
  376.                 set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  377.                 set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  378.                 set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  379.                                     {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  380.                                     {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  381.                                     {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  382.                 Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  383.                 CloseRegKey $(HardNetCardKey)
  384.                 CloseRegKey $(HardNetRuleKey)
  385.                 CloseRegKey $(HardParameterKey)
  386.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  387.                     goto ShellCodeError
  388.                 endif
  389.         endif
  390.     EndForListDo
  391.     goto writeparameters
  392. writeparameters = +
  393.     EndWait
  394.     goto successful
  395. bindingadapter =+
  396.     set Error = "Binding: Sorry, not yet implemented."
  397.     goto fatal
  398. removeadapter = +
  399.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  400.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  401.             $(ProductSoftwareName)
  402.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  403.             Debug-Output "ShellCode error"
  404.             goto ShellCodeError
  405.         endif
  406.         set RegistryErrorIndex = $($R0)
  407.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  408.             goto fatalregistry
  409.         endif
  410.     else
  411.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  412.             $(ProductSoftwareName), $(!NTN_RegBase)
  413.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  414.             Debug-Output "ShellCode error"
  415.             goto ShellCodeError
  416.         endif
  417.         set RegistryErrorIndex = $($R0)
  418.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  419.             goto fatalregistry
  420.         endif
  421.     endif
  422.     goto end
  423. UpgradeSoftware = +
  424.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  425.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  426.         Ifstr $(KeyProduct) != $(KeyNull)
  427.             GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  428.             set Version = *($(VersionInfo), 4)
  429.             Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  430.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  431.                 Debug-Output "ShellCode error"
  432.                 goto ShellCodeError
  433.             endif
  434.             set !UG_Filename = $($R0)
  435.             ifstr(i) $(!UG_Filename) != ""
  436.                 install "Install-Update"
  437.                 ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  438.                     goto fatal
  439.                 endif
  440.             endif
  441.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  442.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  443.             ifint $(Version) != $(ProductVersion)
  444.             endif
  445.             CloseRegKey $(KeyProduct)
  446.         else
  447.             goto fatalregistry
  448.         endif
  449.     else
  450.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  451.               $(MAXIMUM_ALLOWED) NetworkCardKey
  452.         Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  453.             GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  454.             set ServiceName = *($(ServiceNameInfo), 4)
  455.             OpenRegKey $(NetworkCardKey) "" "NetRules" +
  456.                 $(MAXIMUM_ALLOWED) NetRuleKey
  457.             Ifstr(i) $(NetRuleKey) != $(KeyNull)
  458.             else
  459.                 goto fatalregistry
  460.             endif
  461.             CloseRegKey $(NetRules)
  462.             CloseRegKey $(NetworkCardKey)
  463.         else
  464.             goto fatalregistry
  465.         endif
  466.         OpenRegKey $(!REG_H_LOCAL) "" +
  467.               $(!NTN_ServiceBase)"\"$(ServiceName) +
  468.               $(MAXIMUM_ALLOWED) ServiceKey
  469.         Ifstr(i) $(ServiceKey) != $(KeyNull)
  470.             CloseRegKey $(ServiceKey)
  471.         else
  472.             goto fatalregistry
  473.         endif
  474.     endif
  475.     goto end
  476. successful = +
  477.     goto end
  478. abandon = +
  479.     ForListDo $(OEM_ABANDON_OPTIONS)
  480.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  481.             $(ProductSoftwareName), $($)
  482.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  483.             Debug-Output "ShellCode error"
  484.             goto ShellCodeError
  485.         endif
  486.         set RegistryErrorIndex = $($R0)
  487.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  488.             goto fatalregistry
  489.         endif
  490.     EndForListDo
  491.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  492.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  493.             $(ProductSoftwareName), FALSE
  494.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  495.             Debug-Output "ShellCode error"
  496.             goto ShellCodeError
  497.         endif
  498.         set RegistryErrorIndex = $($R0)
  499.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  500.             goto fatalregistry
  501.         endif
  502.     endif
  503.     goto end
  504. warning = +
  505.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  506.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  507.         goto ShellCodeError
  508.     endif
  509.     ifstr(i) $($R1) == "OK"
  510.         goto $(to)
  511.     else-ifstr(i) $($R1) == "CANCEL"
  512.         goto $(from)
  513.     else
  514.         goto "end"
  515.     endif
  516. nonfatalinfo = +
  517.     Set CommonStatus = STATUS_USERCANCEL
  518.     Set Severity = STATUS
  519.     goto nonfatalmsg
  520. nonfatal = +
  521.     Set Severity = NONFATAL
  522.     goto nonfatalmsg
  523. nonfatalmsg = +
  524.     ifstr(i) $(Error) == ""
  525.         Set Severity = NONFATAL
  526.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  527.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  528.             goto ShellCodeError
  529.         endif
  530.         set Error = $($R0)
  531.     endif
  532.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  533.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  534.         goto ShellCodeError
  535.     endif
  536.     ifstr(i) $($R1) == "OK"
  537.         goto $(from)
  538.     else
  539.         goto "end"
  540.     endif
  541. fatalregistry = +
  542.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  543.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  544.         goto ShellCodeError
  545.     endif
  546.     set Error = $($R0)
  547.     goto fatal
  548. fatal = +
  549.     ifstr(i) $(Error) == ""
  550.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  551.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  552.             goto ShellCodeError
  553.         endif
  554.         set Error = $($R0)
  555.     endif
  556.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  557.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  558.         goto ShellCodeError
  559.     endif
  560.     goto setfailed
  561. ShellCodeError = +
  562.     set DlgType      = "MessageBox"
  563.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  564.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  565.     set STF_MB_TYPE  = 1
  566.     set STF_MB_ICON  = 3
  567.     set STF_MB_DEF   = 1
  568.     ui start "Error Message"
  569.     goto setfailed
  570. setfailed = +
  571.     set CommonStatus = STATUS_FAILED
  572.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  573.         set OEM_ABANDON_ON = FALSE
  574.         goto abandon
  575.     endif
  576.     goto end
  577. end = +
  578.     goto term
  579. term = +
  580.     Return $(CommonStatus)
  581. [Install-Option]
  582.     set STF_VITAL = ""
  583.     ifstr(i) $(AddCopy) == "YES"
  584.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  585.     endif
  586.     ifstr(i) $(DoCopy) == "YES"
  587.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  588.        CopyFilesInCopyList
  589.     endif
  590.     ifstr(i) $(DoConfig) == "YES"
  591.     endif
  592.     Exit
  593. [Install-Update]
  594.    set STF_VITAL        = ""
  595.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  596.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  597.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  598.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  599.    CopyFilesInCopyList
  600.    exit
  601. [Source Media Descriptions]
  602.     1    = "Windows NT Advanced Server Setup Disk #1"   , TAGFILE = disk1
  603.     2    = "Windows NT Advanced Server Setup Disk #2"   , TAGFILE = disk2
  604.     3    = "Windows NT Advanced Server Setup Disk #3"   , TAGFILE = disk3
  605.     4    = "Windows NT Advanced Server Setup Disk #4"   , TAGFILE = disk4
  606.     5    = "Windows NT Advanced Server Setup Disk #5"   , TAGFILE = disk5
  607.     6    = "Windows NT Advanced Server Setup Disk #6"   , TAGFILE = disk6
  608.     7    = "Windows NT Advanced Server Setup Disk #7"   , TAGFILE = disk7
  609.     8    = "Windows NT Advanced Server Setup Disk #8"   , TAGFILE = disk8
  610.     9    = "Windows NT Advanced Server Setup Disk #9"   , TAGFILE = disk9
  611.     10    = "Windows NT Advanced Server Setup Disk #10"  , TAGFILE = disk10
  612.     11    = "Windows NT Advanced Server Setup Disk #11"  , TAGFILE = disk11
  613.     12    = "Windows NT Advanced Server Setup Disk #12"  , TAGFILE = disk12
  614.     13    = "Windows NT Advanced Server Setup Disk #13"  , TAGFILE = disk13
  615.     14    = "Windows NT Advanced Server Setup Disk #14"  , TAGFILE = disk14
  616.     15    = "Windows NT Advanced Server Setup Disk #15"  , TAGFILE = disk15
  617.     16    = "Windows NT Advanced Server Setup Disk #16"  , TAGFILE = disk16
  618.     17    = "Windows NT Advanced Server Setup Disk #17"  , TAGFILE = disk17
  619.     18    = "Windows NT Advanced Server Setup Disk #18"  , TAGFILE = disk18
  620.     19    = "Windows NT Advanced Server Setup Disk #19"  , TAGFILE = disk19
  621.     20    = "Windows NT Advanced Server Setup Disk #20"  , TAGFILE = disk20
  622.     21    = "Windows NT Advanced Server Setup Disk #21"  , TAGFILE = disk21
  623.     22    = "Windows NT Advanced Server Setup Disk #22"  , TAGFILE = disk22
  624.     23    = "Windows NT Advanced Server Setup Disk #23"  , TAGFILE = disk23
  625.     24    = "Windows NT Advanced Server Setup Disk #24"  , TAGFILE = disk24
  626.     25    = "Windows NT Advanced Server Setup Disk #25"  , TAGFILE = disk25
  627.     26    = "Windows NT Advanced Server Setup Disk #26"  , TAGFILE = disk26
  628.     27    = "Windows NT Advanced Server Setup Disk #27"  , TAGFILE = disk27
  629.     28    = "Windows NT Advanced Server Setup Disk #28"  , TAGFILE = disk28
  630.     29    = "Windows NT Advanced Server Setup Disk #29"  , TAGFILE = disk29
  631. [ProductType]
  632. STF_PRODUCT  = LanmanNT
  633. STF_PLATFORM = I386
  634. [Files-Inf]
  635. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  636. [Files-BISTOR003EA]
  637. 22,SMC8000N.SYS , SIZE=36864
  638. [Files-BISTOR013EA]
  639. 22,SMC8000N.SYS , SIZE=36864
  640. [Files-BISTOR013WA]
  641. 22,SMC8000N.SYS , SIZE=36864
  642. [Files-WD8003EA]
  643. 22,SMC8000N.SYS , SIZE=36864
  644. [Files-WD8003SA]
  645. 22,SMC8000N.SYS , SIZE=36864
  646. [Files-WD8003WA]
  647. 22,SMC8000N.SYS , SIZE=36864
  648. [Files-WD8013EPA]
  649. 22,SMC8000N.SYS , SIZE=36864
  650. [Files-WD8013WPA]
  651. 22,SMC8000N.SYS , SIZE=36864
  652. [Files-WD8115TRA]
  653. 22,SMC8000N.SYS , SIZE=36864
  654. [LanguagesSupported]
  655.     ENG
  656. [OptionsTextENG]
  657.     WD8003EA = "SMC (WD) 8003E /A"
  658.     WD8003WA = "SMC (WD) 8003W /A"
  659.     WD8013WPA = "SMC (WD) 8013WP /A"
  660.     WD8013EPA = "SMC (WD) 8013EP /A"
  661. [FileConstantsENG]
  662. FunctionTitle   = "SMC (WD) "$(Option)" Adapter Card Setup"
  663. ProductSoftwareDescription      = "SMC (WD) Adapter Driver"
  664. ProductHardwareDescription      = "SMC (WD) "$(Option)" Adapter"
  665. CANNOT_FIND_ANY_CARD            = "Network card is not present in the system"
  666. ProductSoftwareTitle    = "SMC (WD) Adapter Driver"
  667. ProductHardwareTitle    = "SMC (WD) "$(Option)" Adapter"
  668. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  669. ShellCodeErrorText      = "Shell Code Error."
  670. [DialogConstantsENG]
  671. Help        = "&Help"
  672. Exit        = "Cancel"
  673. OK          = "OK"
  674. HelpContext = ""
  675. Continue    = "C&ontinue"
  676. Cancel      = "C&ancel"
  677. [FileDependentDlgENG]
  678.  
  679.  
  680.  
  681.