home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1998 September / VPR9809B.ISO / DRIVER / iodata / ET98102 / ET98102.EXE / DISK.EXE / NT35X / OEMSETUP.INF < prev   
INI File  |  1997-11-17  |  21KB  |  720 lines

  1. ;''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  2. ; ET-98 Series Setup File
  3. ; File Name : OEMSETUP.INF
  4. ; Operating System : WindowsNT 3.5/3.51/4.0
  5. ; Platform Type : PC98
  6. ; Copyright (C) 1997 I-O DATA DEVICE,INC.
  7. ;,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
  8.  
  9. [Identification]
  10.     OptionType = NetAdapter
  11.  
  12. [PlatformsSupported]
  13.     PCI
  14.     ISA
  15.     EISA
  16.     "Jazz-Internal Bus"
  17. [Options]
  18.     ETC98
  19.  
  20. [FileConstants]
  21. UtilityInf    = "UTILITY.INF"
  22. ParamInf    = "NCPARAM.INF"
  23. subroutineinf    = "SUBROUTN.INF"
  24. SoftwareType    = "driver"
  25. Exit_Code    = 0
  26. NetEventDLL    = "%SystemRoot%\System32\netevent.dll"
  27. IoLogMsgDLL    = "%SystemRoot%\System32\IoLogMsg.dll"
  28. Manufacturer    = "I-O DATA DEVICE,INC."
  29. ProductMajorVersion    = "1"
  30. ProductMinorVersion    = "00"
  31. ProductVersion    = $(ProductMajorVersion)"."$(ProductMinorVersion)
  32. ProductSoftwareName    = "ETC98"
  33. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\ETC98.sys"
  34. NetRuleSoftwareType    = "ETC98Sys ndisDriver ETC98Driver"
  35. NetRuleSoftwareUse    = $(SoftwareType)
  36. NetRuleSoftwareBindForm = """ETC98Sys"" yes no container"
  37. NetRuleSoftwareClass    = {"ETC98Driver basic"}
  38. NetRuleSoftwareBindable = {"ETC98Driver ETC98Adapter non exclusive 100"}
  39. ProductHardwareName    = "ETC98"
  40. NetRuleHardwareType    = "ETC98 ETC98Adapter"
  41. NetRuleHardwareBindForm = " yes yes container"
  42. NetRuleHardwareClass    = {"I-O DATA ET-98シリーズ イーサネット アダプタ"}
  43. ProductKeyName        = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  44. ParamKeyName        = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  45.  
  46. [GeneralConstants]
  47. from        = ""
  48. to        = ""
  49. Number        = "2000"
  50. ExitCodeOk    = 0
  51. ExitCodeCancel    = 1
  52. ExitCodeFatal    = 2
  53. KeyNull        = ""
  54. MAXIMUM_ALLOWED = 33554432
  55. RegistryErrorIndex = NO_ERROR
  56. KeyProduct    = ""
  57. KeyParameters    = ""
  58. TRUE        = 1
  59. FALSE        = 0
  60. NoTitle        = 0
  61. ExitState    = "Active"
  62. OldVersionExisted = $(FALSE)
  63. DriverPath    = $(!STF_NTPATH)\drivers
  64. Data        ="NE"
  65.  
  66. [date]
  67.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  68.  
  69. [Identify]
  70.     read-syms Identification
  71.     set Status = STATUS_SUCCESSFUL
  72.     set Identifier = $(OptionType)
  73.     set Media = #("Source Media Descriptions", 1, 1)
  74.     Return $(Status) $(Identifier) $(Media)
  75.  
  76. [ReturnOptions]
  77.     set Status = STATUS_FAILED
  78.     set OptionList = {}
  79.     set OptionTextList = {}
  80.     set LanguageList = ^(LanguagesSupported, 1)
  81.     Ifcontains(i) $($0) in $(LanguageList)
  82.         ifstr(i) $($1) == ""
  83.             goto returnoptions
  84.         endif
  85.         set PlatformList = ^(PlatformsSupported, 1)
  86.         Ifcontains(i) $($1) in $(PlatformList)
  87.             goto returnoptions
  88.         else
  89.             set Status = STATUS_NOTSUPPORTED
  90.             goto finish_ReturnOptions
  91.         endif
  92.     else
  93.         set Status = STATUS_NOLANGUAGE
  94.         goto finish_ReturnOptions
  95.     endif
  96.  
  97. returnoptions = +
  98.     set OptionList = ^(Options, 1)
  99.     set OptionTextList = ^(OptionsText$($0), 1)
  100.     set Status = STATUS_SUCCESSFUL
  101.  
  102. finish_ReturnOptions = +
  103.     Return $(Status) $(OptionList) $(OptionTextList)
  104.  
  105. [InstallOption]
  106.     set Option = $($1)
  107.     set SrcDir = $($2)
  108.     set AddCopy = $($3)
  109.     set DoCopy = $($4)
  110.     set DoConfig = $($5)
  111.     set LanguageList = ^(LanguagesSupported, 1)
  112.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  113.         Return STATUS_NOLANGUAGE
  114.     endif
  115.     set-subst LF = "\n"
  116.     read-syms GeneralConstants
  117.     read-syms FileConstants
  118.     read-syms DialogConstants$(!STF_LANGUAGE)
  119.     ifstr(i) $(!NTN_Origination) == "NCPA"
  120.         set Continue = $(OK)
  121.     endif
  122.     read-syms FileConstants$(!STF_LANGUAGE)
  123.     detect date
  124.     set-title  $(FunctionTitle)
  125.     set to = Begin
  126.     set from = Begin
  127.     set CommonStatus = STATUS_SUCCESSFUL
  128.     EndWait
  129.  
  130. Begin = +
  131.     set ActivateDetection = FALSE
  132.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  133.         set StartLabel = removeadapter
  134.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  135.         set StartLabel = UpgradeSoftware
  136.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  137.         set StartLabel = bindingadapter
  138.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  139.         set CommonStatus = STATUS_REBOOT
  140.         set ActivateDetection = TRUE
  141.         set StartLabel = configureadapter
  142.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  143.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  144.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  145.                 goto ShellCodeError
  146.             endif
  147.             set Error = $($R0)
  148.             set from = end
  149.             set to = end
  150.             goto nonfatalinfo
  151.         endif
  152.     else
  153.         set StartLabel = installadapter
  154.         set OEM_ABANDON_OPTIONS = {}
  155.         set OEM_ABANDON_SOFTWARE = FALSE
  156.         set OEM_ABANDON_ON = TRUE
  157.         set ActivateDetection = TRUE
  158.     endif
  159.     Set DetectedCard = FALSE
  160.     Ifstr(i) $(ActivateDetection) != TRUE
  161.         Goto skipdetection
  162.     Endif
  163.     Set TypeList = {{IRQ,IRQList,IRQValue},+
  164.             {IOADDR, IOBaseAddrDecList, IOBaseAddrValue}}
  165.     Set IRQList = {3,5,6,12,13}
  166.     Set IOBaseAddrDecList = {208,210,212,214,216}
  167.     Set IOBaseAddrHexList = {0x00D0,0x00D2,0x00D4,0x00D6,0x00D8}
  168.     Set !STF_NC_PARAMS = {{IRQ, 1, 80, { 3, 5, 6, 12, 13}},+
  169.                   {IOADDR, 1, 100, {208,210,212,214,216}}}
  170.     Set !STF_NC_PNAMES = {{IRQ, IRQValue, 3}, {IOADDR, IOBaseAddrValue, 208}}
  171.     Shell $(ParamInf) Param_SetDefaults {}
  172.     Set (!STF_NCOPTION) = $(Option)
  173.     Ifstr(i) $(!STF_NCDETECT) == YES
  174.         Ifstr(i) $(!STF_NCOPTION) == $(Option)
  175.             Set DetectedCard = TRUE
  176.         Endif
  177.     Endif
  178.  
  179. skipdetection =+
  180.     set from = $(fatal)
  181.     set to = $(fatal)
  182.     goto $(StartLabel)
  183.  
  184. installadapter = +
  185.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  186.     Ifstr $(KeyProduct) != $(KeyNull)
  187.         CloseRegKey $(KeyProduct)
  188.         ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  189.             Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  190.                   $(ProductVersion)
  191.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  192.                 goto ShellCodeError
  193.             endif
  194.             goto end
  195.         else
  196.             Shell $(UtilityInf), CardExistedDlg
  197.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  198.                 goto ShellCodeError
  199.             endif
  200.             ifstr(i) $($R1) != "OK"
  201.                 set CommonStatus = STATUS_USERCANCEL
  202.                 goto end
  203.             endif
  204.             set OldVersionExisted = $(TRUE)
  205.         endif
  206.     endif
  207.     Ifstr(i) $(DetectedCard) != TRUE
  208.         Goto adaptersetup
  209.     Endif
  210.     StartWait
  211.     Shell $(ParamInf) Param_QueryCard $(!STF_NCDETCARD)
  212.     EndWait
  213.     Ifstr(i) $($R0) != STATUS_SUCCESSFUL
  214.         Goto adaptersetup
  215.     Endif
  216.     Set DetectedParams = $($R1)
  217.     Shell $(ParamInf) Param_SetDefaults $(DetectedParams)
  218.     goto adapteroptions
  219.  
  220. configureadapter = +
  221.     Ifstr $(KeyProduct) == $(KeyNull)
  222.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  223.         Ifstr $(KeyProduct) == $(KeyNull)
  224.             set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  225.             goto fatalregistry
  226.         Endif
  227.     Endif
  228.     Shell $(UtilityInf) FindService, $(KeyProduct)
  229.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  230.         Goto ShellCodeError
  231.     Endif
  232.     Ifstr(i) $($R0) != NO_ERROR
  233.         Goto fatalregistry
  234.     endif
  235.     set KeyParameters = $($R2)
  236.     CloseRegKey $($R1)
  237.     Ifstr $(KeyParameters) == $(KeyNull)
  238.         set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  239.         goto fatalregistry
  240.     endif
  241.     set OldVersionExisted = $(TRUE)
  242.     set ValueName = ""
  243.     set ValueData = ""
  244.     set ValueStr  = ""
  245.     set ValueList = {}
  246.     EnumRegValue $(KeyParameters) ValueList
  247.     ForListDo $(ValueList)
  248.         set ValueItem = $($)
  249.         set ValueName = *($(ValueItem),1)
  250.         set ValueData = *($(ValueItem),4)
  251.         Ifstr(i) $(ValueName) == "InterruptNumber"
  252.             set IRQValue = $(ValueData)
  253.         else-ifstr(i) $(ValueName) == "IoBaseAddress"
  254.             set IOBaseAddrValue = $(ValueData)
  255.         else-ifstr(i) $(ValueName) == "BusType"
  256.             set BusInterfaceType = $(ValueData)
  257.         else-ifstr(i) $(ValueName) == "BusNumber"
  258.             set BusNumber = $(ValueData)
  259.         endif
  260.     EndForListDo
  261.     ifstr(i) $(IRQValue) == ""
  262.         set IRQValue = *($(IRQList), 2)
  263.     endif
  264.     ifstr(i) $(IOBaseAddrValue) == ""
  265.         set IOBaseAddrValue = *($(IOBaseAddrDecList), 1)
  266.     endif
  267.  
  268. adaptersetup =+
  269.     Shell $(ParamInf) Param_ParameterConfidence
  270.     Ifstr(i) $($R0) != STATUS_SUCCESSFUL
  271.         Goto adapteroptions
  272.     Endif
  273.     Ifstr(i) $(DetectedCard) == TRUE
  274.         Ifstr(i) $(!STF_INSTALL_MODE) != CUSTOM
  275.             Goto adapterverify
  276.         Endif
  277.     Endif
  278.     goto adapteroptions
  279.  
  280. adapteroptions = +
  281.     set from = adapteroptions
  282.     set IOBaseAddress = *($(IOBaseAddrHexList), ~($(IOBaseAddrDecList),+
  283.     $(IOBaseAddrValue)))
  284.     read-syms FileDependentDlg$(!STF_LANGUAGE)
  285.     ui start "InputDlg"
  286.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  287.         set IRQValue = $(Combo1Out)
  288.         set IOBaseAddress = $(Combo2Out)
  289.         ui pop 1
  290.     else-ifstr(i) $(DLGEVENT) == "BACK"
  291.         set CommonStatus = STATUS_USERCANCEL
  292.         ui pop 1
  293.         goto end
  294.     else
  295.         ui pop 1
  296.         goto end
  297.     endif
  298.     set IOBaseAddrValue = *($(IOBaseAddrDecList), ~($(IOBaseAddrHexList),+
  299.     $(IOBaseAddress)))
  300.  
  301. adapterverify =+
  302.     Ifstr(i) $(DetectedCard) != TRUE
  303.         Goto skipoptions
  304.     Endif
  305.     Shell $(ParamInf) Param_VerifyCard $(!STF_NCDETCARD)
  306.     Ifstr(i) $($R0) == STATUS_SUCCESSFUL
  307.         Goto skipoptions
  308.     Endif
  309.     Set from = adapteroptions
  310.     Set to = skipoptions
  311.     Shell $(UtilityInf),RegistryErrorString,VERIFY_WARNING
  312.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  313.         goto ShellCodeError
  314.     endif
  315.     set Error = $($R0)
  316.     Goto Warning
  317.  
  318. skipoptions =+
  319.     ifint $(OldVersionExisted) == $(TRUE)
  320.         ifstr(i) $(!NTN_InstallMode) == configure
  321.             goto writeparameters
  322.         endif
  323.     endif
  324.     StartWait
  325.     ifint $(OldVersionExisted) == $(FALSE)
  326.         ifstr(i) $(!NTN_InstallMode) == "install"
  327.             Ifstr(i) $(DoCopy) == "YES"
  328.                 Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  329.                 Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  330.                     Goto ShellCodeError
  331.                 Else-Ifstr(i) $($R0) == STATUS_FAILED
  332.                     Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  333.                     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  334.                         goto ShellCodeError
  335.                     endif
  336.                     set Error = $($R0)
  337.                     Goto fatal
  338.                 Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  339.                     Goto successful
  340.                 Endif
  341.                 Set SrcDir = $($R1)
  342.             Endif
  343.             install "Install-Option"
  344.             ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  345.                 Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  346.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  347.                     goto ShellCodeError
  348.                 endif
  349.                 set Error = $($R0)
  350.                 goto fatal
  351.             endif
  352.         endif
  353.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  354.             $(ProductSoftwareName), +
  355.             $(ProductSoftwareName), +
  356.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  357.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  358.             $(NetEventDLL)
  359.         Set OEM_ABANDON_SOFTWARE = TRUE
  360.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  361.             goto ShellCodeError
  362.         endif
  363.         set RegistryErrorIndex = $($R0)
  364.         set KeyProduct = $($R1)
  365.         Set SoftNetRulesKey = $($R2)
  366.         CloseRegKey $($R3)
  367.         CloseRegKey $($R4)
  368.         CloseRegKey $($R5)
  369.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  370.             EndWait
  371.             CloseRegKey $(KeyProduct)
  372.             CloseRegKey $(SoftNetRulesKey)
  373.             goto fatalregistry
  374.         endif
  375.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  376.                     {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  377.                     {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  378.                     {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  379.                     {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  380.                     {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  381.                     {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  382.         Shell $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
  383.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  384.             goto ShellCodeError
  385.         endif
  386.         set RegistryErrorIndex = $($R0)
  387.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  388.             EndWait
  389.             CloseRegKey $(KeyProduct)
  390.             CloseRegKey $(SoftNetRulesKey)
  391.             goto fatalregistry
  392.         endif
  393.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  394.                     {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  395.                     {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  396.                     {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  397.                     {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  398.                     {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  399.         Shell $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
  400.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  401.             goto ShellCodeError
  402.         endif
  403.         set RegistryErrorIndex = $($R0)
  404.         CloseRegKey $(KeyProduct)
  405.         CloseRegKey $(SoftNetRulesKey)
  406.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  407.             EndWait
  408.             goto fatalregistry
  409.         endif
  410.     endif
  411.     Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  412.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  413.         goto ShellCodeError
  414.     endif
  415.     set RegistryErrorIndex = $($R0)
  416.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  417.         EndWait
  418.         CloseRegKey $($R1)
  419.         CloseRegKey $($R2)
  420.         CloseRegKey $($R3)
  421.         goto fatalregistry
  422.     endif
  423.     set KeyParameters = $($R3)
  424.     set KeyAdapterRules = $($R2)
  425.     set AdapterNumber = $($R4)
  426.     set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  427.                 {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
  428.                 {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
  429.                 {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  430.                 {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  431.                 {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  432.     Shell $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  433.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  434.         goto ShellCodeError
  435.     endif
  436.     CloseRegKey $($R1)
  437.     set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  438.     set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  439.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  440.                 {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  441.                 {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  442.                 {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  443.     Shell $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  444.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  445.         goto ShellCodeError
  446.     endif
  447.     set RegistryErrorIndex = $($R0)
  448.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  449.         EndWait
  450.         CloseRegKey $(KeyParameters)
  451.         CloseRegKey $(KeyAdapterRules)
  452.         goto fatalregistry
  453.     endif
  454.     CloseRegKey $(KeyAdapterRules)
  455.     goto writeparameters
  456.  
  457. writeparameters = +
  458.     set NewValueList = {{InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+
  459.                 {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusInterfaceType)},+
  460.                 {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
  461.                 {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  462.                 {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)}}
  463.     Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  464.     CloseRegKey $(KeyParameters)
  465.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  466.         goto ShellCodeError
  467.     endif
  468.     set RegistryErrorIndex = $($R0)
  469.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  470.         goto fatalregistry
  471.     endif
  472.     EndWait
  473.     goto successful
  474.  
  475. bindingadapter =+
  476.     set Error = "Binding: Sorry, not yet implemented."
  477.     goto fatal
  478.  
  479. removeadapter = +
  480.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  481.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  482.             $(ProductSoftwareName)
  483.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  484.             goto ShellCodeError
  485.         endif
  486.         set RegistryErrorIndex = $($R0)
  487.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  488.             goto fatalregistry
  489.         endif
  490.     else
  491.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  492.             $(ProductSoftwareName), $(!NTN_RegBase)
  493.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  494.             goto ShellCodeError
  495.         endif
  496.         set RegistryErrorIndex = $($R0)
  497.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  498.             goto fatalregistry
  499.         endif
  500.     endif
  501.     goto end
  502.  
  503. UpgradeSoftware = +
  504.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  505.     Ifstr $(KeyProduct) != $(KeyNull)
  506.         install "Install-Update"
  507.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  508.             goto fatal
  509.         endif
  510.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  511.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  512.         CloseRegKey $(KeyProduct)
  513.     else
  514.         goto fatalregistry
  515.     endif
  516.     goto end
  517.  
  518. successful = +
  519.     goto end
  520.  
  521. abandon = +
  522.     ForListDo $(OEM_ABANDON_OPTIONS)
  523.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  524.             $(ProductSoftwareName), $($)
  525.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  526.             goto ShellCodeError
  527.         endif
  528.         set RegistryErrorIndex = $($R0)
  529.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  530.             goto fatalregistry
  531.         endif
  532.     EndForListDo
  533.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  534.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  535.             $(ProductSoftwareName), FALSE
  536.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  537.             goto ShellCodeError
  538.         endif
  539.         set RegistryErrorIndex = $($R0)
  540.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  541.             goto fatalregistry
  542.         endif
  543.     endif
  544.     goto end
  545.  
  546. warning = +
  547.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  548.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  549.         goto ShellCodeError
  550.     endif
  551.     ifstr(i) $($R1) == "OK"
  552.         goto $(to)
  553.     else-ifstr(i) $($R1) == "CANCEL"
  554.         goto $(from)
  555.     else
  556.         goto "end"
  557.     endif
  558.  
  559. nonfatalinfo = +
  560.     Set CommonStatus = STATUS_USERCANCEL
  561.     Set Severity = STATUS
  562.     goto nonfatalmsg
  563.  
  564. nonfatal = +
  565.     Set Severity = NONFATAL
  566.     goto nonfatalmsg
  567.  
  568. nonfatalmsg = +
  569.     ifstr(i) $(Error) == ""
  570.         Set Severity = NONFATAL
  571.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  572.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  573.             goto ShellCodeError
  574.         endif
  575.         set Error = $($R0)
  576.     endif
  577.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  578.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  579.         goto ShellCodeError
  580.     endif
  581.     ifstr(i) $($R1) == "OK"
  582.         goto $(from)
  583.     else
  584.         goto "end"
  585.     endif
  586.  
  587. fatalregistry = +
  588.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  589.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  590.         goto ShellCodeError
  591.     endif
  592.     set Error = $($R0)
  593.     goto fatal
  594.  
  595. fataldetect = +
  596.     Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
  597.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  598.         goto ShellCodeError
  599.     endif
  600.     set Error = $($R0)
  601.     Goto fatal
  602.  
  603. fatal = +
  604.     ifstr(i) $(Error) == ""
  605.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  606.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  607.             goto ShellCodeError
  608.         endif
  609.         set Error = $($R0)
  610.     endif
  611.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  612.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  613.         goto ShellCodeError
  614.     endif
  615.     goto setfailed
  616.  
  617. ShellCodeError = +
  618.     set DlgType      = "MessageBox"
  619.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  620.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  621.     set STF_MB_TYPE  = 1
  622.     set STF_MB_ICON  = 3
  623.     set STF_MB_DEF   = 1
  624.     ui start "Error Message"
  625.     goto setfailed
  626.  
  627. setfailed = +
  628.     set CommonStatus = STATUS_FAILED
  629.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  630.         set OEM_ABANDON_ON = FALSE
  631.         goto abandon
  632.     endif
  633.     goto end
  634.  
  635. end = +
  636.     goto term
  637.  
  638. term = +
  639.     Return $(CommonStatus)
  640.  
  641. [Install-Option]
  642.     set STF_VITAL = ""
  643.     ifstr(i) $(AddCopy) == "YES"
  644.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  645.     endif
  646.     ifstr(i) $(DoCopy) == "YES"
  647.         set !STF_NCPA_FLUSH_COPYLIST = TRUE
  648.         CopyFilesInCopyList
  649.     endif
  650.     Exit
  651.  
  652. [Install-Update]
  653.     set STF_VITAL = ""
  654.     set STF_OVERWRITE = "VERIFYSOURCEOLDER"
  655.     AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  656.     exit
  657.  
  658. [Source Media Descriptions]
  659.     1  = "ET-98 シリーズ サポートソフト"
  660.  
  661. [Signature]
  662.     FileType = MICROSOFT_FILE
  663.  
  664. [ProductType]
  665. STF_PRODUCT  = Winnt
  666. STF_PLATFORM = I386
  667.  
  668. [Files-Inf]
  669. 1,oemsetup.inf, SIZE=50000, RENAME=$(!UG_Filename)
  670.  
  671. [Files-ETC98]
  672. 1,ETC98.SY_, SIZE=50000, RENAME=ETC98.SYS
  673.  
  674. [LanguagesSupported]
  675.     ENG
  676.  
  677. [OptionsTextENG]
  678.     ETC98 = "I-O DATA ET-98シリーズ イーサネット アダプタ"
  679.  
  680. [FileConstantsENG]
  681. ProCaption    = "Windows NT セットアップ"
  682. ProCancel    = "キャンセル"
  683. ProCancelMsg    = "Windows NT ネットワークは正常に組み込まれていません。"+
  684.           "本当にファイルのコピーを中止しますか?"
  685. ProCancelCap    = "ネットワーク セットアップ メッセージ"
  686. ProText1    = "コピー元:"
  687. ProText2    = "コピー先:"
  688. FunctionTitle    = "I-O DATA ET-98 シリーズ セットアップ"
  689. ProductSoftwareDescription    = "I-O DATA ET-98 シリーズ イーサネット ドライバ"
  690. ProductHardwareETC98Description = "I-O DATA ET-98 シリーズ イーサネット アダプタ"
  691. ProductSoftwareTitle        = "ET-98 シリーズ イーサネット ドライバ"
  692. ProductHardwareETC98Title    = "ET-98 シリーズ イーサネット アダプタ"
  693. ShellCodeErrorTitle        = "エラー: "$(FunctionTitle)
  694. ShellCodeErrorText        = "シェルコード エラー."
  695. [DialogConstantsENG]
  696. Help        = "ヘルプ(&H)"
  697. Exit        = "キャンセル"
  698. OK        = "OK"
  699. HelpContext    = $(!IDH_DB_CARDSELECTION_INS)
  700. Continue    = "継続"
  701. Cancel        = "キャンセル"
  702.  
  703. [FileDependentDlgENG]
  704. Label1        = "IRQ レベル:"
  705. Label2        = "I/O ポートアドレス:"
  706. DlgType        = "RadioCombination"
  707. DlgTemplate    = $(Data)$(Number)
  708. Caption        = $(FunctionTitle)
  709. Combo1List    = $(IRQList)
  710. Combo1Out    = $(IRQValue)
  711. Combo2List    = $(IOBaseAddrHexList)
  712. Combo2Out    = $(IOBaseAddress)
  713. ComboListItemsIn    = {Combo1List, Combo2List}
  714. ComboListItemsOut    = {Combo1Out, Combo2Out}
  715. EditTextIn    = ""
  716. EditTextLim    = ""
  717. CBOptionsGreyed = {}
  718. NotifyFields    = {NO, NO}
  719. HelpContext    = $(!IDH_DB_CARDSELECTION_INS)
  720.