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

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