home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / d / d423_zhw / 7.ddi / OEMNADDS.IN_ / OEMNADDS.IN
Encoding:
INI File  |  1993-07-24  |  62.7 KB  |  1,420 lines

  1. [Identification]
  2.     OptionType = NetAdapter
  3. [PlatformsSupported]
  4.     ISA
  5.     EISA
  6.     "Jazz-Internal Bus"
  7. [LanguagesSupported]
  8.     ENG
  9. [Options]
  10.     DigiBoardCX
  11.     DigiBoardXem
  12.     DigiBoard8i
  13.     DigiBoard2Port
  14.     DigiBoard4Port
  15.     DigiBoard8Port
  16.     DigiBoard4e
  17.     DigiBoard8e
  18. [AdapterInfo]
  19.     DigiBoardCX     = "C/X",    ntcx,       ntcx      3         84240
  20.     DigiBoardXem    = "PC/Xem", ntxem,      ntxem     2         149776
  21.     DigiBoard8i     = "PC/8i",  nt8i,       ntxall    1         0
  22.     DigiBoard2Port  = "2Port",  2Port,      ntxall    4         0
  23.     DigiBoard4Port  = "4Port",  4Port,      ntxall    6         0
  24.     DigiBoard8Port  = "8Port",  8Port,      ntxall    7         0
  25.     DigiBoard4e     = "PC/4e",  nt4e,       ntxall    5         0
  26.     DigiBoard8e     = "PC/8e",  nt8e,       ntxall    0         0
  27. [FileConstants]
  28.     ExitState   = "Active"
  29.     OldVersionExisted = $(FALSE)
  30.     HdwDriverComponentExists = $(FALSE)
  31.     DriverPath      = $(!STF_NTPATH)"\drivers"
  32.     UtilityInf     = "UTILITY.INF"
  33.     subroutninf    = "SUBROUTN.INF"
  34.     ParamInf        = "NCPARAM.INF"
  35.     HandleNull   = ""
  36.     DGCONFIG_HANDLE = $(HandleNull)
  37. AdapterList = ^(AdapterInfo,0)
  38. AdapterTitleList = ^(AdapterInfo, 1)
  39. AdapterHardwareNameList = ^(AdapterInfo, 2)
  40. AdapterHardwareDriverList = ^(AdapterInfo, 3)
  41. AdapterHardwareTypeList = ^(AdapterInfo, 4)
  42. AdapterHardwareEisaList = ^(AdapterInfo, 5)
  43. AdapterTitle = *($(AdapterTitleList), ~($(AdapterList), $(Option)))
  44. AdapterHardwareName = *($(AdapterHardwareNameList), ~($(AdapterList), $(Option)))
  45. AdapterHardwareDriver = *($(AdapterHardwareDriverList), ~($(AdapterList), $(Option)))
  46. AdapterHardwareType = *($(AdapterHardwareTypeList), ~($(AdapterList), $(Option)))
  47. AdapterHardwareEisaID = *($(AdapterHardwareEisaList), ~($(AdapterList), $(Option)))
  48. AdapterRule = *($(AdapterHardwareDriverList), ~($(AdapterList), $(Option)))
  49. AdapterServiceName = ""
  50. AdapterName = ""
  51.     NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  52.     IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  53.     Manufacturer    = "DigiBoard"
  54.     ProductMajorVersion     = "3"
  55.     ProductMinorVersion     = "1"
  56.     ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  57.     SoftwareType    = "driver"
  58.     ProductSoftwareName     = "DigiFEP5"
  59.     ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\digifep5.sys"
  60.     NetRuleSoftwareType     = "digiFEP5Sys serialDriver digiFEP5Driver"
  61.     NetRuleSoftwareUse      = $(SoftwareType)
  62.     NetRuleSoftwareBindForm = """DigiFEP5Driver"" yes no container"
  63.     NetRuleSoftwareClass    = {"serialDriver basic","digiFEP5Driver basic"}
  64.     NetRuleSoftwareHiddenDriver   = 1
  65.     ProductMajorVersionHdwDriver     = "3"
  66.     ProductMinorVersionHdwDriver     = "1"
  67.     ProductVersionHdwDriver  = $(ProductMajorVersionHdwDriver)"."$(ProductMinorVersionHdwDriver)
  68.     ProductSoftwareNameHdwDriver = $(AdapterHardwareDriver)
  69.     ProductSoftwareImagePathHdwDriver = "%SystemRoot%\System32\drivers\"$(AdapterHardwareDriver)".sys"
  70.     NetRuleSoftwareTypeHdwDriver     = $(AdapterHardwareDriver)"sys "$(AdapterHardwareDriver)"Driver"
  71.     NetRuleSoftwareUseHdwDriver      = $(SoftwareType)
  72.     NetRuleSoftwareBindFormHdwDriver = """"$(AdapterHardwareDriver)"Driver"" yes no container"
  73.     NetRuleSoftwareClassHdwDriver    = {$(AdapterHardwareDriver)"Driver basic"}
  74.     NetRuleSoftwareHiddenHdwDriver   = 1
  75.     NetRuleHardwareType     = $(AdapterRule)" "$(AdapterRule)"Adapter"
  76.     NetRuleHardwareBindForm = " yes yes container"
  77.     NetRuleHardwareClass    = {$(AdapterHardwareDriver)"Adapter basic"}
  78.     ProductHardwareName         = $(AdapterHardwareDriver)
  79.     AdapterParameters = {}
  80.     ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  81.     ProductKeyNameHdwDriver  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareNameHdwDriver)"\CurrentVersion"
  82.     ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  83. [GeneralConstants]
  84.     ExitCodeOk     = 0
  85.     ExitCodeCancel = 1
  86.     ExitCodeFatal  = 2
  87.     KeyNull         = ""
  88.     MAXIMUM_ALLOWED   = 33554432
  89.     RegistryErrorIndex = NO_ERROR
  90.     KeyProduct      = ""
  91.     KeyParameters   = ""
  92.     TRUE         = 1
  93.     FALSE        = 0
  94.     NoTitle      = 0
  95.     fRemoveDigi = TRUE
  96. [DebugOptions]
  97.     !DebugOutputControl = 1
  98. [UiVars]
  99. from      = ""
  100. to        = ""
  101.     !STF_NTDRIVE        = "" 
  102.     !STF_NTPATH         = "" 
  103.     !STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  104.     !STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  105.     !STF_FLOPPYLIST     = {} ? $(!LIBHANDLE) GetFloppyDriveLetters
  106.     !STF_UNUSEDDRIVES   = {} ? $(!LIBHANDLE) GetUnusedDrives
  107.     !STF_LANGUAGE       = "ENG"
  108.     VolumeList      = {} ? $(!LIBHANDLE) GetHardDriveLetters
  109.     VolumeFreeList  = {} ? $(!LIBHANDLE) GetHardDriveFreeSpace
  110.     VolumeFSList    = {} ? $(!LIBHANDLE) GetHardDriveFileSystems
  111.     DestVolume      = ""
  112.     MinHelpID   = 25000
  113.     MaxHelpID   = 25999
  114. [date]
  115.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  116. [Identify]
  117.     read-syms Identification
  118.     set Status     = STATUS_SUCCESSFUL
  119.     set Identifier = $(OptionType)
  120.     set Media      = #("Source Media Descriptions", 1, 1)
  121.     Return $(Status) $(Identifier) $(Media)
  122. [ReturnOptions]
  123.     set Status        = STATUS_FAILED
  124.     set OptionList     = {}
  125.     set OptionTextList = {}
  126.     set LanguageList = ^(LanguagesSupported, 1)
  127.     Ifcontains(i) $($0) in $(LanguageList)
  128.         ifstr(i) $($1) == ""
  129.             goto returnoptions
  130.         endif
  131.         set PlatformList = ^(PlatformsSupported, 1)
  132.         Ifcontains(i) $($1) in $(PlatformList)
  133.             goto returnoptions
  134.         else
  135.             set Status = STATUS_NOTSUPPORTED
  136.             goto finish_ReturnOptions
  137.         endif
  138.     Else
  139.         set Status = STATUS_NOLANGUAGE
  140.         goto finish_ReturnOptions
  141.     Endif
  142. returnoptions = +
  143.     set OptionList     = ^(Options, 1)
  144.     set OptionTextList = ^(OptionsText$($0), 1)
  145.     set Status         = STATUS_SUCCESSFUL
  146. finish_ReturnOptions = +
  147.     Return $(Status) $(OptionList) $(OptionTextList)
  148. [Shell Commands]
  149.     set-title "Serial Setup"  
  150.     set-subst LF = "\n"
  151.     set Exit_Code = $(ExitCodeOk)
  152.     Debug-Output "OEMNADDS.INF: STF_CWDDIR is "$(!STF_CWDDIR)
  153.     Debug-Output "OEMNADDS.INF: STF_RANFROM is "$(!STF_RANFROM)
  154.     ifstr(i) $(!STF_RANFROM) != ""
  155.         ifstr(i) $(!STF_RANFROM) != $(!STF_CWDDIR)"SERIAL\" 
  156.            set !STF_SRCDIR = $(!STF_RANFROM)
  157.         endif
  158.     endif
  159.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  160.     shell "" InstallOption ENG DigiBoard $(!STF_SRCDIR)
  161.     FreeLibrary $(!LIBHANDLE)
  162.     set Status = $($R0)
  163.     Return $(Status)
  164. [InstallOption]
  165.     read-syms DebugOptions
  166.     Debug-Output "OEMNADDS.INF: In [InstallOption] section"
  167.     set Status = STATUS_FAILED
  168.     set Option    = $($1)
  169.     set SrcDir    = $($2)
  170.     set AddCopy   = $($3) 
  171.     set DoCopy    = $($4) 
  172.     set DoConfig  = $($5) 
  173.     set !SourceDir = $($2)
  174.     read-syms GeneralConstants
  175.     read-syms FileConstants
  176.     Debug-Output "OEMNADDS.INF: Language = "$($0)
  177.     Debug-Output "OEMNADDS.INF: OptionID = "$($1)
  178.     Debug-Output "OEMNADDS.INF: SourceDirectory = "$($2)
  179.     Debug-Output "OEMNADDS.INF: AddCopy = "$(AddCopy)
  180.     Debug-Output "OEMNADDS.INF: DoCopy = "$(DoCopy)
  181.     Debug-Output "OEMNADDS.INF: DoConfig = "$(DoConfig)
  182.     set LanguageList = ^(LanguagesSupported, 1)
  183.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  184.         Debug-Output "OEMNADDS.INF: returning STATUS_NO_LANGUAGE"
  185.         return STATUS_NOLANGUAGE
  186.     Endif
  187.     set-subst LF = "\n"
  188.     Debug-Output "OEMNADDS.INF: AdapterTitle = "$(AdapterTitle)
  189.     Debug-Output "OEMNADDS.INF: AdapterHardwareName = "$(AdapterHardwareName)
  190.     Debug-Output "OEMNADDS.INF: AdapterHardwareDriver = "$(AdapterHardwareDriver)
  191.     read-syms BindingInfo-DigiFEP5
  192.     set NetRuleSoftwareBindable = $(BindingInfo)
  193.     read-syms BindingInfo-$(AdapterHardwareDriver)
  194.     set NetRuleSoftwareBindableHdwDriver = $(BindingInfo)
  195.     read-syms DialogConstants$(!STF_LANGUAGE)
  196.     ifstr(i) $(!NTN_Origination) == "NCPA"
  197.         set Continue = "OK"
  198.     endif
  199.     read-syms FileConstants$(!STF_LANGUAGE)
  200.     detect date
  201.     set-title  $(FunctionTitle)
  202.     set to   = Begin
  203.     set from = Begin
  204.     set CommonStatus = STATUS_SUCCESSFUL
  205.     EndWait
  206. Begin = +
  207.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  208.         set StartLabel = removeadapter
  209.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  210.         set StartLabel = UpgradeSoftware
  211.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  212.         set StartLabel = bindingadapter
  213.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  214.         set StartLabel = getAdapterSettings
  215.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  216.             Debug-Output "Cannot configure the DigiBoard FEP 5 driver software."
  217.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  218.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  219.                 Debug-Output "ShellCode error: cannot get an error string."
  220.                 goto ShellCodeError
  221.             endif
  222.             set Error = $($R0)
  223.             set from = end
  224.             set to = end
  225.             goto nonfatalinfo
  226.         endif
  227.         Ifstr(i) $(ProductKeyNameHdwDriver) == $(!NTN_RegBase)
  228.             Debug-Output "This should not have happened!  Cannot configure the "$(AdapterHardwareName)" driver software."
  229.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  230.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  231.                 Debug-Output "ShellCode error: cannot get an error string."
  232.                 goto ShellCodeError
  233.             endif
  234.             set Error = $($R0)
  235.             set from = end
  236.             set to = end
  237.             goto nonfatalinfo
  238.         endif
  239.         Debug-Output "We need to determine how to find out which adapter"
  240.         Debug-Output "  we should be configuring!!!!!!"
  241.         set from = writeparameters
  242.         Debug-Output "setting from = "$(from)
  243.     else
  244.         set StartLabel = installadapter
  245.         set OEM_ABANDON_OPTIONS = {}
  246.         set OEM_ABANDON_SOFTWARE = FALSE
  247.         set OEM_ABANDON_ON = TRUE
  248.     endif
  249.     Debug-Output "OEMNADDS.INF: Option is: "$(Option)
  250.     set to = $(fatal)
  251.     Goto $(StartLabel)
  252. installadapter = +
  253.     Debug-Output "******************Entering installadapter******************"
  254.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  255.     Ifstr $(KeyProduct) != $(KeyNull)
  256.         CloseRegKey $(KeyProduct)
  257.         ifstr(i) $(!NTN_RegBase) == $(ProductKeyName)
  258.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  259.                $(ProductVersion)
  260.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  261.                Debug-Output "ShellCode error: Don't allow installation of software."
  262.                goto ShellCodeError
  263.            endif
  264.            goto end
  265.         else
  266.             OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyNameHdwDriver) +
  267.                        $(MAXIMUM_ALLOWED) KeyProductHdwDriver
  268.             Ifstr $(KeyProductHdwDriver) != $(KeyNull)
  269.                 CloseRegKey $(KeyProductHdwDriver)
  270.                 Shell $(UtilityInf), CardExistedDlg
  271.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  272.                     Debug-Output "ShellCode error: --One adapter all ready exists, install another-- FAILED."
  273.                     goto ShellCodeError
  274.                 endif
  275.                 ifstr(i) $($R1) != "OK"
  276.                     goto end
  277.                 endif
  278.                 set HdwDriverComponentExists = $(TRUE)
  279.             EndIf   
  280.             set OldVersionExisted = $(TRUE)
  281.         endif
  282.     endif
  283.     goto skipoptions
  284. skipoptions = +
  285.     Debug-Output "******************Entering skipoptions******************"
  286.     ifint $(HdwDriverComponentExists) == $(TRUE)
  287.         ifstr(i) $(!NTN_InstallMode) == configure
  288.             goto getAdapterSettings
  289.         endif
  290.     endif
  291.     StartWait
  292.     ifint $(HdwDriverComponentExists) == $(FALSE)
  293.         ifstr(i) $(!NTN_InstallMode) == "install"
  294.            shell $(UtilityInf) AssignAdapterNumber
  295.            set AdapterName = $(ProductHardwareName)$($R1)
  296.            Ifstr(i) $(DoCopy) == "YES"
  297.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  298.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  299.                   Debug-Output"Shell code error: DoAskSource"
  300.                   Goto ShellCodeError
  301.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  302.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  303.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  304.                       goto ShellCodeError
  305.                   endif
  306.                   set Error = $($R0)
  307.                   Goto fatal
  308.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  309.                   set CommonStatus = STATUS_USERCANCEL
  310.                   Goto successful
  311.               Endif
  312.               Set SrcDir = $($R1)
  313.            Endif
  314.            install "Install-Option"
  315.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  316.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  317.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  318.                   goto ShellCodeError
  319.               endif
  320.               set Error = $($R0)
  321.               goto fatal
  322.            endif
  323.         endif
  324.     endif
  325.     set from = addDigiFEP5Component
  326.     goto getAdapterSettings
  327. addDigiFEP5Component = +
  328.     Debug-Output "******************Entering addDigiFEP5Component******************"
  329.     Ifint $(OldVersionExisted) == $(TRUE)
  330.         goto addHdwDriverComponent
  331.     Endif
  332.     Debug-Output "OEMNADDS.INF: Adding DigiFEP5Component"
  333.         set DigiSpecificString = $(ProductSoftwareName)
  334.         set TypeofService = "kernelautostart"
  335.         set ServiceOrderGroup = "Extended base"
  336.         set Dependencies = {}
  337.         set ObjectName = ""
  338.         set TypeSupported = "7"
  339.         set EventLogLocation = "System"
  340.         set ErrorControlValue = 1
  341.         Debug-Output "OEMNADDS.INF: [InstallOption]:skipoptions: About to call AddSoftwareComponent"
  342.         Debug-Output "OEMNADID.INF:     Paramters passed in:"
  343.         Debug-Output "OEMNADDS.INF:         Manufacturer = "$(Manufacturer)
  344.         Debug-Output "OEMNADDS.INF:         Product = "$(ProductSoftwareName)
  345.         Debug-Output "OEMNADDS.INF:         Service = "$(ProductSoftwareName)
  346.         Debug-Output "OEMNADDS.INF:         Display name = "$(ProductSoftwareTitle)
  347.         Debug-Output "OEMNADDS.INF:         INFfile = "$(STF_CONTEXTINFNAME)
  348.         Debug-Output "OEMNADDS.INF:         ImagePath = "$(ProductSoftwareImagePath)
  349.         Debug-Output "OEMNADDS.INF:         Type of software = "$(TypeofService)
  350.         Debug-Output "OEMNADDS.INF:         Service Order group = "$(ServiceOrderGroup)
  351.         Debug-Output "OEMNADDS.INF:         Dependencies = "$(Dependencies)
  352.         Debug-Output "OEMNADDS.INF:         ObjectName = "$(ObjectName)
  353.         Debug-Output "OEMNADDS.INF:         EventMessageFile = "$(IoLogMsgDLL)";"$(ProductSoftwareImagePath)
  354.         Debug-Output "OEMNADDS.INF:         TypeSupported = "$(TypeSupported)
  355.         Debug-Output "OEMNADDS.INF:         Event log location = "$(EventLogLocation)
  356.         Debug-Output "OEMNADDS.INF:         Error control value = "$(ErrorControlValue)
  357.         Shell $(UtilityInf), AddSoftwareComponent, +
  358.                                     $(Manufacturer), +
  359.                                     $(ProductSoftwareName), +
  360.                                     $(ProductSoftwareName), +
  361.                                     $(ProductSoftwareTitle), +
  362.                                     $(STF_CONTEXTINFNAME), +
  363.                                     $(ProductSoftwareImagePath), +
  364.                                     $(TypeofService), +
  365.                                     $(ServiceOrderGroup), +
  366.                                     $(Dependencies), +
  367.                                     $(ObjectName), +
  368.                                     $(IoLogMsgDLL)";"$(ProductSoftwareImagePath), +
  369.                                     $(TypeSupported), +
  370.                                     $(EventLogLocation), +
  371.                                     $(ErrorControlValue)
  372.         Set OEM_ABANDON_SOFTWARE = TRUE
  373.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  374.             Debug-Output "ShellCode error: Add software component FAILED!"
  375.             goto ShellCodeError
  376.         endif
  377.         set RegistryErrorIndex = $($R0)
  378.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  379.             EndWait
  380.             Debug-Output "Registry error: add software components"
  381.             CloseRegKey $($R1)
  382.             CloseRegKey $($R2)
  383.             CloseRegKey $($R3)
  384.             CloseRegKey $($R4)
  385.             CloseRegKey $($R5)
  386.             goto fatalregistry
  387.         endif
  388.         Set SoftProductKey      = $($R1)
  389.         Set SoftNetRuleKey      = $($R2)
  390.         Set SoftServiceKey      = $($R3)
  391.         Set SoftParameterKey    = $($R4)
  392.         Set SoftLinkageKey      = $($R5)
  393.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  394.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  395.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  396.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  397.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  398.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  399.                            {hidden,$(NoTitle),$(!REG_VT_DWORD),$(NetRuleSoftwareHiddenDriver)}, +
  400.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  401.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  402.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  403.             Debug-Output "ShellCode error: AddValueList FAILED!  --"$(SoftProductKey)
  404.             goto ShellCodeError
  405.         endif
  406.         set RegistryErrorIndex = $($R0)
  407.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  408.             EndWait
  409.             Debug-Output "Registry error: add value list."
  410.             CloseRegKey $(SoftProductKey)
  411.             CloseRegKey $(SoftNetRuleKey)
  412.             CloseRegKey $(SoftServiceKey)
  413.             CloseRegKey $(SoftParameterKey)
  414.             CloseRegKey $(SoftLinkageKey)
  415.             goto fatalregistry
  416.         endif
  417.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  418.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  419.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  420.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  421.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  422.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  423.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  424.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  425.             Debug-Output "ShellCode error: AddValueList FAILED! --"$(SoftNetRuleKey)
  426.             goto ShellCodeError
  427.         endif
  428.         set RegistryErrorIndex = $($R0)
  429.         FlushRegKey $(SoftProductKey)
  430.         FlushRegKey $(SoftNetRuleKey)
  431.         FlushRegKey $(SoftServiceKey)
  432.         FlushRegKey $(SoftParameterKey)
  433.         FlushRegKey $(SoftLinkageKey)
  434.         CloseRegKey $(SoftProductKey)
  435.         CloseRegKey $(SoftNetRuleKey)
  436.         CloseRegKey $(SoftServiceKey)
  437.         CloseRegKey $(SoftParameterKey)
  438.         CloseRegKey $(SoftLinkageKey)
  439.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  440.             EndWait
  441.             Debug-Output "Registry error: add value list."
  442.             goto fatalregistry
  443.         endif
  444.         goto addHdwDriverComponent
  445. addHdwDriverComponent = +
  446.     Debug-Output "******************Entering addHdwDriverComponent******************"
  447.     set DigiSpecificString = $(AdapterHardwareName)
  448.     Ifint $(HdwDriverComponentExists) == $(TRUE)
  449.         goto addAdapterComponent
  450.     Endif
  451.     Debug-Output "OEMNADDS.INF: Adding HdwDriverComponent"
  452.         set TypeofService = "kernelautostart"
  453.         set ServiceOrderGroup = "Extended base"
  454.         set Dependencies = {}
  455.         set ObjectName = ""
  456.         set TypeSupported = "7"
  457.         set EventLogLocation = "System"
  458.         set ErrorControlValue = 1
  459.         Shell $(UtilityInf), AddSoftwareComponent, +
  460.                                     $(Manufacturer), +
  461.                                     $(ProductSoftwareNameHdwDriver), +
  462.                                     $(ProductSoftwareNameHdwDriver), +
  463.                                     $(ProductSoftwareTitleHdwDriver), +
  464.                                     $(STF_CONTEXTINFNAME), +
  465.                                     $(ProductSoftwareImagePathHdwDriver), +
  466.                                     $(TypeofService), +
  467.                                     $(ServiceOrderGroup), +
  468.                                     $(Dependencies), +
  469.                                     $(ObjectName), +
  470.                                     $(IoLogMsgDLL)";"$(ProductSoftwareImagePathHdwDriver), +
  471.                                     $(TypeSupported), +
  472.                                     $(EventLogLocation), +
  473.                                     $(ErrorControlValue)
  474.         Set OEM_ABANDON_SOFTWARE = TRUE
  475.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  476.             Debug-Output "ShellCode error: AddSoftwareComponent FAILED! -- "$(ProductSoftwareNameHdwDriver)
  477.             goto ShellCodeError
  478.         endif
  479.         set RegistryErrorIndex = $($R0)
  480.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  481.             EndWait
  482.             Debug-Output "Registry error: add software components"
  483.             CloseRegKey $($R1)
  484.             CloseRegKey $($R2)
  485.             CloseRegKey $($R3)
  486.             CloseRegKey $($R4)
  487.             CloseRegKey $($R5)
  488.             goto fatalregistry
  489.         endif
  490.         Set SoftProductKey      = $($R1)
  491.         Set SoftNetRuleKey      = $($R2)
  492.         Set SoftServiceKey      = $($R3)
  493.         Set SoftParameterKey    = $($R4)
  494.         Set SoftLinkageKey      = $($R5)
  495.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  496.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersionHdwDriver)},+
  497.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersionHdwDriver)},+
  498.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitleHdwDriver)},+
  499.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescriptionHdwDriver)},+
  500.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareNameHdwDriver)},+
  501.                            {hidden,$(NoTitle),$(!REG_VT_DWORD),$(NetRuleSoftwareHiddenHdwDriver)}, +
  502.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  503.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  504.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  505.             Debug-Output "ShellCode error: AddValueList FAILED!  -- "$(SoftProductKey)
  506.             goto ShellCodeError
  507.         endif
  508.         set RegistryErrorIndex = $($R0)
  509.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  510.             EndWait
  511.             Debug-Output "Resgitry error: add value list."
  512.             CloseRegKey $(SoftProductKey)
  513.             CloseRegKey $(SoftNetRuleKey)
  514.             CloseRegKey $(SoftServiceKey)
  515.             CloseRegKey $(SoftParameterKey)
  516.             CloseRegKey $(SoftLinkageKey)
  517.             goto fatalregistry
  518.         endif
  519.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareTypeHdwDriver)},+
  520.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUseHdwDriver)}, +
  521.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindFormHdwDriver)}, +
  522.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClassHdwDriver)}, +
  523.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindableHdwDriver)}, +
  524.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  525.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  526.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  527.             Debug-Output "ShellCode error. AddValueList FAILED!  -- "$(SoftNetRuleKey)
  528.             goto ShellCodeError
  529.         endif
  530.         set RegistryErrorIndex = $($R0)
  531.         FlushRegKey $(SoftProductKey)
  532.         FlushRegKey $(SoftNetRuleKey)
  533.         FlushRegKey $(SoftServiceKey)
  534.         FlushRegKey $(SoftParameterKey)
  535.         FlushRegKey $(SoftLinkageKey)
  536.         CloseRegKey $(SoftProductKey)
  537.         CloseRegKey $(SoftNetRuleKey)
  538.         CloseRegKey $(SoftServiceKey)
  539.         CloseRegKey $(SoftParameterKey)
  540.         CloseRegKey $(SoftLinkageKey)
  541.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  542.             EndWait
  543.             Debug-Output "Registry error: add value list."
  544.             goto fatalregistry
  545.         endif
  546. addAdapterComponent = +
  547.     Debug-Output "******************Entering addAdapterComponent******************"
  548.     Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName), +
  549.                                     $(STF_CONTEXTINFNAME), $(ProductKeyNameHdwDriver)
  550.     ifint $($R4) != -1
  551.         Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  552.     endif
  553.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  554.         Debug-Output "Cannot add hardware component!"
  555.         goto ShellCodeError
  556.     endif
  557.     set RegistryErrorIndex = $($R0)
  558.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  559.         EndWait
  560.         Debug-Output "Registry error: add hardware component"
  561.         Debug-Output $(RegistryErrorIndex)
  562.         CloseRegKey $($R1)
  563.         CloseRegKey $($R2)
  564.         CloseRegKey $($R3)
  565.         goto fatalregistry
  566.     endif
  567.     set KeyParameters = $($R3)
  568.     set KeyAdapterRules = $($R2)
  569.     set AdapterNumber = $($R4)
  570.     set AdapterServiceName = $($R5)
  571.     set AdapterName = $(AdapterServiceName)
  572.     set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  573.                        {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  574.                        {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  575.                        {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  576.                        {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  577.                        {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  578.     Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  579.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  580.         Debug-Output "ShellCode error: AddValueList FAILED  -- "$($R1)
  581.         goto ShellCodeError
  582.     endif
  583.     shell $(UtilityInf) IncrementRefCount $(ProductKeyName)
  584.     set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  585.     set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  586.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  587.                         {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  588.                         {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  589.                         {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  590.     Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  591.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  592.         Debug-Output "ShellCode error."
  593.         goto ShellCodeError
  594.     endif
  595.     set RegistryErrorIndex = $($R0)
  596.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  597.         EndWait
  598.         Debug-Output "Resgitry error: add value list."
  599.         CloseRegKey $(KeyParameters)
  600.         CloseRegKey $(KeyAdapterRules)
  601.         goto fatalregistry
  602.     endif
  603.     FlushRegKey $(KeyParameters)
  604.     FlushRegKey $(KeyAdapterRules)
  605.     CloseRegKey $(KeyParameters)
  606.     CloseRegKey $(KeyAdapterRules)
  607.     goto writeparameters
  608. configureadapter = +
  609.     Debug-Output "******************Entering configureadapter******************"
  610.     Debug-Output "OEMNADDS.INF: PortNameList = "$(PortNameList)
  611.     QueryListSize IRQRangeListSize $(IRQRangeList)
  612.     QueryListSize MemoryRangeListSize $(MemoryRangeList)
  613.     QueryListSize IORangeListSize $(IORangeList)
  614.     QueryListSize PortNameListSize $(PortNameList)
  615.     LibraryProcedure Result, $(DGCONFIG_HANDLE), +
  616.             DGConfigEntryPoint, $(!STF_HWND), $(AdapterHardwareType), +
  617.                 $(ConfigurationTitle), +
  618.                 $(IRQRangeList), +
  619.                 $(IRQRangeListSize), +
  620.                 $(IRQDefault), +
  621.                 $(MemoryRangeList), +
  622.                 $(MemoryRangeListSize), +
  623.                 $(MemoryDefault), +
  624.                 $(IORangeList), +
  625.                 $(IORangeListSize), +
  626.                 $(IODefault), +
  627.                 $(CtrlList), +
  628.                 $(AdapterName)
  629.     Debug-Output $(Result)
  630.     Ifstr $(Result) == "{}"
  631.         set CommonStatus = STATUS_USERCANCEL
  632.         goto successful
  633.     Endif
  634.     set AdapterParameters = $(Result)
  635.     read-syms UpdatingConfiguration$(!STF_LANGUAGE)
  636.     shell $(subroutninf) PushBillBoard NETSTATUSDLG $(UpdatingConfiguration)
  637.     Debug-Output "jumping to "$(from)
  638.     goto $(from)
  639. getAdapterSettings = +
  640.     Debug-Output "******************Entering getAdapterSettings******************"
  641.     Debug-Output "from value = "$(from)
  642.     set IRQDefault = 0
  643.     set MemoryDefault = 3
  644.     set IODefault = 4
  645.     LoadLibrary "x" dgconfig.dll DGCONFIG_HANDLE
  646.     read-syms AdapterSettings-$(AdapterHardwareName)
  647.     Ifstr $(!NTN_RegBase) != $(KeyNull)
  648.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) SoftwareKey
  649.         Ifstr $(SoftwareKey) == $(KeyNull)
  650.             Debug-Output "Unable to open "$(!NTN_RegBase)" key!!!!"
  651.             goto getAdapterSettingsExit
  652.         Else
  653.             GetRegValue $(SoftwareKey), "ServiceName", ServiceNameList
  654.             set AdapterServiceName = *($(ServiceNameList),4)
  655.             set AdapterName = $(AdapterServiceName)
  656.             CloseRegKey $(SoftwareKey)
  657.         Endif
  658.     Endif
  659.     Debug-Output "AdapterServiceName = "$(AdapterServiceName)
  660.     Debug-Output "AdapterName = "$(AdapterName)
  661.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(AdapterServiceName) $(MAXIMUM_ALLOWED) BaseKey
  662.     Ifstr $(BaseKey) == $(KeyNull)
  663.         Debug-Output "Error opening BaseKey "$(!NTN_ServiceBase)"\"$(AdapterServiceName)
  664.         CloseRegKey $(BaseKey)
  665.         goto fatalregistry
  666.     Endif
  667.     set BusTypeNum = 1
  668.     OpenRegKey $(BaseKey) "" "Parameters" $(MAXIMUM_ALLOWED) ParametersKey
  669.     Ifstr $(ParametersKey) == $(KeyNull)
  670.         Debug-Output "Assuming Parameters key does not exist!!!"
  671.         ifint $(AdapterHardwareEisaID) != 0
  672.            Debug-Output "Calling EISAFindBus, "$(AdapterHardwareEisaID)
  673.            Shell $(UtilityInf), EISAFindBus, $(AdapterHardwareEisaID)
  674.            set CardInfo = {}
  675.            ifstr(i) $($R1) != {}
  676.               set CardInfo = $($R1)
  677.               Debug-Output "EISA controller found!"
  678.               Debug-Output "CardInfo = "$(CardInfo)
  679.                ForListDo $(CardInfo)
  680.                   Debug-Output "Current CardInfo Entry = "$($)
  681.                   set TmpBusNumber = *($($), 1)
  682.                   set SlotNumber = *($($), 2)
  683.                   set-mul NewIOBaseAddress = $(SlotNumber), 4096
  684.                   set-add NewIOBaseAddress = $(NewIOBaseAddress), 5
  685.                   set-dectohex NewIOBaseAddress = $(NewIOBaseAddress)
  686.                   Debug-Output "Calling DoesControllerExist:"
  687.                   Debug-Output "    AdapterHardwareName = "$(AdapterHardwareName)
  688.                   Debug-Output "    BusNumber = "$(TmpBusNumber)
  689.                   Debug-Output "    NewIOBaseAddress = "$(NewIOBaseAddress)
  690.                   Debug-Output " DGCONFIG_HANDLE = "$(DGCONFIG_HANDLE)
  691.                   LibraryProcedure Result, $(DGCONFIG_HANDLE), +
  692.                      DoesControllerExist, $(AdapterHardwareName), +
  693.                                           $(TmpBusNumber),        +
  694.                                           $(NewIOBaseAddress)
  695.                   Debug-Output "DoesControllerExist return: "$(Result)
  696.                   ifstr(i) $(Result) == "FALSE"
  697.                      Debug-Output "Before resetting IORangeList for EISA: "$(IORangeList)
  698.                      set IORangeList = {$(NewIOBaseAddress)}
  699.                      set IODefault = 0
  700.                      Debug-Output "After resetting IORangeList for EISA: "$(IORangeList)
  701.                      set BusTypeNum = 2
  702.                      goto getAdapterSettingsExit
  703.                   endif
  704.                EndForListDo
  705.            endif
  706.         endif
  707.         CloseRegKey $(BaseKey)
  708.         goto configureadapter
  709.     Endif
  710.     GetRegValue $(ParametersKey) "MemoryMappedBaseAddress" MemoryMappedValueList
  711.     GetRegValue $(ParametersKey) "InterruptNumber" IRQValueList
  712.     GetRegValue $(ParametersKey) "IOBaseAddress" IOBaseValueList
  713.     set-dectohex TmpHex = *($(MemoryMappedValueList),4)
  714.     Debug-Output "Current MemoryMappedBaseAddress = "$(TmpHex)
  715.     ForListDo $(MemoryRangeList)
  716.         Ifstr(i) $(TmpHex) == "0x"$($)
  717.             set-sub MemoryDefault = $(#),1
  718.         Endif
  719.     EndForListDo
  720.     set-dectohex TmpHex = *($(IRQValueList),4)
  721.     Debug-Output "Current InterruptNumber = "$(TmpHex)
  722.     ForListDo $(IRQRangeList)
  723.         Ifstr(i) $(TmpHex) == "0x"$($)
  724.             set-sub IRQDefault = $(#),1
  725.         Endif
  726.     EndForListDo
  727.     set IOFound = $(FALSE)
  728.     set-dectohex TmpHex = *($(IOBaseValueList),4)
  729.     Debug-Output "Current IOBaseAddress = "$(TmpHex)
  730.     ForListDo $(IORangeList)
  731.         Ifstr(i) $(TmpHex) == "0x"$($)
  732.             set-sub IODefault = $(#),1
  733.             set IOFound = $(TRUE)
  734.         Endif
  735.     EndForListDo
  736.     ifint $(IOFound) == $(FALSE)
  737.       set IORangeList = {$(TmpHex)}
  738.       set IODefault = 0
  739.       set BusTypeNum = 2
  740.     endif
  741.     set CtrlList = {}
  742.     set LineList = {}
  743.     ForListDo {"1","2"}  
  744.       set CurrentLine = "Line"$($)
  745.       Debug-Output "CurrentLine = "$(CurrentLine)
  746.       OpenRegKey $(ParametersKey) "" $(CurrentLine) $(MAXIMUM_ALLOWED) LineKey
  747.             Ifstr $(LineKey) != $(KeyNull)
  748.                set ConcList = {}
  749.                ForListDo {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16"}
  750.                   set CurrentConc = "Concentrator"$($)
  751.                   OpenRegKey $(LineKey) "" $(CurrentConc) $(MAXIMUM_ALLOWED) ConcKey
  752.                   Ifstr $(ConcKey) != $(KeyNull)
  753.                      set PortNameList = {}
  754.                      set CurrentPort = ""
  755.                      set PortName = {}
  756.                      ForListDo {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16"}
  757.                         set CurrentPort = "Port"$($)
  758.                         OpenRegKey $(ConcKey) "" $(CurrentPort) $(MAXIMUM_ALLOWED) PortKey
  759.                         Ifstr $(PortKey) != $(KeyNull)
  760.                            GetRegValue $(PortKey) "DosDevices" PortName
  761.                            Ifstr $(PortNameList) == $(KeyNull)
  762.                               set PortNameList = *($(PortName),4)
  763.                            Else
  764.                               set PortNameList = >($(PortNameList), >($(CurrentPort),*($(PortName),4)))
  765.                            Endif
  766.                            CloseRegKey $(PortKey)
  767.                         EndIf
  768.                      EndForListDo
  769.                      CloseRegKey $(ConcKey)
  770.                      set ConcList = >($(ConcList),>($(CurrentConc),$(PortNameList)))
  771.                   EndIf
  772.                EndForListDo
  773.                CloseRegKey $(LineKey)
  774.                set TmpLine = >($(CurrentLine),$(ConcList))
  775.                set LineList = >($(LineList),$(TmpLine))
  776.             Endif
  777.             Debug-Output "LineList = "$(LineList)
  778.             set CtrlList = $(LineList)
  779.     EndForListDo
  780.     CloseRegKey $(ParametersKey)
  781.     CloseRegKey $(BaseKey)
  782. getAdapterSettingsExit = +
  783.     goto configureadapter
  784. writeparameters = +
  785.     Debug-Output "******************Entering writeparameters******************"
  786.     StartWait
  787.     Debug-Output "Trying to open: "$(!NTN_ServiceBase)"\"$(AdapterServiceName)
  788.     Debug-Output "AdapterParameters:"
  789.     Debug-Output $(AdapterParameters)
  790.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(AdapterServiceName) $(MAXIMUM_ALLOWED) BaseKey
  791.     Ifstr $(BaseKey) == $(KeyNull)
  792.         Debug-Output "Error opening BaseKey "$(!NTN_ServiceBase)"\"$(AdapterServiceName)
  793.         CloseRegKey $(BaseKey)
  794.         goto fatal
  795.     Endif
  796.     OpenRegKey $(BaseKey) "" "Parameters" $(MAXIMUM_ALLOWED) ParametersKey
  797.     Ifstr $(ParametersKey) == $(KeyNull)
  798.         Debug-Output "Assuming Parameters key does not exist!!!"
  799.         CloseRegKey $(BaseKey)
  800.         goto fatal
  801.     Endif
  802.     Debug-Output "AdapterParameters parsed: "
  803.     set MemoryAddress = *($(AdapterParameters),1)
  804.     set InterruptNumber = *($(AdapterParameters),2)
  805.     set IOBaseAddress = *($(AdapterParameters),3)
  806.     set HdwDeviceName = "\Device\"$(AdapterHardwareDriver)
  807.     Debug-Output "MemoryAddress = "$(MemoryAddress)
  808.     Debug-Output "InterruptNumber = "$(InterruptNumber)
  809.     Debug-Output "IOBaseAddress = "$(IOBaseAddress)
  810.     Debug-Output "HdwDeviceName = "$(HdwDeviceName)
  811.     SetRegValue $(ParametersKey) {MemoryMappedBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MemoryAddress)}
  812.     SetRegValue $(ParametersKey) {IOBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddress)}
  813.     SetRegValue $(ParametersKey) {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(InterruptNumber)}
  814.     SetRegValue $(ParametersKey) {HdwDeviceName,$(NoTitle),$(!REG_VT_SZ),$(HdwDeviceName)}
  815.     SetRegValue $(ParametersKey) {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)}
  816.     set LineList = *($(AdapterParameters),4)
  817.     ForListDo $(LineList)
  818.       set LineObject = $($)
  819.       set LineName = *($(LineObject),1)
  820.       DeleteRegTree $(ParametersKey) $(LineName)
  821.       set ConcList = *($(LineObject),2)
  822.       Ifstr $(ConcList) != "{}"
  823.          shell "" ExCreateRegKey $(ParametersKey) $(LineName)
  824.          Ifstr(i) $($R0) != NO_ERROR
  825.              Debug-Output "Error creating registry key!"
  826.              set KeyHandle = $($R1)
  827.              CloseRegKey $(BaseKey)
  828.              goto fatal
  829.          Endif
  830.          set LineKey = $($R1)
  831.       Endif
  832.       ForListDo $(ConcList)
  833.          set ConcObject = $($)
  834.          set ConcName = *($(ConcObject),1)
  835.          set PortList = *($(ConcObject),2)
  836.          Debug-Output "   "$(ConcName)
  837.          Debug-Output "   "$(PortList)
  838.          shell "" ExCreateRegKey $(LineKey) $(ConcName)
  839.          Ifstr(i) $($R0) != NO_ERROR
  840.              Debug-Output "Error creating registry key!"
  841.              set KeyHandle = $($R1)
  842.              CloseRegKey $(LineKey)
  843.              goto fatal
  844.          Endif
  845.          set ConcKey = $($R1)
  846.          ForListDo $(PortList)
  847.             set PortObject = $($)
  848.             set PortName = *($(PortObject),1)
  849.             set PortDosDevices = *($(PortObject),2)
  850.             Debug-Output "      "$(PortName)"  -> "$(PortDosDevices)
  851.             shell "" ExCreateRegKey $(ConcKey) $(PortName)
  852.             Ifstr(i) $($R0) != NO_ERROR
  853.                 Debug-Output "Error creating registry key!"
  854.                 set KeyHandle = $($R1)
  855.                 CloseRegKey $(LineKey)
  856.                 goto fatal
  857.             Endif
  858.             set PortKey = $($R1)
  859.             SetRegValue $(PortKey) {DosDevices,$(NoTitle),$(!REG_VT_SZ),$(PortDosDevices)}
  860.          EndForListDo
  861.       EndForListDo
  862.     EndForListDo
  863.     EndWait
  864.     goto successful
  865. bindingadapter = +
  866.     Debug-Output "******************Entering bindingadapter******************"
  867.     LoadLibrary "x" dgconfig.dll DGCONFIG_HANDLE
  868.     set Error = "Binding: Sorry, not yet implemented."
  869.     goto fatal
  870. removeadapter = +
  871.     read-syms DebugOptions
  872.     Debug-Output "******************Entering removeadapter******************"
  873.     Debug-Output "OEMNADDS.INF: removeadapter"
  874.     Debug-Output "OEMNADDS.INF: Removing Hardware Components"
  875.     Debug-Output "OEMNADDS.INF: ProductKeyName = "$(ProductKeyName)
  876.     Debug-Output "OEMNADDS.INF: ProductSoftwareName = "$(ProductSoftwareName)
  877.     Debug-Output "OEMNADDS.INF: ProductSoftwareNameHdwDriver = "$(ProductSoftwareNameHdwDriver)
  878.     Debug-Output "OEMNADDS.INF: NTN_RegBase = "$(!NTN_RegBase)
  879.     ifstr(i) $(fRemoveDigi) == FALSE
  880.       install RemoveFiles
  881.       goto removeadapterExit
  882.     endif
  883.     LoadLibrary "x" dgconfig.dll DGCONFIG_HANDLE
  884.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  885.         $(ProductSoftwareNameHdwDriver), $(!NTN_RegBase)
  886.     Debug-Output "OEMNADDS.INF: RemoveHardwareComponent return value = "$($R0)
  887.     Ifstr(i) $($R0) != NO_ERROR
  888.         Debug-Output "OEMNADDS.INF: RemoveHardwareComponent != NO_ERROR"
  889.     Endif
  890.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  891.         Debug-Output "ShellCode error"
  892.         goto ShellCodeError
  893.     endif
  894.     set RegistryErrorIndex = $($R0)
  895.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  896.         Debug-Output "fatal registry error"
  897.         goto fatalregistry
  898.     endif
  899.     shell $(UtilityInf), DecrementRefCount, $(ProductKeyName)
  900.     Debug-Output "OEMNADDS.INF: DecrementRefCount return value = "$($R0)
  901.     Ifstr(i) $($R0) != NO_ERROR
  902.         Debug-Output "OEMNADDS.INF: DecrementRefCount != NO_ERROR"
  903.     Endif
  904.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  905.         $(ProductSoftwareName), TRUE
  906.     Debug-Output "RemoveSoftwareComponent return value = "$($R0)
  907.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  908.         Debug-Output "ShellCode error"
  909.         goto ShellCodeError
  910.     endif
  911.     set RegistryErrorIndex = $($R0)
  912.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  913.         Ifstr(i) $(RegistryErrorIndex) != REF_COUNT_NOT_ZERO
  914.             goto fatalregistry
  915.         endif
  916.     endif
  917.     install RemoveFiles
  918. removeadapterExit = +
  919.     Debug-Output "OEMNADDS.INF: Exiting removeadapter"
  920.     goto end
  921. UpgradeSoftware = +
  922.     Debug-Output "******************Entering UpgradeSoftware******************"
  923.     LoadLibrary "x" dgconfig.dll DGCONFIG_HANDLE
  924.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  925.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  926.         Ifstr $(KeyProduct) != $(KeyNull)
  927.             GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  928.             set Version = *($(VersionInfo), 4)
  929.             Split-String $(!NTN_Infname), "\", FilenameList
  930.             QueryListSize ListSize $(FilenameList)
  931.             set !UG_Filename = *($(FilenameList), $(ListSize))
  932.             install "Install-Update"
  933.             ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  934.                 goto fatal
  935.             endif
  936.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  937.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  938.             ifint $(Version) != $(ProductVersion)
  939.             endif
  940.             CloseRegKey $(KeyProduct)
  941.         else
  942.             goto fatalregistry
  943.         endif
  944.     else
  945.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  946.               $(MAXIMUM_ALLOWED) NetworkCardKey
  947.         Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  948.             GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  949.             set ServiceName = *($(ServiceNameInfo), 4)
  950.             OpenRegKey $(NetworkCardKey) "" "NetRules" +
  951.                 $(MAXIMUM_ALLOWED) NetRuleKey
  952.             Ifstr $(NetRuleKey) != $(KeyNull)
  953.             else
  954.                 goto fatalregistry
  955.             endif
  956.             CloseRegKey $(NetRules)
  957.             CloseRegKey $(NetworkCardKey)
  958.         else
  959.             goto fatalregistry
  960.         endif
  961.         OpenRegKey $(!REG_H_LOCAL) "" +
  962.               $(!NTN_ServiceBase)"\"$(ServiceName) +
  963.               $(MAXIMUM_ALLOWED) ServiceKey
  964.         Ifstr $(ServiceKey) != $(KeyNull)
  965.             CloseRegKey $(ServiceKey)
  966.         else
  967.             goto fatalregistry
  968.         endif
  969.     endif
  970.     goto end
  971. successful = +
  972.     Debug-Output "******************Entering successful******************"
  973.     goto end
  974. abandon = +
  975.     Debug-Output "******************Entering abandon******************"
  976.     ForListDo $(OEM_ABANDON_OPTIONS)
  977.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  978.             $(ProductSoftwareName), $($)
  979.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  980.             Debug-Output "ShellCode error"
  981.             goto ShellCodeError
  982.         endif
  983.         set RegistryErrorIndex = $($R0)
  984.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  985.             goto fatalregistry
  986.         endif
  987.     EndForListDo
  988.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  989.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  990.             $(ProductSoftwareName), FALSE
  991.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  992.             Debug-Output "ShellCode error"
  993.             goto ShellCodeError
  994.         endif
  995.         set RegistryErrorIndex = $($R0)
  996.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  997.             goto fatalregistry
  998.         endif
  999.     endif
  1000.     goto end
  1001. warning = +
  1002.     Debug-Output "******************Entering warning******************"
  1003.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  1004.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1005.         goto ShellCodeError
  1006.     endif
  1007.     ifstr(i) $($R1) == "OK"
  1008.         goto $(to)
  1009.     else-ifstr(i) $($R1) == "CANCEL"
  1010.         goto $(from)
  1011.     else
  1012.         goto "end"
  1013.     endif
  1014. nonfatalinfo = +
  1015.     Debug-Output "******************Entering nonfatalinfo******************"
  1016.     Set CommonStatus = STATUS_USERCANCEL
  1017.     Set Severity = STATUS
  1018.     goto nonfatalmsg
  1019. nonfatal = +
  1020.     Debug-Output "******************Entering nonfatal******************"
  1021.     Set Severity = NONFATAL
  1022.     goto nonfatalmsg
  1023. nonfatalmsg = +
  1024.     Debug-Output "******************Entering nonfatalmsg******************"
  1025.     ifstr(i) $(Error) == ""
  1026.         Set Severity = NONFATAL
  1027.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  1028.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1029.             goto ShellCodeError
  1030.         endif
  1031.         set Error = $($R0)
  1032.     endif
  1033.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  1034.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1035.         goto ShellCodeError
  1036.     endif
  1037.     ifstr(i) $($R1) == "OK"
  1038.         goto $(from)
  1039.     else
  1040.         goto "end"
  1041.     endif
  1042. fatalregistry = +
  1043.     Debug-Output "******************Entering fatalregistry******************"
  1044.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  1045.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1046.        Debug-Output "fatalregistry: shell to find RegistryErrorString failed."
  1047.        goto ShellCodeError
  1048.     endif
  1049.     set Error = $($R0)" - service "$(DigiSpecificString)"."
  1050.     ifstr(i) $(fRemoveDigi) == TRUE
  1051.         read-syms AbortMessage$(!STF_LANGUAGE)
  1052.         set Error = $(Error)$(!LF)$(!LF)$(AbortText)
  1053.     endif
  1054.     goto fatal
  1055. fataldetect = +
  1056.     Debug-Output "******************Entering fataldetect******************"
  1057.     Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
  1058.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1059.         Debug-Output "ShellCode error: cannot get an error string."
  1060.         goto ShellCodeError
  1061.     endif
  1062.     set Error = $($R0)
  1063.     Goto fatal
  1064. fatal = +
  1065.     Debug-Output "******************Entering fatal******************"
  1066.     Debug-Output "OEMNADDS.INF: ---- fatal called"
  1067.     Shell $(subroutninf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  1068.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1069.         Debug-Output "fatal: shell to SetupMessage failed."
  1070.         goto ShellCodeError
  1071.     endif
  1072.     goto setfailed
  1073. ShellCodeError = +
  1074.     Debug-Output "******************Entering ShellCodeError******************"
  1075.     set DlgType      = "MessageBox"
  1076.     set STF_MB_TITLE = "Error: "$(FunctionTitle)
  1077.     set STF_MB_TEXT  = "Shell Code Error"
  1078.     set STF_MB_TYPE  = 1
  1079.     set STF_MB_ICON  = 3
  1080.     set STF_MB_DEF   = 1
  1081.     ui start "Error Message"
  1082.     goto setfailed
  1083. setfailed = +
  1084.     Debug-Output "******************Entering setfailed******************"
  1085.     set CommonStatus = STATUS_FAILED
  1086.     ifstr(i) $(fRemoveDigi) == TRUE
  1087.         set fRemoveDigi = FALSE
  1088.         goto removeadapter
  1089.     endif
  1090.     goto end
  1091. end = +
  1092.     Debug-Output "******************Entering end******************"
  1093.     goto term
  1094. term = +
  1095.     ifstr(i) $(DGCONFIG_HANDLE) != $(HandleNull)
  1096.       FreeLibrary $(DGCONFIG_HANDLE)
  1097.     endif
  1098.     Debug-Output "******************Entering term -- GoodBye!!!******************"
  1099.     Return $(CommonStatus)
  1100. [RemoveFiles]
  1101.    Debug-Output "******************Entering [RemoveFiles]******************"
  1102.    set RemoveList = {}
  1103.    set RenameList = {}
  1104.    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyNameHdwDriver) +
  1105.               $(MAXIMUM_ALLOWED) KeyProductHdwDriver
  1106.    ifstr $(KeyProductHdwDriver) == $(KeyNull)
  1107.       CloseRegKey $(KeyProductHdwDriver)
  1108.       set RenameList = >($(RenameList), $(!STF_WINDOWSSYSPATH)"\drivers\"$(AdapterHardwareDriver)".sys")
  1109.    endif
  1110.    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) +
  1111.               $(MAXIMUM_ALLOWED) KeyProduct
  1112.    ifstr $(KeyProduct) == $(KeyNull)
  1113.       CloseRegKey $(KeyProduct)
  1114.       set RenameList = >($(RenameList), $(!STF_WINDOWSSYSPATH)"\drivers\"$(ProductSoftwareName)".sys")
  1115.       set RenameList = >($(RenameList), $(!STF_WINDOWSSYSPATH)"\dgconfig.dll")
  1116.       set RemoveList = >($(RemoveList), $(!STF_WINDOWSSYSPATH)"\dgconfig.hlp")
  1117.    endif
  1118.    Debug-Output "RemoveList = "$(RemoveList)
  1119.    Debug-Output "RenameList = "$(RenameList)
  1120.    ForListDo $(RemoveList)
  1121.        Debug-Output "Removing "$($)
  1122.        LibraryProcedure Status , $(!LIBHANDLE), DelFile $($)
  1123.        Debug-Output "Status is "$(Status)
  1124.    EndForListDo
  1125.    ForListDo $(RenameList)
  1126.        Debug-Output "RenameList entry = "$($)
  1127.        Split-String $($) "\" FilePath
  1128.        QueryListSize PathLen $(FilePath)
  1129.        Split-String *($(FilePath),$(PathLen)) "." FullFileName
  1130.        Set FileName = *($(FullFileName),1)
  1131.        Debug-Output "FileName is "$(FileName)
  1132.        LibraryProcedure STATUS, $(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1133.        Debug-Output "CheckFile Status = "$(STATUS)
  1134.        ifstr(i) $(STATUS) == YES
  1135.            LibraryProcedure STATUS, $(!LIBHANDLE), DelFile $(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1136.            Debug-Output "Delfile Status = "$(STATUS)
  1137.            LibraryProcedure STATUS, $(!LIBHANDLE), DelFile $($)
  1138.            Debug-Output "Delfile Status = "$(STATUS)
  1139.        endif
  1140.        ifstr(i) $(fRemoveDigi) == TRUE
  1141.          Debug-Output "Renaming from "$($)
  1142.          Debug-Output "Renaming to "$(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1143.          LibraryProcedure Status1 , $(!LIBHANDLE), RenFile $($), $(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1144.          Debug-Output "Status is "$(Status1)
  1145.          AddFileToDeleteList $(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1146.        endif
  1147.    EndForListDo
  1148.    exit
  1149. [ExCreateRegKey]
  1150.     Debug-Output "******************Entering [ExCreateRegKey]******************"
  1151.     set ECR_Result          = NO_ERROR
  1152.     set ECR_BaseKeyHandle   = $($0)
  1153.     set ECR_NewPath         = $($1)
  1154.     set KeyNull         = ""
  1155.     set MAXIMUM_ALLOWED   = 33554432
  1156.     Debug-Output "ExCreateRegKey - ECR_BaseKeyHandle = "$(ECR_BaseKeyHandle)
  1157.     Debug-Output "                 ECR_NewPath = "$(ECR_NewPath)
  1158.     Debug-Output "                 MAXIMUM_ALLOWED = "$(MAXIMUM_ALLOWED)
  1159.     Debug-Output "                 KeyNull = "$(KeyNull)
  1160.     OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_NewPath) $(MAXIMUM_ALLOWED) +
  1161.                ECR_BaseKey
  1162.     Debug-Output "ECR_BaseKey = "$(ECR_BaseKey)
  1163.     Debug-Output "    OpenRegKey returned "$($R0)
  1164.     Ifstr $(ECR_BaseKey) == $(KeyNull)
  1165.         Debug-Output "ECR_BaseKey == KeyNull"
  1166.     Else
  1167.         Debug-Output "ECR_BaseKey != KeyNull"
  1168.         set ECR_KeyHandle = $(ECR_BaseKey)
  1169.         goto  ECR_Return
  1170.     Endif
  1171.     set ECR_TmpPath = ""
  1172.     Split-String $(ECR_NewPath) "\" ECR_PList
  1173.     Debug-Output "ECR_PList = "$(ECR_PList)
  1174.     ForListDo $(ECR_PList)
  1175.         Ifstr(i) $($) != "\"
  1176.             Ifint $(#) == 1
  1177.                 set ECR_TmpPath = $($)
  1178.             Else
  1179.                 set ECR_TmpPath = $(ECR_TmpPath)"\"$($)
  1180.             Endif
  1181.             Debug-Output "Determining if "$(ECR_TmpPath)" exists"
  1182.             OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_TmpPath) $(MAXIMUM_ALLOWED) ECR_BaseKey
  1183.             Ifstr $(ECR_BaseKey) == $(KeyNull)
  1184.                 Debug-Output "Creating "$(ECR_TmpPath)
  1185.                 CreateRegKey $(ECR_BaseKeyHandle)  {$(ECR_TmpPath),0,GenericClass} "" $(MAXIMUM_ALLOWED) "" ECR_KeyHandle
  1186.                 Ifstr(i) $(ECR_KeyHandle) == $(KeyNull)
  1187.                     set ECR_Result = $($R0)
  1188.                     goto ECR_Return
  1189.                 Endif
  1190.             Endif
  1191.         Endif
  1192.     EndForListDo
  1193. ECR_Return = +
  1194.     return $(ECR_Result) $(ECR_KeyHandle)
  1195. [DebugExternalGlobals]
  1196.     Set InfName = "OEMNADDS.INF"
  1197.     Debug-Output $(InfName)" NTN_Origination = "$(!NTN_Origination)
  1198.     Debug-Output $(InfName)" NTN_InstallMode = "$(!NTN_InstallMode)
  1199.     Debug-Output $(InfName)" NTN_RegBase = "$(!NTN_RegBase)
  1200.     Debug-Output $(InfName)" NTN_SoftwareBase = "$(!NTN_SoftwareBase)
  1201.     Debug-Output $(InfName)" NTN_ServiceBase = "$(!NTN_ServiceBase)
  1202.     Debug-Output $(InfName)" STF_NTPATH = "$(!STF_NTPATH)
  1203.     Debug-Output $(InfName)" STF_NTWINDOWSSYSPATH = "$(!STF_WINDOWSSYSPATH)
  1204.     Debug-Output $(InfName)" STF_CWDIR = "$(!STF_CWDIR)
  1205.     Debug-Output $(InfName)" STF_LANGUAGE = "$(!STF_LANGUAGE)
  1206.     Debug-Output $(InfName)" STF_NCDETECT  = "$(!STF_NCDETECT) 
  1207.     Debug-Output $(InfName)" STF_NCOPTION  = "$(!STF_NCOPTION) 
  1208.     Debug-Output $(InfName)" STF_NCDETCARD = "$(!STF_NCDETCARD)
  1209.     Debug-Output $(InfName)" STF_NCDETINFO = "$(!STF_NCDETINFO)
  1210.     Debug-Output $(InfName)" STF_INSTALL_MODE = "$(!STF_INSTALL_MODE)
  1211.     Debug-Output $(InfName)" STF_CONTEXTINFNAME = "$(!STF_CONTEXTINFNAME)
  1212.     return
  1213. [DebugConfiguration]
  1214.     Set InfName = "OEMNADDS.INF"
  1215.     Debug-Output $(InfName)" **CONFIGURATION STATE: "$($0)
  1216.     Debug-Output $(InfName)" IRQ_Level is "$(!p:IRQ_Level)
  1217.     Debug-Output $(InfName)" IOBaseAddrValue is "$(!p:IOBaseAddrValue)
  1218.     Debug-Output $(InfName)" TransceiverValue is "$(!p:TransceiverValue)
  1219.     Debug-Output $(InfName)" MemBaseAddrDec is "$(!p:MemBaseAddrDec)
  1220.     Debug-Output $(InfName)" MappedValue is "$(!p:MappedValue)
  1221.     return
  1222. [AdapterSettings-ntcx]
  1223. IRQRangeList = {"Disabled"}
  1224. MemoryRangeList = {"C0000","C8000","D0000","D8000","E0000","E8000"}
  1225. IORangeList = {"108","118","128","208","228","308","328"}
  1226. IRQDefault = 0
  1227. MemoryDefault = 2
  1228. IODefault = 4
  1229. [AdapterSettings-ntxem]
  1230. IRQRangeList = {"Disabled"}
  1231. MemoryRangeList = {"C0000","C8000","D0000","D8000","E0000","E8000"}
  1232. IORangeList = {"104","114","124","204","224","304","324"}
  1233. IRQDefault = 0
  1234. MemoryDefault = 2
  1235. IODefault = 4
  1236. [AdapterSettings-nt8i]
  1237. IRQRangeList = {"Disabled"}
  1238. MemoryRangeList = {"C0000","D0000","E0000"}
  1239. IORangeList = {"100","110","120","200","220","300","320"}
  1240. IRQDefault = 0
  1241. MemoryDefault = 1
  1242. IODefault = 4
  1243. [AdapterSettings-nt8e]
  1244. IRQRangeList = {"Disabled"}
  1245. MemoryRangeList = {"C0000","D0000","E0000", }
  1246. IORangeList = {"100","110","120","200","220","300","320"}
  1247. IRQDefault = 0
  1248. MemoryDefault = 1
  1249. IODefault = 4
  1250. [AdapterSettings-nt4e]
  1251. IRQRangeList = {"Disabled"}
  1252. MemoryRangeList = {"C0000","D0000","E0000", }
  1253. IORangeList = {"100","110","120","200","220","300","320"}
  1254. IRQDefault = 0
  1255. MemoryDefault = 1
  1256. IODefault = 4
  1257. [AdapterSettings-2Port]
  1258. IRQRangeList = {"Disabled"}
  1259. MemoryRangeList = {"C0000","C2000","C4000","C6000","C8000", "CA000", "CC000", "CE000", +
  1260.                "D0000","D2000","D4000","D6000","D8000", "DA000", "DC000", "DE000", +
  1261.                "E0000","E2000","E4000","E6000","E8000", "EA000", "EC000", "EE000" }
  1262. IORangeList = {"100","110","120","200","220","300","320"}
  1263. IRQDefault = 0
  1264. MemoryDefault = 8
  1265. IODefault = 4
  1266. [AdapterSettings-4Port]
  1267. IRQRangeList = {"Disabled"}
  1268. MemoryRangeList = {"C0000","C2000","C4000","C6000","C8000", "CA000", "CC000", "CE000", +
  1269.                "D0000","D2000","D4000","D6000","D8000", "DA000", "DC000", "DE000", +
  1270.                "E0000","E2000","E4000","E6000","E8000", "EA000", "EC000", "EE000" }
  1271. IORangeList = {"100","110","120","200","220","300","320"}
  1272. IRQDefault = 0
  1273. MemoryDefault = 8
  1274. IODefault = 4
  1275. [AdapterSettings-8Port]
  1276. IRQRangeList = {"Disabled"}
  1277. MemoryRangeList = {"C0000","C2000","C4000","C6000","C8000", "CA000", "CC000", "CE000", +
  1278.                "D0000","D2000","D4000","D6000","D8000", "DA000", "DC000", "DE000", +
  1279.                "E0000","E2000","E4000","E6000","E8000", "EA000", "EC000", "EE000" }
  1280. IORangeList = {"100","110","120","200","220","300","320"}
  1281. IRQDefault = 0
  1282. MemoryDefault = 8
  1283. IODefault = 4
  1284. [BindingInfo-DigiFEP5]
  1285. BindingInfo =   {+
  1286.                 "digiFEP5Driver ntcxDriver non exclusive 100", +
  1287.                 "digiFEP5Driver ntxemDriver non exclusive 100", +
  1288.                 "digiFEP5Driver ntxallDriver non exclusive 100" +
  1289.                 }
  1290. [BindingInfo-ntxem]
  1291. BindingInfo     = {+
  1292.                   $(AdapterHardwareDriver)"Driver "$(AdapterHardwareDriver)"Adapter non exclusive 100", +
  1293.                   }
  1294. [BindingInfo-ntcx]
  1295. BindingInfo     = {+
  1296.                   $(AdapterHardwareDriver)"Driver "$(AdapterHardwareDriver)"Adapter non exclusive 100", +
  1297.                   }
  1298. [BindingInfo-ntxall]
  1299. BindingInfo     = {+
  1300.                   $(AdapterHardwareDriver)"Driver "$(AdapterHardwareDriver)"Adapter non exclusive 100" +
  1301.                   }
  1302. [InstallResources]
  1303.     set STF_VITAL = ""
  1304.     Debug-Output "OEMNADDS.INF: [InstallResources]"
  1305.     AddSectionFilesToCopyList Files-Resource $(!SourceDir) $(!STF_WINDOWSSYSPATH)
  1306.     CopyFilesInCopyList
  1307.     Debug-Output "OEMNADDS.INF: [InstallResources] - Exiting"
  1308.     exit
  1309. [Install-Option]
  1310.     set STF_VITAL = ""
  1311.     ifstr(i) $(AddCopy) == "YES"
  1312.         AddSectionFilesToCopyList Files-Resource $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1313.         AddSectionFilesToCopyList Files-DigiFEP5 $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1314.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1315.     endif
  1316.     ifstr(i) $(DoCopy) == "YES"
  1317.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1318.        CopyFilesInCopyList
  1319.     endif
  1320.     ifstr(i) $(DoConfig) == "YES"
  1321.     endif
  1322.     Exit
  1323. [Source Media Descriptions]
  1324.     1    = "Windows NT Advanced Server Setup Disk #1"   , TAGFILE = disk1
  1325.     2    = "Windows NT Advanced Server Setup Disk #2"   , TAGFILE = disk2
  1326.     3    = "Windows NT Advanced Server Setup Disk #3"   , TAGFILE = disk3
  1327.     4    = "Windows NT Advanced Server Setup Disk #4"   , TAGFILE = disk4
  1328.     5    = "Windows NT Advanced Server Setup Disk #5"   , TAGFILE = disk5
  1329.     6    = "Windows NT Advanced Server Setup Disk #6"   , TAGFILE = disk6
  1330.     7    = "Windows NT Advanced Server Setup Disk #7"   , TAGFILE = disk7
  1331.     8    = "Windows NT Advanced Server Setup Disk #8"   , TAGFILE = disk8
  1332.     9    = "Windows NT Advanced Server Setup Disk #9"   , TAGFILE = disk9
  1333.     10    = "Windows NT Advanced Server Setup Disk #10"  , TAGFILE = disk10
  1334.     11    = "Windows NT Advanced Server Setup Disk #11"  , TAGFILE = disk11
  1335.     12    = "Windows NT Advanced Server Setup Disk #12"  , TAGFILE = disk12
  1336.     13    = "Windows NT Advanced Server Setup Disk #13"  , TAGFILE = disk13
  1337.     14    = "Windows NT Advanced Server Setup Disk #14"  , TAGFILE = disk14
  1338.     15    = "Windows NT Advanced Server Setup Disk #15"  , TAGFILE = disk15
  1339.     16    = "Windows NT Advanced Server Setup Disk #16"  , TAGFILE = disk16
  1340.     17    = "Windows NT Advanced Server Setup Disk #17"  , TAGFILE = disk17
  1341.     18    = "Windows NT Advanced Server Setup Disk #18"  , TAGFILE = disk18
  1342.     19    = "Windows NT Advanced Server Setup Disk #19"  , TAGFILE = disk19
  1343.     20    = "Windows NT Advanced Server Setup Disk #20"  , TAGFILE = disk20
  1344.     21    = "Windows NT Advanced Server Setup Disk #21"  , TAGFILE = disk21
  1345.     22    = "Windows NT Advanced Server Setup Disk #22"  , TAGFILE = disk22
  1346.     23    = "Windows NT Advanced Server Setup Disk #23"  , TAGFILE = disk23
  1347.     24    = "Windows NT Advanced Server Setup Disk #24"  , TAGFILE = disk24
  1348.     25    = "Windows NT Advanced Server Setup Disk #25"  , TAGFILE = disk25
  1349.     26    = "Windows NT Advanced Server Setup Disk #26"  , TAGFILE = disk26
  1350.     27    = "Windows NT Advanced Server Setup Disk #27"  , TAGFILE = disk27
  1351.     28    = "Windows NT Advanced Server Setup Disk #28"  , TAGFILE = disk28
  1352.     29    = "Windows NT Advanced Server Setup Disk #29"  , TAGFILE = disk29
  1353. [ProductType]
  1354. STF_PRODUCT  = LanmanNT
  1355. STF_PLATFORM = I386
  1356. [Files-Inf]
  1357. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  1358. [Files-DigiBoard2Port]
  1359. 22,NTXALL.SYS , SIZE=26112
  1360. [Files-DigiBoard4e]
  1361. 22,NTXALL.SYS , SIZE=26112
  1362. [Files-DigiBoard4Port]
  1363. 22,NTXALL.SYS , SIZE=26112
  1364. [Files-DigiBoard8e]
  1365. 22,NTXALL.SYS , SIZE=26112
  1366. [Files-DigiBoard8i]
  1367. 22,NTXALL.SYS , SIZE=26112
  1368. [Files-DigiBoard8Port]
  1369. 22,NTXALL.SYS , SIZE=26112
  1370. [Files-DigiBoardCX]
  1371. 21,NTCX.SYS , SIZE=52224
  1372. [Files-DigiBoardXem]
  1373. 21,NTXEM.SYS , SIZE=58880
  1374. [Files-DigiFEP5]
  1375. 21,DIGIFEP5.SYS , SIZE=44544
  1376. [Files-Resource]
  1377. 23,DGCONFIG.HLP , SIZE=15360
  1378. 22,DGCONFIG.DLL , SIZE=36864
  1379. [OptionsTextENG]
  1380.     DigiBoardCX     = "DigiBoard C/X Adapter"
  1381.     DigiBoardXem    = "DigiBoard PC/Xem Adapter"
  1382.     DigiBoard8i     = "DigiBoard PC/8i Adapter"
  1383.     DigiBoard2Port  = "DigiBoard 2Port Adapter"
  1384.     DigiBoard4Port  = "DigiBoard 4Port Adapter"
  1385.     DigiBoard8Port  = "DigiBoard 8Port Adapter"
  1386.     DigiBoard4e     = "DigiBoard PC/4e Adapter"
  1387.     DigiBoard8e     = "DigiBoard PC/8e Adapter"
  1388. [FileConstantsENG]
  1389.     ProCaption   = "DigiBoard Setup"
  1390.     ProCancel    = "Cance&l"
  1391.     ProCancelMsg = "DigiBoard Adapters and/or Drivers are not correctly installed. "+
  1392.                    "Are you sure you want to cancel copying files?"
  1393.     ProCancelCap = "DigiBoard Setup Message"
  1394.     ProText1     = "Copying:"
  1395.     ProText2     = "To:"
  1396.     Error         = "Unable to determine proper source disk location; copy cannot be performed."
  1397.     FunctionTitle   ="DigiBoard Setup"
  1398.     ProductSoftwareDescription          = "DigiBoard FEP 5 Adapter Driver"
  1399.     ProductSoftwareDescriptionHdwDriver = "DigiBoard "$(AdapterTitle)" Miniport Driver"
  1400.     ProductSoftwareTitle    = "DigiBoard FEP 5 Driver"
  1401.     ProductSoftwareTitleHdwDriver = "DigiBoard "$(AdapterTitle)" Miniport Driver"
  1402.    ConfigurationTitle = "DigiBoard "$(AdapterTitle)" Adapter Setup"
  1403.     ProductHardwareDescription      = "DigiBoard "$(AdapterTitle)" Adapter"
  1404.     ProductHardwareTitle        = "DigiBoard "$(AdapterTitle)" Adapter"
  1405. [DialogConstantsENG]
  1406.     Help        = "&Help"
  1407.     Exit        = "E&xit"
  1408.     OK          = "OK"
  1409.     HelpContext = ""
  1410.     Continue    = "C&ontinue"
  1411.     Cancel      = "C&ancel"
  1412. [UpdatingConfigurationENG]
  1413.     UpdatingConfiguration      = "Updating new configuration..."
  1414. [AbortMessageENG]
  1415.   AbortText  =  "Aborting DigiBoard Setup. Please reboot the system "+
  1416.                 "to fix the problem."
  1417.  
  1418.  
  1419.  
  1420.