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

  1. [Identification]
  2.     OptionType = NetAdapter
  3. [PlatformsSupported]
  4.     ISA
  5.     EISA
  6.         "Jazz-Internal Bus"
  7. [Options]
  8.     P1390
  9. [IRQ_Level]
  10. IRQ_3 = "3"
  11. IRQ_4 = "4"
  12. IRQ_5 = "5"
  13. IRQ_6 = "6"
  14. IRQ_7 = "7"
  15. IRQ_9 = "9"
  16. IRQ_10 = "10"
  17. IRQ_11 = "11"
  18. IRQ_12 = "12"
  19. [IOAddrChoices]
  20. IOAddr_1 = "0x0A20", 2592
  21. IOAddr_2 = "0x1A20", 6688
  22. IOAddr_3 = "0x2A20", 10784
  23. IOAddr_4 = "0x3A20", 14880
  24. IOAddr_5 = "0x4A20", 18976
  25. IOAddr_6 = "0x5A20", 23072
  26. [DMAChoices]
  27. DMA_5 = 5
  28. DMA_6 = 6
  29. DMA_7 = 7
  30. [FileConstants]
  31. UtilityInf      = "UTILITY.INF"
  32. subroutineinf   = "SUBROUTN.INF"
  33. SoftwareType    = "driver"
  34. Exit_Code       = 0
  35. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  36. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  37. IOBaseAddressList  = ^(IOAddrChoices, 1)
  38. IOBaseAddressValue = ^(IOAddrChoices, 2)
  39. IRQ_List = ^(IRQ_Level, 1)
  40. DMA_List = ^(DMAChoices, 1)
  41. Manufacturer    = "Microsoft"
  42. ProductMajorVersion     = "3"
  43. ProductMinorVersion     = "1"
  44. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  45. ProductSoftwareName     = "Proteon"
  46. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\proteon.sys"
  47. NetRuleSoftwareType     = "proteonSys ndisDriver proteonDriver"
  48. NetRuleSoftwareUse      = $(SoftwareType)
  49. NetRuleSoftwareBindForm = """ProteonSys"" yes no container"
  50. NetRuleSoftwareClass    = {"proteonDriver basic"}
  51. ProductHardwareName     = "Proteon"
  52. NetRuleHardwareType     = "p1390 p1390Adapter"
  53. NetRuleHardwareBindForm = " yes yes container"
  54. NetRuleHardwareClass    = {"p1390Adapter basic"}
  55. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  56. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  57. [GeneralConstants]
  58. from      = ""
  59. to        = ""
  60. ExitCodeOk     = 0
  61. ExitCodeCancel = 1
  62. ExitCodeFatal  = 2
  63. KeyNull         = ""
  64. MAXIMUM_ALLOWED   = 33554432
  65. RegistryErrorIndex = NO_ERROR
  66. KeyProduct      = ""
  67. KeyParameters   = ""
  68. TRUE            = 1
  69. FALSE           = 0
  70. NoTitle            = 0
  71. ExitState   = "Active"
  72. OldVersionExisted = $(FALSE)
  73. DriverPath      = $(!STF_NTPATH)\drivers
  74. [date]
  75.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  76. [Identify]
  77.     read-syms Identification
  78.     set Status     = STATUS_SUCCESSFUL
  79.     set Identifier = $(OptionType)
  80.     set Media      = #("Source Media Descriptions", 1, 1)
  81.     Return $(Status) $(Identifier) $(Media)
  82. [ReturnOptions]
  83.     set Status        = STATUS_FAILED
  84.     set OptionList     = {}
  85.     set OptionTextList = {}
  86.     set LanguageList = ^(LanguagesSupported, 1)
  87.     Ifcontains(i) $($0) in $(LanguageList)
  88.         ifstr(i) $($1) == ""
  89.            goto returnoptions
  90.         endif
  91.         set PlatformList = ^(PlatformsSupported, 1)
  92.         Ifcontains(i) $($1) in $(PlatformList)
  93.            goto returnoptions
  94.         else
  95.            set Status = STATUS_NOTSUPPORTED
  96.            goto finish_ReturnOptions
  97.         endif
  98.     else
  99.         set Status = STATUS_NOLANGUAGE
  100.         goto finish_ReturnOptions
  101.     endif
  102. returnoptions = +
  103.     set OptionList     = ^(Options, 1)
  104.     set OptionTextList = ^(OptionsText$($0), 1)
  105.     set Status         = STATUS_SUCCESSFUL
  106. finish_ReturnOptions = +
  107.     Return $(Status) $(OptionList) $(OptionTextList)
  108. [InstallOption]
  109.     set Option   = $($1)
  110.     set SrcDir   = $($2)
  111.     set AddCopy  = $($3)
  112.     set DoCopy   = $($4)
  113.     set DoConfig = $($5)
  114.     set LanguageList = ^(LanguagesSupported, 1)
  115.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  116.         Return STATUS_NOLANGUAGE
  117.     endif
  118.     Debug-Output "OEMNADP3.INF: STF_CWDIR is: "$(!STF_CWDIR)
  119.     Debug-Output "OEMNADP3.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  120.     set-subst LF = "\n"
  121.     read-syms GeneralConstants
  122.     read-syms FileConstants
  123.     Shell $(UtilityInf), GetBindingInfo, "PROTEON"
  124.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  125.         Debug-Output "ShellCode error: cannot get an error string."
  126.         goto ShellCodeError
  127.     endif
  128.     set NetRuleSoftwareBindable = $($R1)
  129.     read-syms DialogConstants$(!STF_LANGUAGE)
  130.     ifstr(i) $(!NTN_Origination) == "NCPA"
  131.         set Continue = $(OK)
  132.     endif
  133.     read-syms FileConstants$(!STF_LANGUAGE)
  134.     detect date
  135.     set-title  $(FunctionTitle)
  136.     set to   = Begin
  137.     set from = Begin
  138.     set CommonStatus = STATUS_SUCCESSFUL
  139.     EndWait
  140. Begin = +
  141.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  142.         set StartLabel = removeadapter
  143.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  144.         set StartLabel = UpgradeSoftware
  145.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  146.         set StartLabel = bindingadapter
  147.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  148.         set CommonStatus = STATUS_REBOOT
  149.         set StartLabel = configureadapter
  150.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  151.             Debug-Output "Cannot configure the Proteon 1390 driver software."
  152.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  153.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  154.                 Debug-Output "ShellCode error: cannot get an error string."
  155.                 goto ShellCodeError
  156.             endif
  157.             set Error = $($R0)
  158.             set from = end
  159.             set to = end
  160.             goto nonfatalinfo
  161.         endif
  162.     else
  163.         set StartLabel = installadapter
  164.         set OEM_ABANDON_OPTIONS = {}
  165.         set OEM_ABANDON_SOFTWARE = FALSE
  166.         set OEM_ABANDON_ON = TRUE
  167.     endif
  168.     set IRQLevel = 5
  169.     set IOBaseAddress = *($(IOBaseAddressList), 1)
  170.     set DMAChannel = *($(DMA_List), ~($(DMA_List), 5))
  171.     set RadioIn = { 2, 4 }
  172.     set CardType = 1
  173.     set from = $(fatal)
  174.     set to = $(fatal)
  175.     goto $(StartLabel)
  176. installadapter = +
  177.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  178.     Ifstr $(KeyProduct) != $(KeyNull)
  179.         CloseRegKey $(KeyProduct)
  180.         ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  181.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  182.                $(ProductVersion)
  183.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  184.                Debug-Output "ShellCode error: cannot get an error string."
  185.                goto ShellCodeError
  186.            endif
  187.            goto end
  188.         else
  189.            Shell $(UtilityInf), CardExistedDlg
  190.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  191.                Debug-Output "ShellCode error: cannot get an error string."
  192.                goto ShellCodeError
  193.            endif
  194.            ifstr(i) $($R1) != "OK"
  195.                set CommonStatus = STATUS_USERCANCEL
  196.                goto end
  197.            endif
  198.            set OldVersionExisted = $(TRUE)
  199.         endif
  200.     endif
  201.     goto adapteroptions
  202. configureadapter = +
  203.     Ifstr $(KeyProduct) == $(KeyNull)
  204.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  205.         Ifstr $(KeyProduct) == $(KeyNull)
  206.             set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  207.             Debug-Output "Cannot find component product key"
  208.             goto fatalregistry
  209.         Endif
  210.     Endif
  211.     Debug-Output "INF: Shelling to FindService"
  212.     Shell $(UtilityInf) FindService, $(KeyProduct)
  213.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  214.         Debug-Output "INF: FindService shell failure"
  215.         Goto ShellCodeError
  216.     Endif
  217.     Ifstr(i) $($R0) != NO_ERROR
  218.         Debug-Output "INF: FindService Shell error: "$($R0)
  219.         Goto fatalregistry
  220.     endif
  221.     set KeyParameters = $($R2)
  222.     CloseRegKey $($R1)
  223.     Ifstr $(KeyParameters) == $(KeyNull)
  224.         set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  225.         Debug-Output "Cannot find component service"
  226.         goto fatalregistry
  227.     endif
  228.     set OldVersionExisted = $(TRUE )
  229.     set ValueName = ""
  230.     set ValueData = ""
  231.     set ValueStr  = ""
  232.     set ValueList = {}
  233.     EnumRegValue $(KeyParameters) ValueList
  234.     ForListDo $(ValueList)
  235.         set ValueItem = $($)
  236.         set ValueName = *($(ValueItem),1)
  237.         set ValueData = *($(ValueItem),4)
  238.         Ifstr(i) $(ValueName) == "CardType"
  239.             set CardType = $(ValueData)
  240.         else-Ifstr(i) $(ValueName) == "InterruptNumber"
  241.             set IRQLevel = $(ValueData)
  242.         else-Ifstr(i) $(ValueName) == "IOBaseAddress"
  243.             set IOAddrValue = $(ValueData)
  244.         else-Ifstr(i) $(ValueName) == "CableType"
  245.             set CableType = $(ValueData)
  246.         else-Ifstr(i) $(ValueName) == "DMAChannel"
  247.             set DMAChannel = $(ValueData)
  248.         else-Ifstr(i) $(ValueName) == "CardSpeed"
  249.             set CardSpeed = $(ValueData)
  250.         else-Ifstr(i) $(ValueName) == "NetworkAddress"
  251.             set NetworkAddress = $(ValueData)
  252.         endif
  253.     EndForListDo
  254.     set IOBaseAddress = *($(IOBaseAddressList), ~($(IOBaseAddressValue),+
  255.         $(IOAddrValue)))
  256.     Ifstr(i) $(CableType) == ""
  257.         set Rad1 = 2
  258.     else
  259.         set Rad1 = $(CableType)
  260.     endif
  261.     Ifint $(CardSpeed) == 4
  262.         set Rad2 = 3
  263.     else
  264.         set Rad2 = 4
  265.     endif
  266.     set RadioIn = {$(Rad1), $(Rad2) }
  267.     goto adapteroptions
  268. adapteroptions = +
  269.     set from = adapteroptions
  270.     read-syms FileDependentDlg$(!STF_LANGUAGE)
  271.     ui start "InputDlg"
  272.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  273.         set IRQLevel = $(Combo1Out)
  274.         set IOBaseAddress = $(Combo2Out)
  275.         set DMAChannel = $(Combo3Out)
  276.         set NetworkAddress = *($(EditTextOut),1)
  277.         IfContains "1" IN $(RadioOut)
  278.             set CableType = 1
  279.         else-IfContains "2" IN $(RadioOut)
  280.             set CableType = 2
  281.         endif
  282.         IfContains "3" IN $(RadioOut)
  283.             set CardSpeed = 4
  284.         else-IfContains "4" IN $(RadioOut)
  285.             set CardSpeed = 16
  286.         endif
  287.         ui pop 1
  288.         goto nextstep
  289.     else-ifstr(i) $(DLGEVENT) == "BACK"
  290.         set CommonStatus = STATUS_USERCANCEL
  291.         Debug-Output "Action: exit. Bye."
  292.         ui pop 1
  293.         goto end
  294.     else
  295.         ui pop 1
  296.         Debug-Output "Action: unknown. Bye."
  297.         goto end
  298.     endif
  299. nextstep = +
  300.     ifint $(OldVersionExisted) == $(TRUE)
  301.         ifstr(i) $(!NTN_InstallMode) == configure
  302.             goto writeparameters
  303.         endif
  304.     endif
  305.     StartWait
  306.     ifint $(OldVersionExisted) == $(FALSE)
  307.         ifstr(i) $(!NTN_InstallMode) == "install"
  308.            Ifstr(i) $(DoCopy) == "YES"
  309.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  310.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  311.                   Goto ShellCodeError
  312.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  313.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  314.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  315.                       goto ShellCodeError
  316.                   endif
  317.                   set Error = $($R0)
  318.                   Goto fatal
  319.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  320.                   Goto successful
  321.               Endif
  322.               Set SrcDir = $($R1)
  323.            Endif
  324.            install "Install-Option"
  325.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  326.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  327.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  328.                   goto ShellCodeError
  329.               endif
  330.               set Error = $($R0)
  331.               goto fatal
  332.            endif
  333.         endif
  334.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  335.             $(ProductSoftwareName), +
  336.             $(ProductSoftwareName), +
  337.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  338.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  339.             $(NetEventDLL)
  340.         Set OEM_ABANDON_SOFTWARE = TRUE
  341.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  342.             Debug-Output "ShellCode error"
  343.             goto ShellCodeError
  344.         endif
  345.         set RegistryErrorIndex = $($R0)
  346.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  347.             EndWait
  348.             Debug-Output "Registry error: add software components"
  349.             CloseRegKey $($R1)
  350.             CloseRegKey $($R2)
  351.             CloseRegKey $($R3)
  352.             CloseRegKey $($R4)
  353.             CloseRegKey $($R5)
  354.             goto fatalregistry
  355.         endif
  356.         set SoftProductKey      = $($R1)
  357.         Set SoftNetRuleKey      = $($R2)
  358.         Set SoftServiceKey      = $($R3)
  359.         Set SoftParameterKey    = $($R4)
  360.         Set SoftLinkageKey      = $($R5)
  361.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  362.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  363.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  364.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  365.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  366.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  367.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  368.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  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.             EndWait
  376.             Debug-Output "Resgitry error: add value list."
  377.             CloseRegKey $(SoftProductKey)
  378.             CloseRegKey $(SoftNetRuleKey)
  379.             CloseRegKey $(SoftServiceKey)
  380.             CloseRegKey $(SoftParameterKey)
  381.             CloseRegKey $(SoftLinkageKey)
  382.             goto fatalregistry
  383.         endif
  384.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  385.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  386.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  387.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  388.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  389.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  390.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  391.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  392.             Debug-Output "ShellCode error."
  393.             goto ShellCodeError
  394.         endif
  395.         set RegistryErrorIndex = $($R0)
  396.         CloseRegKey $(SoftProductKey)
  397.         CloseRegKey $(SoftNetRuleKey)
  398.         CloseRegKey $(SoftServiceKey)
  399.         CloseRegKey $(SoftParameterKey)
  400.         CloseRegKey $(SoftLinkageKey)
  401.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  402.             EndWait
  403.             Debug-Output "Resgitry error: add value list."
  404.             goto fatalregistry
  405.         endif
  406.     endif
  407.     Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  408.     ifint $($R4) != -1
  409.         Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  410.     endif
  411.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  412.         Debug-Output "Cannot add hardware component"
  413.         goto ShellCodeError
  414.     endif
  415.     set RegistryErrorIndex = $($R0)
  416.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  417.         EndWait
  418.         Debug-Output "Registry error: add hardware component"
  419.         CloseRegKey $($R1)
  420.         CloseRegKey $($R2)
  421.         CloseRegKey $($R3)
  422.         goto fatalregistry
  423.     endif
  424.     set KeyParameters = $($R3)
  425.     set KeyAdapterRules = $($R2)
  426.     set AdapterNumber = $($R4)
  427.     set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  428.                        {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  429.                        {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  430.                        {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  431.                        {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  432.                        {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  433.     Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  434.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  435.         Debug-Output "ShellCode error"
  436.         goto ShellCodeError
  437.     endif
  438.     CloseRegKey $($R1)
  439.     set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  440.     set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  441.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  442.                         {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  443.                         {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  444.                         {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  445.     Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  446.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  447.         Debug-Output "ShellCode error."
  448.         goto ShellCodeError
  449.     endif
  450.     set RegistryErrorIndex = $($R0)
  451.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  452.         EndWait
  453.         Debug-Output "Resgitry error: add value list."
  454.         CloseRegKey $(KeyParameters)
  455.         CloseRegKey $(KeyAdapterRules)
  456.         goto fatalregistry
  457.     endif
  458.     CloseRegKey $(KeyAdapterRules)
  459.     goto writeparameters
  460. writeparameters = +
  461.     Shell $(UtilityInf), GetBusTypeNum
  462.     set BusTypeNum = $($R1)
  463.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  464.         Debug-Output "ShellCode error."
  465.         goto ShellCodeError
  466.     endif
  467.     set IOAddrValue = *($(IOBaseAddressValue), ~($(IOBaseAddressList),+
  468.         $(IOBaseAddress)))
  469.     set NewValueList = {+
  470.                 {MediaType,$(NoTitle),$(!REG_VT_DWORD),2},+
  471.         {CardType,$(NoTitle),$(!REG_VT_DWORD),$(CardType)},+
  472.         {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  473.         {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQLevel)},+
  474.         {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOAddrValue)},+
  475.         {CableType,$(NoTitle),$(!REG_VT_DWORD),$(CableType)},+
  476.         {DMAChannel,$(NoTitle),$(!REG_VT_DWORD),$(DMAChannel)},+
  477.         {NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)},+
  478.         {CardSpeed,$(NoTitle),$(!REG_VT_DWORD),$(CardSpeed)}+
  479.         }
  480.     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  481.     CloseRegKey $(KeyParameters)
  482.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  483.         Debug-Output "ShellCode error."
  484.         goto ShellCodeError
  485.     endif
  486.     set RegistryErrorIndex = $($R0)
  487.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  488.         Debug-Output "Registry error: Add value list"
  489.         goto fatalregistry
  490.     endif
  491.     EndWait
  492.     goto successful
  493. bindingadapter =+
  494.     set Error = "Binding: Sorry, not yet implemented."
  495.     goto fatal
  496. removeadapter = +
  497.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  498.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  499.             $(ProductSoftwareName)
  500.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  501.             Debug-Output "ShellCode error"
  502.             goto ShellCodeError
  503.         endif
  504.         set RegistryErrorIndex = $($R0)
  505.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  506.             goto fatalregistry
  507.         endif
  508.     else
  509.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  510.             $(ProductSoftwareName), $(!NTN_RegBase)
  511.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  512.             Debug-Output "ShellCode error"
  513.             goto ShellCodeError
  514.         endif
  515.         set RegistryErrorIndex = $($R0)
  516.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  517.             goto fatalregistry
  518.         endif
  519.     endif
  520.     goto end
  521. UpgradeSoftware = +
  522.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  523.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  524.         Ifstr $(KeyProduct) != $(KeyNull)
  525.             GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  526.             set Version = *($(VersionInfo), 4)
  527.             Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  528.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  529.                 Debug-Output "ShellCode error"
  530.                 goto ShellCodeError
  531.             endif
  532.             set !UG_Filename = $($R0)
  533.             ifstr(i) $(!UG_Filename) != ""
  534.                 install "Install-Update"
  535.                 ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  536.                     goto fatal
  537.                 endif
  538.             endif
  539.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  540.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  541.             ifint $(Version) != $(ProductVersion)
  542.             endif
  543.             CloseRegKey $(KeyProduct)
  544.         else
  545.             goto fatalregistry
  546.         endif
  547.     else
  548.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  549.               $(MAXIMUM_ALLOWED) NetworkCardKey
  550.         Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  551.             GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  552.             set ServiceName = *($(ServiceNameInfo), 4)
  553.             OpenRegKey $(NetworkCardKey) "" "NetRules" +
  554.                 $(MAXIMUM_ALLOWED) NetRuleKey
  555.             Ifstr(i) $(NetRuleKey) != $(KeyNull)
  556.             else
  557.                 goto fatalregistry
  558.             endif
  559.             CloseRegKey $(NetRules)
  560.             CloseRegKey $(NetworkCardKey)
  561.         else
  562.             goto fatalregistry
  563.         endif
  564.         OpenRegKey $(!REG_H_LOCAL) "" +
  565.               $(!NTN_ServiceBase)"\"$(ServiceName) +
  566.               $(MAXIMUM_ALLOWED) ServiceKey
  567.         Ifstr(i) $(ServiceKey) != $(KeyNull)
  568.             CloseRegKey $(ServiceKey)
  569.         else
  570.             goto fatalregistry
  571.         endif
  572.     endif
  573.     goto end
  574. successful = +
  575.     goto end
  576. abandon = +
  577.     ForListDo $(OEM_ABANDON_OPTIONS)
  578.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  579.             $(ProductSoftwareName), $($)
  580.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  581.             Debug-Output "ShellCode error"
  582.             goto ShellCodeError
  583.         endif
  584.         set RegistryErrorIndex = $($R0)
  585.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  586.             goto fatalregistry
  587.         endif
  588.     EndForListDo
  589.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  590.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  591.             $(ProductSoftwareName), FALSE
  592.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  593.             Debug-Output "ShellCode error"
  594.             goto ShellCodeError
  595.         endif
  596.         set RegistryErrorIndex = $($R0)
  597.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  598.             goto fatalregistry
  599.         endif
  600.     endif
  601.     goto end
  602. warning = +
  603.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  604.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  605.         goto ShellCodeError
  606.     endif
  607.     ifstr(i) $($R1) == "OK"
  608.         goto $(to)
  609.     else-ifstr(i) $($R1) == "CANCEL"
  610.         goto $(from)
  611.     else
  612.         goto "end"
  613.     endif
  614. nonfatalinfo = +
  615.     Set CommonStatus = STATUS_USERCANCEL
  616.     Set Severity = STATUS
  617.     goto nonfatalmsg
  618. nonfatal = +
  619.     Set Severity = NONFATAL
  620.     goto nonfatalmsg
  621. nonfatalmsg = +
  622.     ifstr(i) $(Error) == ""
  623.         Set Severity = NONFATAL
  624.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  625.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  626.             goto ShellCodeError
  627.         endif
  628.         set Error = $($R0)
  629.     endif
  630.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  631.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  632.         goto ShellCodeError
  633.     endif
  634.     ifstr(i) $($R1) == "OK"
  635.         goto $(from)
  636.     else
  637.         goto "end"
  638.     endif
  639. fatalregistry = +
  640.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  641.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  642.         goto ShellCodeError
  643.     endif
  644.     set Error = $($R0)
  645.     goto fatal
  646. fatal = +
  647.     ifstr(i) $(Error) == ""
  648.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  649.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  650.             goto ShellCodeError
  651.         endif
  652.         set Error = $($R0)
  653.     endif
  654.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  655.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  656.         goto ShellCodeError
  657.     endif
  658.    goto setfailed
  659. ShellCodeError = +
  660.     set DlgType      = "MessageBox"
  661.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  662.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  663.     set STF_MB_TYPE  = 1
  664.     set STF_MB_ICON  = 3
  665.     set STF_MB_DEF   = 1
  666.     ui start "Error Message"
  667.     goto setfailed
  668. setfailed = +
  669.     set CommonStatus = STATUS_FAILED
  670.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  671.         set OEM_ABANDON_ON = FALSE
  672.         goto abandon
  673.     endif
  674.     goto end
  675. end = +
  676.     goto term
  677. term = +
  678.     Return $(CommonStatus)
  679. [Install-Option]
  680.     set STF_VITAL = ""
  681.     ifstr(i) $(AddCopy) == "YES"
  682.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  683.     endif
  684.     ifstr(i) $(DoCopy) == "YES"
  685.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  686.        CopyFilesInCopyList
  687.     endif
  688.     ifstr(i) $(DoConfig) == "YES"
  689.     endif
  690.     Exit
  691. [Install-Update]
  692.    set STF_VITAL        = ""
  693.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  694.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  695.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  696.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  697.    CopyFilesInCopyList
  698.    exit
  699. [Source Media Descriptions]
  700.     1    = "Windows NT Advanced Server Setup Disk #1"   , TAGFILE = disk1
  701.     2    = "Windows NT Advanced Server Setup Disk #2"   , TAGFILE = disk2
  702.     3    = "Windows NT Advanced Server Setup Disk #3"   , TAGFILE = disk3
  703.     4    = "Windows NT Advanced Server Setup Disk #4"   , TAGFILE = disk4
  704.     5    = "Windows NT Advanced Server Setup Disk #5"   , TAGFILE = disk5
  705.     6    = "Windows NT Advanced Server Setup Disk #6"   , TAGFILE = disk6
  706.     7    = "Windows NT Advanced Server Setup Disk #7"   , TAGFILE = disk7
  707.     8    = "Windows NT Advanced Server Setup Disk #8"   , TAGFILE = disk8
  708.     9    = "Windows NT Advanced Server Setup Disk #9"   , TAGFILE = disk9
  709.     10    = "Windows NT Advanced Server Setup Disk #10"  , TAGFILE = disk10
  710.     11    = "Windows NT Advanced Server Setup Disk #11"  , TAGFILE = disk11
  711.     12    = "Windows NT Advanced Server Setup Disk #12"  , TAGFILE = disk12
  712.     13    = "Windows NT Advanced Server Setup Disk #13"  , TAGFILE = disk13
  713.     14    = "Windows NT Advanced Server Setup Disk #14"  , TAGFILE = disk14
  714.     15    = "Windows NT Advanced Server Setup Disk #15"  , TAGFILE = disk15
  715.     16    = "Windows NT Advanced Server Setup Disk #16"  , TAGFILE = disk16
  716.     17    = "Windows NT Advanced Server Setup Disk #17"  , TAGFILE = disk17
  717.     18    = "Windows NT Advanced Server Setup Disk #18"  , TAGFILE = disk18
  718.     19    = "Windows NT Advanced Server Setup Disk #19"  , TAGFILE = disk19
  719.     20    = "Windows NT Advanced Server Setup Disk #20"  , TAGFILE = disk20
  720.     21    = "Windows NT Advanced Server Setup Disk #21"  , TAGFILE = disk21
  721.     22    = "Windows NT Advanced Server Setup Disk #22"  , TAGFILE = disk22
  722.     23    = "Windows NT Advanced Server Setup Disk #23"  , TAGFILE = disk23
  723.     24    = "Windows NT Advanced Server Setup Disk #24"  , TAGFILE = disk24
  724.     25    = "Windows NT Advanced Server Setup Disk #25"  , TAGFILE = disk25
  725.     26    = "Windows NT Advanced Server Setup Disk #26"  , TAGFILE = disk26
  726.     27    = "Windows NT Advanced Server Setup Disk #27"  , TAGFILE = disk27
  727.     28    = "Windows NT Advanced Server Setup Disk #28"  , TAGFILE = disk28
  728.     29    = "Windows NT Advanced Server Setup Disk #29"  , TAGFILE = disk29
  729. [ProductType]
  730. STF_PRODUCT  = LanmanNT
  731. STF_PLATFORM = I386
  732. [Files-Inf]
  733. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  734. [Files-P1390]
  735. 21,PROTEON.SYS , SIZE=58880
  736. [LanguagesSupported]
  737.     ENG
  738. [OptionsTextENG]
  739.     P1390     = "Proteon p1390 Adapter"
  740. [FileConstantsENG]
  741. ProCaption   = "Windows NT Setup"
  742. ProCancel    = "Cancel"
  743. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  744.                "Are you sure you want to cancel copying files?"
  745. ProCancelCap = "Network Setup Message"
  746. ProText1     = "Copying:"
  747. ProText2     = "To:"
  748. FunctionTitle   = "Proteon p1390 Adapter Card Setup"
  749. ProductSoftwareDescription      = "Proteon Adapter Driver"
  750. ProductHardwareDescription      = "Proteon p1390 Adapter"
  751. ProductSoftwareTitle    = "Proteon Adapter Driver"
  752. ProductHardwareTitle    = "Proteon p1390 Adapter"
  753. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  754. ShellCodeErrorText      = "Shell Code Error."
  755. [DialogConstantsENG]
  756. Help        = "&Help"
  757. Exit        = "Cancel"
  758. OK          = "OK"
  759. HelpContext = ""
  760. Continue    = "Continue"
  761. Cancel      = "Cancel"
  762. [FileDependentDlgENG]
  763. Label1 = "&IRQ Level:"
  764. Label2 = "I/O &Port Base Address:"
  765. Label3 = "&DMA Channel:"
  766. Group1 = "Cable &Type"
  767. Group2 = "Card Sp&eed"
  768. Radio1 = "&UTP"
  769. Radio2 = "&STP"
  770. Edit1Label = "&Network Address:"
  771. Radio3 = "&4"
  772. Radio4 = "&16"
  773. DlgType = "RadioCombination"
  774. DlgTemplate = "PROTEON"
  775. Caption = $(FunctionTitle)
  776. CBOptionGreyed = {}
  777. RadioOptionGreyed = {}
  778. Combo1List = $(IRQ_List)
  779. Combo1Out  = $(IRQLevel)
  780. Combo2List = $(IOBaseAddressList)
  781. Combo2Out  = $(IOBaseAddress)
  782. Combo3List = $(DMA_List)
  783. Combo3Out  = $(DMAChannel)
  784. ComboListItemsIn  = {Combo1List, Combo2List, Combo3List}
  785. ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out}
  786. EditTextIn = $(NetworkAddress)
  787. EditTextLim = 17
  788. NotifyFields = {NO, NO, NO}
  789. RCCtlFocusOn = 403
  790. HelpContext = $(!IDH_DB_OEMNADP3_INS)
  791.  
  792.  
  793.  
  794.