home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2000 March / VPR0003B.ISO / drvlibj / netcard / nec98 / tmc / ethez98 / oemsetup.inf < prev    next >
INI File  |  1999-10-14  |  36KB  |  1,093 lines

  1. ;
  2. ;08/10/94  v 1.00b 
  3. ;
  4. ;Windows NT 3.1 .inf file 
  5. ;
  6. ;SMC Ethernet (8498) 
  7. ;
  8.  
  9. [Identification]
  10.     OptionType = NetAdapter
  11. [PlatformsSupported]
  12. ;    MCA     
  13.     ISA
  14.     EISA
  15.     "Jazz-Internal Bus"
  16. [Options]
  17.     SMC8498
  18. ;    SMC8003EA
  19. ;    SMC8416
  20. ;    SMC8003WA
  21. ;    SMC8013WPA
  22. ;    SMC8013EPA
  23.  
  24. [IRQ_Level]
  25. IRQ_3 = "3", 3
  26. IRQ_5 = "5", 5
  27. IRQ_6 = "6", 6
  28. IRQ_9 = "9", 9
  29. IRQ_12 = "12", 12
  30. IRQ_13 = "13", 13
  31.  
  32. [IOAddrChoices]
  33. IO_1232 = "0x04D0", 1232
  34. IO_0208 = "0x00D0", 0208
  35. IO_2256 = "0x08D0", 2256
  36. IO_3280 = "0x0CD0", 3280
  37. IO_4304 = "0x10D0", 4304
  38. IO_5328 = "0x14D0", 5328
  39. IO_6352 = "0x18D0", 6352
  40. IO_7376 = "0x1CD0", 7376
  41. IO_8400 = "0x20D0", 8400
  42. IO_9424 = "0x24D0", 9424
  43. IO_10448 = "0x28D0", 10448
  44. IO_11472 = "0x2CD0", 11472
  45. IO_12496 = "0x30D0", 12496
  46. IO_13520 = "0x34D0", 13520
  47. IO_14544 = "0x38D0", 14544
  48. IO_15568 = "0x3CD0", 15568
  49.  
  50. [WinAddrChoices]
  51. WinAdd_786432 = "0xC0000", 786432
  52. WinAdd_794624 = "0xC2000", 794624
  53. WinAdd_802816 = "0xC4000", 802816
  54. WinAdd_811008 = "0xC6000", 811008
  55. WinAdd_819200 = "0xC8000", 819200
  56. WinAdd_827392 = "0xCA000", 827392
  57. WinAdd_835584 = "0xCC000", 835584
  58. WinAdd_843776 = "0xCE000", 843776
  59. WinAdd_861968 = "0xD0000", 851968
  60. WinAdd_860160 = "0xD2000", 860160
  61. WinAdd_868352 = "0xD4000", 868352
  62. WinAdd_876544 = "0xD6000", 876544
  63. WinAdd_884736 = "0xD8000", 884736
  64. WinAdd_892928 = "0xDA000", 892928
  65. WinAdd_901120 = "0xDC000", 901120
  66. WinAdd_909312 = "0xDE000", 909312
  67. WinAdd_917504 = "0xE0000", 917504
  68. WinAdd_925696 = "0xE2000", 925696
  69. WinAdd_933888 = "0xE4000", 933888
  70. WinAdd_942080 = "0xE6000", 942080
  71. WinAdd_950272 = "0xE8000", 950272
  72. WinAdd_958464 = "0xEA000", 958464
  73. WinAdd_966656 = "0xEC000", 966656
  74. WinAdd_974848 = "0xEE000", 974848
  75.  
  76. [CardInfo]
  77. SMCISA = 0, 0, smcisa, 0
  78. ;SMC8003EA = 192, 111, wd8003ea, 28608
  79. ;SMCISA = 0, 0, smcisa, 0
  80. ;SMC8003WA = 194, 111, wd8003wa, 28610
  81. ;SMC8013WPA = 201, 97, wd8013wpa, 25033
  82. ;SMC8013EPA = 200, 97, wd8013epa, 25032
  83.  
  84. [FileConstants]
  85. ParamInf        = "NCPARAM.INF"
  86. UtilityInf      = "UTILITY.INF"
  87. subroutineinf   = "SUBROUTN.INF"
  88. SoftwareType    = "driver"
  89. Exit_Code       = 0
  90. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  91. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  92. ;;;; Add ;;;;;;
  93. WinBaseAddressHexList  = ^(WinAddrChoices, 1)
  94. WinBaseAddressDecList = ^(WinAddrChoices, 2)
  95. IOBaseAddressHexList = ^(IOAddrChoices, 1)
  96. IOBaseAddressDecList = ^(IOAddrChoices, 2)
  97. IRQ_HexList = ^(IRQ_Level, 1)
  98. IRQ_List = ^(IRQ_Level,2)
  99. ;;;;;;;;;;;;;;;;
  100. CardList = ^(CardInfo,0)
  101. Card1ByteList = ^(CardInfo, 1)
  102. Card2ByteList = ^(CardInfo, 2)
  103. CardRuleList = ^(CardInfo, 3)
  104. CardIDList = ^(CardInfo, 4 )
  105. Card1Byte = *($(Card1ByteList), ~($(CardList), $(Option)))
  106. Card2Byte = *($(Card2ByteList), ~($(CardList), $(Option)))
  107. NETCARD_ID = *($(CardIDList), ~($(CardList), $(Option)))
  108. CardRule = *($(CardRuleList), ~($(CardList), $(Option)))
  109.  
  110. ;EthernetCards  = { SMCISA, SMC8003EA, SMC8003WA, SMC8013EA, SMC8013WA, +
  111. ;          SMC8013WPA, SMC8013EPA }
  112. EthernetCards  = { SMCISA }
  113.  
  114. TokenRingCards = { WD8115TR }
  115. Manufacturer    = "SMC"
  116. ProductMajorVersion     = "1"
  117. ProductMinorVersion     = "0"
  118. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  119. ProductSoftwareName     = "SMC8000N"
  120. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\smc8000n.sys"
  121. NetRuleSoftwareType     = "smc8000nSys ndisDriver smc8000nDriver"
  122. NetRuleSoftwareUse      = $(SoftwareType)
  123. NetRuleSoftwareBindForm = """Smc8000nDriver"" yes no container"
  124. NetRuleSoftwareClass    = {"smc8000nDriver basic"}
  125. ProductHardwareName     = $(Option)
  126. ;NetRuleHardwareType     = "smcisa smcisaAdapter"
  127. NetRuleHardwareType     = $(CardRule)" "$(CardRule)"Adapter"
  128. NetRuleHardwareTypeMCA  = $(CardRule)" "$(CardRule)"Adapter"
  129. NetRuleHardwareBindForm = " yes yes container"
  130. ;NetRuleHardwareClass    = {"smcisaAdapter basic"}
  131. NetRuleHardwareClass    = {""$(CardRule)"Adapter basic"}
  132. NetRuleHardwareClassMCA = {""$(CardRule)"Adapter basic"}
  133. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  134. ParamKeyName    = $(!NTN_ServiceBase)$(ProductHardwareName)"\Parameters"
  135. [GeneralConstants]
  136. from      = ""
  137. to        = ""
  138. ExitCodeOk     = 0
  139. ExitCodeCancel = 1
  140. ExitCodeFatal  = 2
  141. KeyNull         = ""
  142. MAXIMUM_ALLOWED   = 33554432
  143. RegistryErrorIndex = NO_ERROR
  144. KeyProduct      = ""
  145. KeyParameters   = ""
  146. TRUE            = 1
  147. FALSE           = 0
  148. NoTitle            = 0
  149. ExitState   = "Active"
  150. OldVersionExisted = $(FALSE)
  151. DriverPath      = $(!STF_NTPATH)\drivers
  152. [date]
  153.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  154. [Identify]
  155.     read-syms Identification
  156.     set Status     = STATUS_SUCCESSFUL
  157.     set Identifier = $(OptionType)
  158.     set Media      = #("Source Media Descriptions", 3, 1)
  159.     Return $(Status) $(Identifier) $(Media)
  160. [ReturnOptions]
  161.     set Status        = STATUS_FAILED
  162.     set OptionList     = {}
  163.     set OptionTextList = {}
  164.     set LanguageList = ^(LanguagesSupported, 1)
  165.     Ifcontains(i) $($0) in $(LanguageList)
  166.     ifstr(i) $($1) == ""
  167.        goto returnoptions
  168.     endif
  169.     set PlatformList = ^(PlatformsSupported, 1)
  170.     Ifcontains(i) $($1) in $(PlatformList)
  171.        goto returnoptions
  172.     else
  173.        set Status = STATUS_NOTSUPPORTED
  174.        goto finish_ReturnOptions
  175.     endif
  176.     else
  177.     set Status = STATUS_NOLANGUAGE
  178.     goto finish_ReturnOptions
  179.     endif
  180. returnoptions = +
  181.     set OptionList     = ^(Options, 1)
  182.     set OptionTextList = ^(OptionsText$($0), 1)
  183.     set Status         = STATUS_SUCCESSFUL
  184. finish_ReturnOptions = +
  185.     Return $(Status) $(OptionList) $(OptionTextList)
  186. [InstallOption]
  187.     set Option   = $($1)
  188.  
  189. ;    ifstr $(Option) == SMC8416
  190.     ifstr $(Option) == SMC8498
  191.         set Option = SMCISA
  192.     endif
  193.  
  194.     set SrcDir   = $($2)
  195.     set AddCopy  = $($3)
  196.     set DoCopy   = $($4)
  197.     set DoConfig = $($5)
  198.     set LanguageList = ^(LanguagesSupported, 1)
  199.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  200.     Return STATUS_NOLANGUAGE
  201.     endif
  202.     Debug-Output "OEMNADWD.INF: STF_CWDIR is: "$(!STF_CWDIR)
  203.     Debug-Output "OEMNADWD.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  204.     set-subst LF = "\n"
  205.     read-syms GeneralConstants
  206.     read-syms FileConstants
  207.     Shell $(UtilityInf), GetBindingInfo, "WD"
  208.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  209.     Debug-Output "ShellCode error: cannot get an error string."
  210.     goto ShellCodeError
  211.     endif
  212.     set NetRuleSoftwareBindable = $($R1)
  213.     read-syms DialogConstants$(!STF_LANGUAGE)
  214.     ifstr(i) $(!NTN_Origination) == "NCPA"
  215.     set Continue = $(OK)
  216.     endif
  217.     read-syms FileConstants$(!STF_LANGUAGE)
  218.     detect date
  219.     set-title  $(FunctionTitle)
  220.     set to   = Begin
  221.     set from = Begin
  222.     set CommonStatus = STATUS_SUCCESSFUL
  223.     EndWait
  224. Begin = +
  225.     set ActivateDetection = FALSE
  226.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  227.         set StartLabel = removeadapter
  228.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  229.         set StartLabel = UpgradeSoftware
  230.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  231.         set StartLabel = bindingadapter
  232.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  233.         set CommonStatus = STATUS_REBOOT
  234. ;;;        set ActivateDetection = TRUE
  235.         set ActivateDetection = FALSE
  236.         set StartLabel = configureadapter
  237.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  238.             Debug-Output "Cannot configure the DEC 100 driver software."
  239.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  240.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  241.             Debug-Output "ShellCode error: cannot get an error string."
  242.             goto ShellCodeError
  243.         endif
  244.         set Error = $($R0)
  245.         set from = end
  246.         set to = end
  247.         goto nonfatalinfo
  248.     endif
  249.     else
  250.         set StartLabel = installadapter
  251.         set OEM_ABANDON_OPTIONS = {}
  252.         set OEM_ABANDON_SOFTWARE = FALSE
  253.         set OEM_ABANDON_ON = TRUE
  254. ;;;        set ActivateDetection = TRUE
  255.         set ActivateDetection = FALSE
  256.     endif
  257.  
  258.     ifstr $(Option) != SMCISA
  259.         goto skipdetection
  260.     endif
  261.  
  262.     Debug-Output "OEMNADWD.INF: =================================================="
  263.     Debug-Output "OEMNADWD.INF: STF_CWDIR is: "$(!STF_CWDIR)
  264.     Debug-Output "OEMNADWD.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  265.     Debug-Output "OEMNADWD.INF: Option is: "$(Option)
  266.     Debug-Output "OEMNADWD.INF: !STF_NCDETECT  is: "$(!STF_NCDETECT)
  267.     Debug-Output "OEMNADWD.INF: !STF_NCOPTION  is: "$(!STF_NCOPTION)
  268.     Debug-Output "OEMNADWD.INF: !STF_NCDETCARD is: "$(!STF_NCDETCARD)
  269.     Debug-Output "OEMNADWD.INF: !STF_NCDETINFO is: "$(!STF_NCDETINFO)
  270.     Debug-Output "OEMNADWD.INF: =================================================="
  271.     Set DetectedCard = FALSE
  272.  
  273.     Ifstr(i) $(ActivateDetection) != TRUE
  274.     Goto skipdetection
  275.     Endif
  276.     Set TypeList = {{IRQ,IRQ_List,IRQLevel},+
  277.             {IOADDR, IOBaseAddressDecList, IOBaseValue},+
  278.             {MEMADDR, WinBaseAddressDecList, WinBaseValue}}
  279.     Debug-Output "OEMNADWD.INF: Calling Param_BuildTypeLists"
  280.     Shell $(ParamInf) Param_BuildTypeLists $(Option) $(TypeList)
  281.     Set Status = $($R0)
  282.     ifstr(i) $(Status) != STATUS_SUCCESSFUL
  283.     Goto fataldetect
  284.     Endif
  285.     Debug-Output "OEMNADWD.INF: Calling Param_SetDefaults"
  286.     Shell $(ParamInf) Param_SetDefaults {}
  287.     Shell $(ParamInf) HexListFromDecList $(IOBaseAddressDecList)
  288.     Set IOBaseAddressHexList = $($R0)
  289.     Shell $(ParamInf) HexListFromDecList $(WinBaseAddressDecList)
  290.     Set WinBaseAddressHexList = $($R0)
  291.     Ifstr(i) $(!STF_NCDETECT) == YES
  292.     Ifstr(i) $(!STF_NCOPTION) == $(Option)
  293.        Set DetectedCard = TRUE
  294.        Debug-Output "OEMNADWD.INF: Setting DetectedCard to TRUE"
  295.     Endif
  296.     Endif
  297. skipdetection =+
  298.     set from = $(fatal)
  299.     set to = $(fatal)
  300.     goto $(StartLabel)
  301. installadapter = +
  302.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  303.     Ifstr $(KeyProduct) != $(KeyNull)
  304.     CloseRegKey $(KeyProduct)
  305.     ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  306.        Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  307.            $(ProductVersion)
  308.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  309.            Debug-Output "ShellCode error: cannot get an error string."
  310.            goto ShellCodeError
  311.        endif
  312.        goto end
  313.     else
  314.        Shell $(UtilityInf), CardExistedDlg
  315.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  316.            Debug-Output "ShellCode error: cannot get an error string."
  317.            goto ShellCodeError
  318.        endif
  319.        ifstr(i) $($R1) != "OK"
  320.            set CommonStatus = STATUS_USERCANCEL
  321.            goto end
  322.        endif
  323.        set OldVersionExisted = $(TRUE)
  324.     endif
  325.    endif
  326.  
  327. ;MCA
  328.  
  329.     Ifstr $(Option) != SMCISA
  330.         Goto installproduct
  331.     Endif
  332.  
  333.     Ifstr(i) $(DetectedCard) != TRUE
  334.     Goto adaptersetup
  335.     Endif
  336.     StartWait
  337.     Shell $(ParamInf) Param_QueryCard $(!STF_NCDETCARD)
  338.     EndWait
  339.     Ifstr(i) $($R0) != STATUS_SUCCESSFUL
  340.     Goto adaptersetup
  341.     Endif
  342.     Set DetectedParams = $($R1)
  343.     Debug-Output "OEMNADWD.INF: Calling Param_SetDefaults to merge detected params"
  344.     Shell $(ParamInf) Param_SetDefaults $(DetectedParams)
  345.     goto adapteroptions
  346. configureadapter = +
  347.  
  348.     ifstr $(Option) != SMCISA
  349.         goto end
  350.     endif
  351.  
  352.     Ifstr $(KeyProduct) == $(KeyNull)
  353.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  354.     Ifstr $(KeyProduct) == $(KeyNull)
  355.         set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  356.         Debug-Output "Cannot find component product key"
  357.         goto fatalregistry
  358.     Endif
  359.     Endif
  360.     Debug-Output "INF: Shelling to FindService"
  361.     Shell $(UtilityInf) FindService, $(KeyProduct)
  362.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  363.     Debug-Output "INF: FindService shell failure"
  364.     Goto ShellCodeError
  365.     Endif
  366.     Ifstr(i) $($R0) != NO_ERROR
  367.     Debug-Output "INF: FindService Shell error: "$($R0)
  368.     Goto fatalregistry
  369.     endif
  370.     set KeyParameters = $($R2)
  371.     CloseRegKey $($R1)
  372.     Ifstr $(KeyParameters) == $(KeyNull)
  373.     set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  374.     Debug-Output "Cannot find component service"
  375.     goto fatalregistry
  376.     endif
  377.     set OldVersionExisted = $(TRUE )
  378.     set ValueName = ""
  379.     set ValueData = ""
  380.     set ValueStr  = ""
  381.     set ValueList = {}
  382.     EnumRegValue $(KeyParameters) ValueList
  383.     ForListDo $(ValueList)
  384.     set ValueItem = $($)
  385.     set ValueName = *($(ValueItem),1)
  386.     set ValueData = *($(ValueItem),4)
  387.     Ifstr(i) $(ValueName) == "InterruptNumber"
  388.         set IRQLevel = $(ValueData)
  389.     else-Ifstr(i) $(ValueName) == "IOBaseAddress"
  390.         set IOBaseValue = $(ValueData)
  391.     else-Ifstr(i) $(ValueName) == "MemoryMappedBaseAddress"
  392.         set WinBaseValue = $(ValueData)
  393.     endif
  394.     EndForListDo
  395. adaptersetup =+
  396.     Shell $(ParamInf) Param_ParameterConfidence
  397.     Ifstr(i) $($R0) != STATUS_SUCCESSFUL
  398.     Debug-Output "OEMNADWD.INF: parameter confidence too low to bypass configuration"
  399.     Goto adapteroptions
  400.     Endif
  401.     Ifstr(i) $(DetectedCard) == TRUE
  402.     Ifstr(i) $(!STF_INSTALL_MODE) != CUSTOM
  403.         Goto adapterverify
  404.     Endif
  405.     Endif
  406.     goto adapteroptions
  407. adapteroptions = +
  408.     set from = adapteroptions
  409.     set WinBaseAddress = *($(WinBaseAddressHexList), ~($(WinBaseAddressDecList),+
  410.     $(WinBaseValue)))
  411.     set IOBaseAddress = *($(IOBaseAddressHexList), ~($(IOBaseAddressDecList),+
  412.     $(IOBaseValue)))
  413.     read-syms FileDependentDlg$(!STF_LANGUAGE)
  414.     ui start "InputDlg"
  415.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  416.     set IRQLevel = $(Combo3Out)
  417.     set WinBaseAddress = $(Combo2Out)
  418.     set IOBaseAddress = $(Combo1Out)
  419.     ui pop 1
  420.     else-ifstr(i) $(DLGEVENT) == "BACK"
  421.     set CommonStatus = STATUS_USERCANCEL
  422.     Debug-Output "Action: exit. Bye."
  423.     ui pop 1
  424.     goto end
  425.     else
  426.     ui pop 1
  427.     Debug-Output "Action: unknown. Bye."
  428.     goto end
  429.     endif
  430.     set WinBaseValue = *($(WinBaseAddressDecList), ~($(WinBaseAddressHexList),+
  431.     $(WinBaseAddress)))
  432.     set IOBaseValue = *($(IOBaseAddressDecList), ~($(IOBaseAddressHexList),+
  433.     $(IOBaseAddress)))
  434. adapterverify =+
  435.     Ifstr(i) $(DetectedCard) != TRUE
  436.         Goto skipoptions
  437.     Endif
  438.     Debug-Output "OEMNADWD.INF: Calling Param_VerifyCard"
  439.     Shell $(ParamInf) Param_VerifyCard $(!STF_NCDETCARD)
  440.     Ifstr(i) $($R0) == STATUS_SUCCESSFUL
  441.     Debug-Output "OEMNADWD.INF: Param_VerifyCard succeeded"
  442.     Goto skipoptions
  443.     Endif
  444.     Set from = adapteroptions
  445.     Set to = skipoptions
  446.     Shell $(UtilityInf),RegistryErrorString,VERIFY_WARNING
  447.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  448.     Debug-Output "ShellCode error: cannot get an error string."
  449.     goto ShellCodeError
  450.     endif
  451.     set Error = $($R0)
  452.     Goto Warning
  453.  
  454. ;MCA
  455.  
  456. installproduct = +
  457.  
  458.     StartWait
  459.  
  460.     Shell $(UtilityInf), MCAFindBus, $(Card1Byte), $(Card2Byte)
  461.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  462.         goto ShellCodeError
  463.     endif
  464.     ifstr $($R0) != "NO_ERROR"
  465.         set Error = $($R0)
  466.     goto fatal
  467.     endif
  468.     ifstr(i) $($R1) == {}
  469.         set Error = $(CANNOT_FIND_ANY_CARD)
  470.         set CommonStatus = STATUS_USERCANCEL
  471.         set from = "end"
  472.         goto nonfatal
  473.     endif
  474.     set AdapterList = $($R1)
  475.  
  476. ;    goto mcaincluded
  477.  
  478. skipoptions = +
  479.     ifint $(OldVersionExisted) == $(TRUE)
  480.         ifstr(i) $(!NTN_InstallMode) == configure
  481.             ifstr $(Option) == SMCISA
  482.                 goto writeparameters
  483. ;MCA
  484.             else
  485.                 set Error = "Configure: Sorry, not yet implemented."
  486.                 goto fatal
  487.             endif
  488.         endif
  489.     endif
  490.  
  491. mcaincluded = +
  492.     set AdapterList = $($R1)
  493.     ifint $(OldVersionExisted) == $(FALSE)
  494.         ifstr(i) $(!NTN_InstallMode) == "install"
  495.            Ifstr(i) $(DoCopy) == "YES"
  496.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  497.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  498.                   Goto ShellCodeError
  499.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  500.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  501.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  502.                       goto ShellCodeError
  503.                   endif
  504.                   set Error = $($R0)
  505.                   Goto fatal
  506.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  507.                   Goto successful
  508.               Endif
  509.               Set SrcDir = $($R1)
  510.            Endif
  511.            install "Install-Option"
  512.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  513.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  514.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  515.                   goto ShellCodeError
  516.               endif
  517.               set Error = $($R0)
  518.               goto fatal
  519.            endif
  520.         endif
  521.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  522.             $(ProductSoftwareName), +
  523.             $(ProductSoftwareName), +
  524.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  525.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  526.             $(NetEventDLL)
  527.         Set OEM_ABANDON_SOFTWARE = TRUE
  528.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  529.             Debug-Output "ShellCode error"
  530.             goto ShellCodeError
  531.         endif
  532.     set RegistryErrorIndex = $($R0)
  533.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  534.         EndWait
  535.         Debug-Output "Registry error: add software components"
  536.         CloseRegKey $($R1)
  537.         CloseRegKey $($R2)
  538.         CloseRegKey $($R3)
  539.         CloseRegKey $($R4)
  540.         CloseRegKey $($R5)
  541.         goto fatalregistry
  542.     endif
  543.     Set SoftProductKey      = $($R1)
  544.     Set SoftNetRuleKey      = $($R2)
  545.     Set SoftServiceKey      = $($R3)
  546.     Set SoftParameterKey    = $($R4)
  547.     Set SoftLinkageKey      = $($R5)
  548.  
  549.     Debug-Output "softlinkage #1 :"$($R5)
  550.  
  551.     set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  552.                {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  553.                {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  554.                {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  555.                {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  556.                {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  557.                {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  558.     Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  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.         EndWait
  566.         Debug-Output "Resgitry error: add value list."
  567.         CloseRegKey $(SoftProductKey)
  568.         CloseRegKey $(SoftNetRuleKey)
  569.         CloseRegKey $(SoftServiceKey)
  570.         CloseRegKey $(SoftParameterKey)
  571.         CloseRegKey $(SoftLinkageKey)
  572.         goto fatalregistry
  573.     endif
  574.  
  575.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  576.                 {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  577.                 {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  578.                 {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  579.                 {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  580.                 {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  581.     Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  582.  
  583.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  584.         Debug-Output "ShellCode error."
  585.         goto ShellCodeError
  586.     endif
  587.     set RegistryErrorIndex = $($R0)
  588.     CloseRegKey $(SoftProductKey)
  589.     CloseRegKey $(SoftNetRuleKey)
  590.     CloseRegKey $(SoftServiceKey)
  591.     CloseRegKey $(SoftParameterKey)
  592.     CloseRegKey $(SoftLinkageKey)
  593.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  594.         EndWait
  595.         Debug-Output "Resgitry error: add value list."
  596.         goto fatalregistry
  597.     endif
  598.     endif
  599.  
  600.     set BusNum = *($($),1)
  601.  
  602. ;MCA
  603.  
  604.     ifstr $(Option) != SMCISA
  605.         ForListDo $(AdapterList)
  606.             set BusNum = *($($),1)
  607.             set SlotNum = *($($),2)
  608.             Debug-Output $(BusNum)
  609.             Debug-Output $(SlotNum)
  610.         Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
  611.             $(SlotNum), $(ProductHardwareDescriptionMCA), $(ProductHardwareName)
  612.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  613.             goto ShellCodeError
  614.         endif
  615.         ifstr $($R0) != "NO_ERROR"
  616.             set Error = $($R0)
  617.             goto fatal
  618.         endif
  619.         ifstr(i) $($R1) != "YES"
  620.     Debug-Output " what is this : "$(R4)
  621.     Debug-Output $($R4)
  622.         Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  623.         ifint $($R4) != -1
  624.            Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  625.         endif
  626.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  627.             goto ShellCodeError
  628.         endif
  629.         set RegistryErrorIndex = $($R0)
  630.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  631.             EndWait
  632.             CloseRegKey $($R1)
  633.             CloseRegKey $($R2)
  634.             CloseRegKey $($R3)
  635.             goto fatalregistry
  636.         endif
  637.         Set HardNetCardKey      = $($R1)
  638.         Set HardNetRuleKey      = $($R2)
  639.         Set HardParameterKey    = $($R3)
  640.         set AdapterNumber = $($R4)
  641.         set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  642.                    {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitleMCA)},+
  643.                    {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescriptionMCA)},+
  644.                    {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  645.                    {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  646.                    {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  647.         Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  648.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  649.             goto ShellCodeError
  650.         endif
  651.         Shell $(UtilityInf), GetBusTypeNum
  652.         set BusTypeNum = $($R1)
  653.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  654.             Debug-Output "ShellCode error."
  655.             goto ShellCodeError
  656.         endif
  657.         IfContains $(Option) in $(EthernetCards)
  658.             set CardMediaType = 1
  659.             set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  660.                        {McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(NETCARD_ID)},+
  661.                        {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  662.                        {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
  663.                        {MediaType,$(NoTitle),$(!REG_VT_DWORD), $(CardMediaType)}}
  664.         else
  665.             set CardMediaType = 2
  666.             set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  667.                        {McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(NETCARD_ID)},+
  668.                        {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  669.                        {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
  670.                        {MediaType,$(NoTitle),$(!REG_VT_DWORD), $(CardMediaType)},+
  671.                        {MaximumPacketSize,$(NoTitle),$(!REG_VT_DWORD), 8192}}
  672.         endif
  673.         Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  674.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  675.             goto ShellCodeError
  676.         endif
  677.         set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  678.         set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  679.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareTypeMCA)},+
  680.                     {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  681.                     {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClassMCA)}, +
  682.                     {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  683.         Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  684.         CloseRegKey $(HardNetCardKey)
  685.         CloseRegKey $(HardNetRuleKey)
  686.         CloseRegKey $(HardParameterKey)
  687.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  688.             goto ShellCodeError
  689.         endif
  690.         endif
  691.         EndForListDo
  692.         EndWait
  693.         goto successful
  694.     endif
  695.  
  696.     Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  697.     ifint $($R4) != -1
  698.     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  699.     endif
  700.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  701.     Debug-Output "Cannot add hardware component"
  702.     goto ShellCodeError
  703.     endif
  704.     set RegistryErrorIndex = $($R0)
  705.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  706.     EndWait
  707.     Debug-Output "Registry error: add hardware component"
  708.     Debug-Output $(RegistryErrorIndex)
  709.     CloseRegKey $($R1)
  710.     CloseRegKey $($R2)
  711.     CloseRegKey $($R3)
  712.     goto fatalregistry
  713.     endif
  714.     set KeyParameters = $($R3)
  715.     set KeyAdapterRules = $($R2)
  716.     set AdapterNumber = $($R4)
  717.     set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  718.                {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  719.                {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  720.                {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  721.                {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  722.                {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  723.     Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  724.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  725.     Debug-Output "ShellCode error"
  726.     goto ShellCodeError
  727.     endif
  728.     CloseRegKey $($R1)
  729.     set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  730.     set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  731.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  732.             {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  733.             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  734.             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  735.     Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  736.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  737.     Debug-Output "ShellCode error."
  738.     goto ShellCodeError
  739.     endif
  740.     set RegistryErrorIndex = $($R0)
  741.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  742.     EndWait
  743.     Debug-Output "Resgitry error: add value list."
  744.     CloseRegKey $(KeyParameters)
  745.     CloseRegKey $(KeyAdapterRules)
  746.     goto fatalregistry
  747.     endif
  748.     CloseRegKey $(KeyAdapterRules)
  749.     goto writeparameters
  750. writeparameters = +
  751.     Shell $(UtilityInf), GetBusTypeNum
  752.     set BusTypeNum = $($R1)
  753.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  754.     Debug-Output "ShellCode error."
  755.     goto ShellCodeError
  756.     endif
  757.     IfContains $(Option) in $(EthernetCards)
  758.     set CardMediaType = 1
  759.     set NewValueList = {+
  760.                {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  761.                {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  762.                {IOBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseValue)},+
  763.                {MediaType,$(NoTitle),$(!REG_VT_DWORD),$(CardMediaType)}+
  764.                }
  765.     else
  766.     set CardMediaType = 2
  767.     set NewValueList = {+
  768.                {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  769.                {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  770.                {IOBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseValue)},+
  771.                {MediaType,$(NoTitle),$(!REG_VT_DWORD),$(CardMediaType)},+
  772.                {MaximumPacketSize,$(NoTitle),$(!REG_VT_DWORD),8192}+
  773.                }
  774.     endif
  775.     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  776.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  777.     Debug-Output "ShellCode error."
  778.     goto ShellCodeError
  779.     endif
  780.     set RegistryErrorIndex = $($R0)
  781.     CloseRegKey $(KeyParameters)
  782.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  783.     Debug-Output "Registry error: Add value list"
  784.     goto fatalregistry
  785.     endif
  786.     EndWait
  787.     goto successful
  788. bindingadapter =+
  789.     set Error = "Binding: Sorry, not yet implemented."
  790.     goto fatal
  791. removeadapter = +
  792.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  793.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  794.         $(ProductSoftwareName)
  795.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  796.         Debug-Output "ShellCode error"
  797.         goto ShellCodeError
  798.     endif
  799.     set RegistryErrorIndex = $($R0)
  800.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  801.         goto fatalregistry
  802.     endif
  803.     else
  804.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  805.         $(ProductSoftwareName), $(!NTN_RegBase)
  806.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  807.         Debug-Output "ShellCode error"
  808.         goto ShellCodeError
  809.     endif
  810.     set RegistryErrorIndex = $($R0)
  811.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  812.         goto fatalregistry
  813.     endif
  814.     endif
  815.     goto end
  816. UpgradeSoftware = +
  817.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  818.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  819.     Ifstr $(KeyProduct) != $(KeyNull)
  820.         GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  821.         set Version = *($(VersionInfo), 4)
  822.         Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  823.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  824.         Debug-Output "ShellCode error"
  825.         goto ShellCodeError
  826.         endif
  827.         set !UG_Filename = $($R0)
  828.         ifstr(i) $(!UG_Filename) != ""
  829.         install "Install-Update"
  830.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  831.             goto fatal
  832.         endif
  833.         endif
  834.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  835.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  836.         ifint $(Version) != $(ProductVersion)
  837.         endif
  838.         CloseRegKey $(KeyProduct)
  839.     else
  840.         goto fatalregistry
  841.     endif
  842.     else
  843.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  844.           $(MAXIMUM_ALLOWED) NetworkCardKey
  845.     Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  846.         GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  847.         set ServiceName = *($(ServiceNameInfo), 4)
  848.         OpenRegKey $(NetworkCardKey) "" "NetRules" +
  849.         $(MAXIMUM_ALLOWED) NetRuleKey
  850.         Ifstr(i) $(NetRuleKey) != $(KeyNull)
  851.         else
  852.         goto fatalregistry
  853.         endif
  854.         CloseRegKey $(NetRules)
  855.         CloseRegKey $(NetworkCardKey)
  856.     else
  857.         goto fatalregistry
  858.     endif
  859.     OpenRegKey $(!REG_H_LOCAL) "" +
  860.           $(!NTN_ServiceBase)"\"$(ServiceName) +
  861.           $(MAXIMUM_ALLOWED) ServiceKey
  862.     Ifstr(i) $(ServiceKey) != $(KeyNull)
  863.         CloseRegKey $(ServiceKey)
  864.     else
  865.         goto fatalregistry
  866.     endif
  867.     endif
  868.  
  869.  
  870.     ;
  871.     ; All I want to do is copy a new driver over the old one
  872.     ;
  873.  
  874.  
  875.       install "Install-Update"
  876.  
  877.       ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  878.       goto fatal
  879.       endif
  880.  
  881.     goto end
  882. successful = +
  883.     goto end
  884. abandon = +
  885.     ForListDo $(OEM_ABANDON_OPTIONS)
  886.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  887.         $(ProductSoftwareName), $($)
  888.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  889.         Debug-Output "ShellCode error"
  890.         goto ShellCodeError
  891.     endif
  892.     set RegistryErrorIndex = $($R0)
  893.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  894.         goto fatalregistry
  895.     endif
  896.     EndForListDo
  897.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  898.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  899.         $(ProductSoftwareName), FALSE
  900.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  901.         Debug-Output "ShellCode error"
  902.         goto ShellCodeError
  903.     endif
  904.     set RegistryErrorIndex = $($R0)
  905.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  906.         goto fatalregistry
  907.     endif
  908.     endif
  909.     goto end
  910. warning = +
  911.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  912.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  913.     goto ShellCodeError
  914.     endif
  915.     ifstr(i) $($R1) == "OK"
  916.     goto $(to)
  917.     else-ifstr(i) $($R1) == "CANCEL"
  918.     goto $(from)
  919.     else
  920.     goto "end"
  921.     endif
  922. nonfatalinfo = +
  923.     Set CommonStatus = STATUS_USERCANCEL
  924.     Set Severity = STATUS
  925.     goto nonfatalmsg
  926. nonfatal = +
  927.     Set Severity = NONFATAL
  928.     goto nonfatalmsg
  929. nonfatalmsg = +
  930.     ifstr(i) $(Error) == ""
  931.     Set Severity = NONFATAL
  932.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  933.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  934.         goto ShellCodeError
  935.     endif
  936.     set Error = $($R0)
  937.     endif
  938.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  939.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  940.     goto ShellCodeError
  941.     endif
  942.     ifstr(i) $($R1) == "OK"
  943.     goto $(from)
  944.     else
  945.     goto "end"
  946.     endif
  947. fatalregistry = +
  948.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  949.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  950.     goto ShellCodeError
  951.     endif
  952.     set Error = $($R0)
  953.     goto fatal
  954. fataldetect = +
  955.     Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
  956.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  957.     Debug-Output "ShellCode error: cannot get an error string."
  958.     goto ShellCodeError
  959.     endif
  960.     set Error = $($R0)
  961.     Goto fatal
  962. fatal = +
  963.     ifstr(i) $(Error) == ""
  964.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  965.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  966.         goto ShellCodeError
  967.     endif
  968.     set Error = $($R0)
  969.     endif
  970.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  971.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  972.     goto ShellCodeError
  973.     endif
  974.     goto setfailed
  975. ShellCodeError = +
  976.     set DlgType      = "MessageBox"
  977.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  978.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  979.     set STF_MB_TYPE  = 1
  980.     set STF_MB_ICON  = 3
  981.     set STF_MB_DEF   = 1
  982.     ui start "Error Message"
  983.     goto setfailed
  984. setfailed = +
  985.     set CommonStatus = STATUS_FAILED
  986.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  987.     set OEM_ABANDON_ON = FALSE
  988.     goto abandon
  989.     endif
  990.     goto end
  991. end = +
  992.     goto term
  993. term = +
  994.     Return $(CommonStatus)
  995. [Install-Option]
  996.     set STF_VITAL = ""
  997.     ifstr(i) $(AddCopy) == "YES"
  998.     AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  999.     endif
  1000.     ifstr(i) $(DoCopy) == "YES"
  1001.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1002.        CopyFilesInCopyList
  1003.     endif
  1004.     ifstr(i) $(DoConfig) == "YES"
  1005.     endif
  1006.     Exit
  1007. [Install-Update]
  1008.    set STF_VITAL        = ""
  1009.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  1010.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1011. ;   AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1012.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1013.    CopyFilesInCopyList
  1014.    exit
  1015. [Source Media Descriptions]
  1016.     3  = "SMC SUPER DISK"
  1017. [ProductType]
  1018. STF_PRODUCT  = Winnt
  1019. STF_PLATFORM = I386
  1020. [Files-Inf]
  1021. 3,oemsetup.inf,  SIZE=1000,     RENAME=$(!UG_Filename)
  1022. [Files-SMCISA]
  1023. 3,SMC8000N.SYS , SIZE=36864
  1024. ;[Files-SMC8003EA]
  1025. ;3,SMC8000N.SYS , SIZE=36864
  1026. ;[Files-SMC8003WA]
  1027. ;3,SMC8000N.SYS , SIZE=36864
  1028. ;[Files-SMC8013EPA]
  1029. ;3,SMC8000N.SYS , SIZE=36864
  1030. ;[Files-SMC8013WPA]
  1031. ;3,SMC8000N.SYS , SIZE=36864
  1032.  
  1033. [LanguagesSupported]
  1034.     ENG
  1035. [OptionsTextENG]
  1036.     SMC8498     = "SMC EtherEZ 98 Card Series LAN Adapters"
  1037. ;    SMC8003EA = "SMC 8003E/A MCA EtherCard Plus"
  1038. ;    SMC8416     = "SMC ISA EtherCard Family"
  1039. ;    SMC8003WA = "SMC 8003W/A MCA EtherCard Plus"
  1040. ;    SMC8013WPA = "SMC 8013WP/A MCA EtherCard Plus Elite"
  1041. ;    SMC8013EPA = "SMC 8013EP/A MCA EtherCard Plus Elite"           
  1042.  
  1043. [FileConstantsENG]
  1044. ProCaption   = "Windows NT セットアップ"
  1045. ProCancel    = "キャンセル"
  1046. ProCancelMsg = "Windows NT ネットワークは正しくインストールされていません。"+
  1047.                "ファイルのコピーを中止しますか?"
  1048. ProCancelCap = "ネットワーク セットアップ メッセージ"
  1049. ProText1     = "コピー元:"
  1050. ProText2     = "コピー先:"
  1051. FunctionTitle   = "SMC Adapter Card Setup"
  1052. ProductSoftwareDescription      = "SMC EtherEZ 98 Series Driver"
  1053. ProductHardwareDescription      = "SMC EtherEZ 98 Series "
  1054. ProductHardwareDescriptionMCA   = "SMC "$(Option)" EtherCard "
  1055. ProductSoftwareTitle    = "SMC EtherEZ 98 Driver"
  1056. ProductHardwareTitle    = "SMC EtherEZ 98 Series "
  1057. ;ProductHardwareTitleMCA = "SMC Micro Channel Adapter"
  1058. ProductHardwareTitleMCA = $(Option)" EtherCard Plus Elite"
  1059. ShellCodeErrorTitle     = "エラー: "$(FunctionTitle)
  1060. ShellCodeErrorText      = "シェル コード エラー."
  1061. [DialogConstantsENG]
  1062. Help        = "ヘルプ(&H)"
  1063. Exit        = "キャンセル"
  1064. OK          = "OK"
  1065. ;HelpContext = ""
  1066. Continue    = "続行"
  1067. Cancel      = "キャンセル"
  1068. [FileDependentDlgENG]
  1069. Label1 = "I/O ポート アドレス(&P):"
  1070. Combo1Label = "IRQ 番号(&I):"
  1071. Combo2Label = "ウィンドウ メモリ アドレス(&M)"
  1072. Combo3Label = "I/O ポート アドレス(&O):"
  1073. DlgType = "MultiCombo"
  1074. DlgTemplate = "SINGLE_COMBO"
  1075. Caption = $(FunctionTitle)
  1076. ;Combo3List = $(IRQ_List)
  1077. Combo3List = $(IRQ_HexList)
  1078. Combo3Out  = $(IRQLevel)
  1079. Combo2List = $(WinBaseAddressHexList)
  1080. Combo2Out  = $(WinBaseAddress)
  1081. Combo1List = $(IOBaseAddressHexList)
  1082. Combo1Out  = $(IOBaseAddress)
  1083. ComboListItemsIn  = {Combo1List}
  1084. ComboListItemsOut = {Combo1Out}
  1085. EditTextIn = ""
  1086. EditTextLim = ""
  1087. NotifyFields = {NO, NO, NO}
  1088. ;HelpContext = $(!IDH_DB_OEMNADWD_INS)
  1089.  
  1090.  
  1091.  
  1092.  
  1093.