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

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