home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 February / VPR9602A.ISO / i386 / oemnadpm.in_ / oemnadpm.inf
INI File  |  1995-10-25  |  30KB  |  769 lines

  1. [Identification]
  2.     OptionType = NetAdapter
  3. [PlatformsSupported]
  4.     MCA
  5.     "Jazz-Internal Bus"
  6. [Options]
  7.     P189X
  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. p189x_1BYTE    = { 2, 0, 48 }
  16. p189x_2BYTE    = { 2, 7, 1 }
  17. NETCARD_ID      = { 514, 1792, 304 }
  18. PacketList =^(PacketChoices,1)
  19. PacketValue=^(PacketChoices,2)
  20. Manufacturer    = "PROTEON"
  21. ProductMajorVersion     = "3"
  22. ProductMinorVersion     = "51"
  23. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  24. ProductSoftwareName     = "ProNET"
  25. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\pronet16.sys"
  26. NetRuleSoftwareType     = "proNETSys ndisDriver proNETDriver"
  27. NetRuleSoftwareUse      = $(SoftwareType)
  28. NetRuleSoftwareBindForm = """ProNETSys"" yes no container"
  29. NetRuleSoftwareClass    = {"proNETDriver basic"}
  30. ProductHardwareName     = "ProNET"
  31. NetRuleHardwareType     = "p189X p189XAdapter"
  32. NetRuleHardwareBindForm = " yes yes container"
  33. NetRuleHardwareClass    = {"p189XAdapter basic"}
  34. NetRuleSoftwareBindable = {"proNETDriver p189XAdapter non exclusive 100"}
  35. ProductKeyName  =$(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  36. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  37. [GeneralConstants]
  38. from      = ""
  39. to        = ""
  40. ExitCodeOk     = 0
  41. ExitCodeCancel = 1
  42. ExitCodeFatal  = 2
  43. KeyNull         = ""
  44. MAXIMUM_ALLOWED   = 33554432
  45. RegistryErrorIndex = NO_ERROR
  46. KeyProduct      = ""
  47. KeyParameters   = ""
  48. TRUE            = 1
  49. FALSE           = 0
  50. NoTitle            = 0
  51. ExitState   = "Active"
  52. OldVersionExisted = $(FALSE)
  53. DriverPath      = $(!STF_NTPATH)\drivers
  54. [DialogConstantsENG]
  55. Help        = "&Help"
  56. Exit        = "Cancel"
  57. OK          = "OK"
  58. HelpContext = ""
  59. Continue    = "Continue"
  60. Cancel      = "Cancel"
  61. [date]
  62.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  63. [Identify]
  64.     read-syms Identification
  65.     set Status     = STATUS_SUCCESSFUL
  66.     set Identifier = $(OptionType)
  67.     set Media      = #("Source Media Descriptions", 1, 1)
  68.     Return $(Status) $(Identifier) $(Media)
  69. [ReturnOptions]
  70.     set Status        = STATUS_FAILED
  71.     set OptionList     = {}
  72.     set OptionTextList = {}
  73.     set LanguageList = ^(LanguagesSupported, 1)
  74.     Ifcontains(i) $($0) in $(LanguageList)
  75.         ifstr(i) $($1) == ""
  76.            goto returnoptions
  77.         endif
  78.         set PlatformList = ^(PlatformsSupported, 1)
  79.         Ifcontains(i) $($1) in $(PlatformList)
  80.            goto returnoptions
  81.         else
  82.            set Status = STATUS_NOTSUPPORTED
  83.            goto finish_ReturnOptions
  84.         endif
  85.     else
  86.         set Status = STATUS_NOLANGUAGE
  87.         goto finish_ReturnOptions
  88.     endif
  89. returnoptions = +
  90.     set OptionList     = ^(Options, 1)
  91.     set OptionTextList = ^(OptionsText$($0), 1)
  92.     set Status         = STATUS_SUCCESSFUL
  93. finish_ReturnOptions = +
  94.     Return $(Status) $(OptionList) $(OptionTextList)
  95. [InstallOption]
  96.     set Option   = $($1)
  97.     set SrcDir   = $($2)
  98.     set AddCopy  = $($3)
  99.     set DoCopy   = $($4)
  100.     set DoConfig = $($5)
  101.     set LanguageList = ^(LanguagesSupported, 1)
  102.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  103.         Return STATUS_NOLANGUAGE
  104.     endif
  105.     Debug-Output "OEMSETUP.INF: STF_CWDIR is: "$(!STF_CWDIR)
  106.     Debug-Output "OEMSETUP.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  107.     set-subst LF = "\n"
  108.     read-syms GeneralConstants
  109.     read-syms FileConstants
  110.     read-syms DialogConstants$(!STF_LANGUAGE)
  111.     ifstr(i) $(!NTN_Origination) == "NCPA"
  112.         set Continue = $(OK)
  113.     endif
  114.     read-syms FileConstants$(!STF_LANGUAGE)
  115.     detect date
  116.     set-title  $(FunctionTitle)
  117.     set to   = Begin
  118.     set from = Begin
  119.     set CommonStatus = STATUS_SUCCESSFUL
  120.     EndWait
  121. Begin = +
  122.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  123.         set StartLabel = removeadapter
  124.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  125.         set StartLabel = UpgradeSoftware
  126.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  127.         set StartLabel = bindingadapter
  128.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  129.         set CommonStatus = STATUS_REBOOT
  130.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  131.             Debug-Output "Cannot configure the Proteon ProNET RapiDriver software."
  132.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  133.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  134.                 Debug-Output "ShellCode error: cannot get an error string."
  135.                 goto ShellCodeError
  136.             endif
  137.             set Error = $($R0)
  138.             set from = end
  139.             set to = end
  140.             goto nonfatalinfo
  141.         endif
  142.         set StartLabel = configureadapter
  143.     else
  144.         set StartLabel = installadapter
  145.         set OEM_ABANDON_OPTIONS = {}
  146.         set OEM_ABANDON_SOFTWARE = FALSE
  147.         set OEM_ABANDON_ON = TRUE
  148.         set NetworkAddress = "000000000000"
  149.     endif
  150.     set from = $(fatal)
  151.     set to = $(fatal)
  152.     goto $(StartLabel)
  153. installadapter = +
  154. OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  155.    Ifstr $(KeyProduct) != $(KeyNull)
  156.         CloseRegKey $(KeyProduct)
  157.         ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  158.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  159.                $(ProductVersion)
  160.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  161.                Debug-Output "ShellCode error: cannot get an error string."
  162.                goto ShellCodeError
  163.            endif
  164.            goto end
  165.         else
  166.            Shell $(UtilityInf), CardExistedDlg
  167.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  168.                Debug-Output "ShellCode error: cannot get an error string."
  169.                goto ShellCodeError
  170.            endif
  171.            ifstr(i) $($R1) != "OK"
  172.                set CommonStatus = STATUS_USERCANCEL
  173.                goto end
  174.            endif
  175.            set OldVersionExisted = $(TRUE)
  176.         endif
  177.     endif
  178.     CloseRegKey $(KeyProduct)
  179.     goto nextstep
  180. configureadapter = +
  181. OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) NetCardKey
  182.     ifstr(i) $(NetCardKey) == ""
  183.         set CommonStatus = STATUS_USERCANCEL
  184.         goto successful
  185.     endif
  186.     GetRegValue $(NetCardKey), "ServiceName", ServiceInfo
  187.     set ServiceName = *($(ServiceInfo),4)
  188.     CloseRegKey $(NetCardKey)
  189.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ServiceName)"\Parameters" $(MAXIMUM_ALLOWED) ParamKey
  190.     ifstr(i) $(ParamKey) != ""
  191.         GetRegValue $(ParamKey),"NetworkAddress", NetworkAddressInfo
  192.         set NetworkAddress = *($(NetworkAddressInfo), 4)
  193.         GetRegValue $(ParamKey), "CardSpeed", CardSpeedInfo
  194.         set CardSpeed = *($(CardSpeedInfo), 4)
  195.         ifint $(CardSpeed) == 4
  196.             set RadioIn = {1}
  197.         else
  198.             set RadioIn = {2}
  199.         else
  200.         endif
  201.         read-syms FileDependentDlg$(!STF_LANGUAGE)
  202.         ui start "InputDlg"
  203.         ifstr(i) $(DLGEVENT) == "CONTINUE"
  204.             ifcontains(i) 1 in $(RadioOut)
  205.                 SetRegValue $(ParamKey) {CardSpeed,$(NoTitle),$(!REG_VT_DWORD),4}
  206.                 SetRegValue $(ParamKey) {PacketSize,$(NoTitle),$(!REG_VT_DWORD),4210}
  207.             else
  208.                 SetRegValue $(ParamKey) {CardSpeed,$(NoTitle),$(!REG_VT_DWORD),16}
  209.                 SetRegValue $(ParamKey) {PacketSize,$(NoTitle),$(!REG_VT_DWORD),17986}
  210.             endif
  211.             set NetworkAddress = *($(EditTextOut),1)
  212.             ifstr(i) $(NetworkAddress) == ""
  213.                 set NetworkAddress = "000000000000"
  214.             endif
  215.             SetRegValue $(ParamKey) {NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)}
  216.             ui pop 1
  217.         else
  218.             set CommonStatus = STATUS_USERCANCEL
  219.             ui pop 1
  220.         endif
  221.         CloseRegKey $(ParamKey)
  222.     endif
  223.     goto successful
  224. nextstep = +
  225.     StartWait
  226. installproduct = +
  227.     set cardlist = {}
  228.     Shell $(UtilityInf), MCAFindBus, *($(p189x_1BYTE),1), *($(p189x_2BYTE),1)
  229.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  230.         goto ShellCodeError
  231.     endif
  232.     ifstr $($R0) != "NO_ERROR"
  233.         set Error = $($R0)
  234.         goto fatal
  235.     endif
  236.     ifstr(i) $($R1) != {}
  237.         set cardlist = $($R1)
  238.     endif
  239.     Shell $(UtilityInf), MCAFindBus, *($(p189x_1BYTE),2), *($(p189x_2BYTE),2)
  240.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  241.         goto ShellCodeError
  242.     endif
  243.     ifstr $($R0) != "NO_ERROR"
  244.         set Error = $($R0)
  245.         goto fatal
  246.     endif
  247.     ifstr(i) $($R1) != {}
  248.         ifstr(i) $(cardlist) != {}
  249.             set cardlist = >($(cardlist),$($R1))
  250.         else
  251.             set cardlist = $($R1)
  252.         endif
  253.     endif
  254.     Shell $(UtilityInf), MCAFindBus, *($(p189x_1BYTE),3), *($(p189x_2BYTE),3)
  255.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  256.         goto ShellCodeError
  257.     endif
  258.     ifstr $($R0) != "NO_ERROR"
  259.         set Error = $($R0)
  260.         goto fatal
  261.     endif
  262.     ifstr(i) $($R1) != {}
  263.         ifstr(i) $(cardlist) != {}
  264.             set cardlist = >($(cardlist),$($R1))
  265.         else
  266.             set cardlist = $($R1)
  267.         endif
  268.     endif
  269.     ifstr(i) $(cardlist) == {}
  270.         set Error = $(CANNOT_FIND_ANY_CARD)
  271.         set CommonStatus = STATUS_USERCANCEL
  272.         set from = "end"
  273.         goto nonfatal
  274.     endif
  275.     set AdapterList = $(cardlist)
  276.     ifint $(OldVersionExisted) == $(FALSE)
  277.         ifstr(i) $(!NTN_InstallMode) == "install"
  278.            Ifstr(i) $(DoCopy) == "YES"
  279.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  280.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  281.                   Goto ShellCodeError
  282.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  283.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  284.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  285.                       goto ShellCodeError
  286.                   endif
  287.                   set Error = $($R0)
  288.                   Goto fatal
  289.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  290.                   Goto successful
  291.               Endif
  292.               Set SrcDir = $($R1)
  293.            Endif
  294.            install "Install-Option"
  295.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  296.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  297.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  298.                   goto ShellCodeError
  299.               endif
  300.               set Error = $($R0)
  301.               goto fatal
  302.            endif
  303.         endif
  304.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  305.             $(ProductSoftwareName), +
  306.             $(ProductSoftwareName), +
  307.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  308.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  309.             $(NetEventDLL)
  310.         Set OEM_ABANDON_SOFTWARE = TRUE
  311.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  312.             goto ShellCodeError
  313.         endif
  314.         set RegistryErrorIndex = $($R0)
  315.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  316.             EndWait
  317.             CloseRegKey $($R1)
  318.             CloseRegKey $($R2)
  319.             CloseRegKey $($R3)
  320.             CloseRegKey $($R4)
  321.             CloseRegKey $($R5)
  322.             goto fatalregistry
  323.         endif
  324.         Set SoftProductKey      = $($R1)
  325.         Set SoftNetRuleKey      = $($R2)
  326.         Set SoftServiceKey      = $($R3)
  327.         Set SoftParameterKey    = $($R4)
  328.         Set SoftLinkageKey      = $($R5)
  329.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  330. {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  331. {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  332. {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  333. {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  334. {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  335. {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  336.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  337.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  338.             goto ShellCodeError
  339.         endif
  340.         set RegistryErrorIndex = $($R0)
  341.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  342.             EndWait
  343.             CloseRegKey $(SoftProductKey)
  344.             CloseRegKey $(SoftNetRuleKey)
  345.             CloseRegKey $(SoftServiceKey)
  346.             CloseRegKey $(SoftParameterKey)
  347.             CloseRegKey $(SoftLinkageKey)
  348.             goto fatalregistry
  349.         endif
  350.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  351. {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  352. {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  353. {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  354. {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  355.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  356.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  357.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  358.             goto ShellCodeError
  359.         endif
  360.         set RegistryErrorIndex = $($R0)
  361.         CloseRegKey $(SoftProductKey)
  362.         CloseRegKey $(SoftNetRuleKey)
  363.         CloseRegKey $(SoftServiceKey)
  364.         CloseRegKey $(SoftParameterKey)
  365.         CloseRegKey $(SoftLinkageKey)
  366.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  367.             EndWait
  368.             goto fatalregistry
  369.         endif
  370.     endif
  371.     ForListDo $(AdapterList)
  372.         set BusNum = *($($),1)
  373.         set SlotNum = *($($),2)
  374.         set McaPosId = *($($),3)
  375.         Debug-Output $(BusNum)
  376.         Debug-Output $(SlotNum)
  377.         Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
  378.             $(SlotNum), $(ProductHardwareDescription), $(ProductHardwareName)
  379.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  380.             goto ShellCodeError
  381.         endif
  382.         ifstr $($R0) != "NO_ERROR"
  383.             set Error = $($R0)
  384.             goto fatal
  385.         endif
  386.         ifstr(i) $($R1) != "YES"
  387.                 Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  388.                 ifint $($R4) != -1
  389.                     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  390.                 endif
  391.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  392.                     goto ShellCodeError
  393.                 endif
  394.                 set RegistryErrorIndex = $($R0)
  395.                 Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  396.                     EndWait
  397.                     CloseRegKey $($R1)
  398.                     CloseRegKey $($R2)
  399.                     CloseRegKey $($R3)
  400.                     goto fatalregistry
  401.                 endif
  402.                 Set HardNetCardKey      = $($R1)
  403.                 Set HardNetRuleKey      = $($R2)
  404.                 Set HardParameterKey    = $($R3)
  405.                 set AdapterNumber       = $($R4)
  406.                 set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  407. {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  408. {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  409. {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  410. {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  411. {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  412.                Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  413.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  414.                     goto ShellCodeError
  415.                 endif
  416.                 read-syms FileDependentDlg$(!STF_LANGUAGE)
  417.                 set RadioIn = {1}
  418.                 ui start "InputDlg"
  419.                 ifcontains(i) 1 in $(RadioOut)
  420.                     set CardSpeed = 4
  421.                     set Packet_Number = 4210
  422.                 else
  423.                     set CardSpeed = 16
  424.                     set Packet_Number = 17986
  425.                 endif
  426.                 set NetworkAddress = *($(EditTextOut),1)
  427.                 ifstr(i) $(NetworkAddress) == ""
  428.                     set NetworkAddress = "000000000000"
  429.                 endif
  430.                 ui pop 1
  431.                 Shell $(UtilityInf), GetBusTypeNum
  432.                 set BusTypeNum = $($R1)
  433.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  434.                     Debug-Output "ShellCode error."
  435.                     goto ShellCodeError
  436.                 endif
  437.                 set NewValueList = {{CardType,$(NoTitle),$(!REG_VT_DWORD),2},+
  438.                                    {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  439.                                    {McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(McaPosId)},+
  440.                                    {MediaType,$(NoTitle),$(!REG_VT_DWORD),2},+
  441.                                    {NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)},+
  442. {PacketSize,$(NoTitle),$(!REG_VT_DWORD),$(Packet_Number)},+
  443. {CardSpeed,$(NoTitle),$(!REG_VT_DWORD),$(CardSpeed)},+
  444. {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  445. {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)}}
  446.                 Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  447.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  448.                     goto ShellCodeError
  449.                 endif
  450.                 ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
  451.                     Shell $(UtilityInf),AddDefaultNetCardParameters,$(HardParameterKey)
  452.                 endif
  453.                 set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  454.                 set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  455.                 set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  456. {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  457. {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  458. {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  459.                Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  460.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  461.                     goto ShellCodeError
  462.                 endif
  463.                 CloseRegKey $(HardNetCardKey)
  464.                 CloseRegKey $(HardNetRuleKey)
  465.                 CloseRegKey $(HardParameterKey)
  466.         endif
  467.     EndForListDo
  468.     goto writeparameters
  469. writeparameters = +
  470.     EndWait
  471.     goto successful
  472. bindingadapter =+
  473.     set Error = "Binding: Sorry, not yet implemented."
  474.     goto fatal
  475. removeadapter = +
  476.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  477.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  478.             $(ProductSoftwareName)
  479.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  480.             Debug-Output "ShellCode error"
  481.             goto ShellCodeError
  482.         endif
  483.         set RegistryErrorIndex = $($R0)
  484.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  485.             goto fatalregistry
  486.         endif
  487.     else
  488.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  489.             $(ProductSoftwareName), $(!NTN_RegBase)
  490.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  491.             Debug-Output "ShellCode error"
  492.             goto ShellCodeError
  493.         endif
  494.         set RegistryErrorIndex = $($R0)
  495.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  496.             goto fatalregistry
  497.         endif
  498.     endif
  499.     goto end
  500. UpgradeSoftware = +
  501.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  502.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  503.         Ifstr $(KeyProduct) != $(KeyNull)
  504.             GetRegValue $(KeyProduct), "MajorVersion", VersionInfo
  505.             set Version = *($(VersionInfo), 4)
  506.             Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  507.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  508.                 Debug-Output "ShellCode error"
  509.                 goto ShellCodeError
  510.             endif
  511.             set !UG_Filename = $($R0)
  512.             ifstr(i) $(!UG_Filename) != ""
  513.                 install "Install-Update"
  514.                 ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  515.                     goto fatal
  516.                 endif
  517.             endif
  518.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  519.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  520.             ifint $(Version) != $(ProductVersion)
  521.             endif
  522.             CloseRegKey $(KeyProduct)
  523.         else
  524.             goto fatalregistry
  525.         endif
  526.     else
  527.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  528.               $(MAXIMUM_ALLOWED) NetworkCardKey
  529.         Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  530.             GetRegValue $(NetworkCardKey), "ServiceName", ServiceNameInfo
  531.             set ServiceName = *($(ServiceNameInfo), 4)
  532.             OpenRegKey $(NetworkCardKey) "" "NetRules" +
  533.                 $(MAXIMUM_ALLOWED) NetRuleKey
  534.             Ifstr(i) $(NetRuleKey) != $(KeyNull)
  535.             else
  536.                 goto fatalregistry
  537.             endif
  538.             CloseRegKey $(NetRules)
  539.             CloseRegKey $(NetworkCardKey)
  540.         else
  541.             goto fatalregistry
  542.         endif
  543.         OpenRegKey $(!REG_H_LOCAL) "" +
  544.               $(!NTN_ServiceBase)"\"$(ServiceName) +
  545.               $(MAXIMUM_ALLOWED) ServiceKey
  546.         Ifstr(i) $(ServiceKey) != $(KeyNull)
  547.             CloseRegKey $(ServiceKey)
  548.         else
  549.             goto fatalregistry
  550.         endif
  551.     endif
  552.     goto end
  553. successful = +
  554.     goto end
  555. abandon = +
  556.     ForListDo $(OEM_ABANDON_OPTIONS)
  557.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  558.             $(ProductSoftwareName), $($)
  559.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  560.             Debug-Output "ShellCode error"
  561.             goto ShellCodeError
  562.         endif
  563.         set RegistryErrorIndex = $($R0)
  564.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  565.             goto fatalregistry
  566.         endif
  567.     EndForListDo
  568.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  569.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  570.             $(ProductSoftwareName), FALSE
  571.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  572.             Debug-Output "ShellCode error"
  573.             goto ShellCodeError
  574.         endif
  575.         set RegistryErrorIndex = $($R0)
  576.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  577.             goto fatalregistry
  578.         endif
  579.     endif
  580.     goto end
  581. warning = +
  582.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  583.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  584.         goto ShellCodeError
  585.     endif
  586.     ifstr(i) $($R1) == "OK"
  587.         goto $(to)
  588.     else-ifstr(i) $($R1) == "CANCEL"
  589.         goto $(from)
  590.     else
  591.         goto "end"
  592.     endif
  593. nonfatalinfo = +
  594.     Set CommonStatus = STATUS_USERCANCEL
  595.     Set Severity = STATUS
  596.     goto nonfatalmsg
  597. nonfatal = +
  598.     Set Severity = NONFATAL
  599.     goto nonfatalmsg
  600. nonfatalmsg = +
  601.     ifstr(i) $(Error) == ""
  602.         Set Severity = NONFATAL
  603.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  604.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  605.             goto ShellCodeError
  606.         endif
  607.         set Error = $($R0)
  608.     endif
  609.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  610.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  611.         goto ShellCodeError
  612.     endif
  613.     ifstr(i) $($R1) == "OK"
  614.         goto $(from)
  615.     else
  616.         goto "end"
  617.     endif
  618. fatalregistry = +
  619.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  620.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  621.         goto ShellCodeError
  622.     endif
  623.     set Error = $($R0)
  624.     goto fatal
  625. fatal = +
  626.     ifstr(i) $(Error) == ""
  627.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  628.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  629.             goto ShellCodeError
  630.         endif
  631.         set Error = $($R0)
  632.     endif
  633.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  634.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  635.         goto ShellCodeError
  636.     endif
  637.     goto setfailed
  638. ShellCodeError = +
  639.     set DlgType      = "MessageBox"
  640.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  641.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  642.     set STF_MB_TYPE  = 1
  643.     set STF_MB_ICON  = 3
  644.     set STF_MB_DEF   = 1
  645.     ui start "Error Message"
  646.     goto setfailed
  647. setfailed = +
  648.     set CommonStatus = STATUS_FAILED
  649.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  650.         set OEM_ABANDON_ON = FALSE
  651.         goto abandon
  652.     endif
  653.     goto end
  654. end = +
  655.     goto term
  656. term = +
  657.     Return $(CommonStatus)
  658. [Install-Option]
  659.     set STF_VITAL = ""
  660.     ifstr(i) $(AddCopy) == "YES"
  661.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  662.     endif
  663.     ifstr(i) $(DoCopy) == "YES"
  664.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  665.        CopyFilesInCopyList
  666.     endif
  667.     ifstr(i) $(DoConfig) == "YES"
  668.     endif
  669.     Exit
  670. [Install-Update]
  671.    set STF_VITAL        = ""
  672.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  673.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  674.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  675.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  676.    CopyFilesInCopyList
  677.    exit
  678. [Source Media Descriptions]
  679.      1 = "Windows NT Server CD-ROM または セットアップ ディスク #5" , TAGFILE = disk1.s
  680.      2 = "Windows NT Server CD-ROM または セットアップ ディスク #6" , TAGFILE = disk2.s
  681.      3 = "Windows NT Server CD-ROM または セットアップ ディスク #7" , TAGFILE = disk3.s
  682.      4 = "Windows NT Server CD-ROM または セットアップ ディスク #8" , TAGFILE = disk4.s
  683.      5 = "Windows NT Server CD-ROM または セットアップ ディスク #9" , TAGFILE = disk5.s
  684.      6 = "Windows NT Server CD-ROM または セットアップ ディスク #10" , TAGFILE = disk6.s
  685.      7 = "Windows NT Server CD-ROM または セットアップ ディスク #11", TAGFILE = disk7.s
  686.      8 = "Windows NT Server CD-ROM または セットアップ ディスク #12", TAGFILE = disk8.s
  687.      9 = "Windows NT Server CD-ROM または セットアップ ディスク #13", TAGFILE = disk9.s
  688.     10 = "Windows NT Server CD-ROM または セットアップ ディスク #14", TAGFILE = disk10.s
  689.     11 = "Windows NT Server CD-ROM または セットアップ ディスク #15", TAGFILE = disk11.s
  690.     12 = "Windows NT Server CD-ROM または セットアップ ディスク #16", TAGFILE = disk12.s
  691.     13 = "Windows NT Server CD-ROM または セットアップ ディスク #17", TAGFILE = disk13.s
  692.     14 = "Windows NT Server CD-ROM または セットアップ ディスク #18", TAGFILE = disk14.s
  693.     15 = "Windows NT Server CD-ROM または セットアップ ディスク #19", TAGFILE = disk15.s
  694.     16 = "Windows NT Server CD-ROM または セットアップ ディスク #20", TAGFILE = disk16.s
  695.     17 = "Windows NT Server CD-ROM または セットアップ ディスク #21", TAGFILE = disk17.s
  696.     18 = "Windows NT Server CD-ROM または セットアップ ディスク #22", TAGFILE = disk18.s
  697.     19 = "Windows NT Server CD-ROM または セットアップ ディスク #23", TAGFILE = disk19.s
  698.     20 = "Windows NT Server CD-ROM または セットアップ ディスク #24", TAGFILE = disk20.s
  699.     21 = "Windows NT Server CD-ROM または セットアップ ディスク #25", TAGFILE = disk21.s
  700.     22 = "Windows NT Server CD-ROM または セットアップ ディスク #26", TAGFILE = disk22.s
  701.     23 = "Windows NT Server CD-ROM または セットアップ ディスク #27", TAGFILE = disk23.s
  702.     24 = "Windows NT Server CD-ROM または セットアップ ディスク #28", TAGFILE = disk24.s
  703.     25 = "Windows NT Server CD-ROM または セットアップ ディスク #29", TAGFILE = disk25.s
  704.     26 = "Windows NT Server CD-ROM または セットアップ ディスク #30", TAGFILE = disk26.s
  705.     27 = "Windows NT Server CD-ROM または セットアップ ディスク #31", TAGFILE = disk27.s
  706.     28 = "Windows NT Server CD-ROM または セットアップ ディスク #32", TAGFILE = disk28.s
  707.     29 = "Windows NT Server CD-ROM または セットアップ ディスク #33", TAGFILE = disk29.s
  708.     30 = "Windows NT Server CD-ROM または セットアップ ディスク #34", TAGFILE = disk30.s
  709.     50 = "Windows NT Server CD-ROM または リモートブート ディスク #1", TAGFILE = disk50.s
  710.     51 = "Windows NT Server CD-ROM または リモートブート ディスク #2", TAGFILE = disk51.s
  711. [Signature]
  712.     FileType = MICROSOFT_FILE
  713. [GetSignature]
  714.     read-syms Signature
  715.     return $(FileType)
  716. [ProductType]
  717. STF_PRODUCT  = LanmanNT
  718. STF_PLATFORM = I386
  719. [Files-Inf]
  720. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  721. [Files-P189X]
  722. 27,PRONET16.SYS , SIZE=37888
  723. 27,PRORAPM.DWN , SIZE=25600
  724. [LanguagesSupported]
  725.     ENG
  726. [OptionsTextENG]
  727.     P189X     = "ProNET-4/16 p189X NIC"
  728. [PacketChoices]
  729. Packet1="4KB",4210
  730. Packet2="18KB",17986
  731. [FileConstantsENG]
  732. ProCaption   = "Windows NT セットアップ"
  733. ProCancel    = "キャンセル"
  734. ProCancelMsg = "Windows NT ネットワークは正しく組み込まれていません。"+
  735.                "ファイルのコピーを中止しますか?"
  736. ProCancelCap = "ネットワーク セットアップ メッセージ"
  737. ProText1     = "コピー元:"
  738. ProText2     = "コピー先:"
  739. FunctionTitle   = "Proteon p189X アダプタ カード セットアップ"
  740. ProductSoftwareDescription      = "Proteon RapiDriver"
  741. ProductHardwareDescription      = "Proteon p189X ProNET-4/16 NIC"
  742. CANNOT_FIND_ANY_CARD            = "システムにネットワーク カードが存在しません。"
  743. ProductHardwareTitle    = "Proteon p189X ProNET-4/16 NIC"
  744. ProductSoftwareTitle    = "Proteon RapiDriver"
  745. ShellCodeErrorTitle     = "エラー: "$(FunctionTitle)
  746. ShellCodeErrorText      = "シェル コード エラーです。"
  747. [DialogConstantsENG]
  748. Help        = "ヘルプ(&H)"
  749. Exit        = "キャンセル"
  750. OK          = "OK"
  751. HelpContext = ""
  752. Continue    = "続行"
  753. Cancel      = "キャンセル"
  754. [FileDependentDlgENG]
  755. Group1 = "カード速度"
  756. Radio1 = "4(&4)"
  757. Radio2 = "16(&1)"
  758. Edit1Label = "ネットワーク アドレス(&N):"
  759. DlgType = "RadioCombination"
  760. DlgTemplate = "IBM_TOKEN"
  761. Caption = $(FunctionTitle)
  762. ComboListItemsIn = {}
  763. ComboListItemsOut = {}
  764. EditTextLim = 17
  765. EditTextIn = $(NetworkAddress)
  766. OptionsGreyed = {}
  767. HelpContext = $(!IDH_DB_OEMNADP9_INS)
  768. RCCtlFocusOn = 403
  769.