home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2000 March / VPR0003B.ISO / drvlibj / netcard / nec98 / 3com / 3c589d / oemsetnt.inf < prev    next >
INI File  |  1999-10-14  |  30KB  |  1,119 lines

  1. ;****************************************************************************
  2. ;
  3. ; OEMSETNT.INF
  4. ;
  5. ; 3Com EtherLink III LAN PC Card (3C589D-J-TP) Windows NT Setup File
  6. ;
  7. ; Copyright 1997 3Com Corporation
  8. ;****************************************************************************
  9.  
  10. [Identification]
  11.  OptionType = NetAdapter
  12.  
  13. [PlatformsSupported]
  14.  ISA
  15. ; EISA
  16. ; MCA
  17. ; PCI
  18.  PCMCIA
  19.  "Jazz-Internal Bus"
  20.  
  21. [Options]
  22.     elpc3r
  23.  
  24. [OptionsTextENG]
  25.  elpc3r = "3Com EtherLink III LAN PC Card (3C589D-J-TP)"
  26.  
  27. [AllFileConstants]
  28. GenericInfVersion = " v1.00"
  29. UtilityInf = "UTILITY.INF"
  30. ParamInf = "NCPARAM.INF"
  31. subroutineinf = "SUBROUTN.INF"
  32. SoftwareType = "driver"
  33. Exit_Code = 0
  34. NetEventDLL = "%SystemRoot%\System32\netevent.dll"
  35. IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll"
  36. TrayIconExe = "comsmd.exe -try"
  37. UninstallExe = "un3c589"
  38. UnInstallName = "3Com PC カード 診断 ユーティリティー"
  39. Manufacturer = "3Com"
  40.  
  41.  
  42.  
  43. [FileConstants-elpc3r]
  44. GenericAdapterName = "3Com EtherLink III LAN PC Card (3C589D-J-TP)"
  45. GenericDriverName = "3Com EtherLink III LAN PC Card (3C589D-J-TP)"
  46. GenericSysName = "elpc3r.sys"
  47. GenericName = "elpc3r"
  48. ProductMajorVersion = "3"
  49. ProductMinorVersion = "51"
  50. ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
  51. ProductSoftwareName = "elpc3r"
  52. ProductSoftwareDescription = "3Com EtherLink III LAN PC Card (3C589D-J-TP)"
  53. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\"$(GenericSysName)
  54. NetRuleSoftwareType = "elpc3rSys ndisDriver elpc3rDriver"
  55. NetRuleSoftwareUse = $(SoftwareType)
  56. NetRuleSoftwareBindForm = """elpc3rSys"" yes no container"
  57. NetRuleSoftwareClass = {"elpc3rDriver basic"}
  58. NetRuleSoftwareBindable = {"elpc3rDriver elpc3rAdapter non exclusive 100"}
  59. ProductHardwareName = "elpc3r"
  60. ProductHardwareDescription = "3Com EtherLink III LAN PC Card (3C589D-J-TP)"
  61. NetRuleHardwareType = "elpc3r elpc3rAdapter"
  62. NetRuleHardwareBindForm = " yes yes container"
  63. NetRuleHardwareClass = {"elpc3rAdapter basic"}
  64. ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  65. ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  66. VERS1Manufacturer = "3Com"
  67. VERS1Product = "EtherLinkIII LAN PC カード"
  68. VERS1Type         = "elpc3r-EtherLink"
  69. PCMCIA             = 1
  70.  
  71.  
  72.  
  73. [GeneralConstants]
  74. from = ""
  75. to = ""
  76. ExitCodeOk = 0
  77. ExitCodeCancel = 1
  78. ExitCodeFatal = 2
  79. KeyNull = ""
  80. MAXIMUM_ALLOWED = 33554432
  81. RegistryErrorIndex = NO_ERROR
  82. KeyProduct = ""
  83. KeyParameters = ""
  84. TRUE = 1
  85. FALSE = 0
  86. NoTitle = 0
  87. ExitState = "Active"
  88. OldVersionExisted = $(FALSE)
  89. DriverPath = $(!STF_NTPATH)\drivers
  90. NT350VersionConstant = "3.50"
  91. NT310VersionConstant = "3.10"
  92. NT400VersionConstant = "(4.0)"
  93.  
  94.  
  95.  
  96. [date]
  97.  Now = {} ? $(!LIBHANDLE) GetSystemDate
  98.  
  99.  
  100. [Identify]
  101.  read-syms Identification
  102.  
  103.  set Status = STATUS_SUCCESSFUL
  104.  set Identifier = $(OptionType)
  105.  set Media = #("Source Media Descriptions", 1, 1)
  106.  
  107.  Return $(Status) $(Identifier) $(Media)
  108.  
  109.  
  110. [ReturnOptions]
  111.  set Status = STATUS_FAILED
  112.  set OptionList = {}
  113.  set OptionTextList = {}
  114.  set LanguageList = ^(LanguagesSupported, 1)
  115.  Ifcontains(i) $($0) in $(LanguageList)
  116.  ifstr(i) $($1) == ""
  117.  goto returnoptions
  118.  endif
  119.  
  120.  set PlatformList = ^(PlatformsSupported, 1)
  121.  Ifcontains(i) $($1) in $(PlatformList)
  122.  goto returnoptions
  123.  else
  124.  set Status = STATUS_NOTSUPPORTED
  125.  goto finish_ReturnOptions
  126.  endif
  127.  else
  128.  set Status = STATUS_NOLANGUAGE
  129.  goto finish_ReturnOptions
  130.  endif
  131.  
  132. returnoptions = +
  133.  set OptionList = ^(Options, 1)
  134.  set OptionTextList = ^(OptionsText$($0), 1)
  135.  set Status = STATUS_SUCCESSFUL
  136.  
  137. finish_ReturnOptions = +
  138.  Return $(Status) $(OptionList) $(OptionTextList)
  139.  
  140. [InstallOption]
  141.  set Status = STATUS_FAILED
  142.  set Option = $($1)
  143.  set SrcDir = $($2)
  144.  set AddCopy = $($3)
  145.  set DoCopy = $($4)
  146.  set DoConfig = $($5)
  147.  
  148.  Set !DebugOutputControl = 1
  149.  
  150.  set LanguageList = ^(LanguagesSupported, 1)
  151.  Ifcontains(i) $($0) NOT-IN $(LanguageList)
  152.  Return STATUS_NOLANGUAGE
  153.  endif
  154.  
  155.  set-subst LF = "\n"
  156.  
  157.  read-syms GeneralConstants
  158.     read-syms AllFileConstants
  159.  read-syms FileConstants"-"$(Option)
  160.  read-syms DialogConstants$(!STF_LANGUAGE)"-"$(Option)
  161.  ifstr(i) $(!NTN_Origination) == "NCPA"
  162.  set Continue = $(OK)
  163.  endif
  164.  
  165.  read-syms AllFileConstants$(!STF_LANGUAGE)
  166.  read-syms FileConstants$(!STF_LANGUAGE)"-"$(Option)
  167.  
  168.  detect date
  169.  
  170.  set-title $(FunctionTitle)
  171.  
  172.  set to = Begin
  173.  set from = Begin
  174.  set CommonStatus = STATUS_SUCCESSFUL
  175.  
  176.  EndWait
  177.  
  178. Begin = +
  179.  
  180.  set CurrentVersionValue = ""
  181.  OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows Nt\CurrentVersion" $(!REG_KEY_READ) KeyNt
  182.  Ifstr(i) $(KeyNt) != ""
  183.   GetRegValue $(KeyNt) "CurrentVersion" CurrentVersionValue
  184.   Debug-Output "$(InfFile) $(Option): WinNT CurrentVersion ="$(CurrentVersionValue)
  185.   CloseRegKey $(KeyNt)
  186.  Endif
  187.  
  188.  
  189.  ifstr(i) (*($(CurrentVersionValue),4)) == $(NT310VersionConstant)
  190.   Debug-Output "$(InfFile) $(Option): Configureadapter"
  191.   set Error = "Windows NT v3.10 is not support by this product"
  192.   goto fatal
  193.  endif
  194.  
  195.  
  196.  Set ActivateDetection = FALSE
  197.  
  198.  Ifstr(i) $(!NTN_InstallMode) == deinstall
  199.   set StartLabel = removeadapter
  200.  else-Ifstr(i) $(!NTN_InstallMode) == Update
  201.   set StartLabel = UpgradeSoftware
  202.  else-Ifstr(i) $(!NTN_InstallMode) == bind
  203.   set StartLabel = bindingadapter
  204.  else-Ifstr(i) $(!NTN_InstallMode) == configure
  205.   set StartLabel = configureadapter
  206.   Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  207.    Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  208.    ifint $($ShellCode) != $(!SHELL_CODE_OK)
  209.     Debug-Output "ShellCode error: cannot get an error string."
  210.     goto ShellCodeError
  211.    endif
  212.    set Error = $($R0)
  213.    set from = end
  214.    set to = end
  215.    goto nonfatalinfo
  216.   endif
  217.  else
  218.   set StartLabel = installadapter
  219.   set OEM_ABANDON_OPTIONS = {}
  220.   set OEM_ABANDON_SOFTWARE = FALSE
  221.   set OEM_ABANDON_ON = TRUE
  222.  endif
  223.  
  224.  
  225.  set IRQValue        = *($(IRQList), 7)
  226.  set IOBaseAddrValue    = *($(IOBaseAddrList), 14)
  227.  
  228.  Set from = $(fatal)
  229.  Set to = $(fatal)
  230.  Goto $(StartLabel)
  231.  
  232.  
  233. installadapter = +
  234.  OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  235.  
  236.  Ifstr $(KeyProduct) != $(KeyNull)
  237.   CloseRegKey $(KeyProduct)
  238.  
  239.   ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  240.    Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  241.      $(ProductVersion)
  242.    ifint $($ShellCode) != $(!SHELL_CODE_OK)
  243.     Debug-Output "ShellCode error: cannot get an error string."
  244.     goto ShellCodeError
  245.    endif
  246.  
  247.    goto end
  248.   else
  249.    Shell $(UtilityInf), CardExistedDlg
  250.  
  251.    ifint $($ShellCode) != $(!SHELL_CODE_OK)
  252.     Debug-Output "ShellCode error: cannot get an error string."
  253.     goto ShellCodeError
  254.    endif
  255.  
  256.    ifstr(i) $($R1) != "OK"
  257.     goto end
  258.    endif
  259.    set OldVersionExisted = $(TRUE)
  260.   endif
  261.  endif
  262.  
  263.  Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) NO
  264.  
  265.  Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  266.   Goto ShellCodeError
  267.  Else-Ifstr(i) $($R0) == STATUS_FAILED
  268.   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  269.   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  270.    goto ShellCodeError
  271.   endif
  272.   set Error = $($R0)
  273.   Goto fatal
  274.  Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  275.   Goto successful
  276.  Endif
  277.  
  278.  Set FileToCheck = $($R1)\OEMSETNT.INF
  279.  LibraryProcedure FilePresent,$(!LIBHANDLE), CheckFileExistance $(FileToCheck)
  280.  Ifstr(i) $(FilePresent) != "YES"
  281.      Goto installadapter
  282.  Endif
  283.  
  284.  Set SrcDir = $($R1)
  285.  install "Install-Dll"
  286.  
  287.  Debug-Output "Install-3nicdiag"
  288.  install "Install-3nicdiag"
  289.  
  290.  StartWait
  291.   ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)
  292.    Debug-Output "$(InfFile) $(Option): Windows NT 4.00"
  293.    OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" $(!REG_KEY_ALL_ACCESS) KeyNt
  294.    set TrayIconList = {COMSMDEXE,$(NoTitle),$(!REG_VT_SZ),$(TrayIconExe)}
  295.    SetRegValue $(KeyNt) $(TrayIconList)
  296.    Debug-Output "Install-TraynCpl"
  297.    install "Install-TrayAndCpl"
  298.    CloseRegKey $(KeyNt)
  299.    RunProgram ExitCode "Windows Directory" "" COMSMD.EXE "-setup"
  300.  
  301.  
  302.    OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" $(!REG_KEY_ALL_ACCESS) KeyNt
  303.    ifstr $(KeyNt) == ""
  304.      CreateRegKey $(!REG_H_LOCAL) {"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" , 0, GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" KeyNt
  305.    endif
  306.    OpenRegKey $(KeyNt) "" "3ComNicUnInstall" $(!REG_KEY_ALL_ACCESS) KeyNt2
  307.    ifstr $(KeyNt2) == ""
  308.     CreateRegKey $(KeyNt) {"3ComNicUnInstall" , 0, GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" KeyNt2
  309.    endif
  310.    set NewValueList = {{DisplayName, $(NoTitle), $(!REG_VT_SZ), "3Com PC カード 診断 プログラム"},+
  311.               {UninstallString, $(NoTitle), $(!REG_VT_SZ), "UN3C589.EXE"}}
  312.    Shell $(UtilityInf), AddValueList, $(KeyNt2), $(NewValueList)
  313.    ifint $($ShellCode) != $(!SHELL_CODE_OK)
  314.     goto ShellCodeError
  315.    endif
  316.    CloseRegKey $(KeyNt)
  317.    CloseRegKey $(KeyNt2)
  318.   endif
  319.  EndWait
  320.  
  321.  goto adaptersetup
  322.  
  323.  
  324. configureadapter = +
  325.  Ifstr $(KeyProduct) == $(KeyNull)
  326.  OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  327.  Ifstr $(KeyProduct) == $(KeyNull)
  328.  set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  329.  Debug-Output "Cannot find component product key"
  330.  goto fatalregistry
  331.  Endif
  332.  Endif
  333.  
  334.  Debug-Output "INF: Shelling to FindService"
  335.  Shell $(UtilityInf) FindService, $(KeyProduct)
  336.  Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  337.  Debug-Output "INF: FindService shell failure"
  338.  Goto ShellCodeError
  339.  Endif
  340.  Ifstr(i) $($R0) != NO_ERROR
  341.  Debug-Output "INF: FindService Shell error: "$($R0)
  342.  Goto fatalregistry
  343.  endif
  344.  
  345.  Set KeyParameters = $($R2)
  346.  
  347.  CloseRegKey $($R1)
  348.  
  349.  Ifstr $(KeyParameters) == $(KeyNull)
  350.  set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  351.  Debug-Output "Cannot find component service"
  352.  goto fatalregistry
  353.  endif
  354.  
  355.  set OldVersionExisted = $(TRUE)
  356.  
  357.  set ValueName = ""
  358.  set ValueData = ""
  359.  set ValueStr = ""
  360.  set ValueList = {}
  361.  
  362.  
  363.     EnumRegValue $(KeyParameters) ValueList
  364.  ForListDo $(ValueList)
  365.         set ValueItem = $($)
  366.         set ValueName = *($(ValueItem),1)
  367.         set ValueData = *($(ValueItem),4)
  368.         ifstr(i) $(ValueName) == "IoBaseAddress"
  369.          set IOBaseAddrIndex = $(ValueData)
  370.      else-ifstr(i) $(ValueName) == "InterruptNumber"
  371.          set IRQValueIndex = $(ValueData)
  372.         endif
  373.  EndForListDo
  374.  
  375.  set IRQValue = *($(IRQList), ~($(IRQValues),$(IRQValueIndex)))
  376.  ifstr(i) $(IRQValue) == ""
  377.         set IRQValue = *($(IRQList), 5)
  378.  endif
  379.  
  380.  set IOBaseAddrValue = *($(IOBaseAddrList), ~($(IOBaseAddrValues),$(IOBaseAddrIndex)))
  381.  ifstr(i) $(IOBaseAddrValue) == ""
  382.         set IOBaseAddrValue = *($(IOBaseAddrList), 1)
  383.  endif
  384.  
  385.  
  386. adaptersetup = +
  387.  
  388.  
  389.  
  390.  LoadLibrary "disk 1" $(DialogDllName) hLib
  391.  read-syms FileDependentDlg$(!STF_LANGUAGE)"-"$(Option)
  392.     set ENABLER = 0
  393.  
  394.  
  395.  ui start "InputDlg" $(hLib)
  396.  
  397.  set ExitButton = $(ButtonPressed)
  398.     FreeLibrary $(hLib)
  399.  
  400.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  401.  
  402.         set IOBaseAddrIndex        = $(Combo1Out)
  403.         set IRQValueIndex        = $(Combo2Out)
  404.     set ExitButton            = $(ButtonPressed)
  405.  
  406.         ui pop 1
  407.  
  408.     else-ifstr(i) $(DLGEVENT) == "EXIT"
  409.         set CommonStatus = STATUS_USERCANCEL
  410.         ui pop 1
  411.         goto end
  412.  else
  413.         set CommonStatus = STATUS_USERCANCEL
  414.         ui pop 1
  415.         Debug-Output "Action: unknown. Bye."
  416.         goto end
  417.  endif
  418.  
  419.  
  420. skipoptions =+
  421.  
  422.  ifint $(OldVersionExisted) == $(TRUE)
  423.  ifstr(i) $(!NTN_InstallMode) == configure
  424.  goto writeparameters
  425.  endif
  426.  endif
  427.  StartWait
  428.  ifint $(OldVersionExisted) == $(FALSE)
  429.  
  430.  ifstr(i) $(!NTN_InstallMode) == "install"
  431.  Ifstr(i) $(DoCopy) == "YES"
  432.  
  433.  Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  434.  
  435.  Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  436.  Goto ShellCodeError
  437.  Else-Ifstr(i) $($R0) == STATUS_FAILED
  438.  Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  439.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  440.  goto ShellCodeError
  441.  endif
  442.  set Error = $($R0)
  443.  Goto fatal
  444.  Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  445.  Goto successful
  446.  Endif
  447.  
  448.  Set SrcDir = $($R1)
  449.  
  450.  Endif
  451.  
  452.  install "Install-Option"
  453.  
  454.  ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  455.  Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  456.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  457.  goto ShellCodeError
  458.  endif
  459.  set Error = $($R0)
  460.  goto fatal
  461.  endif
  462.  endif
  463.  
  464.  
  465.  
  466.  Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  467.  $(ProductSoftwareName), +
  468.  $(ProductSoftwareName), +
  469.  $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  470.  $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  471.  $(NetEventDLL)
  472.  
  473.  Set OEM_ABANDON_SOFTWARE = TRUE
  474.  
  475.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  476.  Debug-Output "ShellCode error"
  477.  goto ShellCodeError
  478.  endif
  479.  set RegistryErrorIndex = $($R0)
  480.  set KeyProduct = $($R1)
  481.  Set SoftNetRulesKey = $($R2)
  482.  CloseRegKey $($R3)
  483.  CloseRegKey $($R4)
  484.  CloseRegKey $($R5)
  485.  
  486.  Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  487.  EndWait
  488.  Debug-Output "Registry error: add software components"
  489.  CloseRegKey $(KeyProduct)
  490.  CloseRegKey $(SoftNetRulesKey)
  491.  goto fatalregistry
  492.  endif
  493.  
  494.  set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  495.  {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  496.  {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  497.  {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  498.  {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  499.  {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  500.  {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  501.  
  502.  Shell $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
  503.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  504.  Debug-Output "ShellCode error."
  505.  goto ShellCodeError
  506.  endif
  507.  
  508.  set RegistryErrorIndex = $($R0)
  509.  
  510.  Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  511.  EndWait
  512.  Debug-Output "Registry error: add value list."
  513.  CloseRegKey $(KeyProduct)
  514.  CloseRegKey $(SoftNetRulesKey)
  515.  goto fatalregistry
  516.  endif
  517.  
  518.  set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  519.  {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  520.  {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  521.  {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  522.  {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  523.  {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  524.  
  525.  Shell $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
  526.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  527.  Debug-Output "ShellCode error."
  528.  goto ShellCodeError
  529.  endif
  530.  
  531.  set RegistryErrorIndex = $($R0)
  532.  
  533.  CloseRegKey $(KeyProduct)
  534.  CloseRegKey $(SoftNetRulesKey)
  535.  
  536.  Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  537.  EndWait
  538.  Debug-Output "Resgitry error: add value list."
  539.  goto fatalregistry
  540.  endif
  541.  endif
  542.  
  543.  Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  544.  
  545.  ifint $($R4) != -1
  546.  Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  547.  endif
  548.  
  549.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  550.  Debug-Output "Cannot add hardware component"
  551.  goto ShellCodeError
  552.  endif
  553.  
  554.  set RegistryErrorIndex = $($R0)
  555.  
  556.  Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  557.  EndWait
  558.  Debug-Output "Registry error: add hardware component"
  559.  CloseRegKey $($R1)
  560.  CloseRegKey $($R2)
  561.  CloseRegKey $($R3)
  562.  goto fatalregistry
  563.  endif
  564.  
  565.  set KeyParameters = $($R3)
  566.  set KeyAdapterRules = $($R2)
  567.  set AdapterNumber = $($R4)
  568.  
  569.  set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  570.  {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  571.  {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  572.  {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  573.  {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  574.  {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  575.  
  576.  Shell $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  577.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  578.  Debug-Output "ShellCode error"
  579.  goto ShellCodeError
  580.  endif
  581.  
  582.  CloseRegKey $($R1)
  583.  
  584.  set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  585.  set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  586.  
  587.  set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  588.  {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  589.  {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  590.  {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  591.  
  592.  Shell $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  593.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  594.  Debug-Output "ShellCode error."
  595.  goto ShellCodeError
  596.  endif
  597.  
  598.  set RegistryErrorIndex = $($R0)
  599.  
  600.  Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  601.  EndWait
  602.  Debug-Output "Resgitry error: add value list."
  603.  CloseRegKey $(KeyParameters)
  604.  CloseRegKey $(KeyAdapterRules)
  605.  goto fatalregistry
  606.  endif
  607.  
  608.  CloseRegKey $(KeyAdapterRules)
  609.  
  610.  goto writeparameters
  611.  
  612. writeparameters = +
  613.  
  614.  
  615. set BusTypeNum = 1
  616. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  617.  Debug-Output "ShellCode error."
  618.  goto ShellCodeError
  619.  endif
  620.  
  621.     Debug-Output "$(InfFile) $(Option): Write Pcmcia database"
  622.     OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\Pcmcia\DataBase\3Com Corporation\3C589D" $(MAXIMUM_ALLOWED) MyPcmciaHandle
  623.     Ifstr $(MyPcmciaHandle) == $(KeyNull)
  624.     Debug-Output "CreatRegKey (3C589)"
  625.     OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\Pcmcia\DataBase\3Com Corporation" $(MAXIMUM_ALLOWED) MyPcmciaHandle
  626.     Ifstr $(MyPcmciaHandle) == $(KeyNull)
  627.         OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\Pcmcia\DataBase" $(MAXIMUM_ALLOWED) MyPcmciaKey
  628.         CreateRegKey $(MyPcmciaKey) {"3Com Corporation",0,GenericClass} "" $(MAXIMUM_ALLOWED) "" MyPcmcialHandle
  629.         CloseRegKey ($MyPcmciaKey)
  630.     endif
  631.     OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\Pcmcia\DataBase\3Com Corporation" $(MAXIMUM_ALLOWED) MyPcmciaKey
  632.     CreateRegKey $(MyPcmciaKey) {"3C589D",0,GenericClass} "" $(MAXIMUM_ALLOWED) "" MyPcmcialHandle
  633.     CloseRegKey ($MyPcmciaKey)
  634.     OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\Pcmcia\DataBase\3Com Corporation\3C589D" $(MAXIMUM_ALLOWED) MyPcmciaHandle
  635.     endif
  636.     set NewValueList = {{Driver,$(NoTitle),$(!REG_VT_SZ),"elpc3r"}}
  637.     Shell $(UtilityInf), AddValueList, $(MyPcmciaHandle), $(NewValueList)
  638.     Debug-Output "<DBG> AddValueList - Driver:REG_SZ:elpc3r"
  639.     CloseRegKey $(MyPcmciaHandle)
  640.  
  641.     set IRQValue       = *($(IRQValues), ~($(IRQList), $(IRQValueIndex)))
  642.     set IOBaseAddrValue    = *($(IOBaseAddrValues),~($(IOBaseAddrList), $(IOBaseAddrIndex)))
  643.     set NewValueList = {{IoBaseAddress, $(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)},+
  644.      {InterruptNumber, $(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+
  645.      {MediaType, $(NoTitle),$(!REG_VT_DWORD),1},+
  646.      {BusType, $(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  647.      {BusNumber, $(NoTitle),$(!REG_VT_DWORD),0},+
  648.      {CardType,$(NoTitle),$(!REG_VT_DWORD),0},+
  649.      {AdapterType,              $(NoTitle),$(!REG_VT_DWORD),259},+
  650.      {OSType,              $(NoTitle),$(!REG_VT_DWORD),1},+
  651.      {Pcmcia, $(NoTitle),$(!REG_VT_DWORD),1}}
  652.  
  653.  
  654.  Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  655.  CloseRegKey $(KeyParameters)
  656.  
  657.  
  658.  
  659.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  660.  Debug-Output "ShellCode error."
  661.  goto ShellCodeError
  662.  endif
  663.  
  664.  set RegistryErrorIndex = $($R0)
  665.  
  666.  Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  667.  Debug-Output "Registry error: Add value list"
  668.  goto fatalregistry
  669.  endif
  670.  
  671.  EndWait
  672.  
  673.  goto successful
  674.  
  675. bindingadapter =+
  676.  set Error = "Binding: Sorry, not yet implemented."
  677.  goto fatal
  678.  
  679.  
  680. removeadapter = +
  681.  Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  682.  
  683. Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  684.  $(ProductSoftwareName)
  685.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  686.  Debug-Output "ShellCode error"
  687.  goto ShellCodeError
  688.  endif
  689.  
  690.  set RegistryErrorIndex = $($R0)
  691.  
  692.  Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  693.  goto fatalregistry
  694.  endif
  695.  else
  696.  Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  697.  $(ProductSoftwareName), $(!NTN_RegBase)
  698.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  699.  Debug-Output "ShellCode error"
  700.  goto ShellCodeError
  701.  endif
  702.  
  703.  set RegistryErrorIndex = $($R0)
  704.  
  705.  Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  706.  goto fatalregistry
  707.  endif
  708.  
  709.  
  710.  endif
  711.  
  712.  
  713.     ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)
  714.         Debug-Output "$(InfFile) $(Option): Windows NT 4.00 remove icon"
  715.         OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" $(!REG_KEY_ALL_ACCESS) KeyNt
  716.         set TrayIconList = COMSMDEXE
  717.         DeleteRegValue $(KeyNt) $(TrayIconList)
  718.         CloseRegKey $(KeyNt)
  719.     endif
  720.     RunProgram ExitCode "Windows Directory" "" UN3C589.EXE "-inf"
  721.  
  722. goto end
  723.  
  724.  
  725. UpgradeSoftware = +
  726.  ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  727.  OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  728.  
  729.  Ifstr $(KeyProduct) != $(KeyNull)
  730.  GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  731.  set Version = *($(VersionInfo), 4)
  732.  
  733.  Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  734.  
  735.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  736.  Debug-Output "ShellCode error"
  737.  goto ShellCodeError
  738.  endif
  739.  
  740.  set !UG_Filename = $($R0)
  741.  
  742.  ifstr(i) $(!UG_Filename) != ""
  743.  install "Install-Update"
  744.  ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  745.  goto fatal
  746.  endif
  747.  endif
  748.  
  749.  SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  750.  SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  751.  
  752.  ifint $(Version) != $(ProductVersion)
  753.  endif
  754.  CloseRegKey $(KeyProduct)
  755.  else
  756.  goto fatalregistry
  757.  endif
  758.  else
  759.  OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  760.  $(MAXIMUM_ALLOWED) NetworkCardKey
  761.  Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  762.  GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  763.  set ServiceName = *($(ServiceNameInfo), 4)
  764.  
  765.  OpenRegKey $(NetworkCardKey) "" "NetRules" +
  766.  $(MAXIMUM_ALLOWED) NetRuleKey
  767.  Ifstr(i) $(NetRuleKey) != $(KeyNull)
  768.  else
  769.  goto fatalregistry
  770.  endif
  771.  
  772.  CloseRegKey $(NetRules)
  773.  CloseRegKey $(NetworkCardKey)
  774.  else
  775.  goto fatalregistry
  776.  endif
  777.  OpenRegKey $(!REG_H_LOCAL) "" +
  778.  $(!NTN_ServiceBase)"\"$(ServiceName) +
  779.  $(MAXIMUM_ALLOWED) ServiceKey
  780.  
  781.  Ifstr(i) $(ServiceKey) != $(KeyNull)
  782.  CloseRegKey $(ServiceKey)
  783.  else
  784.  goto fatalregistry
  785.  endif
  786.  endif
  787.  
  788.  goto end
  789.  
  790. successful = +
  791.  goto end
  792.  
  793. abandon = +
  794.  ForListDo $(OEM_ABANDON_OPTIONS)
  795.  Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  796.  $(ProductSoftwareName), $($)
  797.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  798.  Debug-Output "ShellCode error"
  799.  goto ShellCodeError
  800.  endif
  801.  
  802.  set RegistryErrorIndex = $($R0)
  803.  
  804.  Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  805.  goto fatalregistry
  806.  endif
  807.  EndForListDo
  808.  
  809.  Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  810.  
  811. Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  812.  $(ProductSoftwareName), FALSE
  813.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  814.  Debug-Output "ShellCode error"
  815.  goto ShellCodeError
  816.  endif
  817.  
  818.  set RegistryErrorIndex = $($R0)
  819.  
  820.  Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  821.  goto fatalregistry
  822.  endif
  823.  endif
  824.  
  825.  goto end
  826.  
  827. warning = +
  828.  Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  829.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  830.  goto ShellCodeError
  831.  endif
  832.  ifstr(i) $($R1) == "OK"
  833.  goto $(to)
  834.  else-ifstr(i) $($R1) == "CANCEL"
  835.  goto $(from)
  836.  else
  837.  goto "end"
  838.  endif
  839. nonfatalinfo = +
  840.  Set Severity = STATUS
  841.  Set CommonStatus = STATUS_USERCANCEL
  842.  goto nonfatalmsg
  843. nonfatal = +
  844.  Set Severity = NONFATAL
  845.  goto nonfatalmsg
  846. nonfatalmsg = +
  847.  ifstr(i) $(Error) == ""
  848.  Set Severity = NONFATAL
  849.  Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  850.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  851.  goto ShellCodeError
  852.  endif
  853.  set Error = $($R0)
  854.  endif
  855.  Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  856.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  857.  goto ShellCodeError
  858.  endif
  859.  ifstr(i) $($R1) == "OK"
  860.  goto $(from)
  861.  else
  862.  goto "end"
  863.  endif
  864.  
  865. fatalregistry = +
  866.  Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  867.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  868.  goto ShellCodeError
  869.  endif
  870.  set Error = $($R0)
  871.  goto fatal
  872. fataldetect = +
  873.  Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
  874.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  875.  Debug-Output "ShellCode error: cannot get an error string."
  876.  goto ShellCodeError
  877.  endif
  878.  set Error = $($R0)
  879.  Goto fatal
  880. fatal = +
  881.  ifstr(i) $(Error) == ""
  882.  Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  883.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  884.  goto ShellCodeError
  885.  endif
  886.  set Error = $($R0)
  887.  endif
  888.  Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  889.  ifint $($ShellCode) != $(!SHELL_CODE_OK)
  890.  goto ShellCodeError
  891.  endif
  892.  
  893.  goto setfailed
  894.  
  895. ShellCodeError = +
  896.  set DlgType = "MessageBox"
  897.  set STF_MB_TITLE = $(ShellCodeErrorTitle)
  898.  set STF_MB_TEXT = $(ShellCodeErrorText)
  899.  set STF_MB_TYPE = 1
  900.  set STF_MB_ICON = 3
  901.  set STF_MB_DEF = 1
  902.  ui start "Error Message"
  903.  goto setfailed
  904.  
  905. setfailed = +
  906.  set CommonStatus = STATUS_FAILED
  907.  ifstr(i) $(OEM_ABANDON_ON) == TRUE
  908.  set OEM_ABANDON_ON = FALSE
  909.  goto abandon
  910.  endif
  911.  goto end
  912.  
  913. end = +
  914.  goto term
  915.  
  916. term = +
  917.  
  918.  Return $(CommonStatus)
  919.  
  920. [DebugConfiguration]
  921.  
  922.  Set InfName = "OEMSETNT.INF"
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930. return
  931.  
  932.  
  933. [Install-Option]
  934.  set STF_VITAL = ""
  935.  
  936.  ifstr(i) $(AddCopy) == "YES"
  937.  
  938.  AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  939.  ;AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  940.  
  941.  endif
  942.  
  943.  ifstr(i) $(DoCopy) == "YES"
  944.  
  945.  set !STF_NCPA_FLUSH_COPYLIST = TRUE
  946.  CopyFilesInCopyList
  947.  
  948.  endif
  949.  
  950.  Exit
  951.  
  952.  
  953. [Install-Update]
  954.  set STF_VITAL = ""
  955.  set STF_OVERWRITE = "VERIFYSOURCEOLDER"
  956.  
  957.  AddSectionFilesToCopyList Files-3nicdiag $(SrcDir) $(!STF_WINDOWSSYSPATH)
  958.  AddSectionFilesToCopyList Files-HwDll $(SrcDir) $(!STF_WINDOWSSYSPATH)
  959.  AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  960.  ;AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  961.  AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  962.  
  963.  set !STF_NCPA_FLUSH_COPYLIST = TRUE
  964.  CopyFilesInCopyList
  965.  
  966.  exit
  967.  
  968.  
  969.  
  970. [Install-Dll]
  971.  set STF_VITAL    = ""
  972.  AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
  973.  set !STF_NCPA_FLUSH_COPYLIST = TRUE
  974.  CopyFilesInCopyList
  975.  exit
  976.  
  977. [Install-3nicdiag]
  978.  set STF_VITAL = ""
  979.  AddSectionFilesToCopyList Files-3nicdiag $(SrcDir) $(!STF_WINDOWSSYSPATH)
  980.  AddSectionFilesToCopyList Files-HwDll $(SrcDir) $(!STF_WINDOWSSYSPATH)
  981.  set !STF_NCPA_FLUSH_COPYLIST = TRUE
  982.  CopyFilesInCopyList
  983.  Exit
  984.  
  985. [Install-TrayAndCpl]
  986.  set STF_VITAL = ""
  987.  AddSectionFilesToCopyList Files-TrayAndCpl $(SrcDir) $(!STF_WINDOWSSYSPATH)
  988.  set !STF_NCPA_FLUSH_COPYLIST = TRUE
  989.  CopyFilesInCopyList
  990.  Exit
  991.  
  992. [Source Media Descriptions]
  993.  1 = "Windows NT セットアップ ディスク #1"
  994.  2 = "3Com 3C589 EtherLinkIII LAN PC カード EtherDisk ディスケット"
  995.  
  996. [ProductType]
  997. STF_PRODUCT = Winnt
  998. STF_PLATFORM = I386
  999.  
  1000. [Files-Inf]
  1001. 2, OEMSETNT.INF, SIZE=60000,    RENAME=$(!UG_Filename)
  1002.  
  1003. [Files-Dll]
  1004. 2, El3c589.DLL, SIZE=50000
  1005.  
  1006. [Files-3nicdiag]
  1007. 2,3nicdiag.exe, SIZE=300000
  1008. 2,3nicdiag.hlp, SIZE=50000
  1009. 2,3varaddr.txt, SIZE=1000
  1010. 2,un3c589.exe, SIZE=100000
  1011.  
  1012. [Files-HwDll]
  1013. 2,hwaccess.dll, SIZE=90000
  1014. 2,pcomdrv.sys, SIZE=9000
  1015. 2,3c589cfg.dll, SIZE=90000
  1016.  
  1017. [Files-TrayAndCpl]
  1018. 2,comsmd.exe, SIZE=10000
  1019.  
  1020. [Files-elpc3r]
  1021. 2,elpc3r.SYS, SIZE=60000
  1022.  
  1023. [LanguagesSupported]
  1024.  ENG
  1025.  
  1026. [AllFileConstantsENG]
  1027. ProCaption = "Windows NT セットアップ"
  1028. ProCancel = "キャンセル"
  1029. ProCancelMsg = "Windows NT ネットワーク は正しくインストールされていません."+
  1030.  "ファイルの コピーを中止してもよろしいですか?"
  1031. ProCancelCap = "Network セットアップ メッセージ"
  1032. ProText1 = "コピーしています :"
  1033. ProText2 = "コピー先 :"
  1034. DialogDllName = "El3c589.DLL"
  1035.  
  1036. [FileConstantsENG-Elpc3r]
  1037. FunctionTitle        = $(GenericAdapterName)" セットアップ"$(GenericInfVersion)
  1038. ProductSoftwareTitle = $(GenericDriverName)
  1039. ProductHardwareTitle = $(GenericAdapterName)
  1040. IRQList         = ^(IRQChoices, 1)
  1041. IRQValues        = ^(IRQChoices, 2)
  1042. InterruptStyleValues = ^(InterruptStyleChoices, 2)
  1043. IOBaseAddrList        = ^(IOBaseAddrChoices, 1)
  1044. IOBaseAddrValues        = ^(IOBaseAddrChoices, 2)
  1045.  
  1046. [DialogConstantsENG-elpc3r]
  1047. Help = "ヘルプ(&H)"
  1048. Exit = "キャンセル"
  1049. OK = "確認"
  1050. HelpContext = ""
  1051. Continue = "継続"
  1052. Cancel = "キャンセル"
  1053.  
  1054. [FileDependentDlgENG-elpc3r]
  1055. DlgType = "RadioCombination"
  1056. DlgTemplate = "El3c589"
  1057. Caption = $(FunctionTitle)
  1058. HelpContext = $(!IDH_DB_OEMNADE2_INS)
  1059. CBOptionsGreyed = {}
  1060. NotifyFields = {NO, NO, NO, NO}
  1061. Combo1Label = "I/O ポート:"
  1062. Combo2Label = "IRQ 値:"
  1063.  
  1064. Combo1List = $(IOBaseAddrList)
  1065. Combo1Out = $(IOBaseAddrValue)
  1066. Combo2List = $(IRQList)
  1067. Combo2Out = $(IRQValue)
  1068. ComboListItemsIn = {Combo1List,Combo2List}
  1069. ComboListItemsOut = {Combo1Out,Combo2Out}
  1070.  
  1071. EditTextIn = {"",""}
  1072. EditTextLim = {"",""}
  1073.  
  1074. [IRQChoices]
  1075. IRQ_1  = "3",3
  1076. IRQ_2  = "4",4
  1077. IRQ_3  = "5",5
  1078. IRQ_4  = "6",6
  1079. IRQ_5  = "7",7
  1080. IRQ_6  = "9",9
  1081. IRQ_7  = "10", 10
  1082. IRQ_8  = "11", 11
  1083. IRQ_9  = "12", 12
  1084. IRQ_10 = "15", 15
  1085.  
  1086. [IOBaseAddrChoices]
  1087. IOBase_1 = "0x200",512
  1088. IOBase_2 = "0x210",528
  1089. IOBase_3 = "0x220",544
  1090. IOBase_4 = "0x230",560
  1091. IOBase_5 = "0x1E0",480
  1092. IOBase_6 = "0x250",592
  1093. IOBase_7 = "0x260",608
  1094. IOBase_8 = "0x270",624
  1095. IOBase_9 = "0x280",640
  1096. IOBase_10 = "0x290",656
  1097. IOBase_11 = "0x2A0",672
  1098. IOBase_12 = "0x2B0",688
  1099. IOBase_13 = "0x2C0",704
  1100. IOBase_14 = "0x2D0",720
  1101. IOBase_15 = "0x2E0",736
  1102. IOBase_16 = "0x2F0",752
  1103. IOBase_17 = "0x300",768
  1104. IOBase_18 = "0x310",784
  1105. IOBase_19 = "0x320",800
  1106. IOBase_20 = "0x330",816
  1107. IOBase_21 = "0x340",832
  1108. IOBase_22 = "0x350",848
  1109. IOBase_23 = "0x360",864
  1110. IOBase_24 = "0x370",880
  1111. IOBase_25 = "0x380",896
  1112. IOBase_26 = "0x390",912
  1113. IOBase_27 = "0x3A0",928
  1114. IOBase_28 = "0x3B0",944
  1115. IOBase_29 = "0x3C0",960
  1116. IOBase_30 = "0x3D0",976
  1117. IOBase_31 = "0x1F0",496
  1118. IOBase_32 = "0x3F0",1008
  1119.