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

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