home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / d / d423_liu / 8.ddi / OEMNADLT.IN_ / OEMNADLT.IN
Encoding:
INI File  |  1993-07-24  |  22.2 KB  |  613 lines

  1. [Identification]
  2.    OptionType = NetAdapter
  3. [PlatformsSupported]
  4.    ISA
  5.    EISA
  6.    "Jazz-Internal Bus"
  7. [Options]
  8.    LT200
  9. [IOBaseAddrChoices]
  10. IOBase_1  = "0x200",512
  11. IOBase_2  = "0x240",576
  12. IOBase_3  = "0x260",608
  13. IOBase_4  = "0x2A0",672
  14. IOBase_5  = "0x300",768
  15. IOBase_6  = "0x320",800
  16. IOBase_7  = "0x330",816
  17. IOBase_8  = "0x340",832
  18. IOBase_9  = "0x350",848
  19. [FileConstants]
  20. UtilInf         = "UTILITY.INF"
  21. SubInf            = "SUBROUTN.INF"
  22. SoftwareType    = "driver"
  23. Manufacturer            = "Microsoft"
  24. ProductMajorVersion     = "3"
  25. ProductMinorVersion     = "1"
  26. ProductVersion          = $(ProductMajorVersion)"."$(ProductMinorVersion)
  27. ProductSoftwareName      = "lt200"
  28. ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\lt200.sys"
  29. NetRuleSoftwareType      = "Lt200Sys ltkndisDriver lt200Driver"
  30. NetRuleSoftwareUse          = $(SoftwareType)
  31. NetRuleSoftwareBindForm  = """Lt200Sys"" yes no container"
  32. NetRuleSoftwareClass     = {"lt200Driver basic","ltkndisDriver basic yes"}
  33. NetRuleSoftwareBindable  = {"lt200Driver lt200Adapter non exclusive 100",+
  34.                             "ltkndisDriver lt200Driver non non 100"}
  35. ProductEventDll             = "%SystemRoot%\System32\netevent.dll"
  36. ProductHardwareName      = "lt200"
  37. NetRuleHardwareType      = "lt200 lt200Adapter"
  38. NetRuleHardwareBindForm  = " yes yes container"
  39. NetRuleHardwareClass     = {"lt200Adapter basic"}
  40. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  41. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  42. CardKey         = $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards"
  43. ProductInfName  = $(!STF_CWDDIR)"oemnadlt.inf"
  44. [GeneralConstants]
  45. KeyNull                         = ""
  46. MAXIMUM_ALLOWED             = 33554432
  47. RegistryErrorIndex          = NO_ERROR
  48. KeyProduct                  = ""
  49. KeyParameters               = ""
  50. TRUE                        = 1
  51. FALSE                       = 0
  52. NoTitle                     = 0
  53. !DebugOutputControl = 1
  54. [date]
  55. Now = {} ? $(!LIBHANDLE) GetSystemDate
  56. [Identify]
  57.    read-syms Identification
  58.    set Status     = STATUS_SUCCESSFUL
  59.    set Identifier = $(OptionType)
  60.    set Media      = #("Source Media Descriptions", 1, 1)
  61.    Return $(Status) $(Identifier) $(Media)
  62. [ReturnOptions]
  63.    set Status        = STATUS_FAILED
  64.    set OptionList     = {}
  65.    set OptionTextList = {}
  66.    set LanguageList = ^(LanguagesSupported, 1)
  67.    Ifcontains(i) $($0) in $(LanguageList)
  68.       ifstr(i) $($1) == ""
  69.          goto returnoptions
  70.       endif
  71.       set PlatformList = ^(PlatformsSupported, 1)
  72.       Ifcontains(i) $($1) in $(PlatformList)
  73.          goto returnoptions
  74.       else
  75.          set Status = STATUS_NOTSUPPORTED
  76.          goto finish_ReturnOptions
  77.       endif
  78.    else
  79.       set Status = STATUS_NOLANGUAGE
  80.       goto finish_ReturnOptions
  81.    endif
  82. returnoptions = +
  83.    set OptionList     = ^(Options, 1)
  84.    set OptionTextList = ^(OptionsText$($0), 1)
  85.    set Status         = STATUS_SUCCESSFUL
  86. finish_ReturnOptions = +
  87.    Return $(Status) $(OptionList) $(OptionTextList)
  88. [InstallOption]
  89.    set Status   = STATUS_FAILED
  90.    set Option   = $($1)
  91.    set SrcDir       = $($2)
  92.    Set AddCopy  = $($3)
  93.    Set DoCopy       = $($4)
  94.    Set DoConfig = $($5)
  95.    set LanguageList = ^(LanguagesSupported, 1)
  96.    Ifcontains(i) $($0) NOT-IN $(LanguageList)
  97.      return STATUS_NOLANGUAGE
  98.    EndIf
  99.    StartWait
  100.    set-subst LF = "\n"
  101.    set-subst CR = "\r"
  102.    read-syms GeneralConstants
  103.    read-syms FileConstants
  104.    read-syms DialogConstants$(!STF_LANGUAGE)
  105.    read-syms FileConstants$(!STF_LANGUAGE)
  106.    detect date
  107.    set-title  $(FunctionTitle)
  108.    set CommonStatus = STATUS_SUCCESSFUL
  109.    EndWait
  110. Begin = +
  111.    Ifstr(i) $(!NTN_InstallMode) == deinstall
  112.       set StartLabel = removeadapter
  113.       Set RemoveonError = FALSE
  114.    else-Ifstr(i) $(!NTN_InstallMode) == Update
  115.       set StartLabel = UpgradeSoftware
  116.    else-Ifstr(i) $(!NTN_InstallMode) == bind
  117.       set StartLabel = bindingadapter
  118.    else-Ifstr(i) $(!NTN_InstallMode) == configure
  119.       set StartLabel = configureadapter
  120.       Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  121.          Debug-Output "Cannot configure the localtalk driver software."
  122.          Shell $(UtilInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  123.          ifint $($ShellCode) != $(!SHELL_CODE_OK)
  124.             goto ShellCodeError
  125.          endif
  126.          set Error = $($R0)
  127.          Shell $(SubInf) SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(Error)
  128.          goto usercancel
  129.       endif
  130.    else
  131.       set StartLabel = installadapter
  132.       set REMOVE_SOFTWARE = TRUE
  133.       set REMOVE_HARDWARE = {}
  134.       Set RemoveOnError = TRUE
  135.    endif
  136.    goto $(StartLabel)
  137. installadapter = +
  138.    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  139.    Ifstr $(KeyProduct) != $(KeyNull)
  140.       GetRegValue $(KeyProduct) $(MajorVersion) VersionInfo
  141.       set VersionMajor = *($(VersionInfo), 4)
  142.       GetRegValue $(KeyProduct) $(MinorVersion) VersionInfo
  143.       set VersionMinor = *($(VersionInfo), 4)
  144.       set InstalledVersion = $(VersionMajor)"."$(VersionMinor)
  145.       ifstr(i) $(ProductVersion) == $(InstalledVersion)
  146.          read-syms MiscErrorString1$(!STF_LANGUAGE)
  147.          Set Text = $(Version)$(ProductVersion)
  148.          Shell $(SubInf), SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(Text)$(ErrorString)
  149.          goto end
  150.       EndIf
  151.    EndIf
  152.    ifstr(i) $(!NTN_InstallMode) == "install"
  153.       Ifstr(i) $(!DoCopy) == "YES"
  154.          ifstr(i) $(!STF_IDW) != "TRUE"
  155.             Shell $(UtilInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  156.          endif
  157.          Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  158.             Goto ShellCodeError
  159.          Else-Ifstr(i) $($R0) == STATUS_FAILED
  160.             Shell $(UtilInf) RegistryErrorString "ASK_SOURCE_FAIL"
  161.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  162.                goto ShellCodeError
  163.             endif
  164.             set Error = $($R0)
  165.             Goto end
  166.          Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  167.             Goto usercancel
  168.          Endif
  169.          Set SrcDir  = $($R1)
  170.       Endif
  171.    Endif
  172.    ifstr(i) $(!STF_IDW) != "TRUE"
  173.       install "Install-Initial"
  174.       ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  175.          Set CommonStatus = STATUS_USERCANCEL
  176.          goto end
  177.       Endif
  178.    EndIf
  179. adapteroptions = +
  180.    set IOBaseAddrValue = *($(IOBaseAddrList), 8)
  181.    read-syms FileDependentDlg$(!STF_LANGUAGE)
  182.    ui start "InputDlg"
  183.    ifstr(i) $(DLGEVENT) == "CONTINUE"
  184.       set IOBaseAddrIndex = $(Combo1Out)
  185.       ui pop 1
  186.    else-ifstr(i) $(DLGEVENT) == "EXIT"
  187.       set CommonStatus = STATUS_USERCANCEL
  188.       ui pop 1
  189.       goto usercancel
  190.    else
  191.       set CommonStatus = STATUS_USERCANCEL
  192.       ui pop 1
  193.       goto usercancel
  194.    endif
  195. installproduct = +
  196.    Set FLibraryErrCtl = 1
  197.    Shell $(UtilInf), AddSoftwareComponent, +
  198.                      $(Manufacturer),+
  199.                      $(ProductSoftwareName), +
  200.                      $(ProductSoftwareName), +
  201.                      $(ProductSoftwareName), +
  202.                      $(ProductInfName), +
  203.                      $(ProductSoftwareImagePath),+
  204.                      "kernel", "NDIS", {}, "", $(ProductEventDll)
  205.    ifint $($ShellCode) != 0
  206.       goto ShellCodeError
  207.    endif
  208.    set RegistryErrorIndex = $($R0)
  209.    set KeyProduct      = $($R1)
  210.    Set SoftNetRulesKey = $($R2)
  211.    CloseRegKey $($R3)
  212.    CloseRegKey $($R4)
  213.    CloseRegKey $($R5)
  214.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  215.       CloseRegKey $(KeyProduct)
  216.       CloseRegKey $(SoftNetRulesKey)
  217.       goto fatalregistry
  218.    endif
  219.    set NewValueList = +
  220.             {{SoftwareType,0,$(!REG_VT_SZ),$(SoftwareType)},+
  221.             {MajorVersion,0,$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  222.             {MinorVersion,0,$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  223.             {Title,0,$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  224.             {Description,0,$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  225.             {PathName,0,$(!REG_VT_SZ),$(!STF_WINDOWSSYSPATH)},+
  226.             {ServiceName,0,$(!REG_VT_SZ),$(ProductSoftwareName)},+
  227.             {InstallDate,0,$(!REG_VT_DWORD),*($(Now),1)}}
  228.    Shell   $(UtilInf), AddValueList, $(KeyProduct), $(NewValueList)
  229.    ifint $($ShellCode) != 0
  230.       goto ShellCodeError
  231.    endif
  232.    set RegistryErrorIndex = $($R0)
  233.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  234.       CloseRegKey $(KeyProduct)
  235.       CloseRegKey $(SoftNetRulesKey)
  236.       goto fatalregistry
  237.    endif
  238.    set NewValueList = +
  239.             {{type,0,$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  240.             {use,0,$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  241.             {bindform,0,$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  242.             {class,0,$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  243.             {bindable,0,$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  244.             {InfOption,0,$(!REG_VT_SZ),$(Option)}, +
  245.             {Infname ,0,$(!REG_VT_SZ),$(ProductInfName)}}
  246.    Shell  $(UtilInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
  247.    ifint $($ShellCode) != 0
  248.       goto ShellCodeError
  249.    endif
  250.    set RegistryErrorIndex = $($R0)
  251.    CloseRegKey $(KeyProduct)
  252.    CloseRegKey $(SoftNetRulesKey)
  253.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  254.       Debug-Output "Resgitry error: add value list."
  255.       goto fatalregistry
  256.    endif
  257.    Shell $(UtilInf), AddHardwareComponent, $(ProductHardwareName),$(ProductInfName),$(ProductKeyName)
  258.    ifint $($R4) != -1
  259.       Set REMOVE_HARDWARE = >($(REMOVE_HARDWARE), $(CardKey)"\"$($R4))
  260.    endif
  261.    ifint $($ShellCode) != 0
  262.       goto ShellCodeError
  263.    endif
  264.    set RegistryErrorIndex = $($R0)
  265.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  266.       EndWait
  267.       CloseRegKey $($R1)
  268.       CloseRegKey $($R2)
  269.       CloseRegKey $($R3)
  270.       goto fatalregistry
  271.    Endif
  272.    set KeyParameters = $($R3)
  273.    set KeyAdapterRules = $($R2)
  274.    set AdapterNumber = $($R4)
  275.    set NewValueList = {{Manufacturer,0,$(!REG_VT_SZ),$(Manufacturer)},+
  276.                       {Title,0,$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  277.                       {Description,0,$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  278.                       {ProductName,0,$(!REG_VT_SZ),$(ProductHardwareName)},+
  279.                       {ServiceName,0,$(!REG_VT_SZ),$($R5)},+
  280.                       {InstallDate,0,$(!REG_VT_DWORD),*($(Now),1)}}
  281.    Shell  $(UtilInf), AddValueList, $($R1), $(NewValueList)
  282.    ifint $($ShellCode) != 0
  283.      goto ShellCodeError
  284.    endif
  285.    CloseRegKey $($R1)
  286.    set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  287.    set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  288.    set NewValueList = +
  289.             {{type,0,$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  290.             {bindform,0,$(!REG_VT_SZ),$(TempBindForm)}, +
  291.             {class,0,$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  292.             {InfOption,0,$(!REG_VT_SZ),$(Option)}, +
  293.             {Infname ,0,$(!REG_VT_SZ),$(ProductInfName)}}
  294.    Shell  $(UtilInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  295.    ifint $($ShellCode) != 0
  296.       goto ShellCodeError
  297.    endif
  298.    set RegistryErrorIndex = $($R0)
  299.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  300.       CloseRegKey $(KeyParameters)
  301.       CloseRegKey $(KeyAdapterRules)
  302.       goto fatalregistry
  303.    endif
  304.    CloseRegKey $(KeyAdapterRules)
  305.    goto writeparameters
  306. configureadapter = +
  307.    OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  308.    Ifstr $(KeyProduct) == $(KeyNull)
  309.       set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  310.       goto fatalregistry
  311.    Endif
  312.    Shell $(UtilInf) FindService, $(KeyProduct)
  313.    Ifint $($ShellCode) != 0
  314.       Goto ShellCodeError
  315.    Endif
  316.    Ifstr(i) $($R0) != NO_ERROR
  317.         Goto fatalregistry
  318.    endif
  319.    set KeyParameters = $($R2)
  320.    CloseRegKey $($R1)
  321.    Ifstr $(KeyParameters) == $(KeyNull)
  322.       set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  323.       goto fatalregistry
  324.    endif
  325.    set ValueName = ""
  326.    set ValueData = ""
  327.    set ValueStr  = ""
  328.    set ValueList = {}
  329.    EnumRegValue $(KeyParameters) ValueList
  330.    ForListDo $(ValueList)
  331.       set ValueItem = $($)
  332.       set ValueName = *($(ValueItem),1)
  333.       set ValueData = *($(ValueItem),4)
  334.       ifstr(i) $(ValueName) == "IOBaseAddress"
  335.          set IOBaseAddrIndex = $(ValueData)
  336.       endif
  337.    EndForListDo
  338.    set IOBaseAddrValue = *($(IOBaseAddrList), ~($(IOBaseAddrValues),$(IOBaseAddrIndex)))
  339.    ifstr(i) $(IOBaseAddrValue) == ""
  340.       set IOBaseAddrValue = *($(IOBaseAddrList), 1)
  341.    endif
  342. cfgoptions = +
  343.    read-syms FileDependentDlg$(!STF_LANGUAGE)
  344.    ui start "InputDlg"
  345.    ifstr(i) $(DLGEVENT) == "CONTINUE"
  346.       set CommonStatus = STATUS_REBOOT
  347.       set IOBaseAddrIndex = $(Combo1Out)
  348.       ui pop 1
  349.    else-ifstr(i) $(DLGEVENT) == "EXIT"
  350.       ui pop 1
  351.       goto usercancel
  352.    else
  353.       ui pop 1
  354.       goto usercancel
  355.    endif
  356. writeparameters = +
  357.    Shell $(UtilInf) GetBusTypeNum
  358.    Set BusType = $($R1)
  359.    ifint $($ShellCode) != $(!SHELL_CODE_OK)
  360.       goto ShellCodeError
  361.    endif
  362.    Set BusType = 1
  363.    set IOBaseAddrValue = *($(IOBaseAddrValues), +
  364.                           ~($(IOBaseAddrList),$(IOBaseAddrIndex)))
  365.    set NewValueList = {{MediaType,0,$(!REG_VT_DWORD),5},+
  366.                        {InterruptNumber,0,$(!REG_VT_DWORD),0},+
  367.                        {BusType,0,$(!REG_VT_DWORD),$(BusType)},+
  368.                        {IOBaseAddress,0,$(!REG_VT_DWORD),$(IOBaseAddrValue)}}
  369.    Shell  $(UtilInf), AddValueList, $(KeyParameters), $(NewValueList)
  370.    CloseRegKey $(KeyParameters)
  371.    ifint $($ShellCode) != 0
  372.       Debug-Output "ShellCode error."
  373.       goto ShellCodeError
  374.    endif
  375.    set RegistryErrorIndex = $($R0)
  376.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  377.       Debug-Output "Registry error: Add value list"
  378.       goto fatalregistry
  379.    endif
  380.    goto end
  381. removeadapter = +
  382.    Set FLibraryErrCtl = 1
  383.    Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  384.       Shell $(UtilInf), RemoveSoftwareComponent, $(Manufacturer),+
  385.                         $(ProductSoftwareName)
  386.       ifint $($ShellCode) != $(!SHELL_CODE_OK)
  387.          goto ShellCodeError
  388.       endif
  389.       set RegistryErrorIndex = $($R0)
  390.       Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  391.          goto fatalregistry
  392.       endif
  393.    else
  394.       Debug-Output "Registry Base = "$(!NTN_RegBase)
  395.       Debug-Output "Product Name  = "$(ProductSoftwareName)
  396.       Shell $(UtilInf), RemoveHardwareComponent, $(Manufacturer),+
  397.                                  $(ProductSoftwareName), +
  398.                                  $(!NTN_RegBase)
  399.       ifint $($ShellCode) != $(!SHELL_CODE_OK)
  400.          Debug-Output "ShellCode error"
  401.          goto ShellCodeError
  402.       endif
  403.       set RegistryErrorIndex = $($R0)
  404.       Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  405.          goto fatalregistry
  406.       endif
  407.    endif
  408.    goto end
  409. UpgradeSoftware = +
  410.    ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  411.       OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  412.       Ifstr $(KeyProduct) != $(KeyNull)
  413.          GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  414.          set Version = *($(VersionInfo), 4)
  415.          Split-String $(!NTN_Infname), "\", FilenameList
  416.          QueryListSize ListSize $(FilenameList)
  417.          set !UG_Filename = *($(FilenameList), $(ListSize))
  418.          install "Install-Update"
  419.          ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  420.             goto fatal
  421.          endif
  422.          SetRegValue $(KeyProduct) {MajorVersion,0,$(!REG_VT_SZ),$(ProductMajorVersion)}
  423.          SetRegValue $(KeyProduct) {MinorVersion,0,$(!REG_VT_SZ),$(ProductMinorVersion)}
  424.      endif
  425.    else
  426.       OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) NetworkCardKey
  427.        Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  428.          GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  429.          set ServiceName = *($(ServiceNameInfo), 4)
  430.          OpenRegKey $(NetworkCardKey) "" "NetRules" $(MAXIMUM_ALLOWED) NetRuleKey
  431.          Ifstr(i) $(NetRuleKey) == $(KeyNull)
  432.             goto fatalregistry
  433.          endif
  434.          CloseRegKey $(NetRules)
  435.          CloseRegKey $(NetworkCardKey)
  436.       else
  437.          goto fatalregistry
  438.       endif
  439.       OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ServiceName)$(MAXIMUM_ALLOWED) ServiceKey
  440.       Ifstr(i) $(ServiceKey) != $(KeyNull)
  441.          CloseRegKey $(ServiceKey)
  442.       else
  443.          goto fatalregistry
  444.       endif
  445.    EndIf
  446. abandon = +
  447.    ForListDo $(REMOVE_HARDWARE)
  448.       Shell $(UtilInf), RemoveHardwareComponent, $(Manufacturer), +
  449.                                            $(ProductSoftwareName), +
  450.                                            $($)
  451.       ifint $($ShellCode) != $(!SHELL_CODE_OK)
  452.          goto ShellCodeError
  453.       endif
  454.       set RegistryErrorIndex = $($R0)
  455.       Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  456.          goto fatalregistry
  457.       endif
  458.    EndForListDo
  459.    Ifstr(i) $(REMOVE_SOFTWARE) == TRUE
  460.       Shell $(UtilInf), RemoveSoftwareComponent, $(Manufacturer), +
  461.                              $(ProductSoftwareName), FALSE
  462.       ifint $($ShellCode) != $(!SHELL_CODE_OK)
  463.          goto ShellCodeError
  464.       endif
  465.       set RegistryErrorIndex = $($R0)
  466.       Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  467.          goto fatalregistry
  468.       endif
  469.    endif
  470.    goto end
  471. fatalregistry = +
  472.    Shell $(UtilInf) RegistryErrorString $(RegistryErrorIndex)
  473.    ifint $($ShellCode) != $(!SHELL_CODE_OK)
  474.       goto ShellCodeError
  475.    endif
  476.    set Error = $($R0)
  477.    goto fatal
  478. fatal = +
  479.    ifstr(i) $(!NTN_InstallMode) == install
  480.       read-syms MiscErrorString3$(!STF_LANGUAGE)
  481.       Shell $(SubInf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(ErrorString)$(Error)
  482.    Else
  483.       Shell $(SubInf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  484.    EndIf
  485.    ifint $($ShellCode) != 0
  486.       goto ShellCodeError
  487.    endif
  488.    goto setfailed
  489. ShellCodeError = +
  490.    read-syms ShellingError$(!STF_LANGUAGE)
  491.    Shell $(SubInf) SetupMessage $(!STF_LANGUAGE) "FATAL" $(ErrorString)
  492.    goto setfailed
  493. setfailed = +
  494.    set CommonStatus = STATUS_FAILED
  495.    ifstr(i) $(RemoveOnError) == TRUE
  496.          Set RemoveOnError = FALSE
  497.       goto abandon
  498.    else
  499.       goto end
  500.    EndIf
  501. end = +
  502.    Return $(CommonStatus)
  503. usercancel = +
  504.    Set CommonStatus = STATUS_USERCANCEL
  505.    Return $(CommonStatus)
  506. [Install-Update]
  507.    set STF_VITAL        = ""
  508.    AddSectionFilesToCopyList Files-LT200 $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  509.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  510.    CopyFilesInCopyList
  511.    Exit
  512. [Install-Initial]
  513.    set STF_VITAL        = ""
  514.    AddSectionFilesToCopyList Files-LT200 $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  515.    CopyFilesInCopyList
  516.    Exit
  517. [Source Media Descriptions]
  518.     1    = "Windows NT Advanced Server Setup Disk #1"   , TAGFILE = disk1
  519.     2    = "Windows NT Advanced Server Setup Disk #2"   , TAGFILE = disk2
  520.     3    = "Windows NT Advanced Server Setup Disk #3"   , TAGFILE = disk3
  521.     4    = "Windows NT Advanced Server Setup Disk #4"   , TAGFILE = disk4
  522.     5    = "Windows NT Advanced Server Setup Disk #5"   , TAGFILE = disk5
  523.     6    = "Windows NT Advanced Server Setup Disk #6"   , TAGFILE = disk6
  524.     7    = "Windows NT Advanced Server Setup Disk #7"   , TAGFILE = disk7
  525.     8    = "Windows NT Advanced Server Setup Disk #8"   , TAGFILE = disk8
  526.     9    = "Windows NT Advanced Server Setup Disk #9"   , TAGFILE = disk9
  527.     10    = "Windows NT Advanced Server Setup Disk #10"  , TAGFILE = disk10
  528.     11    = "Windows NT Advanced Server Setup Disk #11"  , TAGFILE = disk11
  529.     12    = "Windows NT Advanced Server Setup Disk #12"  , TAGFILE = disk12
  530.     13    = "Windows NT Advanced Server Setup Disk #13"  , TAGFILE = disk13
  531.     14    = "Windows NT Advanced Server Setup Disk #14"  , TAGFILE = disk14
  532.     15    = "Windows NT Advanced Server Setup Disk #15"  , TAGFILE = disk15
  533.     16    = "Windows NT Advanced Server Setup Disk #16"  , TAGFILE = disk16
  534.     17    = "Windows NT Advanced Server Setup Disk #17"  , TAGFILE = disk17
  535.     18    = "Windows NT Advanced Server Setup Disk #18"  , TAGFILE = disk18
  536.     19    = "Windows NT Advanced Server Setup Disk #19"  , TAGFILE = disk19
  537.     20    = "Windows NT Advanced Server Setup Disk #20"  , TAGFILE = disk20
  538.     21    = "Windows NT Advanced Server Setup Disk #21"  , TAGFILE = disk21
  539.     22    = "Windows NT Advanced Server Setup Disk #22"  , TAGFILE = disk22
  540.     23    = "Windows NT Advanced Server Setup Disk #23"  , TAGFILE = disk23
  541.     24    = "Windows NT Advanced Server Setup Disk #24"  , TAGFILE = disk24
  542.     25    = "Windows NT Advanced Server Setup Disk #25"  , TAGFILE = disk25
  543.     26    = "Windows NT Advanced Server Setup Disk #26"  , TAGFILE = disk26
  544.     27    = "Windows NT Advanced Server Setup Disk #27"  , TAGFILE = disk27
  545.     28    = "Windows NT Advanced Server Setup Disk #28"  , TAGFILE = disk28
  546.     29    = "Windows NT Advanced Server Setup Disk #29"  , TAGFILE = disk29
  547. [ProductType]
  548. STF_PRODUCT  = LanmanNT
  549. STF_PLATFORM = I386
  550. [Files-Inf]
  551. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  552. [Files-LT200]
  553. 11,LT200.SYS , SIZE=23552
  554. [LanguagesSupported]
  555.    ENG
  556. [OptionsTextENG]
  557.    LT200     = "DayStar Digital LocalTalk Adapter"
  558. [FileConstantsENG]
  559. ProCaption      = "LocalTalk Adapter Setup"
  560. ProCancel       = "Cancel"
  561. ProCancelMsg    = "LT200 LocalTalk Adapter is not correctly installed. "+
  562.                   "Are you sure you want to cancel copying files ?"
  563. ProCancelCap    = "Network Setup Message"
  564. ProText1        = "Copying:"
  565. ProText2        = "To:"
  566. Error           = "User has cancelled copying files. Copied files will be removed."
  567. FunctionTitle                 = "DayStar Digital LocalTalk Adapter Card Setup"
  568. ProductSoftwareDescription    = "DayStar Digital LocalTalk Adapter Driver"
  569. ProductHardwareDescription  = "DayStar Digital LocalTalk Adapter"
  570. AskLocationText = "Please enter the full path of the LocalTalk Adapter "+
  571.                   "distribution files.  If you want to install files from "+
  572.                   "the original Setup floppy disks, type a drive letter "+
  573.                   "(such as A:) and Setup will prompt you for the correct disk.  "+
  574.                   "Then choose continue."
  575. MajorVersion = "MajorVersion"
  576. MinorVersion = "MinorVersion"
  577. Version         = "Version "
  578. IOBaseAddrList          = ^(IOBaseAddrChoices, 1)
  579. IOBaseAddrValues        = ^(IOBaseAddrChoices, 2)
  580. ProductSoftwareTitle    = "Daystar Digital LocalTalk Adapter Driver"
  581. ProductHardwareTitle    = "DayStar Digital LocalTalk Adapter"
  582. [DialogConstantsENG]
  583. Help        = "&Help"
  584. Exit        = "Cancel"
  585. OK          = "OK"
  586. HelpContext = ""
  587. Continue    = "OK"
  588. Cancel      = "Cancel"
  589. [FileDependentDlgENG]
  590. Label1      = "I/O Base &Addr:"
  591. DlgType                 = "MultiCombo"
  592. DlgTemplate             = "SINGLE_COMBO"
  593. Caption                 = $(FunctionTitle)
  594. Combo1List              = $(IOBaseAddrList)
  595. Combo1Out               = $(IOBaseAddrValue)
  596. ComboListItemsIn          = {Combo1List}
  597. ComboListItemsOut         = {Combo1Out}
  598. HelpContext               = $(!IDH_DB_OEMNADLT_INS)
  599. [MiscErrorString1ENG]
  600. ErrorString = +
  601. " of the LocalTalk adapter driver is already installed in your system. "+
  602. "Use [Update] to update to newer versions."
  603. [MiscErrorString3ENG]
  604. ErrorString = +
  605. "Setup encountered the following error during installation. Try installing the "+
  606. "LocalTalk Adapter after rebooting your system. "$(LF)
  607. [ShellingErrorENG]
  608. ErrorString  = +
  609. "An internal error occurred. Contact Technical Support."
  610.  
  611.  
  612.  
  613.