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

  1. [Identification]
  2.     OptionType = NetAdapter
  3. [PlatformsSupported]
  4.     MCA
  5. [Options]
  6.     UBPS
  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. UBPS_1BYTE      = 18
  15. UBPS_2BYTE      = 112
  16. NETCARD_ID      = 28690
  17. Manufacturer    = "Microsoft"
  18. ProductMajorVersion     = "3"
  19. ProductMinorVersion     = "1"
  20. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  21. ProductSoftwareName     = "UB"
  22. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\ubnei.sys"
  23. NetRuleSoftwareType     = "ubneiSys ndisDriver ubDriver"
  24. NetRuleSoftwareUse      = $(SoftwareType)
  25. NetRuleSoftwareBindForm = """UbneiSys"" yes no container"
  26. NetRuleSoftwareClass    = {"ubDriver basic"}
  27. NetRuleSoftwareBindable = {"ubDriver ubAdapter non exclusive 100"}
  28. ProductHardwareName     = "UB"
  29. NetRuleHardwareType     = "ub ubAdapter"
  30. NetRuleHardwareBindForm = " yes yes container"
  31. NetRuleHardwareClass    = {"ubAdapter 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 "OEMNADUM.INF: STF_CWDIR is: "$(!STF_CWDIR)
  96.     Debug-Output "OEMNADUM.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 ubps driver software."
  119.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  120.         else
  121.             Debug-Output "Cannot configure the ubps 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, $(UBPS_1BYTE), $(UBPS_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.                                 {CardType,$(NoTitle),$(!REG_VT_DWORD),3},+
  336.                                 {McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(NETCARD_ID)},+
  337.                                 {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  338.                                 {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)}}
  339.                 Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  340.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  341.                     goto ShellCodeError
  342.                 endif
  343.                 set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  344.                 set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  345.                 set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  346.                                     {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  347.                                     {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  348.                                     {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  349.                 Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  350.                 CloseRegKey $(HardNetCardKey)
  351.                 CloseRegKey $(HardNetRuleKey)
  352.                 CloseRegKey $(HardParameterKey)
  353.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  354.                     goto ShellCodeError
  355.                 endif
  356.          endif
  357.     EndForListDo
  358.     goto writeparameters
  359. writeparameters = +
  360.     EndWait
  361.     goto successful
  362. bindingadapter =+
  363.     set Error = "Binding: Not Implmemented yet"
  364.     goto fatal
  365. removeadapter = +
  366.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  367.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  368.             $(ProductSoftwareName)
  369.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  370.             Debug-Output "ShellCode error"
  371.             goto ShellCodeError
  372.         endif
  373.         set RegistryErrorIndex = $($R0)
  374.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  375.             goto fatalregistry
  376.         endif
  377.     else
  378.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  379.             $(ProductSoftwareName), $(!NTN_RegBase)
  380.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  381.             Debug-Output "ShellCode error"
  382.             goto ShellCodeError
  383.         endif
  384.         set RegistryErrorIndex = $($R0)
  385.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  386.             goto fatalregistry
  387.         endif
  388.     endif
  389.     goto end
  390. UpgradeSoftware = +
  391.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  392.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  393.         Ifstr $(KeyProduct) != $(KeyNull)
  394.             GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  395.             set Version = *($(VersionInfo), 4)
  396.             Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  397.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  398.                 Debug-Output "ShellCode error"
  399.                 goto ShellCodeError
  400.             endif
  401.             set !UG_Filename = $($R0)
  402.             ifstr(i) $(!UG_Filename) != ""
  403.                 install "Install-Update"
  404.                 ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  405.                     goto fatal
  406.                 endif
  407.             endif
  408.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  409.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  410.             ifint $(Version) != $(ProductVersion)
  411.             endif
  412.             CloseRegKey $(KeyProduct)
  413.         else
  414.             goto fatalregistry
  415.         endif
  416.     else
  417.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  418.               $(MAXIMUM_ALLOWED) NetworkCardKey
  419.         Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  420.             GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  421.             set ServiceName = *($(ServiceNameInfo), 4)
  422.             OpenRegKey $(NetworkCardKey) "" "NetRules" +
  423.                 $(MAXIMUM_ALLOWED) NetRuleKey
  424.             Ifstr(i) $(NetRuleKey) != $(KeyNull)
  425.             else
  426.                 goto fatalregistry
  427.             endif
  428.             CloseRegKey $(NetRules)
  429.             CloseRegKey $(NetworkCardKey)
  430.         else
  431.             goto fatalregistry
  432.         endif
  433.         OpenRegKey $(!REG_H_LOCAL) "" +
  434.               $(!NTN_ServiceBase)"\"$(ServiceName) +
  435.               $(MAXIMUM_ALLOWED) ServiceKey
  436.         Ifstr(i) $(ServiceKey) != $(KeyNull)
  437.             CloseRegKey $(ServiceKey)
  438.         else
  439.             goto fatalregistry
  440.         endif
  441.     endif
  442.     goto end
  443. successful = +
  444.     goto end
  445. abandon = +
  446.     ForListDo $(OEM_ABANDON_OPTIONS)
  447.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  448.             $(ProductSoftwareName), $($)
  449.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  450.             Debug-Output "ShellCode error"
  451.             goto ShellCodeError
  452.         endif
  453.         set RegistryErrorIndex = $($R0)
  454.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  455.             goto fatalregistry
  456.         endif
  457.     EndForListDo
  458.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  459.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  460.             $(ProductSoftwareName), FALSE
  461.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  462.             Debug-Output "ShellCode error"
  463.             goto ShellCodeError
  464.         endif
  465.         set RegistryErrorIndex = $($R0)
  466.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  467.             goto fatalregistry
  468.         endif
  469.     endif
  470.     goto end
  471. warning = +
  472.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  473.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  474.         goto ShellCodeError
  475.     endif
  476.     ifstr(i) $($R1) == "OK"
  477.         goto $(to)
  478.     else-ifstr(i) $($R1) == "CANCEL"
  479.         goto $(from)
  480.     else
  481.         goto "end"
  482.     endif
  483. nonfatalinfo = +
  484.     Set CommonStatus = STATUS_USERCANCEL
  485.     Set Severity = STATUS
  486.     goto nonfatalmsg
  487. nonfatal = +
  488.     Set Severity = NONFATAL
  489.     goto nonfatalmsg
  490. nonfatalmsg = +
  491.     ifstr(i) $(Error) == ""
  492.         Set Severity = NONFATAL
  493.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  494.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  495.             goto ShellCodeError
  496.         endif
  497.         set Error = $($R0)
  498.     endif
  499.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  500.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  501.         goto ShellCodeError
  502.     endif
  503.     ifstr(i) $($R1) == "OK"
  504.         goto $(from)
  505.     else
  506.         goto "end"
  507.     endif
  508. fatalregistry = +
  509.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  510.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  511.         goto ShellCodeError
  512.     endif
  513.     set Error = $($R0)
  514.     goto fatal
  515. fatal = +
  516.     ifstr(i) $(Error) == ""
  517.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  518.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  519.             goto ShellCodeError
  520.         endif
  521.         set Error = $($R0)
  522.     endif
  523.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  524.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  525.         goto ShellCodeError
  526.     endif
  527.     goto setfailed
  528. ShellCodeError = +
  529.     set DlgType      = "MessageBox"
  530.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  531.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  532.     set STF_MB_TYPE  = 1
  533.     set STF_MB_ICON  = 3
  534.     set STF_MB_DEF   = 1
  535.     ui start "Error Message"
  536.     goto setfailed
  537. setfailed = +
  538.     set CommonStatus = STATUS_FAILED
  539.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  540.         set OEM_ABANDON_ON = FALSE
  541.         goto abandon
  542.     endif
  543.     goto end
  544. end = +
  545.     goto term
  546. term = +
  547.     Return $(CommonStatus)
  548. [Install-Option]
  549.     set STF_VITAL = ""
  550.     ifstr(i) $(AddCopy) == "YES"
  551.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  552.     endif
  553.     ifstr(i) $(DoCopy) == "YES"
  554.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  555.        CopyFilesInCopyList
  556.     endif
  557.     ifstr(i) $(DoConfig) == "YES"
  558.     endif
  559.     Exit
  560. [Install-Update]
  561.    set STF_VITAL        = ""
  562.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  563.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  564.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  565.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  566.    CopyFilesInCopyList
  567.    exit
  568. [Source Media Descriptions]
  569.     1    = "Windows NT Advanced Server Setup Disk #1"   , TAGFILE = disk1
  570.     2    = "Windows NT Advanced Server Setup Disk #2"   , TAGFILE = disk2
  571.     3    = "Windows NT Advanced Server Setup Disk #3"   , TAGFILE = disk3
  572.     4    = "Windows NT Advanced Server Setup Disk #4"   , TAGFILE = disk4
  573.     5    = "Windows NT Advanced Server Setup Disk #5"   , TAGFILE = disk5
  574.     6    = "Windows NT Advanced Server Setup Disk #6"   , TAGFILE = disk6
  575.     7    = "Windows NT Advanced Server Setup Disk #7"   , TAGFILE = disk7
  576.     8    = "Windows NT Advanced Server Setup Disk #8"   , TAGFILE = disk8
  577.     9    = "Windows NT Advanced Server Setup Disk #9"   , TAGFILE = disk9
  578.     10    = "Windows NT Advanced Server Setup Disk #10"  , TAGFILE = disk10
  579.     11    = "Windows NT Advanced Server Setup Disk #11"  , TAGFILE = disk11
  580.     12    = "Windows NT Advanced Server Setup Disk #12"  , TAGFILE = disk12
  581.     13    = "Windows NT Advanced Server Setup Disk #13"  , TAGFILE = disk13
  582.     14    = "Windows NT Advanced Server Setup Disk #14"  , TAGFILE = disk14
  583.     15    = "Windows NT Advanced Server Setup Disk #15"  , TAGFILE = disk15
  584.     16    = "Windows NT Advanced Server Setup Disk #16"  , TAGFILE = disk16
  585.     17    = "Windows NT Advanced Server Setup Disk #17"  , TAGFILE = disk17
  586.     18    = "Windows NT Advanced Server Setup Disk #18"  , TAGFILE = disk18
  587.     19    = "Windows NT Advanced Server Setup Disk #19"  , TAGFILE = disk19
  588.     20    = "Windows NT Advanced Server Setup Disk #20"  , TAGFILE = disk20
  589.     21    = "Windows NT Advanced Server Setup Disk #21"  , TAGFILE = disk21
  590.     22    = "Windows NT Advanced Server Setup Disk #22"  , TAGFILE = disk22
  591.     23    = "Windows NT Advanced Server Setup Disk #23"  , TAGFILE = disk23
  592.     24    = "Windows NT Advanced Server Setup Disk #24"  , TAGFILE = disk24
  593.     25    = "Windows NT Advanced Server Setup Disk #25"  , TAGFILE = disk25
  594.     26    = "Windows NT Advanced Server Setup Disk #26"  , TAGFILE = disk26
  595.     27    = "Windows NT Advanced Server Setup Disk #27"  , TAGFILE = disk27
  596.     28    = "Windows NT Advanced Server Setup Disk #28"  , TAGFILE = disk28
  597.     29    = "Windows NT Advanced Server Setup Disk #29"  , TAGFILE = disk29
  598. [ProductType]
  599. STF_PRODUCT  = LanmanNT
  600. STF_PLATFORM = I386
  601. [Files-Inf]
  602. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  603. [Files-UBPC]
  604. 22,UBNEI.SYS , SIZE=36352
  605. [Files-UBPCEOTP]
  606. 22,UBNEI.SYS , SIZE=36352
  607. [Files-UBPS]
  608. 22,UBNEI.SYS , SIZE=36352
  609. [LanguagesSupported]
  610.     ENG
  611. [OptionsTextENG]
  612.     UBPS     = "Ungermann-Bass Ethernet NIUps 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   = "Ungermann-Bass Adapter Card Setup"
  622. ProductSoftwareDescription      = "Ungermann-Bass Adapter Driver"
  623. ProductHardwareDescription      = "Ungermann-Bass Ethernet NIUps Adapter"
  624. CANNOT_FIND_ANY_CARD            = "Network card is not present in the system"
  625. ProductSoftwareTitle    = "Ungermann-Bass Driver"
  626. ProductHardwareTitle    = "Ungermann-Bass Ethernet NIUps Adapter"
  627. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  628. ShellCodeErrorText      = "Shell Code Error."
  629. [DialogConstantsENG]
  630. Help        = "&Help"
  631. Exit        = "Cancel"
  632. OK          = "OK"
  633. HelpContext = ""
  634. Continue    = "C&ontinue"
  635. Cancel      = "C&ancel"
  636. [FileDependentDlgENG]
  637.  
  638.  
  639.  
  640.