home *** CD-ROM | disk | FTP | other *** search
/ CICA NT 1997 November / CICA_NT_CD-ROM_Walnut_Creek_November_1997.iso / patches / sp5_351m.exe / NTAS / OEMNADDF.INF < prev   
INI File  |  1996-09-19  |  27KB  |  798 lines

  1. [Identification]
  2.     OptionType = NetAdapter
  3. [PlatformsSupported]
  4.     PCI
  5. [Options]
  6.     DEFPA
  7. [FileConstants]
  8. UtilityInf      = "UTILITY.INF"
  9. ParamInf        = "NCPARAM.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. Manufacturer    = "DigitalEquipment"
  16. ProductMajorVersion     = "1"
  17. ProductMinorVersion     = "57"
  18. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  19. ProductSoftwareName     = "Defpa"
  20. ProductSoftwareTitle    = "DEC FDDIcontroller/PCI Driver"
  21. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\defpa.sys"
  22. NetRuleSoftwareType     = "defpaSys ndisDriver defpaDriver"
  23. NetRuleSoftwareUse      = $(SoftwareType)
  24. NetRuleSoftwareBindForm = """DefpaSys"" yes no container"
  25. NetRuleSoftwareClass    = {"defpaDriver basic"}
  26. NetRuleSoftwareBindable = {"defpaDriver defpaAdapter non exclusive 100"}
  27. ProductHardwareName     = "Defpa"
  28. ProductHardwareTitle    = "DEC FDDIcontroller/PCI Adapter"
  29. NetRuleHardwareType     = "defpa defpaAdapter"
  30. NetRuleHardwareBindForm = " yes yes container"
  31. NetRuleHardwareClass    = {"defpaAdapter basic"}
  32. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  33. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  34. [GeneralConstants]
  35. from      = ""
  36. to        = ""
  37. ExitCodeOk     = 0
  38. ExitCodeCancel = 1
  39. ExitCodeFatal  = 2
  40. KeyNull         = ""
  41. MAXIMUM_ALLOWED   = 33554432
  42. RegistryErrorIndex = NO_ERROR
  43. KeyProduct      = ""
  44. KeyParameters   = ""
  45. TRUE            = 1
  46. FALSE           = 0
  47. NoTitle            = 0
  48. ExitState   = "Active"
  49. OldVersionExisted = $(FALSE)
  50. DriverPath      = $(!STF_NTPATH)\drivers
  51. Successful_Install = 0
  52. [date]
  53.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  54. [processor]
  55.     PROC_TYPE = "" ? $(LIBHANDLE) GetProcessor
  56. [Identify]
  57.     read-syms Identification
  58.     set Status     = STATUS_SUCCESSFUL
  59.     set Identifier = $(OptionType)
  60.     set Media      = #("Source Media Descriptions", 1, 1)
  61.     Return $(Status) $(Identifier) $(Media)
  62. [ReturnOptions]
  63.     set Status        = STATUS_FAILED
  64.     set OptionList     = {}
  65.     set OptionTextList = {}
  66.     set LanguageList = ^(LanguagesSupported, 1)
  67.     Ifcontains(i) $($0) in $(LanguageList)
  68.         ifstr(i) $($1) == ""
  69.            goto returnoptions
  70.         endif
  71.         set PlatformList = ^(PlatformsSupported, 1)
  72.         Ifcontains(i) $($1) in $(PlatformList)
  73.            goto returnoptions
  74.         else
  75.            set Status = STATUS_NOTSUPPORTED
  76.            goto finish_ReturnOptions
  77.         endif
  78.     else
  79.         set Status = STATUS_NOLANGUAGE
  80.         goto finish_ReturnOptions
  81.     endif
  82. returnoptions = +
  83.     set OptionList     = ^(Options, 1)
  84.     set OptionTextList = ^(OptionsText$($0), 1)
  85.     set Status         = STATUS_SUCCESSFUL
  86. finish_ReturnOptions = +
  87.     Return $(Status) $(OptionList) $(OptionTextList)
  88. [InstallOption]
  89.     set Status   = STATUS_FAILED
  90.     set Option   = $($1)
  91.     set SrcDir   = $($2)
  92.     set AddCopy  = $($3)
  93.     set DoCopy   = $($4)
  94.     set DoConfig = $($5)
  95.     set LanguageList = ^(LanguagesSupported, 1)
  96.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  97.         Return STATUS_NOLANGUAGE
  98.     endif
  99.     Debug-Output "OEMNAD??.INF: STF_CWDIR is: "$(!STF_CWDIR)
  100.     Debug-Output "OEMNAD??.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  101.     set-subst LF = "\n"
  102.     SetHelpFile "defddi.hlp" 1 600
  103.     read-syms GeneralConstants
  104.     read-syms FileConstants
  105.     read-syms DialogConstants$(!STF_LANGUAGE)
  106.     ifstr(i) $(!NTN_Origination) == "NCPA"
  107.         set Continue = "OK"
  108.     endif
  109.     read-syms FileConstants$(!STF_LANGUAGE)
  110.     detect date
  111.     set-title  $(FunctionTitle)
  112.     set to   = Begin
  113.     set from = Begin
  114.     set CommonStatus = STATUS_SUCCESSFUL
  115.     EndWait
  116. Begin = +
  117.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  118.         set StartLabel = removeadapter
  119.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  120.         set StartLabel = UpgradeSoftware
  121.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  122.         set StartLabel = bindingadapter
  123.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  124.         set CommonStatus = STATUS_REBOOT
  125.         set StartLabel = configureadapter
  126.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  127.             Debug-Output "Cannot configure the DEC FDDIcontroller/PCI driver software."
  128.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  129.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  130.                 Debug-Output "ShellCode error: cannot get an error string."
  131.                 goto ShellCodeError
  132.             endif
  133.             set Error = $($R0)
  134.             set from = end
  135.             set to = end
  136.             goto nonfatalinfo
  137.         endif
  138.     else
  139.         set StartLabel = installadapter
  140.         set OEM_ABANDON_OPTIONS = {}
  141.         set OEM_ABANDON_SOFTWARE = FALSE
  142.         set OEM_ABANDON_ON = TRUE
  143.     endif
  144.     endif
  145.     Debug-Output "NTN_Origination"$(!NTN_Origination)
  146.     set from = $(fatal)
  147.     set to = $(fatal)
  148.     goto $(StartLabel)
  149. installadapter = +
  150.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  151.     Ifstr $(KeyProduct) != $(KeyNull)
  152.     CloseRegKey $(KeyProduct)
  153.     ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  154.        Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  155.            $(ProductVersion)
  156.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  157.            Debug-Output "ShellCode error: cannot get an error string."
  158.            goto ShellCodeError
  159.        endif
  160.        goto end
  161.     else
  162.        Shell $(UtilityInf), CardExistedDlg
  163.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  164.            Debug-Output "ShellCode error: cannot get an error string."
  165.            goto ShellCodeError
  166.        endif
  167.        ifstr(i) $($R1) != "OK"
  168.            set CommonStatus = STATUS_USERCANCEL
  169.            goto end
  170.        endif
  171.        set OldVersionExisted = $(TRUE)
  172.     endif
  173.     Endif
  174.     Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  175.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  176.     Goto ShellCodeError
  177.     Else-Ifstr(i) $($R0) == STATUS_FAILED
  178.     Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  179.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  180.        goto ShellCodeError
  181.     endif
  182.     set Error = $($R0)
  183.        Goto fatal
  184.     Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  185.        Goto successful
  186.     Endif
  187.     Set SrcDir = $($R1)
  188.     install "Install-Option"
  189.     Goto adapteroptions    
  190. configureadapter = +
  191.     Ifstr $(KeyProduct) == $(KeyNull)
  192.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  193.         Ifstr $(KeyProduct) == $(KeyNull)
  194.             set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  195.             Debug-Output "Cannot find component product key"
  196.             goto fatalregistry
  197.         Endif
  198.     Endif
  199.     Debug-Output "INF: Shelling to FindService"
  200.     Shell $(UtilityInf) FindService, $(KeyProduct)
  201.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  202.         Debug-Output "INF: FindService shell failure"
  203.         Goto ShellCodeError
  204.     Endif
  205.     Ifstr(i) $($R0) != NO_ERROR
  206.         Debug-Output "INF: FindService Shell error: "$($R0)
  207.         Goto fatalregistry
  208.     endif
  209.     Set KeyParameters = $($R2)
  210.     CloseRegKey $($R1)
  211.     Ifstr $(KeyParameters) == $(KeyNull)
  212.         set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  213.         Debug-Output "Cannot find component service"
  214.         goto fatalregistry
  215.     endif
  216.     set OldVersionExisted = $(TRUE)
  217.     set ValueName = ""
  218.     set ValueData = ""
  219.     set ValueStr  = ""
  220.     set ValueList = {}
  221.     EnumRegValue $(KeyParameters) ValueList
  222.     ForListDo $(ValueList)
  223.         set ValueItem = $($)
  224.         set ValueName = *($(ValueItem),1)
  225.         set ValueData = *($(ValueItem),4)
  226.         ifstr(i) $(ValueName) == "BurstSize"
  227.             set BurstSizeIndex = $(ValueData)
  228.         else-ifstr(i) $(ValueName) == "BusNumber"
  229.             set BusNumber = $(ValueData)
  230.         else-ifstr(i) $(ValueName) == "CardInstance"
  231.             set CardInstanceIndex = $(ValueData)
  232.         else-ifstr(i) $(ValueName) == "FullDuplexEnable"
  233.             set FullDuplexEnableIndex = $(ValueData)
  234.         else-ifstr(i) $(ValueName) == "RcvBuffCnt"
  235.             set RcvBuffCntIndex = $(ValueData)
  236.         else-ifstr(i) $(ValueName) == "XmtBuffCnt"
  237.             set XmtBuffCntIndex = $(ValueData) 
  238.         else-ifstr(i) $(ValueName) == "RequestedTTRT"
  239.             set RequestedTTRTIndex = $(ValueData)
  240.         endif
  241.     EndForListDo
  242.     Set Caption = $(FunctionTitle)
  243.     ifstr(i) $(FullDuplexEnableIndex) == 1
  244.         set RadioIn = {1}
  245.     else
  246.         set RadioIn = {2}
  247.     endif
  248.     ifstr(i) $(RequestedTTRTIndex) == ""
  249.         set EditText1 = 8
  250.     else
  251.         set EditText1 = $(RequestedTTRTIndex)
  252.     endif
  253.     ifstr(i) $(BusNumber) == ""
  254.         set EditText2 = 0
  255.     else
  256.         set EditText2 = $(BusNumber)
  257.     endif
  258.     ifstr(i) $(CardInstanceIndex) == ""
  259.         set EditText3 = 1
  260.     else
  261.         set EditText3 = $(CardInstanceIndex)
  262.     endif
  263.     set ReceiveBuffValue = *($(ReceiveBuffList), ~($(ReceiveBuffValues),$(RcvBuffCntIndex)))
  264.     ifstr(i) $(ReceiveBuffValue) == ""
  265.         set ReceiveBuffValue = 4
  266.     endif
  267.     set TransmitBuffValue = *($(TransmitBuffList), ~($(TransmitBuffValues),$(XmtBuffCntIndex)))
  268.     ifstr(i) $(TransmitBuffValue) == ""
  269.         set TransmitBuffValue = 32
  270.     endif
  271.     set BurstSizeValue = *($(BurstSizeList), ~($(BurstSizeValues),$(BurstSizeIndex)))
  272.     ifstr(i) $(BurstSizeValue) == ""
  273.         set BurstSizeValue = 16
  274.     endif
  275.     set RequestedTTRTValue = RequestedTTRTIndex
  276.     ifstr(i) $(RequestedTTRTValue) == ""
  277.         set RequestedTTRTValue = 8
  278.     endif
  279.     set CardInstanceValue = CardInstanceIndex
  280.     ifstr(i) $(CardInstanceValue) == ""
  281.         set CardInstanceValue = 1
  282.     endif
  283.     set BusNumberValue = BusNumber
  284.     ifstr(i) $(BusNumberValue) == ""
  285.         set BusNumberValue = 0
  286.     endif
  287. displaydialog = +    
  288.     set ExitButton = ""
  289.         LoadLibrary "x" $(!STF_WINDOWSSYSPATH)\$(DialogDllName) hLib
  290.     read-syms FileDependentDlg$(!STF_LANGUAGE)
  291. restart = +    
  292.     set NotifyFields = {NO,NO,NO}
  293.     ui start "InputDlg" $(hLib)
  294.     set ExitButton = $(DLGEVENT)
  295.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  296.         ifint *($(EditTextOut),1) < 4
  297.             shell $(subroutineinf) SetupMessage ENG NONFATAL "Requested TTRT must be between 4 and 165 ms"
  298.             goto restart
  299.         else-ifint *($(EditTextOut),1) > 165
  300.             shell $(subroutineinf) SetupMessage ENG NONFATAL "Requested TTRT must be between 4 and 165 ms"
  301.             goto restart
  302.         endif
  303.         set RequestedTTRTIndex = *($(EditTextOut),1)
  304.         set BusNumber     = *($(EditTextOut),2)
  305.         set CardInstanceIndex  = *($(EditTextOut),3)
  306.         set RcvBuffCntIndex = *($(ReceiveBuffValues), ~($(ReceiveBuffList),$(Combo1Out)))
  307.         set XmtBuffCntIndex = *($(TransmitBuffValues), ~($(TransmitBuffList),$(Combo2Out)))
  308.         set BurstSizeIndex = *($(BurstSizeValues), ~($(BurstSizeList),$(Combo3Out)))
  309.         ifstr(i) *($(RadioOut),1) == 1
  310.             Set FullDuplexEnableIndex = 1
  311.         else
  312.             Set FullDuplexEnableIndex = 2
  313.         endif
  314.         FreeLibrary $(hLib)
  315.         ui pop 1
  316.         ifstr(i) $(StartLabel) == installadapter
  317.             Set Successful_Install = 1
  318.             goto returnpoint
  319.         endif
  320.     else-ifstr(i) $(DLGEVENT) == "BACK"
  321.         FreeLibrary $(hLib)
  322.         ui pop 1
  323.         ifstr(i) $(StartLabel) == installadapter
  324.             goto returnpoint
  325.         else
  326.             CloseRegKey $(KeyParameters)
  327.             set CommonStatus = STATUS_USERCANCEL
  328.             Debug-Output "Action: exit. Bye."
  329.             goto end
  330.         endif
  331.     else
  332.         FreeLibrary $(hLib)
  333.         ui pop 1
  334.         Debug-Output "Action: unknown. Bye."
  335.         goto end
  336.     endif
  337.     set NewValueList = {{RcvBuffCnt,$(NoTitle),$(!REG_VT_DWORD),$(RcvBuffCntIndex)},+
  338.                 {BurstSize,$(NoTitle),$(!REG_VT_DWORD),$(BurstSizeIndex)},+
  339.                 {XmtBuffCnt,$(NoTitle),$(!REG_VT_DWORD),$(XmtBuffCntIndex)},+
  340.                 {FullDuplexEnable,$(NoTitle),$(!REG_VT_DWORD),$(FullDuplexEnableIndex)},+
  341.                 {RequestedTTRT,$(NoTitle),$(!REG_VT_DWORD),$(RequestedTTRTIndex)}}
  342.     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  343.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  344.         goto ShellCodeError
  345.     endif
  346.     CloseRegKey $(KeyParameters)
  347.     goto successful
  348. adapteroptions = +
  349.     StartWait
  350. installproduct = +
  351.     Set BusNumber = 0
  352.     Set CardInstance = 1
  353.     Set ReceiveBuffValue = 4
  354.     Set TransmitBuffValue = 32
  355.     Set BurstSizeValue = 16
  356.     Set EditText1 = 8
  357.     Set EditText2 = 0
  358.     Set EditText3 = 1
  359.     Set RadioIn = {2}
  360.     Set Caption = $(FunctionTitle)
  361.     Set ExitButton = ""
  362.         set Vendor = 4113
  363.         set CFID = 15
  364.         Shell $(UtilityInf), GetPCIInformation, $(Vendor) $(CFID)
  365.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  366.              goto ShellCodeError
  367.         endif
  368.         ifstr(i) $($R0) == {}
  369.              set Error = $(CANNOT_FIND_ANY_CARD)
  370.              set CommonStatus = USER_CANCEL
  371.              set from = end
  372.              goto nonfatal
  373.         endif
  374.         set AdapterList = $($R0)
  375.     ifint $(OldVersionExisted) == $(FALSE)
  376.       ifstr(i) $(!NTN_InstallMode) == "install"
  377.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  378.             $(ProductSoftwareName), +
  379.             $(ProductSoftwareName), +
  380.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  381.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  382.             $(NetEventDLL)
  383.         Set OEM_ABANDON_SOFTWARE = TRUE
  384.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  385.             Debug-Output "ShellCode error"
  386.             goto ShellCodeError
  387.         endif
  388.         set RegistryErrorIndex = $($R0)
  389.         set KeyProduct      = $($R1)
  390.         Set SoftNetRulesKey = $($R2)
  391.         CloseRegKey $($R3)
  392.         CloseRegKey $($R4)
  393.         CloseRegKey $($R5)
  394.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  395.             EndWait
  396.             Debug-Output "Registry error: add software components"
  397.             CloseRegKey $(KeyProduct)
  398.             CloseRegKey $(SoftNetRulesKey)
  399.             goto fatalregistry
  400.         endif
  401.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  402.                     {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  403.                     {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  404.                     {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  405.                     {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  406.                     {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  407.                     {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  408.         Shell  $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
  409.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  410.             Debug-Output "ShellCode error."
  411.             goto ShellCodeError
  412.         endif
  413.         set RegistryErrorIndex = $($R0)
  414.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  415.             EndWait
  416.             Debug-Output "Registry error: add value list."
  417.             CloseRegKey $(KeyProduct)
  418.             CloseRegKey $(SoftNetRulesKey)
  419.             goto fatalregistry
  420.         endif
  421.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  422.                    {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  423.                    {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  424.                    {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  425.                    {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  426.                   {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  427.         Shell  $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
  428.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  429.             Debug-Output "ShellCode error."
  430.             goto ShellCodeError
  431.         endif
  432.         set RegistryErrorIndex = $($R0)
  433.         CloseRegKey $(KeyProduct)
  434.         CloseRegKey $(SoftNetRulesKey)
  435.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  436.             EndWait
  437.             Debug-Output "Registry error: add value list."
  438.             goto fatalregistry
  439.         endif
  440.       endif
  441.     endif
  442.     ForListDo $(AdapterList)
  443.         set BusNum = *($($),1)
  444.         set DeviceNum = *($($),2)
  445.         set FunctionNum = *($($),3)
  446.     Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  447.     ifint $($R4) != -1
  448.         Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  449.     endif
  450.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  451.         Debug-Output "Cannot add hardware component"
  452.         goto ShellCodeError
  453.     endif
  454.     set RegistryErrorIndex = $($R0)
  455.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  456.         EndWait
  457.         Debug-Output "Registry error: add hardware component"
  458.         CloseRegKey $($R1)
  459.         CloseRegKey $($R2)
  460.         CloseRegKey $($R3)
  461.         goto fatalregistry
  462.     endif
  463.     set KeyParameters = $($R3)
  464.     set KeyAdapterRules = $($R2)
  465.     set AdapterNumber = $($R4)
  466.     set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  467.                 {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  468.                 {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  469.                 {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  470.                 {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  471.                 {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  472.     Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  473.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  474.         Debug-Output "ShellCode error"
  475.         goto ShellCodeError
  476.     endif
  477.     CloseRegKey $($R1)
  478.     set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  479.     set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  480.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  481.                 {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  482.                 {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  483.                 {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  484.     Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  485.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  486.         Debug-Output "ShellCode error."
  487.         goto ShellCodeError
  488.     endif
  489.     set RegistryErrorIndex = $($R0)
  490.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  491.         EndWait
  492.         Debug-Output "Registry error: add value list."
  493.         CloseRegKey $(KeyParameters)
  494.         CloseRegKey $(KeyAdapterRules)
  495.         goto fatalregistry
  496.     endif
  497.     CloseRegKey $(KeyAdapterRules)
  498.     goto displaydialog
  499. returnpoint = +
  500.     goto writeparameters
  501. writeparameters = +
  502.     set NewValueList = {{CardType,$(NoTitle),$(!REG_VT_DWORD),5},+
  503.                 {BusType,$(NoTitle),$(!REG_VT_DWORD),5},+
  504.                 {MediaType,$(NoTitle),$(!REG_VT_DWORD),3},+
  505.                 {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  506.                             {AdapterCFID,$(NoTitle),$(!REG_VT_DWORD),987153},+
  507.                 {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(DeviceNum)},+
  508.                 {FunctionNumber,$(NoTitle),$(!REG_VT_DWORD),$(FunctionNumber)},+
  509.                 {CardInstance,$(NoTitle),$(!REG_VT_DWORD),$(CardInstanceIndex)},+
  510.                 {RcvBuffCnt,$(NoTitle),$(!REG_VT_DWORD),$(RcvBuffCntIndex)},+
  511.                 {BurstSize,$(NoTitle),$(!REG_VT_DWORD),$(BurstSizeIndex)},+
  512.                 {XmtBuffCnt,$(NoTitle),$(!REG_VT_DWORD),$(XmtBuffCntIndex)},+
  513.                 {FullDuplexEnable,$(NoTitle),$(!REG_VT_DWORD),$(FullDuplexEnableIndex)},+
  514.                 {RequestedTTRT,$(NoTitle),$(!REG_VT_DWORD),$(RequestedTTRTIndex)}}
  515.     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  516.     ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
  517.         Shell $(UtilityInf),AddDefaultNetCardParameters,$(KeyParameters)
  518.     endif
  519.     CloseRegKey $(KeyParameters)
  520.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  521.         Debug-Output "ShellCode error. (Add Value List)"
  522.         goto ShellCodeError
  523.     endif
  524.     set RegistryErrorIndex = $($R0)
  525.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  526.         Debug-Output "Registry error: Add value list"
  527.         goto fatalregistry
  528.     endif
  529.     EndForListDo
  530.     EndWait
  531.     goto successful
  532. bindingadapter =+
  533.     set Error = "Binding: Sorry, not yet implemented."
  534.     goto fatal
  535. removeadapter = +
  536.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  537.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  538.             $(ProductSoftwareName)
  539.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  540.             Debug-Output "ShellCode error"
  541.             goto ShellCodeError
  542.         endif
  543.         set RegistryErrorIndex = $($R0)
  544.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  545.             goto fatalregistry
  546.         endif
  547.     else
  548.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  549.             $(ProductSoftwareName), $(!NTN_RegBase)
  550.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  551.             Debug-Output "ShellCode error"
  552.             goto ShellCodeError
  553.         endif
  554.         set RegistryErrorIndex = $($R0)
  555.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  556.             goto fatalregistry
  557.         endif
  558.     endif
  559.     goto end
  560. UpgradeSoftware = +
  561.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  562.     Ifstr $(KeyProduct) != $(KeyNull)
  563.         Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  564.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  565.             Debug-Output "ShellCode error"
  566.             goto ShellCodeError
  567.         endif
  568.         set !UG_Filename = $($R0)
  569.         install "Install-Update"
  570.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  571.             goto fatal
  572.         endif
  573.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  574.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  575.         CloseRegKey $(KeyProduct)
  576.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Linkage" $(MAXIMUM_ALLOWED) LinkageKey
  577.         ifstr(i) $(LinkageKey) != ""
  578.             GetRegValue $(LinkageKey) Bind BindInfo
  579.             ForListDo *($(BindInfo),4)
  580.                 Split-String $($) "\" CardInfo
  581.                 QueryListSize CardPos $(CardInfo)
  582.                 OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"*($(CardInfo),$(CardPos))"\Parameters" $(MAXIMUM_ALLOWED) ParamKey
  583.                 ifstr $(ParamKey) != ""
  584.                     SetRegValue $(ParamKey) {MediaType,$(NoTitle),$(!REG_VT_DWORD),3}
  585.                     CloseRegKey $(ParamKey)
  586.                 endif
  587.             EndForListDo
  588.             CloseRegKey $(LinkageKey)
  589.         endif
  590.     else
  591.         goto fatalregistry
  592.     endif
  593.     goto end
  594. successful = +
  595.     goto end
  596. abandon = +
  597.     ForListDo $(OEM_ABANDON_OPTIONS)
  598.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  599.             $(ProductSoftwareName), $($)
  600.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  601.             Debug-Output "ShellCode error"
  602.             goto ShellCodeError
  603.         endif
  604.         set RegistryErrorIndex = $($R0)
  605.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  606.             goto fatalregistry
  607.         endif
  608.     EndForListDo
  609.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  610.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  611.             $(ProductSoftwareName), FALSE
  612.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  613.             Debug-Output "ShellCode error"
  614.             goto ShellCodeError
  615.         endif
  616.         set RegistryErrorIndex = $($R0)
  617.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  618.             goto fatalregistry
  619.         endif
  620.     endif
  621.     goto end
  622. warning = +
  623.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  624.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  625.         goto ShellCodeError
  626.     endif
  627.     ifstr(i) $($R1) == "OK"
  628.         goto $(to)
  629.     else-ifstr(i) $($R1) == "CANCEL"
  630.         goto $(from)
  631.     else
  632.         goto "end"
  633.     endif
  634. nonfatalinfo = +
  635.     Set Severity = STATUS
  636.     Set CommonStatus = STATUS_USERCANCEL
  637.     goto nonfatalmsg
  638. nonfatal = +
  639.     Set Severity = NONFATAL
  640.     goto nonfatalmsg
  641. nonfatalmsg = +
  642.     ifstr(i) $(Error) == ""
  643.         Set Severity = NONFATAL
  644.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  645.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  646.             goto ShellCodeError
  647.         endif
  648.         set Error = $($R0)
  649.     endif
  650.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  651.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  652.         goto ShellCodeError
  653.     endif
  654.     ifstr(i) $($R1) == "OK"
  655.         goto $(from)
  656.     else
  657.         goto "end"
  658.     endif
  659. fatalregistry = +
  660.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  661.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  662.         goto ShellCodeError
  663.     endif
  664.     set Error = $($R0)
  665.     goto fatal
  666. fatal = +
  667.     ifstr(i) $(Error) == ""
  668.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  669.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  670.             goto ShellCodeError
  671.         endif
  672.         set Error = $($R0)
  673.     endif
  674.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  675.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  676.         goto ShellCodeError
  677.     endif
  678.     goto setfailed
  679. ShellCodeError = +
  680.     set DlgType      = "MessageBox"
  681.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  682.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  683.     set STF_MB_TYPE  = 1
  684.     set STF_MB_ICON  = 3
  685.     set STF_MB_DEF   = 1
  686.     ui start "Error Message"
  687.     goto setfailed
  688. setfailed = +
  689.     set CommonStatus = STATUS_FAILED
  690.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  691.         set OEM_ABANDON_ON = FALSE
  692.         goto abandon
  693.     endif
  694.     goto end
  695. end = +
  696.     goto term
  697. term = +
  698.     Return $(CommonStatus)
  699. [Install-Option]
  700.     set STF_VITAL = ""
  701.     ifstr(i) $(AddCopy) == "YES"
  702.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  703.     endif
  704.     ifstr(i) $(DoCopy) == "YES"
  705.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  706.        CopyFilesInCopyList
  707.     endif
  708.     Exit
  709. [Install-Update]
  710.    set STF_VITAL        = ""
  711.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  712.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  713.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  714.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  715.    CopyFilesInCopyList
  716.    exit
  717. [Source Media Descriptions]
  718.     1 = "Windows NT Server CD-ROM" , TAGFILE = cdrom.s
  719. [Signature]
  720.     FileType = MICROSOFT_FILE
  721. [GetSignature]
  722.     read-syms Signature
  723.     return $(FileType)
  724. [ProductType]
  725. STF_PRODUCT  = LanmanNT
  726. STF_PLATFORM = Mips
  727. [Files-Inf]
  728. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  729. [Files-DEFPA]
  730. 1,DEFPA.SYS , SIZE=999
  731. [LanguagesSupported]
  732.     ENG
  733. [OptionsTextENG]
  734.     DEFPA     = "DEC FDDIcontroller/PCI"
  735. [FileConstantsENG]
  736. ProCaption   = "Windows NT Setup"
  737. ProCancel    = "Cancel"
  738. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  739.            "Are you sure you want to cancel copying files?"
  740. ProCancelCap = "Network Setup Message"
  741. ProText1     = "Copying:"
  742. ProText2     = "To:"
  743. FunctionTitle   = "DEC FDDIcontroller/PCI Card Setup"
  744. ProductSoftwareDescription      = "DEC FDDIcontroller/PCI Driver"
  745. ProductHardwareDescription      = "DEC FDDIcontroller/PCI"
  746. CANNOT_FIND_ANY_CARD            = "Network card is not present in the system"
  747. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  748. ShellCodeErrorText      = "Shell Code Error."
  749. ReceiveBuffList = ^(ReceiveBuffChoices,1)
  750. ReceiveBuffValues = ^(ReceiveBuffChoices,2)
  751. TransmitBuffList = ^(TransmitBuffChoices,1)
  752. TransmitBuffValues = ^(TransmitBuffChoices,2)
  753. BurstSizeList = ^(BurstSizeChoices,1)
  754. BurstSizeValues = ^(BurstSizeChoices,2)
  755. DialogDllName = "defpa.dll"
  756. [DialogConstantsENG]
  757. Help        = "&Help"
  758. Exit        = "Cancel"
  759. OK          = "OK"
  760. HelpContext = 1
  761. Continue    = "Continue"
  762. Cancel      = "Cancel"
  763. [FileDependentDlgENG]
  764. DlgType = "RadioCombination"
  765. DlgTemplate = "DEFPA"
  766. Combo1 = "Receive Buffers:"
  767. Combo2 = "Transmit Buffers:"
  768. Combo3 = "Burst Size:"
  769. Edit1 = "Requested TTRT(ms):"
  770. Edit2 = "Bus Number:"
  771. Edit3 = "Card Instance:"
  772. Group = "Full Duplex Enable"
  773. Combo1List = $(ReceiveBuffList)
  774. Combo1Out = $(ReceiveBuffValue)
  775. Combo2List = $(TransmitBuffList)
  776. Combo2Out = $(TransmitBuffValue)
  777. Combo3List = $(BurstSizeList)
  778. Combo3Out = $(BurstSizeValue)
  779. ComboListItemsIn = {Combo1List,Combo2List}
  780. ComboListItemsOut = {Combo1Out,Combo2Out}
  781. EditTextLim = {3,3,1}
  782. EditTextIn = {$(EditText1),$(EditText2),$(EditText3)}
  783. EditTextOut = {$(EditText1),$(EditText2),$(EditText3)}
  784. [ReceiveBuffChoices]
  785. Receive_1 = "2",2
  786. Receive_2 = "4",4
  787. Receive_3 = "8",8
  788. [TransmitBuffChoices]
  789. Transmit_1 = "8",8
  790. Transmit_2 = "16",16
  791. Transmit_3 = "32",32
  792. Transmit_4 = "64",64
  793. Transmit_5 = "128",128
  794. [BurstSizeChoices]
  795. Burst_1 = "4",0
  796. Burst_2 = "8",1
  797. Burst_3 = "16",2
  798.