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

  1. [Identification]
  2.     OptionType = NetAdapter
  3. [PlatformsSupported]
  4.     EISA
  5.         "Jazz-Internal Bus"
  6. [Options]
  7.     NE3200
  8. [FileConstants]
  9. UtilityInf      = "UTILITY.INF"
  10. subroutineinf   = "SUBROUTN.INF"
  11. SoftwareType    = "driver"
  12. Exit_Code       = 0
  13. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  14. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  15. NE3200_1BYTE    = 511034
  16. Manufacturer    = "Microsoft"
  17. ProductMajorVersion     = "3"
  18. ProductMinorVersion     = "1"
  19. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  20. ProductSoftwareName     = "NE3200"
  21. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\ne3200.sys"
  22. NetRuleSoftwareType     = "ne3200Sys ndisDriver ne3200Driver"
  23. NetRuleSoftwareUse      = $(SoftwareType)
  24. NetRuleSoftwareBindForm = """Ne3200Sys"" yes no container"
  25. NetRuleSoftwareClass    = {"ne3200Driver basic"}
  26. NetRuleSoftwareBindable = {"ne3200Driver ne3200Adapter non exclusive 100"}
  27. ProductHardwareName     = "NE3200"
  28. NetRuleHardwareType     = "ne3200 ne3200Adapter"
  29. NetRuleHardwareBindForm = " yes yes container"
  30. NetRuleHardwareClass    = {"ne3200Adapter basic"}
  31. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  32. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  33. [GeneralConstants]
  34. from      = ""
  35. to        = ""
  36. ExitCodeOk     = 0
  37. ExitCodeCancel = 1
  38. ExitCodeFatal  = 2
  39. KeyNull         = ""
  40. MAXIMUM_ALLOWED   = 33554432
  41. RegistryErrorIndex = NO_ERROR
  42. KeyProduct      = ""
  43. KeyParameters   = ""
  44. TRUE            = 1
  45. FALSE           = 0
  46. NoTitle            = 0
  47. ExitState   = "Active"
  48. OldVersionExisted = $(FALSE)
  49. DriverPath      = $(!STF_NTPATH)\drivers
  50. [date]
  51.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  52. [Identify]
  53.     read-syms Identification
  54.     set Status     = STATUS_SUCCESSFUL
  55.     set Identifier = $(OptionType)
  56.     set Media      = #("Source Media Descriptions", 1, 1)
  57.     Return $(Status) $(Identifier) $(Media)
  58. [ReturnOptions]
  59.     set Status        = STATUS_FAILED
  60.     set OptionList     = {}
  61.     set OptionTextList = {}
  62.     set LanguageList = ^(LanguagesSupported, 1)
  63.     Ifcontains(i) $($0) in $(LanguageList)
  64.         ifstr(i) $($1) == ""
  65.            goto returnoptions
  66.         endif
  67.         set PlatformList = ^(PlatformsSupported, 1)
  68.         Ifcontains(i) $($1) in $(PlatformList)
  69.            goto returnoptions
  70.         else
  71.            set Status = STATUS_NOTSUPPORTED
  72.            goto finish_ReturnOptions
  73.         endif
  74.     else
  75.         set Status = STATUS_NOLANGUAGE
  76.         goto finish_ReturnOptions
  77.     endif
  78. returnoptions = +
  79.     set OptionList     = ^(Options, 1)
  80.     set OptionTextList = ^(OptionsText$($0), 1)
  81.     set Status         = STATUS_SUCCESSFUL
  82. finish_ReturnOptions = +
  83.     Return $(Status) $(OptionList) $(OptionTextList)
  84. [InstallOption]
  85.     set Option   = $($1)
  86.     set SrcDir   = $($2)
  87.     set AddCopy  = $($3)
  88.     set DoCopy   = $($4)
  89.     set DoConfig = $($5)
  90.     set LanguageList = ^(LanguagesSupported, 1)
  91.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  92.         Return STATUS_NOLANGUAGE
  93.     endif
  94.     Debug-Output "OEMNADNE.INF: STF_CWDIR is: "$(!STF_CWDIR)
  95.     Debug-Output "OEMNADNE.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  96.     set-subst LF = "\n"
  97.     read-syms GeneralConstants
  98.     read-syms FileConstants
  99.     read-syms DialogConstants$(!STF_LANGUAGE)
  100.     ifstr(i) $(!NTN_Origination) == "NCPA"
  101.         set Continue = $(OK)
  102.     endif
  103.     read-syms FileConstants$(!STF_LANGUAGE)
  104.     detect date
  105.     set-title  $(FunctionTitle)
  106.     set to   = Begin
  107.     set from = Begin
  108.     set CommonStatus = STATUS_SUCCESSFUL
  109.     EndWait
  110. Begin = +
  111.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  112.         set StartLabel = removeadapter
  113.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  114.         set StartLabel = UpgradeSoftware
  115.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  116.         set StartLabel = bindingadapter
  117.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  118.         set CommonStatus = STATUS_REBOOT
  119.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  120.             Debug-Output "Cannot configure the novell 3200 driver software."
  121.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  122.         else
  123.             Debug-Output "Cannot configure the novell 3200 adapter card."
  124.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_HARDWARE
  125.         endif
  126.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  127.             Debug-Output "ShellCode error: cannot get an error string."
  128.             goto ShellCodeError
  129.         endif
  130.         set Error = $($R0)
  131.         set from = end
  132.         set to = end
  133.         goto nonfatalinfo
  134.     else
  135.         set StartLabel = installadapter
  136.         set OEM_ABANDON_OPTIONS = {}
  137.         set OEM_ABANDON_SOFTWARE = FALSE
  138.         set OEM_ABANDON_ON = TRUE
  139.     endif
  140.     set from = $(fatal)
  141.     set to = $(fatal)
  142.     goto $(StartLabel)
  143. installadapter = +
  144.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  145.     Ifstr $(KeyProduct) != $(KeyNull)
  146.         CloseRegKey $(KeyProduct)
  147.         ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  148.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  149.                $(ProductVersion)
  150.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  151.                Debug-Output "ShellCode error: cannot get an error string."
  152.                goto ShellCodeError
  153.            endif
  154.            goto end
  155.         else
  156.            Shell $(UtilityInf), CardExistedDlg
  157.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  158.                Debug-Output "ShellCode error: cannot get an error string."
  159.                goto ShellCodeError
  160.            endif
  161.            ifstr(i) $($R1) != "OK"
  162.                set CommonStatus = STATUS_USERCANCEL
  163.                goto end
  164.            endif
  165.            set OldVersionExisted = $(TRUE)
  166.         endif
  167.     endif
  168.     CloseRegKey $(KeyProduct)
  169.     goto nextstep
  170. configureadapter = +
  171.     set Error = "Configure: Sorry, not yet implemented."
  172.     goto fatal
  173. nextstep = +
  174.     StartWait
  175.     Shell $(UtilityInf), EISAFindBus, $(NE3200_1BYTE)
  176.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  177.         goto ShellCodeError
  178.     endif
  179.     ifstr $($R0) != "NO_ERROR"
  180.         set Error = $($R0)
  181.         goto fatal
  182.     endif
  183.     ifstr(i) $($R1) == {}
  184.         set Error = $(CANNOT_FIND_ANY_CARD)
  185.         set CommonStatus = STATUS_USERCANCEL
  186.         set from = "end"
  187.         goto nonfatal
  188.     endif
  189.     set AdapterList = $($R1)
  190.     ifint $(OldVersionExisted) == $(FALSE)
  191.         ifstr(i) $(!NTN_InstallMode) == "install"
  192.            Ifstr(i) $(DoCopy) == "YES"
  193.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  194.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  195.                   Goto ShellCodeError
  196.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  197.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  198.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  199.                       goto ShellCodeError
  200.                   endif
  201.                   set Error = $($R0)
  202.                   Goto fatal
  203.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  204.                   Goto successful
  205.               Endif
  206.               Set SrcDir = $($R1)
  207.            Endif
  208.            install "Install-Option"
  209.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  210.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  211.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  212.                   goto ShellCodeError
  213.               endif
  214.               set Error = $($R0)
  215.               goto fatal
  216.            endif
  217.         endif
  218.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  219.             $(ProductSoftwareName), +
  220.             $(ProductSoftwareName), +
  221.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  222.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  223.             $(NetEventDLL)
  224.         Set OEM_ABANDON_SOFTWARE = TRUE
  225.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  226.             goto ShellCodeError
  227.         endif
  228.         set RegistryErrorIndex = $($R0)
  229.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  230.             EndWait
  231.             CloseRegKey $($R1)
  232.             CloseRegKey $($R2)
  233.             CloseRegKey $($R3)
  234.             CloseRegKey $($R4)
  235.             CloseRegKey $($R5)
  236.             goto fatalregistry
  237.         endif
  238.         set SoftProductKey      = $($R1)
  239.         Set SoftNetRuleKey      = $($R2)
  240.         Set SoftServiceKey      = $($R3)
  241.         Set SoftParameterKey    = $($R4)
  242.         Set SoftLinkageKey      = $($R5)
  243.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  244.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  245.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  246.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  247.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  248.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  249.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  250.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  251.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  252.             goto ShellCodeError
  253.         endif
  254.         set RegistryErrorIndex = $($R0)
  255.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  256.             EndWait
  257.             CloseRegKey $(SoftProductKey)
  258.             CloseRegKey $(SoftNetRuleKey)
  259.             CloseRegKey $(SoftServiceKey)
  260.             CloseRegKey $(SoftParameterKey)
  261.             CloseRegKey $(SoftLinkageKey)
  262.             goto fatalregistry
  263.         endif
  264.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  265.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  266.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  267.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  268.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  269.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  270.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  271.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  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.             goto fatalregistry
  283.         endif
  284.     endif
  285.     ForListDo $(AdapterList)
  286.         set BusNum = *($($),1)
  287.         set SlotNum = *($($),2)
  288.         Debug-Output $(BusNum)
  289.         Debug-Output $(SlotNum)
  290.         Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
  291.             $(SlotNum), $(ProductHardwareDescription), $(ProductHardwareName)
  292.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  293.             goto ShellCodeError
  294.         endif
  295.         ifstr $($R0) != "NO_ERROR"
  296.             set Error = $($R0)
  297.             goto fatal
  298.         endif
  299.         ifstr(i) $($R1) != "YES"
  300.                 Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  301.                 ifint $($R4) != -1
  302.                     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  303.                 endif
  304.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  305.                     goto ShellCodeError
  306.                 endif
  307.                 set RegistryErrorIndex = $($R0)
  308.                 Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  309.                     EndWait
  310.                     CloseRegKey $($R1)
  311.                     CloseRegKey $($R2)
  312.                     CloseRegKey $($R3)
  313.                     goto fatalregistry
  314.                 endif
  315.                 Set HardNetCardKey      = $($R1)
  316.                 Set HardNetRuleKey      = $($R2)
  317.                 Set HardParameterKey    = $($R3)
  318.                 set AdapterNumber       = $($R4)
  319.                 set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  320.                                    {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  321.                                    {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  322.                                    {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  323.                                    {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  324.                                    {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  325.                 Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  326.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  327.                     goto ShellCodeError
  328.                 endif
  329.                 set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  330.                                    {BusType,$(NoTitle),$(!REG_VT_DWORD),2},+
  331.                                    {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  332.                                    {EisaCompressedId,$(NoTitle),$(!REG_VT_DWORD),$(NE3200_1BYTE)},+
  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. nonfatalinfo = +
  479.     Set CommonStatus = STATUS_USERCANCEL
  480.     Set Severity = STATUS
  481.     goto nonfatalmsg
  482. nonfatal = +
  483.     Set Severity = NONFATAL
  484.     goto nonfatalmsg
  485. nonfatalmsg = +
  486.     ifstr(i) $(Error) == ""
  487.         Set Severity = NONFATAL
  488.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  489.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  490.             goto ShellCodeError
  491.         endif
  492.         set Error = $($R0)
  493.     endif
  494.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  495.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  496.         goto ShellCodeError
  497.     endif
  498.     ifstr(i) $($R1) == "OK"
  499.         goto $(from)
  500.     else
  501.         goto "end"
  502.     endif
  503. fatalregistry = +
  504.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  505.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  506.         goto ShellCodeError
  507.     endif
  508.     set Error = $($R0)
  509.     goto fatal
  510. fatal = +
  511.     ifstr(i) $(Error) == ""
  512.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  513.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  514.             goto ShellCodeError
  515.         endif
  516.         set Error = $($R0)
  517.     endif
  518.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  519.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  520.         goto ShellCodeError
  521.     endif
  522.     goto setfailed
  523. ShellCodeError = +
  524.     set DlgType      = "MessageBox"
  525.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  526.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  527.     set STF_MB_TYPE  = 1
  528.     set STF_MB_ICON  = 3
  529.     set STF_MB_DEF   = 1
  530.     ui start "Error Message"
  531.     goto setfailed
  532. setfailed = +
  533.     set CommonStatus = STATUS_FAILED
  534.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  535.         set OEM_ABANDON_ON = FALSE
  536.         goto abandon
  537.     endif
  538.     goto end
  539. end = +
  540.     goto term
  541. term = +
  542.     Return $(CommonStatus)
  543. [Install-Option]
  544.     set STF_VITAL = ""
  545.     ifstr(i) $(AddCopy) == "YES"
  546.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  547.     endif
  548.     ifstr(i) $(DoCopy) == "YES"
  549.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  550.        CopyFilesInCopyList
  551.     endif
  552.     ifstr(i) $(DoConfig) == "YES"
  553.     endif
  554.     Exit
  555. [Install-Update]
  556.    set STF_VITAL        = ""
  557.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  558.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  559.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  560.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  561.    CopyFilesInCopyList
  562.    exit
  563. [Source Media Descriptions]
  564.     1    = "Windows NT Advanced Server Setup Disk #1"   , TAGFILE = disk1
  565.     2    = "Windows NT Advanced Server Setup Disk #2"   , TAGFILE = disk2
  566.     3    = "Windows NT Advanced Server Setup Disk #3"   , TAGFILE = disk3
  567.     4    = "Windows NT Advanced Server Setup Disk #4"   , TAGFILE = disk4
  568.     5    = "Windows NT Advanced Server Setup Disk #5"   , TAGFILE = disk5
  569.     6    = "Windows NT Advanced Server Setup Disk #6"   , TAGFILE = disk6
  570.     7    = "Windows NT Advanced Server Setup Disk #7"   , TAGFILE = disk7
  571.     8    = "Windows NT Advanced Server Setup Disk #8"   , TAGFILE = disk8
  572.     9    = "Windows NT Advanced Server Setup Disk #9"   , TAGFILE = disk9
  573.     10    = "Windows NT Advanced Server Setup Disk #10"  , TAGFILE = disk10
  574.     11    = "Windows NT Advanced Server Setup Disk #11"  , TAGFILE = disk11
  575.     12    = "Windows NT Advanced Server Setup Disk #12"  , TAGFILE = disk12
  576.     13    = "Windows NT Advanced Server Setup Disk #13"  , TAGFILE = disk13
  577.     14    = "Windows NT Advanced Server Setup Disk #14"  , TAGFILE = disk14
  578.     15    = "Windows NT Advanced Server Setup Disk #15"  , TAGFILE = disk15
  579.     16    = "Windows NT Advanced Server Setup Disk #16"  , TAGFILE = disk16
  580.     17    = "Windows NT Advanced Server Setup Disk #17"  , TAGFILE = disk17
  581.     18    = "Windows NT Advanced Server Setup Disk #18"  , TAGFILE = disk18
  582.     19    = "Windows NT Advanced Server Setup Disk #19"  , TAGFILE = disk19
  583.     20    = "Windows NT Advanced Server Setup Disk #20"  , TAGFILE = disk20
  584.     21    = "Windows NT Advanced Server Setup Disk #21"  , TAGFILE = disk21
  585.     22    = "Windows NT Advanced Server Setup Disk #22"  , TAGFILE = disk22
  586.     23    = "Windows NT Advanced Server Setup Disk #23"  , TAGFILE = disk23
  587.     24    = "Windows NT Advanced Server Setup Disk #24"  , TAGFILE = disk24
  588.     25    = "Windows NT Advanced Server Setup Disk #25"  , TAGFILE = disk25
  589.     26    = "Windows NT Advanced Server Setup Disk #26"  , TAGFILE = disk26
  590.     27    = "Windows NT Advanced Server Setup Disk #27"  , TAGFILE = disk27
  591.     28    = "Windows NT Advanced Server Setup Disk #28"  , TAGFILE = disk28
  592.     29    = "Windows NT Advanced Server Setup Disk #29"  , TAGFILE = disk29
  593. [ProductType]
  594. STF_PRODUCT  = LanmanNT
  595. STF_PLATFORM = I386
  596. [Files-Inf]
  597. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  598. [Files-NE3200]
  599. 22,NE3200.SYS , SIZE=38400
  600. [LanguagesSupported]
  601.     ENG
  602. [OptionsTextENG]
  603.     NE3200     = "Novell NE3200 EISA Adapter"
  604. [FileConstantsENG]
  605. ProCaption   = "Windows NT Setup"
  606. ProCancel    = "Cancel"
  607. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  608.                "Are you sure you want to cancel copying files?"
  609. ProCancelCap = "Network Setup Message"
  610. ProText1     = "Copying:"
  611. ProText2     = "To:"
  612. FunctionTitle   = "Novell 3200 EISA Adapter Card Setup"
  613. ProductSoftwareDescription      = "Novell 3200 Adapter Driver"
  614. ProductHardwareDescription      = "Novell NE3200 EISA Adapter"
  615. CANNOT_FIND_ANY_CARD            = "Network card is not present in the system"
  616. ProductSoftwareTitle    = "Novell 3200 Adapter Driver"
  617. ProductHardwareTitle    = "Novell NE3200 EISA Adapter"
  618. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  619. ShellCodeErrorText      = "Shell Code Error."
  620. [DialogConstantsENG]
  621. Help        = "&Help"
  622. Exit        = "Cancel"
  623. OK          = "OK"
  624. HelpContext = ""
  625. Continue    = "Continue"
  626. Cancel      = "Cancel"
  627. [FileDependentDlgENG]
  628.  
  629.  
  630.  
  631.