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

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