home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Controllers / Communications / Digicomm / WinNT_Driver / 821j.exe / ALPHA / OEMSETUP.INF < prev   
INI File  |  1995-07-24  |  90KB  |  1,931 lines

  1. [Identification]
  2.     OptionType = NetAdapter
  3. [PlatformsSupported]
  4.     ISA
  5.     EISA
  6.     "Jazz-Internal Bus"
  7.     PCI
  8.     MCA
  9. [LanguagesSupported]
  10.     ENG
  11. [Options]
  12.     DigiBoardCX
  13.     DigiBoardXem
  14.     DigiBoard8r
  15.     IBM8r
  16.     DigiBoard8i
  17.     DigiBoard16i
  18.     DigiBoard2Port
  19.     DigiBoard4Port
  20.     DigiBoard8Port
  21.     DigiBoard4e
  22.     DigiBoard8e
  23.     DigiBoard16e
  24.     DigiBoardEPC
  25.     StarGateClusStar
  26. [OptionsMCA]
  27.     DigiBoardCX
  28.     DigiBoardXem
  29.     DigiBoard8r
  30.     DigiBoard4i
  31.     DigiBoard8i
  32.     DigiBoard16i
  33.     DigiBoard2Port
  34.     DigiBoard4Port
  35.     DigiBoard8Port
  36.     DigiBoardEPC
  37.     StarGateClusStar
  38. [AdapterInfo]
  39.     DigiBoardCX     = "C/X",    ntcx,       ntcx,     3,        "Digi",  cxfep.bin   cxbios.bin  {84240}    
  40.     DigiBoardXem    = "PC/Xem", ntxem,      ntxem,    2,        "Digi",  sxfep.bin   sxbios.bin  {149776}   
  41.     DigiBoard8r     = "AccelePort 8",  nt8r,       ntxem,    7,        "Digi",  sxfep.bin   sxbios.bin  {0}
  42.     IBM8r           = "8-Port Async, EIA-232 (ISA)",  nt8r,       ntxem,    13,        "IBM",  sxfep.bin   sxbios.bin  {0}
  43.     DigiBoard8i     = "PC/8i",  nt8i,       ntxall,   1,        "Digi",  xacook.bin  xabios.bin  {0}
  44.     DigiBoard16i    = "PC/16i", nt16i,      ntxall,   9,        "Digi",  xacook.bin  xabios.bin  {0}
  45.     DigiBoard2Port  = "PC/2e (8K)",  2Port,      ntxall,   4,        "Digi",  xacook.bin  xabios.bin  {0}        
  46.     DigiBoard4Port  = "PC/4e (8K)",  4Port,      ntxall,   6,        "Digi",  xacook.bin  xabios.bin  {0}        
  47.     DigiBoard8Port  = "PC/8e (8K)",  8Port,      ntxall,   7,        "Digi",  xacook.bin  xabios.bin  {0}        
  48.     DigiBoard4e     = "PC/4e",  nt4e,       ntxall,   5,        "Digi",  xacook.bin  xabios.bin  {0}        
  49.     DigiBoard8e     = "PC/8e",  nt8e,       ntxall,   0,        "Digi",  xacook.bin  xabios.bin  {0}        
  50.     DigiBoard16e    = "PC/16e", nt16e,      ntxall,   8,        "Digi",  xacook.bin  xabios.bin  {0}        
  51.     DigiBoardEPC    = "EPC",    ntepc,      ntepc,    11,       "Digi",  fxfep.bin   fxbios.bin  {215312}   
  52.     StarGateClusStar = "ClusStar",    ntcx, ntcx,     12,       "Digi/StarGate",   cxfep.bin   cxbios.bin  {84240}    
  53. [AdapterInfoMCA]
  54.     DigiBoardCX     = "MC C/X", ntcx,       ntcx,     3,        "Digi",  cxfep.bin   cxbios.bin  {28652,28648},   {236,232},  {111,111}
  55.     DigiBoardXem    = "MC/Xem", ntxem,      ntxem,    2,        "Digi",  sxfep.bin   sxbios.bin  {32668},         {156},      {127}
  56.     DigiBoard8r     = "MC AccelePort 8",  nt8r,       ntxem,    7,        "Digi",  sxfep.bin   sxbios.bin  {28647},         {231},      {111}
  57.     DigiBoard4i     = "MC/4i",  nt4i,       ntxall,   10,       "Digi",  xacook.bin  xabios.bin  {32666,32665},   {154,153},  {127,127}
  58.     DigiBoard8i     = "MC/8i",  nt8i,       ntxall,   1,        "Digi",  xacook.bin  xabios.bin  {32666,32665},   {154,153},  {127,127}
  59.     DigiBoard16i    = "MC/16i", nt16i,      ntxall,   9,        "Digi",  xacook.bin  xabios.bin  {32667},         {155},      {127}
  60.     DigiBoard2Port  = "MC/2e (8K)",  2Port,      ntxall,   4,        "Digi",  xacook.bin  xabios.bin  {28647},         {231},      {111}
  61.     DigiBoard4Port  = "MC/4e (8K)",  4Port,      ntxall,   6,        "Digi",  xacook.bin  xabios.bin  {28647},         {231},      {111}
  62.     DigiBoard8Port  = "MC/8e (8K)",  8Port,      ntxall,   7,        "Digi",  xacook.bin  xabios.bin  {28647},         {231},      {111}
  63.     DigiBoardEPC    = "MC EPC", ntepc,      ntepc,    11,       "Digi",  fxfep.bin   fxbios.bin  {32669},         {157},      {127}
  64.     StarGateClusStar = "MC ClusStar", ntcx, ntcx,     12,       "Digi/StarGate",   cxfep.bin   cxbios.bin  {28652,28648},   {236,232},  {111,111}
  65. [FileConstants]                                                                 
  66.     ExitState   = "Active"
  67.     OldVersionExisted = $(FALSE)
  68.     HdwDriverComponentExists = $(FALSE)
  69.     DriverPath      = $(!STF_NTPATH)"\drivers"
  70.     UtilityInf     = "UTILITY.INF"
  71.     subroutninf    = "SUBROUTN.INF"
  72.     ParamInf        = "NCPARAM.INF"
  73.     HandleNull   = ""
  74.     DGCONFIG_HANDLE = $(HandleNull)
  75. AdapterList = ^(AdapterInfo$(BusType),0)
  76. AdapterTitleList = ^(AdapterInfo$(BusType), 1)
  77. AdapterHardwareNameList = ^(AdapterInfo$(BusType), 2)
  78. AdapterHardwareDriverList = ^(AdapterInfo$(BusType), 3)
  79. AdapterHardwareTypeList = ^(AdapterInfo$(BusType), 4)
  80. ManufacturerDisplayNameList = ^(AdapterInfo$(BusType), 5)
  81. AdapterFepList = ^(AdapterInfo$(BusType), 6)
  82. AdapterBiosList = ^(AdapterInfo$(BusType), 7)
  83. AdapterHardwareAdapterIDList = ^(AdapterInfo$(BusType), 8)
  84. AdapterIDByte1List = ^(AdapterInfo$(BusType), 9)
  85. AdapterIDByte2List = ^(AdapterInfo$(BusType), 10)
  86. AdapterTitle = *($(AdapterTitleList), ~($(AdapterList), $(Option)))
  87. AdapterHardwareName = *($(AdapterHardwareNameList), ~($(AdapterList), $(Option)))
  88. AdapterHardwareDriver = *($(AdapterHardwareDriverList), ~($(AdapterList), $(Option)))
  89. AdapterHardwareType = *($(AdapterHardwareTypeList), ~($(AdapterList), $(Option)))
  90. AdapterHardwareAdapterID = *($(AdapterHardwareAdapterIDList), ~($(AdapterList), $(Option)))
  91. AdapterIDByte1 = *($(AdapterIDByte1List), ~($(AdapterList), $(Option)))
  92. AdapterIDByte2 = *($(AdapterIDByte2List), ~($(AdapterList), $(Option)))
  93. AdapterRule = *($(AdapterHardwareDriverList), ~($(AdapterList), $(Option)))
  94. ManufacturerDisplayName = *($(ManufacturerDisplayNameList), ~($(AdapterList), $(Option)))
  95. AdapterFepImage = *($(AdapterFepList), ~($(AdapterList), $(Option)))
  96. AdapterBiosImage = *($(AdapterBiosList), ~($(AdapterList), $(Option)))
  97. AdapterServiceName = ""
  98. AdapterName = ""
  99.     NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  100.     IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  101.     Manufacturer    = "DigiBoard"
  102.     ProductMajorVersion     = "3"
  103.     ProductMinorVersion     = "51"
  104.     ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  105.     SoftwareType    = "driver"
  106.     ProductSoftwareName     = "DigiFEP5"
  107.     ProductSoftwareImagePath = "%SystemRoot%\System32\drivers\digifep5.sys"
  108.     NetRuleSoftwareType     = "digiFEP5Sys serialDriver digiFEP5Driver"
  109.     NetRuleSoftwareUse      = $(SoftwareType)
  110.     NetRuleSoftwareBindForm = """DigiFEP5Driver"" yes no container"
  111.     NetRuleSoftwareClass    = {"serialDriver basic","digiFEP5Driver basic"}
  112.     NetRuleSoftwareHiddenDriver   = 1
  113.     ProductMajorVersionHdwDriver     = "3"
  114.     ProductMinorVersionHdwDriver     = "51"
  115.     ProductVersionHdwDriver  = $(ProductMajorVersionHdwDriver)"."$(ProductMinorVersionHdwDriver)
  116.     ProductSoftwareNameHdwDriver = $(AdapterHardwareDriver)
  117.     ProductSoftwareImagePathHdwDriver = "%SystemRoot%\System32\drivers\"$(AdapterHardwareDriver)".sys"
  118.     NetRuleSoftwareTypeHdwDriver     = $(AdapterHardwareDriver)"sys "$(AdapterHardwareDriver)"Driver"
  119.     NetRuleSoftwareUseHdwDriver      = $(SoftwareType)
  120.     NetRuleSoftwareBindFormHdwDriver = """"$(AdapterHardwareDriver)"Driver"" yes no container"
  121.     NetRuleSoftwareClassHdwDriver    = {$(AdapterHardwareDriver)"Driver basic"}
  122.     NetRuleSoftwareHiddenHdwDriver   = 1
  123.     NetRuleHardwareType     = $(AdapterRule)" "$(AdapterRule)"Adapter"
  124.     NetRuleHardwareBindForm = " yes yes container"
  125.     NetRuleHardwareClass    = {$(AdapterHardwareDriver)"Adapter basic"}
  126.     ProductHardwareName         = $(AdapterHardwareDriver)
  127.     AdapterParameters = {}
  128.     ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  129.     ProductKeyNameHdwDriver  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareNameHdwDriver)"\CurrentVersion"
  130.     ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  131. [GeneralConstants]
  132.     ExitCodeOk     = 0
  133.     ExitCodeCancel = 1
  134.     ExitCodeFatal  = 2
  135.     KeyNull         = ""
  136.     MAXIMUM_ALLOWED   = 33554432
  137.     RegistryErrorIndex = NO_ERROR
  138.     KeyProduct      = ""
  139.     KeyParameters   = ""
  140.     TRUE         = 1
  141.     FALSE        = 0
  142.     NoTitle      = 0
  143.     fRemoveDigi = TRUE
  144. [DebugOptions]
  145.     !DebugOutputControl = 0
  146.     TraceConfig = 0
  147. [UiVars]
  148. from      = ""
  149. to        = ""
  150.     !STF_NTDRIVE        = ""
  151.     !STF_NTPATH         = ""
  152.     !STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  153.     !STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  154.     !STF_FLOPPYLIST     = {} ? $(!LIBHANDLE) GetFloppyDriveLetters
  155.     !STF_UNUSEDDRIVES   = {} ? $(!LIBHANDLE) GetUnusedDrives
  156.     !STF_LANGUAGE       = "ENG"
  157.     VolumeList      = {} ? $(!LIBHANDLE) GetHardDriveLetters
  158.     VolumeFreeList  = {} ? $(!LIBHANDLE) GetHardDriveFreeSpace
  159.     VolumeFSList    = {} ? $(!LIBHANDLE) GetHardDriveFileSystems
  160.     DestVolume      = ""
  161.     MinHelpID   = 25000
  162.     MaxHelpID   = 25999
  163. [date]
  164.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  165. [Identify]
  166.     read-syms Identification
  167.     set Status     = STATUS_SUCCESSFUL
  168.     set Identifier = $(OptionType)
  169.     set Media      = #("Source Media Descriptions", 1, 1)
  170.     Return $(Status) $(Identifier) $(Media)
  171. [ReturnOptions]
  172.     set Status        = STATUS_FAILED
  173.     set OptionList     = {}
  174.     set OptionTextList = {}
  175.     set LanguageList = ^(LanguagesSupported, 1)
  176.     Ifcontains(i) $($0) in $(LanguageList)
  177.         ifstr(i) $($1) == ""
  178.             goto returnoptions
  179.         endif
  180.         set PlatformList = ^(PlatformsSupported, 1)
  181.         Ifcontains(i) $($1) in $(PlatformList)
  182.             goto returnoptions
  183.         else
  184.             set Status = STATUS_NOTSUPPORTED
  185.             goto finish_ReturnOptions
  186.         endif
  187.     Else
  188.         set Status = STATUS_NOLANGUAGE
  189.         goto finish_ReturnOptions
  190.     Endif
  191. returnoptions = +
  192.     ifstr(i) $($1) == "MCA"
  193.       set OptionList     = ^(OptionsMCA, 1)
  194.       set OptionTextList = ^(OptionsTextMCA$($0), 1)
  195.     else
  196.       set OptionList     = ^(Options, 1)
  197.       set OptionTextList = ^(OptionsText$($0), 1)
  198.     endif
  199.     set Status = STATUS_SUCCESSFUL
  200. finish_ReturnOptions = +
  201.     Return $(Status) $(OptionList) $(OptionTextList)
  202. [Shell Commands]
  203.     set-title "Serial Setup"
  204.     set-subst LF = "\n"
  205.     set Exit_Code = $(ExitCodeOk)
  206.     Debug-Output "OEMNADDS.INF: STF_CWDDIR is "$(!STF_CWDDIR)
  207.     Debug-Output "OEMNADDS.INF: STF_RANFROM is "$(!STF_RANFROM)
  208.     ifstr(i) $(!STF_RANFROM) != ""
  209.         ifstr(i) $(!STF_RANFROM) != $(!STF_CWDDIR)"SERIAL\"
  210.            set !STF_SRCDIR = $(!STF_RANFROM)
  211.         endif
  212.     endif
  213.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  214.     shell "" InstallOption ENG DigiBoard $(!STF_SRCDIR)
  215.     FreeLibrary $(!LIBHANDLE)
  216.     set Status = $($R0)
  217.     Return $(Status)
  218. [InstallOption]
  219.     read-syms DebugOptions
  220.     Debug-Output "OEMNADDS.INF: In [InstallOption] section"
  221.     Debug-Output "OEMNADDS.INF: TraceConfig = "$(TraceConfig)
  222.     set Status = STATUS_FAILED
  223.     set Option    = $($1)
  224.     set SrcDir    = $($2)
  225.     set AddCopy   = $($3)
  226.     set DoCopy    = $($4)
  227.     set DoConfig  = $($5)
  228.     set !SourceDir = $($2)
  229.     ifstr(i) $(!STF_BUSTYPE) == "MCA"
  230.         set BusType = "MCA"
  231.     else
  232.         set BusType = ""
  233.     endif
  234.     read-syms GeneralConstants
  235.     read-syms FileConstants
  236.     Debug-Output "OEMNADDS.INF: Language = "$($0)
  237.     Debug-Output "OEMNADDS.INF: OptionID = "$($1)
  238.     Debug-Output "OEMNADDS.INF: SourceDirectory = "$($2)
  239.     Debug-Output "OEMNADDS.INF: AddCopy = "$(AddCopy)
  240.     Debug-Output "OEMNADDS.INF: DoCopy = "$(DoCopy)
  241.     Debug-Output "OEMNADDS.INF: DoConfig = "$(DoConfig)
  242.     Debug-Output "OEMNADDS.INF: BusType = "$(BusType)
  243.     set LanguageList = ^(LanguagesSupported, 1)
  244.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  245.         Debug-Output "OEMNADDS.INF: returning STATUS_NO_LANGUAGE"
  246.         return STATUS_NOLANGUAGE
  247.     Endif
  248.     set-subst LF = "\n"
  249.     Debug-Output "OEMNADDS.INF: ManufacturerDisplayName = "$(ManufacturerDisplayName)
  250.     Debug-Output "OEMNADDS.INF: AdapterTitle = "$(AdapterTitle)
  251.     Debug-Output "OEMNADDS.INF: AdapterHardwareName = "$(AdapterHardwareName)
  252.     Debug-Output "OEMNADDS.INF: AdapterHardwareDriver = "$(AdapterHardwareDriver)
  253.     read-syms BindingInfo-DigiFEP5
  254.     set NetRuleSoftwareBindable = $(BindingInfo)
  255.     read-syms BindingInfo-$(AdapterHardwareDriver)
  256.     set NetRuleSoftwareBindableHdwDriver = $(BindingInfo)
  257.     read-syms DialogConstants$(!STF_LANGUAGE)
  258.     ifstr(i) $(!NTN_Origination) == "NCPA"
  259.         set Continue = "OK"
  260.     endif
  261.     read-syms FileConstants$(!STF_LANGUAGE)
  262.     detect date
  263.     set-title  $(FunctionTitle)
  264.     set to   = Begin
  265.     set from = Begin
  266.     set CommonStatus = STATUS_SUCCESSFUL
  267.     EndWait
  268. Begin = +
  269.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  270.         set StartLabel = removeadapter
  271.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  272.         set StartLabel = UpgradeSoftware
  273.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  274.         set StartLabel = bindingadapter
  275.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  276.         set StartLabel = getAdapterSettings
  277.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  278.             Debug-Output "Cannot configure the DigiBoard FEP 5 driver software."
  279.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  280.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  281.                 Debug-Output "ShellCode error: cannot get an error string."
  282.                 goto ShellCodeError
  283.             endif
  284.             set Error = $($R0)
  285.             set from = end
  286.             set to = end
  287.             goto nonfatalinfo
  288.         endif
  289.         Ifstr(i) $(ProductKeyNameHdwDriver) == $(!NTN_RegBase)
  290.             Debug-Output "This should not have happened!  Cannot configure the "$(AdapterHardwareName)" driver software."
  291.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  292.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  293.                 Debug-Output "ShellCode error: cannot get an error string."
  294.                 goto ShellCodeError
  295.             endif
  296.             set Error = $($R0)
  297.             set from = end
  298.             set to = end
  299.             goto nonfatalinfo
  300.         endif
  301.         Debug-Output "We need to determine how to find out which adapter"
  302.         Debug-Output "  we should be configuring!!!!!!"
  303.         set from = writeparameters
  304.         Debug-Output "setting from = "$(from)
  305.     else
  306.         set StartLabel = installadapter
  307.         set OEM_ABANDON_OPTIONS = {}
  308.         set OEM_ABANDON_SOFTWARE = FALSE
  309.         set OEM_ABANDON_ON = TRUE
  310.     endif
  311.     Debug-Output "OEMNADDS.INF: Option is: "$(Option)
  312.     set to = $(fatal)
  313.     Goto $(StartLabel)
  314. installadapter = +
  315.     Debug-Output "******************Entering installadapter******************"
  316.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  317.     Ifstr $(KeyProduct) != $(KeyNull)
  318.         CloseRegKey $(KeyProduct)
  319.         ifstr(i) $(!NTN_RegBase) == $(ProductKeyName)
  320.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  321.                $(ProductVersion)
  322.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  323.                Debug-Output "ShellCode error: Don't allow installation of software."
  324.                goto ShellCodeError
  325.            endif
  326.            goto end
  327.         else
  328.             OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyNameHdwDriver) +
  329.                        $(MAXIMUM_ALLOWED) KeyProductHdwDriver
  330.             Ifstr $(KeyProductHdwDriver) != $(KeyNull)
  331.                 CloseRegKey $(KeyProductHdwDriver)
  332.                 Shell $(UtilityInf), CardExistedDlg
  333.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  334.                     Debug-Output "ShellCode error: --One adapter all ready exists, install another-- FAILED."
  335.                     goto ShellCodeError
  336.                 endif
  337.                 ifstr(i) $($R1) != "OK"
  338.                     goto end
  339.                 endif
  340.                 set HdwDriverComponentExists = $(TRUE)
  341.             EndIf   
  342.             set OldVersionExisted = $(TRUE)
  343.         endif
  344.     endif
  345.     goto skipoptions
  346. skipoptions = +
  347.     Debug-Output "******************Entering skipoptions******************"
  348.     ifint $(HdwDriverComponentExists) == $(TRUE)
  349.         ifstr(i) $(!NTN_InstallMode) == configure
  350.             goto getAdapterSettings
  351.         endif
  352.     endif
  353.     StartWait
  354.     ifint $(HdwDriverComponentExists) == $(FALSE)
  355.         ifstr(i) $(!NTN_InstallMode) == "install"
  356.            shell $(UtilityInf) AssignAdapterNumber
  357.            set AdapterName = $(ProductHardwareName)$($R1)
  358.            Ifstr(i) $(DoCopy) == "YES"
  359.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  360.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  361.                   Debug-Output"Shell code error: DoAskSource"
  362.                   Goto ShellCodeError
  363.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  364.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  365.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  366.                       goto ShellCodeError
  367.                   endif
  368.                   set Error = $($R0)
  369.                   Goto fatal
  370.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  371.                   set CommonStatus = STATUS_USERCANCEL
  372.                   Goto successful
  373.               Endif
  374.               Set SrcDir = $($R1)
  375.               Split-String $(SrcDir) "\" JunkList
  376.               QueryListSize JunkSize $(JunkList)
  377.               Set JunkItem = *($(JunkList),$(JunkSize))
  378.               set JunkItem2 = "foo"
  379.               ifstr $(JunkItem2)$(JunkItem)$(JunkItem2) != $(JunkItem2)"\"$(JunkItem2)
  380.                   Debug-Output "In ifstr"
  381.                   set SrcDir = $(SrcDir)"\"
  382.               endif
  383.               Debug-Output "Reassigning SourceDirectory = "$(SrcDir)
  384.            Endif
  385.            install "Install-Option"
  386.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  387.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  388.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  389.                   goto ShellCodeError
  390.               endif
  391.               set Error = $($R0)
  392.               goto fatal
  393.            endif
  394.         endif
  395.     endif
  396.     set from = addDigiFEP5Component
  397.     goto getAdapterSettings
  398. addDigiFEP5Component = +
  399.     Debug-Output "******************Entering addDigiFEP5Component******************"
  400.     Ifint $(OldVersionExisted) == $(TRUE)
  401.         goto addHdwDriverComponent
  402.     Endif
  403.     Debug-Output "OEMNADDS.INF: Adding DigiFEP5Component"
  404.         set DigiSpecificString = $(ProductSoftwareName)
  405.         set TypeofService = "kernelautostart"
  406.         set ServiceOrderGroup = "Extended base"
  407.         set Dependencies = {}
  408.         set ObjectName = ""
  409.         set TypeSupported = "7"
  410.         set EventLogLocation = "System"
  411.         set ErrorControlValue = 1
  412.         Debug-Output "OEMNADDS.INF: [InstallOption]:skipoptions: About to call AddSoftwareComponent"
  413.         Debug-Output "OEMNADID.INF:     Paramters passed in:"
  414.         Debug-Output "OEMNADDS.INF:         Manufacturer = "$(Manufacturer)
  415.         Debug-Output "OEMNADDS.INF:         Product = "$(ProductSoftwareName)
  416.         Debug-Output "OEMNADDS.INF:         Service = "$(ProductSoftwareName)
  417.         Debug-Output "OEMNADDS.INF:         Display name = "$(ProductSoftwareTitle)
  418.         Debug-Output "OEMNADDS.INF:         INFfile = "$(STF_CONTEXTINFNAME)
  419.         Debug-Output "OEMNADDS.INF:         ImagePath = "$(ProductSoftwareImagePath)
  420.         Debug-Output "OEMNADDS.INF:         Type of software = "$(TypeofService)
  421.         Debug-Output "OEMNADDS.INF:         Service Order group = "$(ServiceOrderGroup)
  422.         Debug-Output "OEMNADDS.INF:         Dependencies = "$(Dependencies)
  423.         Debug-Output "OEMNADDS.INF:         ObjectName = "$(ObjectName)
  424.         Debug-Output "OEMNADDS.INF:         EventMessageFile = "$(IoLogMsgDLL)";"$(ProductSoftwareImagePath)
  425.         Debug-Output "OEMNADDS.INF:         TypeSupported = "$(TypeSupported)
  426.         Debug-Output "OEMNADDS.INF:         Event log location = "$(EventLogLocation)
  427.         Debug-Output "OEMNADDS.INF:         Error control value = "$(ErrorControlValue)
  428.         Shell $(UtilityInf), AddSoftwareComponent, +
  429.                                     $(Manufacturer), +
  430.                                     $(ProductSoftwareName), +
  431.                                     $(ProductSoftwareName), +
  432.                                     $(ProductSoftwareTitle), +
  433.                                     $(STF_CONTEXTINFNAME), +
  434.                                     $(ProductSoftwareImagePath), +
  435.                                     $(TypeofService), +
  436.                                     $(ServiceOrderGroup), +
  437.                                     $(Dependencies), +
  438.                                     $(ObjectName), +
  439.                                     $(IoLogMsgDLL)";"$(ProductSoftwareImagePath), +
  440.                                     $(TypeSupported), +
  441.                                     $(EventLogLocation), +
  442.                                     $(ErrorControlValue)
  443.         Set OEM_ABANDON_SOFTWARE = TRUE
  444.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  445.             Debug-Output "ShellCode error: Add software component FAILED!"
  446.             goto ShellCodeError
  447.         endif
  448.         set RegistryErrorIndex = $($R0)
  449.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  450.             EndWait
  451.             Debug-Output "Registry error: add software components"
  452.             CloseRegKey $($R1)
  453.             CloseRegKey $($R2)
  454.             CloseRegKey $($R3)
  455.             CloseRegKey $($R4)
  456.             CloseRegKey $($R5)
  457.             goto fatalregistry
  458.         endif
  459.         Set SoftProductKey      = $($R1)
  460.         Set SoftNetRuleKey      = $($R2)
  461.         Set SoftServiceKey      = $($R3)
  462.         Set SoftParameterKey    = $($R4)
  463.         Set SoftLinkageKey      = $($R5)
  464.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  465.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  466.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  467.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  468.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  469.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  470.                            {hidden,$(NoTitle),$(!REG_VT_DWORD),$(NetRuleSoftwareHiddenDriver)}, +
  471.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  472.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  473.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  474.             Debug-Output "ShellCode error: AddValueList FAILED!  --"$(SoftProductKey)
  475.             goto ShellCodeError
  476.         endif
  477.         set RegistryErrorIndex = $($R0)
  478.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  479.             EndWait
  480.             Debug-Output "Registry error: add value list."
  481.             CloseRegKey $(SoftProductKey)
  482.             CloseRegKey $(SoftNetRuleKey)
  483.             CloseRegKey $(SoftServiceKey)
  484.             CloseRegKey $(SoftParameterKey)
  485.             CloseRegKey $(SoftLinkageKey)
  486.             goto fatalregistry
  487.         endif
  488.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  489.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  490.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  491.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  492.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  493.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  494.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  495.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  496.             Debug-Output "ShellCode error: AddValueList FAILED! --"$(SoftNetRuleKey)
  497.             goto ShellCodeError
  498.         endif
  499.         set RegistryErrorIndex = $($R0)
  500.         FlushRegKey $(SoftProductKey)
  501.         FlushRegKey $(SoftNetRuleKey)
  502.         FlushRegKey $(SoftServiceKey)
  503.         FlushRegKey $(SoftParameterKey)
  504.         FlushRegKey $(SoftLinkageKey)
  505.         CloseRegKey $(SoftProductKey)
  506.         CloseRegKey $(SoftNetRuleKey)
  507.         CloseRegKey $(SoftServiceKey)
  508.         CloseRegKey $(SoftParameterKey)
  509.         CloseRegKey $(SoftLinkageKey)
  510.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  511.             EndWait
  512.             Debug-Output "Registry error: add value list."
  513.             goto fatalregistry
  514.         endif
  515.         goto addHdwDriverComponent
  516. addHdwDriverComponent = +
  517.     Debug-Output "******************Entering addHdwDriverComponent******************"
  518.     set DigiSpecificString = $(AdapterHardwareName)
  519.     Ifint $(HdwDriverComponentExists) == $(TRUE)
  520.         goto addAdapterComponent
  521.     Endif
  522.     Debug-Output "OEMNADDS.INF: Adding HdwDriverComponent"
  523.         set TypeofService = "kernelautostart"
  524.         set ServiceOrderGroup = "Extended base"
  525.         set Dependencies = {}
  526.         set ObjectName = ""
  527.         set TypeSupported = "7"
  528.         set EventLogLocation = "System"
  529.         set ErrorControlValue = 1
  530.         Shell $(UtilityInf), AddSoftwareComponent, +
  531.                                     $(Manufacturer), +
  532.                                     $(ProductSoftwareNameHdwDriver), +
  533.                                     $(ProductSoftwareNameHdwDriver), +
  534.                                     $(ProductSoftwareTitleHdwDriver), +
  535.                                     $(STF_CONTEXTINFNAME), +
  536.                                     $(ProductSoftwareImagePathHdwDriver), +
  537.                                     $(TypeofService), +
  538.                                     $(ServiceOrderGroup), +
  539.                                     $(Dependencies), +
  540.                                     $(ObjectName), +
  541.                                     $(IoLogMsgDLL)";"$(ProductSoftwareImagePathHdwDriver), +
  542.                                     $(TypeSupported), +
  543.                                     $(EventLogLocation), +
  544.                                     $(ErrorControlValue)
  545.         Set OEM_ABANDON_SOFTWARE = TRUE
  546.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  547.             Debug-Output "ShellCode error: AddSoftwareComponent FAILED! -- "$(ProductSoftwareNameHdwDriver)
  548.             goto ShellCodeError
  549.         endif
  550.         set RegistryErrorIndex = $($R0)
  551.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  552.             EndWait
  553.             Debug-Output "Registry error: add software components"
  554.             CloseRegKey $($R1)
  555.             CloseRegKey $($R2)
  556.             CloseRegKey $($R3)
  557.             CloseRegKey $($R4)
  558.             CloseRegKey $($R5)
  559.             goto fatalregistry
  560.         endif
  561.         Set SoftProductKey      = $($R1)
  562.         Set SoftNetRuleKey      = $($R2)
  563.         Set SoftServiceKey      = $($R3)
  564.         Set SoftParameterKey    = $($R4)
  565.         Set SoftLinkageKey      = $($R5)
  566.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  567.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersionHdwDriver)},+
  568.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersionHdwDriver)},+
  569.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitleHdwDriver)},+
  570.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescriptionHdwDriver)},+
  571.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareNameHdwDriver)},+
  572.                            {hidden,$(NoTitle),$(!REG_VT_DWORD),$(NetRuleSoftwareHiddenHdwDriver)}, +
  573.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  574.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  575.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  576.             Debug-Output "ShellCode error: AddValueList FAILED!  -- "$(SoftProductKey)
  577.             goto ShellCodeError
  578.         endif
  579.         set RegistryErrorIndex = $($R0)
  580.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  581.             EndWait
  582.             Debug-Output "Resgitry error: add value list."
  583.             CloseRegKey $(SoftProductKey)
  584.             CloseRegKey $(SoftNetRuleKey)
  585.             CloseRegKey $(SoftServiceKey)
  586.             CloseRegKey $(SoftParameterKey)
  587.             CloseRegKey $(SoftLinkageKey)
  588.             goto fatalregistry
  589.         endif
  590.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareTypeHdwDriver)},+
  591.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUseHdwDriver)}, +
  592.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindFormHdwDriver)}, +
  593.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClassHdwDriver)}, +
  594.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindableHdwDriver)}, +
  595.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  596.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  597.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  598.             Debug-Output "ShellCode error. AddValueList FAILED!  -- "$(SoftNetRuleKey)
  599.             goto ShellCodeError
  600.         endif
  601.         set RegistryErrorIndex = $($R0)
  602.         FlushRegKey $(SoftProductKey)
  603.         FlushRegKey $(SoftNetRuleKey)
  604.         FlushRegKey $(SoftServiceKey)
  605.         FlushRegKey $(SoftParameterKey)
  606.         FlushRegKey $(SoftLinkageKey)
  607.         CloseRegKey $(SoftProductKey)
  608.         CloseRegKey $(SoftNetRuleKey)
  609.         CloseRegKey $(SoftServiceKey)
  610.         CloseRegKey $(SoftParameterKey)
  611.         CloseRegKey $(SoftLinkageKey)
  612.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  613.             EndWait
  614.             Debug-Output "Registry error: add value list."
  615.             goto fatalregistry
  616.         endif
  617. addAdapterComponent = +
  618.     Debug-Output "******************Entering addAdapterComponent******************"
  619.     Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName), +
  620.                                     $(STF_CONTEXTINFNAME), $(ProductKeyNameHdwDriver)
  621.     ifint $($R4) != -1
  622.         Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  623.     endif
  624.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  625.         Debug-Output "Cannot add hardware component!"
  626.         goto ShellCodeError
  627.     endif
  628.     set RegistryErrorIndex = $($R0)
  629.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  630.         EndWait
  631.         Debug-Output "Registry error: add hardware component"
  632.         Debug-Output $(RegistryErrorIndex)
  633.         CloseRegKey $($R1)
  634.         CloseRegKey $($R2)
  635.         CloseRegKey $($R3)
  636.         goto fatalregistry
  637.     endif
  638.     set KeyParameters = $($R3)
  639.     set KeyAdapterRules = $($R2)
  640.     set AdapterNumber = $($R4)
  641.     set AdapterServiceName = $($R5)
  642.     set AdapterName = $(AdapterServiceName)
  643.     set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  644.                        {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+
  645.                        {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+
  646.                        {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  647.                        {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  648.                        {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  649.     Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  650.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  651.         Debug-Output "ShellCode error: AddValueList FAILED  -- "$($R1)
  652.         goto ShellCodeError
  653.     endif
  654.     shell $(UtilityInf) IncrementRefCount $(ProductKeyName)
  655.     set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  656.     set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  657.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  658.                         {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  659.                         {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  660.                         {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  661.     Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  662.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  663.         Debug-Output "ShellCode error."
  664.         goto ShellCodeError
  665.     endif
  666.     set RegistryErrorIndex = $($R0)
  667.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  668.         EndWait
  669.         Debug-Output "Resgitry error: add value list."
  670.         CloseRegKey $(KeyParameters)
  671.         CloseRegKey $(KeyAdapterRules)
  672.         goto fatalregistry
  673.     endif
  674.     FlushRegKey $(KeyParameters)
  675.     FlushRegKey $(KeyAdapterRules)
  676.     CloseRegKey $(KeyParameters)
  677.     CloseRegKey $(KeyAdapterRules)
  678.     goto writeparameters
  679. configureadapter = +
  680.     Debug-Output "******************Entering configureadapter******************"
  681.     QueryListSize IRQRangeListSize $(IRQRangeList)
  682.     QueryListSize MemoryRangeListSize $(MemoryRangeList)
  683.     QueryListSize IORangeListSize $(IORangeList)
  684.     QueryListSize PortNameListSize $(PortNameList)
  685.     Debug-Output "AdapterName = "$(AdapterName)
  686.     Debug-Output "ProductHardwareDescription = "$(ProductHardwareDescription)
  687.     Debug-Output "ConfigurationTitle = "$(ConfigurationTitle)
  688.     LibraryProcedure Result, $(DGCONFIG_HANDLE), +
  689.             DGConfigEntryPoint,  $(!STF_HWND), +
  690.                                  $(AdapterHardwareType), +
  691.                                  $(ConfigurationTitle), +
  692.                                  $(IRQRangeList), +
  693.                                  $(IRQRangeListSize), +
  694.                                  $(IRQDefault), +
  695.                                  $(MemoryRangeList), +
  696.                                  $(MemoryRangeListSize), +
  697.                                  $(MemoryDefault), +
  698.                                  $(IORangeList), +
  699.                                  $(IORangeListSize), +
  700.                                  $(IODefault), +
  701.                                  $(CtrlList), +
  702.                                  $(AdapterName), +
  703.                                  $(ProductHardwareDescription)
  704.     set AdapterParameters = $(Result)
  705.     Ifstr $(Result) == "{}"
  706.         set CommonStatus = STATUS_USERCANCEL
  707.         goto successful
  708.     Endif
  709.     read-syms UpdatingConfiguration$(!STF_LANGUAGE)
  710.     shell $(subroutninf) PushBillBoard NETSTATUSDLG $(UpdatingConfiguration)
  711.     Debug-Output "jumping to "$(from)
  712.     goto $(from)
  713. getAdapterSettings = +
  714.     Debug-Output "******************Entering getAdapterSettings******************"
  715.     Debug-Output "from value = "$(from)
  716.     set IRQDefault = 0
  717.     set MemoryDefault = 3
  718.     set IODefault = 4
  719.     set CtrlList = {}
  720.     LoadLibrary "x" $(!STF_CWDDIR)dgconfig.dll DGCONFIG_HANDLE
  721.     read-syms AdapterSettings-$(AdapterHardwareName)
  722.     Ifstr $(!NTN_RegBase) != $(KeyNull)
  723.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) SoftwareKey
  724.         Ifstr $(SoftwareKey) == $(KeyNull)
  725.             Debug-Output "Unable to open "$(!NTN_RegBase)" key!!!!"
  726.             goto getAdapterSettingsExit
  727.         Else
  728.             GetRegValue $(SoftwareKey), "ServiceName", ServiceNameList
  729.             set AdapterServiceName = *($(ServiceNameList),4)
  730.             set AdapterName = $(AdapterServiceName)
  731.             CloseRegKey $(SoftwareKey)
  732.         Endif
  733.     Endif
  734.     Debug-Output "AdapterServiceName = "$(AdapterServiceName)
  735.     Debug-Output "AdapterName = "$(AdapterName)
  736.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(AdapterServiceName) $(MAXIMUM_ALLOWED) BaseKey
  737.     Ifstr $(BaseKey) == $(KeyNull)
  738.         Debug-Output "Error opening BaseKey "$(!NTN_ServiceBase)"\"$(AdapterServiceName)
  739.         CloseRegKey $(BaseKey)
  740.         goto fatalregistry
  741.     Endif
  742.     set BusTypeNum = 1
  743.     set ParametersKey = $(KeyNull)
  744.     OpenRegKey $(BaseKey) "" "Parameters" $(MAXIMUM_ALLOWED) ParametersKey
  745.     Ifstr $(ParametersKey) == $(KeyNull)
  746.         Debug-Output "Assuming Parameters key does not exist!!!"
  747.         ifstr(i) $(BusType) == "MCA"
  748.             ForListDo $(AdapterHardwareAdapterID)
  749.                Debug-Output "Calling MCAFindBus, "*($(AdapterIDByte1),$(#))", "*($(AdapterIDByte2),$(#))
  750.                Shell $(UtilityInf), MCAFindBus, *($(AdapterIDByte1),$(#)), *($(AdapterIDByte2),$(#))
  751.                Debug-Output "MCAFindBus returned "$($R1)
  752.                set CardInfo = {}
  753.                ifstr(i) $($R1) != {}
  754.                   set CardInfo = $($R1)
  755.                   Debug-Output "MCA controller found!"
  756.                   Debug-Output "CardInfo = "$(CardInfo)
  757.                   ForListDo $(CardInfo)
  758.                      Debug-Output "Current CardInfo Entry = "$($)
  759.                      set TmpBusNumber = *($($), 1)
  760.                      set SlotNumber = *($($), 2)
  761.                      set MCAPosId = *($($), 3)
  762.                      Debug-Output "Calling DoesControllerExist:"
  763.                      Debug-Output "    AdapterHardwareName = "$(AdapterHardwareName)
  764.                      Debug-Output "    BusNumber = "$(TmpBusNumber)
  765.                      Debug-Output "    Slot # = "$(SlotNumber)
  766.                      Debug-Output "    MCAPosId = "$(MCAPosId)
  767.                      Debug-Output " DGCONFIG_HANDLE = "$(DGCONFIG_HANDLE)
  768.                      LibraryProcedure Result, $(DGCONFIG_HANDLE), +
  769.                         DoesControllerExist, $(AdapterHardwareName), +
  770.                                              $(TmpBusNumber),        +
  771.                                              $(SlotNumber)
  772.                      Debug-Output "DoesControllerExist return: "$(Result)
  773.                      ifstr(i) $(Result) == "FALSE"
  774.                         Debug-Output "Before resetting IORangeList for MCA: "$(IORangeList)
  775.                         set IORangeList = {Slot$(SlotNumber)}
  776.                         set IODefault = 0
  777.                         Debug-Output "After resetting IORangeList for MCA: "$(IORangeList)
  778.                         Debug-Output "Before resetting MemoryRangeList for MCA: "$(MemoryRangeList)
  779.                         set MemoryDefault = 0
  780.                         set MemoryRangeList = {Slot$(SlotNumber)}
  781.                         Debug-Output "After resetting MemoryRangeList for MCA: "$(MemoryRangeList)
  782.                         set BusTypeNum = 3
  783.                         goto getAdapterSettingsExit
  784.                      endif
  785.                   EndForListDo
  786.                endif
  787.             EndForListDo
  788.             Debug-Output "No new MCA cards found!" 
  789.         else
  790.             ForListDo $(AdapterHardwareAdapterID)
  791.               ifint $($) != 0
  792.                   Debug-Output "Calling EISAFindBus, "$($)
  793.                   Shell $(UtilityInf), EISAFindBus, $($)
  794.                   set CardInfo = {}
  795.                   ifstr(i) $($R1) != {}
  796.                      set CardInfo = $($R1)
  797.                      Debug-Output "EISA controller found!"
  798.                      Debug-Output "CardInfo = "$(CardInfo)
  799.                       ForListDo $(CardInfo)
  800.                          Debug-Output "Current CardInfo Entry = "$($)
  801.                          set TmpBusNumber = *($($), 1)
  802.                          set SlotNumber = *($($), 2)
  803.                          set-mul NewIOBaseAddress = $(SlotNumber), 4096
  804.                          set-add NewIOBaseAddress = $(NewIOBaseAddress), 5
  805.                          set-dectohex NewIOBaseAddress = $(NewIOBaseAddress)
  806.                          Debug-Output "Calling DoesControllerExist:"
  807.                          Debug-Output "    AdapterHardwareName = "$(AdapterHardwareName)
  808.                          Debug-Output "    BusNumber = "$(TmpBusNumber)
  809.                          Debug-Output "    NewIOBaseAddress = "$(NewIOBaseAddress)
  810.                          Debug-Output " DGCONFIG_HANDLE = "$(DGCONFIG_HANDLE)
  811.                          LibraryProcedure Result, $(DGCONFIG_HANDLE), +
  812.                             DoesControllerExist, $(AdapterHardwareName), +
  813.                                                  $(TmpBusNumber),        +
  814.                                                  $(NewIOBaseAddress)
  815.                          Debug-Output "DoesControllerExist return: "$(Result)
  816.                          ifstr(i) $(Result) == "FALSE"
  817.                             Debug-Output "Before resetting IORangeList for EISA: "$(IORangeList)
  818.                             set IORangeList = {$(NewIOBaseAddress)}
  819.                             set IODefault = 0
  820.                             Debug-Output "After resetting IORangeList for EISA: "$(IORangeList)
  821.                             set BusTypeNum = 2
  822.                             goto getAdapterSettingsExit
  823.                          endif
  824.                       EndForListDo
  825.                   endif
  826.                endif
  827.             EndForListDo
  828.         endif
  829.         CloseRegKey $(BaseKey)
  830.         goto configureadapter
  831.     Endif
  832.     Debug-Output "Reading Parameters Key for current configuration"
  833.     GetRegValue $(ParametersKey) "BusType" BusTypeNum
  834.     set BusTypeNum = *($(BusTypeNum),4)
  835.     GetRegValue $(ParametersKey) "MemoryMappedBaseAddress" MemoryMappedValueList
  836.     GetRegValue $(ParametersKey) "InterruptNumber" IRQValueList
  837.     GetRegValue $(ParametersKey) "IOBaseAddress" IOBaseValueList
  838.     ifstr(i) $(BusType) != "MCA"
  839.        set-dectohex TmpHex = *($(MemoryMappedValueList),4)
  840.        Debug-Output "Current MemoryMappedBaseAddress = "$(TmpHex)
  841.        ForListDo $(MemoryRangeList)
  842.            Ifstr(i) $(TmpHex) == "0x"$($)
  843.                set-sub MemoryDefault = $(#),1
  844.            Endif
  845.        EndForListDo
  846.     else
  847.       GetRegValue $(ParametersKey) "MCAPosId" MCAPosId
  848.       GetRegValue $(ParametersKey) "SlotNumber" SlotNumber
  849.       set MCAPosId = *($(MCAPosId),4)
  850.       set SlotNumber = *($(SlotNumber),4)
  851.       Debug-Output "MCAPosId read from registry = "$(MCAPosId)
  852.       Debug-Output "SlotNumber read from registry = "$(SlotNumber)
  853.       set MemoryDefault = 0
  854.       set MemoryRangeList = {Slot$(SlotNumber)}
  855.     endif
  856.        set-dectohex TmpHex = *($(IRQValueList),4)
  857.        Debug-Output "Current InterruptNumber = "$(TmpHex)
  858.        ForListDo $(IRQRangeList)
  859.            Ifstr(i) $(TmpHex) == "0x"$($)
  860.                set-sub IRQDefault = $(#),1
  861.            Endif
  862.        EndForListDo
  863.     ifstr(i) $(BusType) != "MCA"
  864.        set IOFound = $(FALSE)
  865.        set-dectohex TmpHex = *($(IOBaseValueList),4)
  866.        Debug-Output "Current IOBaseAddress = "$(TmpHex)
  867.        ForListDo $(IORangeList)
  868.            Ifstr(i) $(TmpHex) == "0x"$($)
  869.                set-sub IODefault = $(#),1
  870.                set IOFound = $(TRUE)
  871.            Endif
  872.        EndForListDo
  873.        ifint $(IOFound) == $(FALSE)
  874.          set IORangeList = {$(TmpHex)}
  875.          set IODefault = 0
  876.          set BusTypeNum = 2
  877.        endif
  878.     else
  879.        set IORangeList = {Slot$(SlotNumber)}
  880.        set IODefault = 0
  881.     endif
  882.     set LineList = {}
  883.     ForListDo {"1","2"}
  884.       set CurrentLine = "Line"$($)
  885.       Ifint $(TraceConfig) == 1
  886.          Debug-Output "CurrentLine = "$(CurrentLine)
  887.       Endif
  888.       OpenRegKey $(ParametersKey) "" $(CurrentLine) $(MAXIMUM_ALLOWED) LineKey
  889.       Ifstr $(LineKey) != $(KeyNull)
  890.          GetRegValue $(LineKey) "LineSpeed" TmpLineSpeed
  891.          Ifint $(RegLastError) != $(!REG_ERROR_SUCCESS)
  892.             Debug-Output "No LineSpeed entry exists, defaulting to 14!"
  893.             set LineSpeed = 14
  894.          Else
  895.             set LineSpeed = *($(TmpLineSpeed),4)
  896.          Endif
  897.          set ConcList = {}
  898.          ForListDo {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16"}
  899.             set CurrentConc = "Concentrator"$($)
  900.             Ifint $(TraceConfig) == 1
  901.                Debug-Output "CurrentConc = "$(CurrentConc)
  902.             Endif
  903.             OpenRegKey $(LineKey) "" $(CurrentConc) $(MAXIMUM_ALLOWED) ConcKey
  904.             Ifstr $(ConcKey) != $(KeyNull)
  905.                set PortNameList = {}
  906.                set CurrentPort = ""
  907.                set PortName = {}
  908.                GetRegValue $(ConcKey) "ConcDisplayName" ConcDisplayName
  909.                Ifint $(TraceConfig) == 1
  910.                   Debug-Output "ConcDisplayName = "*($(ConcDisplayName),4)
  911.                Endif
  912.                GetRegValue $(ConcKey) "LineSpeed" TmpConcSpeed
  913.                Ifint $(RegLastError) != $(!REG_ERROR_SUCCESS)
  914.                   Debug-Output "No LineSpeed entry exists for conc, defaulting to 14!"
  915.                   set ConcSpeed = 14
  916.                Else
  917.                   set ConcSpeed = *($(TmpConcSpeed),4)
  918.                Endif
  919.                set ChildConcList = {}
  920.                ForListDo {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16"}
  921.                   set CurrentChildConc = "Concentrator"$($)
  922.                   Ifint $(TraceConfig) == 1
  923.                      Debug-Output "CurrentChildConc = "$(CurrentChildConc)
  924.                   Endif
  925.                   OpenRegKey $(ConcKey) "" $(CurrentChildConc) $(MAXIMUM_ALLOWED) ChildConcKey
  926.                   Ifstr $(ChildConcKey) != $(KeyNull)
  927.                      GetRegValue $(ChildConcKey) "ConcDisplayName" ChildConcDisplayName
  928.                      Ifint $(TraceConfig) == 1
  929.                         Debug-Output "ChildConcDisplayName = "*($(ChildConcDisplayName),4)
  930.                      Endif
  931.                      GetRegValue $(ChildConcKey) "LineSpeed" TmpChildConcSpeed
  932.                      Ifint $(RegLastError) != $(!REG_ERROR_SUCCESS)
  933.                         Debug-Output "No LineSpeed entry exists for Childconc, defaulting to 14!"
  934.                         set ChildConcSpeed = 14
  935.                      Else
  936.                         set ChildConcSpeed = *($(TmpChildConcSpeed),4)
  937.                      Endif
  938.                      ForListDo {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16"}
  939.                         set CurrentPort = "Port"$($)
  940.                         Ifint $(TraceConfig) == 1
  941.                            Debug-Output "CurrentPort = "$(CurrentPort)
  942.                         Endif
  943.                         OpenRegKey $(ChildConcKey) "" $(CurrentPort) $(MAXIMUM_ALLOWED) PortKey
  944.                         Ifstr $(PortKey) != $(KeyNull)
  945.                            GetRegValue $(PortKey) "DosDevices" PortName
  946.                            Ifstr $(PortNameList) == $(KeyNull)
  947.                               set PortNameList = *($(PortName),4)
  948.                            Else
  949.                               set PortNameList = >($(PortNameList), >($(CurrentPort),*($(PortName),4)))
  950.                            Endif
  951.                            Ifint $(TraceConfig) == 1
  952.                               Debug-Output $(CurrentPort)"->"*($(PortName),4)
  953.                            Endif
  954.                            CloseRegKey $(PortKey)
  955.                         EndIf
  956.                      EndForListDo
  957.                      Ifint $(TraceConfig) == 1
  958.                         Debug-Output "PortNameList = "
  959.                         LibraryProcedure Result2, $(DGCONFIG_HANDLE), DumpList, $(PortNameList)
  960.                      Endif
  961.                      set CurrentChildConc = >($(CurrentChildConc), *($(ChildConcDisplayName),4))
  962.                      set CurrentChildConc = >($(CurrentChildConc), $(ChildConcSpeed))
  963.                      set CurrentChildConc = >($(CurrentChildConc), {})
  964.                      set CurrentChildConc = >($(CurrentChildConc), $(PortNameList))
  965.                      Ifint $(TraceConfig) == 1
  966.                         Debug-Output "CurrentChildConc = "
  967.                         LibraryProcedure Result2, $(DGCONFIG_HANDLE), DumpList, $(CurrentChildConc)
  968.                      Endif
  969.                      set ChildConcList = >($(ChildConcList),$(CurrentChildConc))
  970.                      Ifint $(TraceConfig) == 1
  971.                         Debug-Output "ChildConcList = "
  972.                         LibraryProcedure Result2, $(DGCONFIG_HANDLE), DumpList, $(ChildConcList)
  973.                      Endif
  974.                   EndIf
  975.                EndForListDo
  976.                set PortNameList = {}
  977.                ForListDo {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16"}
  978.                   set CurrentPort = "Port"$($)
  979.                   Ifint $(TraceConfig) == 1
  980.                      Debug-Output "CurrentPort = "$(CurrentPort)
  981.                   Endif
  982.                   OpenRegKey $(ConcKey) "" $(CurrentPort) $(MAXIMUM_ALLOWED) PortKey
  983.                   Ifstr $(PortKey) != $(KeyNull)
  984.                      GetRegValue $(PortKey) "DosDevices" PortName
  985.                      Ifstr $(PortNameList) == $(KeyNull)
  986.                         set PortNameList = *($(PortName),4)
  987.                      Else
  988.                         set PortNameList = >($(PortNameList), >($(CurrentPort),*($(PortName),4)))
  989.                      Endif
  990.                      Ifint $(TraceConfig) == 1
  991.                         Debug-Output $(CurrentPort)"->"*($(PortName),4)
  992.                      Endif
  993.                      CloseRegKey $(PortKey)
  994.                   EndIf
  995.                EndForListDo
  996.                CloseRegKey $(ConcKey)
  997.                Ifint $(TraceConfig) == 1
  998.                   Debug-Output "PortNameList = "
  999.                   LibraryProcedure Result2, $(DGCONFIG_HANDLE), DumpList, $(PortNameList)
  1000.                Endif
  1001.                set CurrentConc = >($(CurrentConc), *($(ConcDisplayName),4))
  1002.                set CurrentConc = >($(CurrentConc), $(ConcSpeed))
  1003.                set CurrentConc = >($(CurrentConc), $(ChildConcList))
  1004.                set CurrentConc = >($(CurrentConc), $(PortNameList))
  1005.                Ifint $(TraceConfig) == 1
  1006.                   Debug-Output "CurrentConc = "
  1007.                   LibraryProcedure Result2, $(DGCONFIG_HANDLE), DumpList, $(CurrentConc)
  1008.                Endif
  1009.                set ConcList = >($(ConcList),$(CurrentConc))
  1010.             EndIf
  1011.          EndForListDo
  1012.          CloseRegKey $(LineKey)
  1013.          Ifint $(TraceConfig) == 1
  1014.             Debug-Output "LineList = "$(LineList)
  1015.             Debug-Output "CurrentLine = "$(CurrentLine)
  1016.             Debug-Output "ConcList = "$(ConcList)
  1017.          Endif
  1018.          set CurrentLine = >($(CurrentLine), $(LineSpeed))
  1019.          set TmpLine = >($(CurrentLine),$(ConcList))
  1020.          Ifint $(TraceConfig) == 1
  1021.             Debug-Output "TmpLine = "$(TmpLine)
  1022.          Endif
  1023.          set LineList = >($(LineList),$(TmpLine))
  1024.       Endif
  1025.       Ifint $(TraceConfig) == 1
  1026.          Debug-Output "LineList = "
  1027.          LibraryProcedure Result, $(DGCONFIG_HANDLE), DumpList, $(LineList)
  1028.       Endif
  1029.       set CtrlList = $(LineList)
  1030.     EndForListDo
  1031.     Ifint $(TraceConfig) == 1
  1032.       LibraryProcedure Result, $(DGCONFIG_HANDLE), DumpList, $(CtrlList)
  1033.     Endif
  1034.     CloseRegKey $(ParametersKey)
  1035.     CloseRegKey $(BaseKey)
  1036. getAdapterSettingsExit = +
  1037.     goto configureadapter
  1038. writeparameters = +
  1039.     Debug-Output "******************Entering writeparameters******************"
  1040.     StartWait
  1041.     Debug-Output "Trying to open: "$(!NTN_ServiceBase)"\"$(AdapterServiceName)
  1042.     Debug-Output "AdapterParameters = "
  1043.     LibraryProcedure Result, $(DGCONFIG_HANDLE), DumpList, $(AdapterParameters)
  1044.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(AdapterServiceName) $(MAXIMUM_ALLOWED) BaseKey
  1045.     Ifstr $(BaseKey) == $(KeyNull)
  1046.         Debug-Output "Error opening BaseKey "$(!NTN_ServiceBase)"\"$(AdapterServiceName)
  1047.         CloseRegKey $(BaseKey)
  1048.         goto fatal
  1049.     Endif
  1050.     OpenRegKey $(BaseKey) "" "Parameters" $(MAXIMUM_ALLOWED) ParametersKey
  1051.     Ifstr $(ParametersKey) == $(KeyNull)
  1052.         Debug-Output "Assuming Parameters key does not exist!!!"
  1053.         CloseRegKey $(BaseKey)
  1054.         goto fatal
  1055.     Endif
  1056.     set MemoryAddress = *($(AdapterParameters),1)
  1057.     set InterruptNumber = *($(AdapterParameters),2)
  1058.     set IOBaseAddress = *($(AdapterParameters),3)
  1059.     set HdwDeviceName = "\Device\"$(AdapterHardwareDriver)
  1060.     Debug-Output "MemoryAddress = "$(MemoryAddress)
  1061.     Debug-Output "InterruptNumber = "$(InterruptNumber)
  1062.     Debug-Output "IOBaseAddress = "$(IOBaseAddress)
  1063.     Debug-Output "HdwDeviceName = "$(HdwDeviceName)
  1064.     Debug-Output "FEPImage = "$(AdapterFepImage)
  1065.     Debug-Output "BiosImage = "$(AdapterBiosImage)
  1066.     SetRegValue $(ParametersKey) {MemoryMappedBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MemoryAddress)}
  1067.     SetRegValue $(ParametersKey) {IOBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddress)}
  1068.     SetRegValue $(ParametersKey) {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(InterruptNumber)}
  1069.     SetRegValue $(ParametersKey) {HdwDeviceName,$(NoTitle),$(!REG_VT_SZ),$(HdwDeviceName)}
  1070.     SetRegValue $(ParametersKey) {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)}
  1071.     SetRegValue $(ParametersKey) {FEPImagePath,$(NoTitle),$(!REG_VT_SZ),$(AdapterFepImage)}
  1072.     SetRegValue $(ParametersKey) {BiosImagePath,$(NoTitle),$(!REG_VT_SZ),$(AdapterBiosImage)}
  1073.     ifstr(i) $(BusType) == "MCA"
  1074.       Debug-Output "MCAPosId = "$(MCAPosId)
  1075.       Debug-Output "SlotNumber = "$(SlotNumber)
  1076.       SetRegValue $(ParametersKey) {MCAPosId,$(NoTitle),$(!REG_VT_DWORD),$(MCAPosId)}
  1077.       SetRegValue $(ParametersKey) {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNumber)}
  1078.     endif
  1079.     set LineList = *($(AdapterParameters),4)
  1080.     Ifint $(TraceConfig) == 1
  1081.       Debug-Output "LineList = "
  1082.       LibraryProcedure Result, $(DGCONFIG_HANDLE), DumpList, $(LineList)
  1083.     Endif
  1084.     ForListDo $(LineList)
  1085.       set LineObject = $($)
  1086.       Ifint $(TraceConfig) == 1
  1087.          Debug-Output "LineObject = "
  1088.          LibraryProcedure Result, $(DGCONFIG_HANDLE), DumpList, $(LineObject)
  1089.       Endif
  1090.       set LineName = *($(LineObject),1)
  1091.       Ifint $(TraceConfig) == 1
  1092.          Debug-Output "LineName = "
  1093.          LibraryProcedure Result, $(DGCONFIG_HANDLE), DumpList, $(LineName)
  1094.       Endif
  1095.       DeleteRegTree $(ParametersKey) $(LineName)
  1096.       set LineSpeed = *($(LineObject),2)
  1097.       Ifint $(TraceConfig) == 1
  1098.       Debug-Output "LineSpeed = "$(LineSpeed)
  1099.       Endif
  1100.       set ConcList = *($(LineObject),3)
  1101.       Ifint $(TraceConfig) == 1
  1102.          Debug-Output "ConcList = "
  1103.          LibraryProcedure Result, $(DGCONFIG_HANDLE), DumpList, $(ConcList)
  1104.       Endif
  1105.       Ifstr $(ConcList) != "{}"
  1106.          shell "" ExCreateRegKey $(ParametersKey) $(LineName)
  1107.          Ifstr(i) $($R0) != NO_ERROR
  1108.              Debug-Output "Error creating registry key!"
  1109.              set KeyHandle = $($R1)
  1110.              CloseRegKey $(BaseKey)
  1111.              goto fatal
  1112.          Endif
  1113.          set LineKey = $($R1)
  1114.          SetRegValue $(LineKey) {LineSpeed,$(NoTitle),$(!REG_VT_DWORD),$(LineSpeed)}
  1115.       Endif
  1116.       ForListDo $(ConcList)
  1117.          set ConcObject = $($)
  1118.          set ConcName = *($(ConcObject),1)
  1119.          set ConcDisplayName = *($(ConcObject),2)
  1120.          set ConcSpeed = *($(ConcObject),3)
  1121.          set ChildConcList = *($(ConcObject),4)
  1122.          set PortList = *($(ConcObject),5)
  1123.          Ifint $(TraceConfig) == 1
  1124.             Debug-Output "   "$(ConcName)
  1125.             Debug-Output "   "$(PortList)
  1126.          Endif
  1127.          shell "" ExCreateRegKey $(LineKey) $(ConcName)
  1128.          Ifstr(i) $($R0) != NO_ERROR
  1129.              Debug-Output "Error creating registry key!"
  1130.              set KeyHandle = $($R1)
  1131.              CloseRegKey $(LineKey)
  1132.              goto fatal
  1133.          Endif
  1134.          set ConcKey = $($R1)
  1135.          SetRegValue $(ConcKey) {ConcDisplayName,$(NoTitle),$(!REG_VT_SZ),$(ConcDisplayName)}
  1136.          SetRegValue $(ConcKey) {LineSpeed,$(NoTitle),$(!REG_VT_DWORD),$(ConcSpeed)}
  1137.          ForListDo $(ChildConcList)
  1138.             set ChildConcObject = $($)
  1139.             set ChildConcName = *($(ChildConcObject),1)
  1140.             set ChildConcDisplayName = *($(ChildConcObject),2)
  1141.             set ChildConcSpeed = *($(ChildConcObject),3)
  1142.             set JunkConcList = *($(ChildConcObject),4)
  1143.             set ChildPortList = *($(ChildConcObject),5)
  1144.             Ifint $(TraceConfig) == 1
  1145.                Debug-Output "      ChildConcObject = "
  1146.                LibraryProcedure Result, $(DGCONFIG_HANDLE), DumpList, $(ChildConcObject)
  1147.                Debug-Output "      ChildConcName = "$(ChildConcName)
  1148.                Debug-Output "      ChildConcDisplayName = "$(ChildConcDisplayName)
  1149.                Debug-Output "      ChildConcSpeed = "$(ChildConcSpeed)
  1150.                Debug-Output "      JunkConcList = "
  1151.                LibraryProcedure Result, $(DGCONFIG_HANDLE), DumpList, $(JunkConcList)
  1152.                Debug-Output "ChildPortList = "
  1153.                LibraryProcedure Result, $(DGCONFIG_HANDLE), DumpList, $(ChildPortList)
  1154.             Endif
  1155.             shell "" ExCreateRegKey $(ConcKey) $(ChildConcName)
  1156.             Ifstr(i) $($R0) != NO_ERROR
  1157.                 Debug-Output "Error creating registry key!"
  1158.                 set KeyHandle = $($R1)
  1159.                 CloseRegKey $(LineKey)
  1160.                 goto fatal
  1161.             Endif
  1162.             set ChildConcKey = $($R1)
  1163.             SetRegValue $(ChildConcKey) {ConcDisplayName,$(NoTitle),$(!REG_VT_SZ),$(ChildConcDisplayName)}
  1164.             SetRegValue $(ChildConcKey) {LineSpeed,$(NoTitle),$(!REG_VT_DWORD),$(ChildConcSpeed)}
  1165.             ForListDo $(ChildPortList)
  1166.                set PortObject = $($)
  1167.                set PortName = *($(PortObject),1)
  1168.                set PortDosDevices = *($(PortObject),2)
  1169.                Ifint $(TraceConfig) == 1
  1170.                   Debug-Output "           "$(PortName)"  -> "$(PortDosDevices)
  1171.                Endif
  1172.                shell "" ExCreateRegKey $(ChildConcKey) $(PortName)
  1173.                Ifstr(i) $($R0) != NO_ERROR
  1174.                    Debug-Output "Error creating registry key!"
  1175.                    set KeyHandle = $($R1)
  1176.                    CloseRegKey $(LineKey)
  1177.                    goto fatal
  1178.                Endif
  1179.                set PortKey = $($R1)
  1180.                SetRegValue $(PortKey) {DosDevices,$(NoTitle),$(!REG_VT_SZ),$(PortDosDevices)}
  1181.             EndForListDo
  1182.          EndForListDo
  1183.          ForListDo $(PortList)
  1184.             set PortObject = $($)
  1185.             set PortName = *($(PortObject),1)
  1186.             set PortDosDevices = *($(PortObject),2)
  1187.             Ifint $(TraceConfig) == 1
  1188.                Debug-Output "      "$(PortName)"  -> "$(PortDosDevices)
  1189.             Endif
  1190.             shell "" ExCreateRegKey $(ConcKey) $(PortName)
  1191.             Ifstr(i) $($R0) != NO_ERROR
  1192.                 Debug-Output "Error creating registry key!"
  1193.                 set KeyHandle = $($R1)
  1194.                 CloseRegKey $(LineKey)
  1195.                 goto fatal
  1196.             Endif
  1197.             set PortKey = $($R1)
  1198.             SetRegValue $(PortKey) {DosDevices,$(NoTitle),$(!REG_VT_SZ),$(PortDosDevices)}
  1199.          EndForListDo
  1200.       EndForListDo
  1201.     EndForListDo
  1202.     EndWait
  1203.     goto successful
  1204. bindingadapter = +
  1205.     Debug-Output "******************Entering bindingadapter******************"
  1206.     LoadLibrary "x" $(!STF_CWDDIR)dgconfig.dll DGCONFIG_HANDLE
  1207.     set Error = "Binding: Sorry, not yet implemented."
  1208.     goto fatal
  1209. removeadapter = +
  1210.     read-syms DebugOptions
  1211.     Debug-Output "******************Entering removeadapter******************"
  1212.     Debug-Output "OEMNADDS.INF: removeadapter"
  1213.     Debug-Output "OEMNADDS.INF: Removing Hardware Components"
  1214.     Debug-Output "OEMNADDS.INF: ProductKeyName = "$(ProductKeyName)
  1215.     Debug-Output "OEMNADDS.INF: ProductSoftwareName = "$(ProductSoftwareName)
  1216.     Debug-Output "OEMNADDS.INF: ProductSoftwareNameHdwDriver = "$(ProductSoftwareNameHdwDriver)
  1217.     Debug-Output "OEMNADDS.INF: NTN_RegBase = "$(!NTN_RegBase)
  1218.     ifstr(i) $(fRemoveDigi) == FALSE
  1219.       install RemoveFiles
  1220.       goto removeadapterExit
  1221.     endif
  1222.     LoadLibrary "x" $(!STF_CWDDIR)dgconfig.dll DGCONFIG_HANDLE
  1223.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  1224.         $(ProductSoftwareNameHdwDriver), $(!NTN_RegBase)
  1225.     Debug-Output "OEMNADDS.INF: RemoveHardwareComponent return value = "$($R0)
  1226.     Ifstr(i) $($R0) != NO_ERROR
  1227.         Debug-Output "OEMNADDS.INF: RemoveHardwareComponent != NO_ERROR"
  1228.     Endif
  1229.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1230.         Debug-Output "ShellCode error"
  1231.         goto ShellCodeError
  1232.     endif
  1233.     set RegistryErrorIndex = $($R0)
  1234.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1235.         Debug-Output "fatal registry error"
  1236.         goto fatalregistry
  1237.     endif
  1238.     shell $(UtilityInf), DecrementRefCount, $(ProductKeyName)
  1239.     Debug-Output "OEMNADDS.INF: DecrementRefCount return value = "$($R0)
  1240.     Ifstr(i) $($R0) != NO_ERROR
  1241.         Debug-Output "OEMNADDS.INF: DecrementRefCount != NO_ERROR"
  1242.     Endif
  1243.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  1244.         $(ProductSoftwareName), TRUE
  1245.     Debug-Output "RemoveSoftwareComponent return value = "$($R0)
  1246.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1247.         Debug-Output "ShellCode error"
  1248.         goto ShellCodeError
  1249.     endif
  1250.     set RegistryErrorIndex = $($R0)
  1251.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1252.         Ifstr(i) $(RegistryErrorIndex) != REF_COUNT_NOT_ZERO
  1253.             goto fatalregistry
  1254.         endif
  1255.     endif
  1256.     install RemoveFiles
  1257. removeadapterExit = +
  1258.     Debug-Output "OEMNADDS.INF: Exiting removeadapter"
  1259.     goto end
  1260. UpgradeSoftware = +
  1261.     Debug-Output "******************Entering UpgradeSoftware******************"
  1262.     Debug-Output "   ProductKeyName = "$(ProductKeyName)
  1263.     Debug-Output "   NTN_RegBase = "$(!NTN_RegBase)
  1264.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  1265.     Ifstr $(KeyProduct) != $(KeyNull)
  1266.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  1267.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  1268.         CloseRegKey $(KeyProduct)
  1269.     endif
  1270.     set NetworkCardKeyName = $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards"
  1271.     OpenRegKey $(!REG_H_LOCAL) "" $(NetworkCardKeyName) $(MAXIMUM_ALLOWED) IE_KeyNetcards
  1272.     ifstr(i) $(IE_KeyNetcards) != ""    
  1273.         EnumRegKey $(IE_KeyNetcards) IE_KeyNameList
  1274.         ForListDo $(IE_KeyNameList)
  1275.             OpenRegKey $(IE_KeyNetcards) "" *($($),1) +
  1276.                   $(MAXIMUM_ALLOWED) NetworkCardKey
  1277.             Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  1278.                 GetRegValue $(NetworkCardKey),"Manufacturer", ManufacturerInfo
  1279.                 set ManufacturerName = *($(ManufacturerInfo), 4)
  1280.                 Debug-Output "   Manufacturer = "$(ManufacturerName)
  1281.                 Ifstr $(ManufacturerName) != $(Manufacturer)
  1282.                     goto nextnetcard
  1283.                 endif
  1284.                 GetRegValue $(NetworkCardKey),"ProductName", ProductNameInfo
  1285.                 set ProductName = *($(ProductNameInfo), 4)
  1286.                 Debug-Output "   ProductName = "$(ProductName)
  1287.                 ifcontains(i) $(ProductName) not-in $(AdapterHardwareDriverList)
  1288.                     goto nextnetcard
  1289.                 endif
  1290.                 GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  1291.                 set ServiceName = *($(ServiceNameInfo), 4)
  1292.                 Debug-Output "   ServiceName = "$(ServiceName)
  1293.                 OpenRegKey $(NetworkCardKey) "" "NetRules" +
  1294.                     $(MAXIMUM_ALLOWED) NetRuleKey
  1295.                 Ifstr $(NetRuleKey) != $(KeyNull)
  1296.                    GetRegValue $(NetRuleKey),"InfOption", InfOptionInfo
  1297.                    set InfOption = *($(InfOptionInfo), 4)
  1298.                    set Option = $(InfOption)
  1299.                    read-syms FileConstants
  1300.                 endif
  1301.                 CloseRegKey $(NetRules)
  1302.                 CloseRegKey $(NetworkCardKey)
  1303.             endif
  1304.             install "Install-Upgrade"
  1305.             ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  1306.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  1307.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1308.                   goto ShellCodeError
  1309.               endif
  1310.               set Error = $($R0)
  1311.               goto fatal
  1312.             endif
  1313.             OpenRegKey $(!REG_H_LOCAL) "" +
  1314.                   $(!NTN_ServiceBase)"\"$(ServiceName) +
  1315.                   $(MAXIMUM_ALLOWED) ServiceKey
  1316.             Ifstr $(ServiceKey) != $(KeyNull)
  1317.                 Debug-Output "   Opened service key "$(ServiceName)" successfully"
  1318.                 OpenRegKey $(ServiceKey) "" "Parameters" +
  1319.                       $(MAXIMUM_ALLOWED) ParametersKey
  1320.                 Ifstr $(ParametersKey) != $(KeyNull)
  1321.                    SetRegValue $(ParametersKey) {FEPImagePath,$(NoTitle),$(!REG_VT_SZ),$(AdapterFepImage)}
  1322.                    SetRegValue $(ParametersKey) {BiosImagePath,$(NoTitle),$(!REG_VT_SZ),$(AdapterBiosImage)}
  1323.                    CloseRegKey $(ParametersKey)
  1324.                 else
  1325.                     goto fatalregistry
  1326.                 Endif
  1327.                 CloseRegKey $(ServiceKey)
  1328.             else
  1329.                 goto fatalregistry
  1330.             endif
  1331. nextnetcard = +
  1332.         EndForListDo
  1333.     endif
  1334.     goto end
  1335. successful = +
  1336.     Debug-Output "******************Entering successful******************"
  1337.     goto end
  1338. abandon = +
  1339.     Debug-Output "******************Entering abandon******************"
  1340.     ForListDo $(OEM_ABANDON_OPTIONS)
  1341.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  1342.             $(ProductSoftwareName), $($)
  1343.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1344.             Debug-Output "ShellCode error"
  1345.             goto ShellCodeError
  1346.         endif
  1347.         set RegistryErrorIndex = $($R0)
  1348.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1349.             goto fatalregistry
  1350.         endif
  1351.     EndForListDo
  1352.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  1353.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  1354.             $(ProductSoftwareName), FALSE
  1355.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1356.             Debug-Output "ShellCode error"
  1357.             goto ShellCodeError
  1358.         endif
  1359.         set RegistryErrorIndex = $($R0)
  1360.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1361.             goto fatalregistry
  1362.         endif
  1363.     endif
  1364.     goto end
  1365. warning = +
  1366.     Debug-Output "******************Entering warning******************"
  1367.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  1368.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1369.         goto ShellCodeError
  1370.     endif
  1371.     ifstr(i) $($R1) == "OK"
  1372.         goto $(to)
  1373.     else-ifstr(i) $($R1) == "CANCEL"
  1374.         goto $(from)
  1375.     else
  1376.         goto "end"
  1377.     endif
  1378. nonfatalinfo = +
  1379.     Debug-Output "******************Entering nonfatalinfo******************"
  1380.     Set CommonStatus = STATUS_USERCANCEL
  1381.     Set Severity = STATUS
  1382.     goto nonfatalmsg
  1383. nonfatal = +
  1384.     Debug-Output "******************Entering nonfatal******************"
  1385.     Set Severity = NONFATAL
  1386.     goto nonfatalmsg
  1387. nonfatalmsg = +
  1388.     Debug-Output "******************Entering nonfatalmsg******************"
  1389.     ifstr(i) $(Error) == ""
  1390.         Set Severity = NONFATAL
  1391.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  1392.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1393.             goto ShellCodeError
  1394.         endif
  1395.         set Error = $($R0)
  1396.     endif
  1397.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  1398.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1399.         goto ShellCodeError
  1400.     endif
  1401.     ifstr(i) $($R1) == "OK"
  1402.         goto $(from)
  1403.     else
  1404.         goto "end"
  1405.     endif
  1406. fatalregistry = +
  1407.     Debug-Output "******************Entering fatalregistry******************"
  1408.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  1409.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1410.        Debug-Output "fatalregistry: shell to find RegistryErrorString failed."
  1411.        goto ShellCodeError
  1412.     endif
  1413.     set Error = $($R0)" - service "$(DigiSpecificString)"."
  1414.     ifstr(i) $(fRemoveDigi) == TRUE
  1415.         read-syms AbortMessage$(!STF_LANGUAGE)
  1416.         set Error = $(Error)$(!LF)$(!LF)$(AbortText)
  1417.     endif
  1418.     goto fatal
  1419. fataldetect = +
  1420.     Debug-Output "******************Entering fataldetect******************"
  1421.     Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
  1422.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1423.         Debug-Output "ShellCode error: cannot get an error string."
  1424.         goto ShellCodeError
  1425.     endif
  1426.     set Error = $($R0)
  1427.     Goto fatal
  1428. fatal = +
  1429.     Debug-Output "******************Entering fatal******************"
  1430.     Debug-Output "OEMNADDS.INF: ---- fatal called"
  1431.     Shell $(subroutninf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  1432.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1433.         Debug-Output "fatal: shell to SetupMessage failed."
  1434.         goto ShellCodeError
  1435.     endif
  1436.     goto setfailed
  1437. ShellCodeError = +
  1438.     Debug-Output "******************Entering ShellCodeError******************"
  1439.     set DlgType      = "MessageBox"
  1440.     set STF_MB_TITLE = "Error: "$(FunctionTitle)
  1441.     set STF_MB_TEXT  = "Shell Code Error"
  1442.     set STF_MB_TYPE  = 1
  1443.     set STF_MB_ICON  = 3
  1444.     set STF_MB_DEF   = 1
  1445.     ui start "Error Message"
  1446.     goto setfailed
  1447. setfailed = +
  1448.     Debug-Output "******************Entering setfailed******************"
  1449.     set CommonStatus = STATUS_FAILED
  1450.     ifstr(i) $(fRemoveDigi) == TRUE
  1451.         set fRemoveDigi = FALSE
  1452.         goto removeadapter
  1453.     endif
  1454.     goto end
  1455. end = +
  1456.     Debug-Output "******************Entering end******************"
  1457.     goto term
  1458. term = +
  1459.     ifstr(i) $(DGCONFIG_HANDLE) != $(HandleNull)
  1460.       FreeLibrary $(DGCONFIG_HANDLE)
  1461.     endif
  1462.     Debug-Output "******************Entering term -- GoodBye!!!******************"
  1463.     Return $(CommonStatus)
  1464. [RemoveFiles]
  1465.    Debug-Output "******************Entering [RemoveFiles]******************"
  1466.    set RemoveList = {}
  1467.    set RenameList = {}
  1468.    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyNameHdwDriver) +
  1469.               $(MAXIMUM_ALLOWED) KeyProductHdwDriver
  1470.    ifstr $(KeyProductHdwDriver) == $(KeyNull)
  1471.       CloseRegKey $(KeyProductHdwDriver)
  1472.       set RenameList = >($(RenameList), $(!STF_WINDOWSSYSPATH)"\drivers\"$(AdapterHardwareDriver)".sys")
  1473.       set RenameList = >($(RenameList), $(!STF_WINDOWSSYSPATH)"\drivers\"$(AdapterFepImage))
  1474.       set RenameList = >($(RenameList), $(!STF_WINDOWSSYSPATH)"\drivers\"$(AdapterBiosImage))
  1475.    endif
  1476.    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) +
  1477.               $(MAXIMUM_ALLOWED) KeyProduct
  1478.    ifstr $(KeyProduct) == $(KeyNull)
  1479.       CloseRegKey $(KeyProduct)
  1480.       set RenameList = >($(RenameList), $(!STF_WINDOWSSYSPATH)"\drivers\"$(ProductSoftwareName)".sys")
  1481.       set RenameList = >($(RenameList), $(!STF_WINDOWSSYSPATH)"\dgconfig.dll")
  1482.       set RemoveList = >($(RemoveList), $(!STF_WINDOWSSYSPATH)"\dgconfig.hlp")
  1483.    endif
  1484.    Debug-Output "RemoveList = "$(RemoveList)
  1485.    Debug-Output "RenameList = "$(RenameList)
  1486.    ForListDo $(RemoveList)
  1487.        Debug-Output "Removing "$($)
  1488.        LibraryProcedure Status , $(!LIBHANDLE), DelFile $($)
  1489.        Debug-Output "Status is "$(Status)
  1490.    EndForListDo
  1491.    ForListDo $(RenameList)
  1492.        Debug-Output "RenameList entry = "$($)
  1493.        Split-String $($) "\" FilePath
  1494.        QueryListSize PathLen $(FilePath)
  1495.        Split-String *($(FilePath),$(PathLen)) "." FullFileName
  1496.        Set FileName = *($(FullFileName),1)
  1497.        Debug-Output "FileName is "$(FileName)
  1498.        LibraryProcedure STATUS, $(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1499.        Debug-Output "CheckFile Status = "$(STATUS)
  1500.        ifstr(i) $(STATUS) == YES
  1501.            LibraryProcedure STATUS, $(!LIBHANDLE), DelFile $(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1502.            Debug-Output "Delfile Status = "$(STATUS)
  1503.            LibraryProcedure STATUS, $(!LIBHANDLE), DelFile $($)
  1504.            Debug-Output "Delfile Status = "$(STATUS)
  1505.        endif
  1506.        ifstr(i) $(fRemoveDigi) == TRUE
  1507.          Debug-Output "Renaming from "$($)
  1508.          Debug-Output "Renaming to "$(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1509.          LibraryProcedure Status1 , $(!LIBHANDLE), RenFile $($), $(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1510.          Debug-Output "Status is "$(Status1)
  1511.          AddFileToDeleteList $(!STF_WINDOWSSYSPATH)"\DRIVERS\"$(FileName)".old"
  1512.        endif
  1513.    EndForListDo
  1514.    exit
  1515. [ExCreateRegKey]
  1516.     Debug-Output "******************Entering [ExCreateRegKey]******************"
  1517.     set ECR_Result          = NO_ERROR
  1518.     set ECR_BaseKeyHandle   = $($0)
  1519.     set ECR_NewPath         = $($1)
  1520.     set KeyNull         = ""
  1521.     set MAXIMUM_ALLOWED   = 33554432
  1522.     Debug-Output "ExCreateRegKey - ECR_BaseKeyHandle = "$(ECR_BaseKeyHandle)
  1523.     Debug-Output "                 ECR_NewPath = "$(ECR_NewPath)
  1524.     Debug-Output "                 MAXIMUM_ALLOWED = "$(MAXIMUM_ALLOWED)
  1525.     Debug-Output "                 KeyNull = "$(KeyNull)
  1526.     OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_NewPath) $(MAXIMUM_ALLOWED) +
  1527.                ECR_BaseKey
  1528.     Debug-Output "ECR_BaseKey = "$(ECR_BaseKey)
  1529.     Debug-Output "    OpenRegKey returned "$($R0)
  1530.     Ifstr $(ECR_BaseKey) == $(KeyNull)
  1531.         Debug-Output "ECR_BaseKey == KeyNull"
  1532.     Else
  1533.         Debug-Output "ECR_BaseKey != KeyNull"
  1534.         set ECR_KeyHandle = $(ECR_BaseKey)
  1535.         goto  ECR_Return
  1536.     Endif
  1537.     set ECR_TmpPath = ""
  1538.     Split-String $(ECR_NewPath) "\" ECR_PList
  1539.     Debug-Output "ECR_PList = "$(ECR_PList)
  1540.     ForListDo $(ECR_PList)
  1541.         Ifstr(i) $($) != "\"
  1542.             Ifint $(#) == 1
  1543.                 set ECR_TmpPath = $($)
  1544.             Else
  1545.                 set ECR_TmpPath = $(ECR_TmpPath)"\"$($)
  1546.             Endif
  1547.             Debug-Output "Determining if "$(ECR_TmpPath)" exists"
  1548.             OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_TmpPath) $(MAXIMUM_ALLOWED) ECR_BaseKey
  1549.             Ifstr $(ECR_BaseKey) == $(KeyNull)
  1550.                 Debug-Output "Creating "$(ECR_TmpPath)
  1551.                 CreateRegKey $(ECR_BaseKeyHandle)  {$(ECR_TmpPath),0,GenericClass} "" $(MAXIMUM_ALLOWED) "" ECR_KeyHandle
  1552.                 Ifstr(i) $(ECR_KeyHandle) == $(KeyNull)
  1553.                     set ECR_Result = $($R0)
  1554.                     goto ECR_Return
  1555.                 Endif
  1556.             Endif
  1557.         Endif
  1558.     EndForListDo
  1559. ECR_Return = +
  1560.     return $(ECR_Result) $(ECR_KeyHandle)
  1561. [DebugExternalGlobals]
  1562.     Set InfName = "OEMNADDS.INF"
  1563.     Debug-Output $(InfName)" NTN_Origination = "$(!NTN_Origination)
  1564.     Debug-Output $(InfName)" NTN_InstallMode = "$(!NTN_InstallMode)
  1565.     Debug-Output $(InfName)" NTN_RegBase = "$(!NTN_RegBase)
  1566.     Debug-Output $(InfName)" NTN_SoftwareBase = "$(!NTN_SoftwareBase)
  1567.     Debug-Output $(InfName)" NTN_ServiceBase = "$(!NTN_ServiceBase)
  1568.     Debug-Output $(InfName)" STF_NTPATH = "$(!STF_NTPATH)
  1569.     Debug-Output $(InfName)" STF_NTWINDOWSSYSPATH = "$(!STF_WINDOWSSYSPATH)
  1570.     Debug-Output $(InfName)" STF_CWDIR = "$(!STF_CWDIR)
  1571.     Debug-Output $(InfName)" STF_LANGUAGE = "$(!STF_LANGUAGE)
  1572.     Debug-Output $(InfName)" STF_NCDETECT  = "$(!STF_NCDETECT)
  1573.     Debug-Output $(InfName)" STF_NCOPTION  = "$(!STF_NCOPTION)
  1574.     Debug-Output $(InfName)" STF_NCDETCARD = "$(!STF_NCDETCARD)
  1575.     Debug-Output $(InfName)" STF_NCDETINFO = "$(!STF_NCDETINFO)
  1576.     Debug-Output $(InfName)" STF_INSTALL_MODE = "$(!STF_INSTALL_MODE)
  1577.     Debug-Output $(InfName)" STF_CONTEXTINFNAME = "$(!STF_CONTEXTINFNAME)
  1578.     return
  1579. [DebugConfiguration]
  1580.     Set InfName = "OEMNADDS.INF"
  1581.     Debug-Output $(InfName)" **CONFIGURATION STATE: "$($0)
  1582.     Debug-Output $(InfName)" IRQ_Level is "$(!p:IRQ_Level)
  1583.     Debug-Output $(InfName)" IOBaseAddrValue is "$(!p:IOBaseAddrValue)
  1584.     Debug-Output $(InfName)" TransceiverValue is "$(!p:TransceiverValue)
  1585.     Debug-Output $(InfName)" MemBaseAddrDec is "$(!p:MemBaseAddrDec)
  1586.     Debug-Output $(InfName)" MappedValue is "$(!p:MappedValue)
  1587.     return
  1588. [AdapterSettings-ntcx]
  1589. IRQRangeList = {$(IRQDisableLabel)}
  1590. MemoryRangeList = {"C0000","C8000","D0000","D8000","E0000","E8000"}
  1591. IORangeList = {"108","118","128","208","228","308","328"}
  1592. IRQDefault = 0
  1593. MemoryDefault = 2
  1594. IODefault = 4
  1595. [AdapterSettings-ntepc]
  1596. IRQRangeList = {$(IRQDisableLabel)}
  1597. MemoryRangeList = {"C0000","C8000","D0000","D8000","E0000","E8000"}
  1598. IORangeList = {"108","118","128","208","228","308","328"}
  1599. IRQDefault = 0
  1600. MemoryDefault = 2
  1601. IODefault = 4
  1602. [AdapterSettings-ntxem]
  1603. IRQRangeList = {$(IRQDisableLabel)}
  1604. MemoryRangeList = {"C0000","C8000","D0000","D8000","E0000","E8000"}
  1605. IORangeList = {"104","114","124","204","224","304","324"}
  1606. IRQDefault = 0
  1607. MemoryDefault = 2
  1608. IODefault = 4
  1609. [AdapterSettings-nt8r]
  1610. IRQRangeList = {$(IRQDisableLabel)}
  1611. MemoryRangeList = {"C0000","C8000","D0000","D8000","E0000","E8000"}
  1612. IORangeList = {"104","114","124","204","224","304","324"}
  1613. IRQDefault = 0
  1614. MemoryDefault = 2
  1615. IODefault = 4
  1616. [AdapterSettings-nt4i]
  1617. IRQRangeList = {$(IRQDisableLabel)}
  1618. MemoryRangeList = {"C0000","D0000","E0000"}
  1619. IORangeList = {"100","110","120","200","220","300","320"}
  1620. IRQDefault = 0
  1621. MemoryDefault = 1
  1622. IODefault = 4
  1623. [AdapterSettings-nt8i]
  1624. IRQRangeList = {$(IRQDisableLabel)}
  1625. MemoryRangeList = {"C0000","D0000","E0000"}
  1626. IORangeList = {"100","110","120","200","220","300","320"}
  1627. IRQDefault = 0
  1628. MemoryDefault = 1
  1629. IODefault = 4
  1630. [AdapterSettings-nt16i]
  1631. IRQRangeList = {$(IRQDisableLabel)}
  1632. MemoryRangeList = {"C0000","D0000","E0000"}
  1633. IORangeList = {"100","110","120","200","220","300","320"}
  1634. IRQDefault = 0
  1635. MemoryDefault = 1
  1636. IODefault = 4
  1637. [AdapterSettings-nt16e]
  1638. IRQRangeList = {$(IRQDisableLabel)}
  1639. MemoryRangeList = {"C0000","D0000","E0000", }
  1640. IORangeList = {"100","110","120","200","220","300","320"}
  1641. IRQDefault = 0
  1642. MemoryDefault = 1
  1643. IODefault = 4
  1644. [AdapterSettings-nt8e]
  1645. IRQRangeList = {$(IRQDisableLabel)}
  1646. MemoryRangeList = {"C0000","D0000","E0000", }
  1647. IORangeList = {"100","110","120","200","220","300","320"}
  1648. IRQDefault = 0
  1649. MemoryDefault = 1
  1650. IODefault = 4
  1651. [AdapterSettings-nt4e]
  1652. IRQRangeList = {$(IRQDisableLabel)}
  1653. MemoryRangeList = {"C0000","D0000","E0000", }
  1654. IORangeList = {"100","110","120","200","220","300","320"}
  1655. IRQDefault = 0
  1656. MemoryDefault = 1
  1657. IODefault = 4
  1658. [AdapterSettings-2Port]
  1659. IRQRangeList = {$(IRQDisableLabel)}
  1660. MemoryRangeList = {"C0000","C2000","C4000","C6000","C8000", "CA000", "CC000", "CE000", +
  1661.                "D0000","D2000","D4000","D6000","D8000", "DA000", "DC000", "DE000", +
  1662.                "E0000","E2000","E4000","E6000","E8000", "EA000", "EC000", "EE000" }
  1663. IORangeList = {"100","110","120","200","220","300","320"}
  1664. IRQDefault = 0
  1665. MemoryDefault = 8
  1666. IODefault = 4
  1667. [AdapterSettings-4Port]
  1668. IRQRangeList = {$(IRQDisableLabel)}
  1669. MemoryRangeList = {"C0000","C2000","C4000","C6000","C8000", "CA000", "CC000", "CE000", +
  1670.                "D0000","D2000","D4000","D6000","D8000", "DA000", "DC000", "DE000", +
  1671.                "E0000","E2000","E4000","E6000","E8000", "EA000", "EC000", "EE000" }
  1672. IORangeList = {"100","110","120","200","220","300","320"}
  1673. IRQDefault = 0
  1674. MemoryDefault = 8
  1675. IODefault = 4
  1676. [AdapterSettings-8Port]
  1677. IRQRangeList = {$(IRQDisableLabel)}
  1678. MemoryRangeList = {"C0000","C2000","C4000","C6000","C8000", "CA000", "CC000", "CE000", +
  1679.                "D0000","D2000","D4000","D6000","D8000", "DA000", "DC000", "DE000", +
  1680.                "E0000","E2000","E4000","E6000","E8000", "EA000", "EC000", "EE000" }
  1681. IORangeList = {"100","110","120","200","220","300","320"}
  1682. IRQDefault = 0
  1683. MemoryDefault = 8
  1684. IODefault = 4
  1685. [BindingInfo-DigiFEP5]
  1686. BindingInfo =   {+
  1687.                 "digiFEP5Driver ntepcDriver non exclusive 100", +
  1688.                 "digiFEP5Driver ntcxDriver non exclusive 100", +
  1689.                 "digiFEP5Driver ntxemDriver non exclusive 100", +
  1690.                 "digiFEP5Driver ntxallDriver non exclusive 100" +
  1691.                 }
  1692. [BindingInfo-ntxem]
  1693. BindingInfo     = {+
  1694.                   $(AdapterHardwareDriver)"Driver "$(AdapterHardwareDriver)"Adapter non exclusive 100", +
  1695.                   }
  1696. [BindingInfo-ntcx]
  1697. BindingInfo     = {+
  1698.                   $(AdapterHardwareDriver)"Driver "$(AdapterHardwareDriver)"Adapter non exclusive 100", +
  1699.                   }
  1700. [BindingInfo-ntepc]
  1701. BindingInfo     = {+
  1702.                   $(AdapterHardwareDriver)"Driver "$(AdapterHardwareDriver)"Adapter non exclusive 100", +
  1703.                   }
  1704. [BindingInfo-ntxall]
  1705. BindingInfo     = {+
  1706.                   $(AdapterHardwareDriver)"Driver "$(AdapterHardwareDriver)"Adapter non exclusive 100" +
  1707.                   }
  1708. [InstallResources]
  1709.     set STF_VITAL = ""
  1710.     Debug-Output "OEMNADDS.INF: [InstallResources]"
  1711.     AddSectionFilesToCopyList Files-Resource $(!SourceDir) $(!STF_WINDOWSSYSPATH)
  1712.     CopyFilesInCopyList
  1713.     Debug-Output "OEMNADDS.INF: [InstallResources] - Exiting"
  1714.     exit
  1715. [Install-Option]
  1716.     Debug-Output "********************* Inside Install-Option *************************"
  1717.     Debug-Output "   AddCopy = "$(AddCopy)
  1718.     Debug-Output "   DoCopy = "$(DoCopy)
  1719.     Debug-Output "   DoConfig = "$(DoConfig)
  1720.     Debug-Output "   NTN_InstallPhase = "$(!NTN_InstallPhase)
  1721.     set STF_VITAL = ""
  1722.     set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  1723.     ifstr(i) $(AddCopy) == "YES"
  1724.         AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1725.         AddSectionFilesToCopyList Files-Resource $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1726.         AddSectionFilesToCopyList Files-DigiFEP5 $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1727.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1728.         LibraryProcedure FilePresent, $(!LIBHANDLE), CheckFileExistance $(SrcDir)..\images\fxfep.bin
  1729.         ifstr(i) $(FilePresent) != "YES"
  1730.            LibraryProcedure FilePresent, $(!LIBHANDLE), CheckFileExistance $(SrcDir)..\images\fxfep.bi_
  1731.            ifstr(i) $(FilePresent) != "YES"
  1732.               Debug-Output "Retrieving images from "$(SrcDir)
  1733.               AddSectionFilesToCopyList Files-$(Option)-images $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1734.            else
  1735.               Debug-Output "Retrieving images from "$(SrcDir)"..\images"
  1736.               AddSectionFilesToCopyList Files-$(Option)-images $(SrcDir)..\images $(!STF_WINDOWSSYSPATH)\drivers
  1737.            endif
  1738.         else
  1739.            Debug-Output "Retrieving images from "$(SrcDir)"..\images"
  1740.            AddSectionFilesToCopyList Files-$(Option)-images $(SrcDir)..\images $(!STF_WINDOWSSYSPATH)\drivers
  1741.         endif
  1742.     endif
  1743.     ifstr(i) $(DoCopy) == "YES"
  1744.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1745.        CopyFilesInCopyList
  1746.     else-ifstr(i) $(!NTN_InstallPhase) == primary
  1747.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1748.        CopyFilesInCopyList
  1749.     endif
  1750.     ifstr(i) $(DoConfig) == "YES"
  1751.     endif
  1752.     Exit
  1753. [Install-Upgrade]
  1754.     Debug-Output "********************* Inside Install-Upgrade *************************"
  1755.     Debug-Output "   AddCopy = "$(AddCopy)
  1756.     Debug-Output "   DoCopy = "$(DoCopy)
  1757.     Debug-Output "   DoConfig = "$(DoConfig)
  1758.     Debug-Output "   NTN_InstallPhase = "$(!NTN_InstallPhase)
  1759.     set STF_VITAL = ""
  1760.     set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  1761.     AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1762.     AddSectionFilesToCopyList Files-Resource $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1763.     AddSectionFilesToCopyList Files-DigiFEP5 $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1764.     AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1765.     LibraryProcedure FilePresent, $(!LIBHANDLE), CheckFileExistance $(SrcDir)..\images\fxfep.bin
  1766.     ifstr(i) $(FilePresent) != "YES"
  1767.        LibraryProcedure FilePresent, $(!LIBHANDLE), CheckFileExistance $(SrcDir)..\images\fxfep.bi_
  1768.        ifstr(i) $(FilePresent) != "YES"
  1769.           Debug-Output "Retrieving images from "$(SrcDir)
  1770.           AddSectionFilesToCopyList Files-$(Option)-images $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1771.        else
  1772.           Debug-Output "Retrieving images from "$(SrcDir)"..\images"
  1773.           AddSectionFilesToCopyList Files-$(Option)-images $(SrcDir)..\images $(!STF_WINDOWSSYSPATH)\drivers
  1774.        endif
  1775.     else
  1776.        Debug-Output "Retrieving images from "$(SrcDir)"..\images"
  1777.        AddSectionFilesToCopyList Files-$(Option)-images $(SrcDir)..\images $(!STF_WINDOWSSYSPATH)\drivers
  1778.     endif
  1779.     set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1780.     CopyFilesInCopyList
  1781.     Exit
  1782. [Source Media Descriptions]
  1783.     1 = "Windows NT Workstation CD-ROM" , TAGFILE = cdrom.w
  1784. [Signature]
  1785.     FileType = MICROSOFT_FILE
  1786. [GetSignature]
  1787.     read-syms Signature
  1788.     return $(FileType)
  1789. [ProductType]
  1790. STF_PRODUCT  = Winnt
  1791. STF_PLATFORM = I386
  1792. [Files-Inf]
  1793. 2,    oemsetup.inf,     SIZE=1000,    RENAME=OEMNADDS.INF
  1794. [Files-Resource]
  1795. 1,dgconfig.dll, SIZE=30720
  1796. 1,dgconfig.hlp, SIZE=8694
  1797. [Files-DigiFEP5]
  1798. 1, digifep5.sys, SIZE=114176
  1799. [Files-DigiBoardCX]
  1800. 1, ntcx.sys, SIZE=108032
  1801. [Files-DigiBoardCX-images]
  1802. 1, cxfep.bin, SIZE=12032
  1803. 1, cxbios.bin, SIZE=2048
  1804. [Files-StarGateClusStar]
  1805. 1, ntcx.sys, SIZE=108032
  1806. [Files-StarGateClusStar-images]
  1807. 1, cxfep.bin, SIZE=12032
  1808. 1, cxbios.bin, SIZE=2048
  1809. [Files-DigiBoardEPC]
  1810. 1, ntepc.sys, SIZE=108032
  1811. [Files-DigiBoardEPC-images]
  1812. 1, fxfep.bin, SIZE=35328
  1813. 1, fxbios.bin, SIZE=25600
  1814. [Files-DigiBoardXem]
  1815. 1, ntxem.sys, SIZE=69632
  1816. [Files-DigiBoardXem-images]
  1817. 1, sxfep.bin, SIZE=24064
  1818. 1, sxbios.bin, SIZE=32768
  1819. [Files-DigiBoard4i]
  1820. 1, ntxall.sys, SIZE=37376
  1821. [Files-DigiBoard4i-images]
  1822. 1, xacook.bin, SIZE=6144
  1823. 1, xabios.bin, SIZE=2048
  1824. [Files-DigiBoard8i]
  1825. 1, ntxall.sys, SIZE=37376
  1826. [Files-DigiBoard8i-images]
  1827. 1, xacook.bin, SIZE=6144
  1828. 1, xabios.bin, SIZE=2048
  1829. [Files-DigiBoard16i]
  1830. 1, ntxall.sys, SIZE=37376
  1831. [Files-DigiBoard16i-images]
  1832. 1, xacook.bin, SIZE=6144
  1833. 1, xabios.bin, SIZE=2048
  1834. [Files-DigiBoard2Port]
  1835. 1, ntxall.sys, SIZE=37376
  1836. [Files-DigiBoard2Port-images]
  1837. 1, xacook.bin, SIZE=6144
  1838. 1, xabios.bin, SIZE=2048
  1839. [Files-DigiBoard4Port]
  1840. 1, ntxall.sys, SIZE=37376
  1841. [Files-DigiBoard4Port-images]
  1842. 1, xacook.bin, SIZE=6144
  1843. 1, xabios.bin, SIZE=2048
  1844. [Files-DigiBoard8Port]
  1845. 1, ntxall.sys, SIZE=37376
  1846. [Files-DigiBoard8Port-images]
  1847. 1, xacook.bin, SIZE=6144
  1848. 1, xabios.bin, SIZE=2048
  1849. [Files-DigiBoard8r]
  1850. 1, ntxem.sys, SIZE=37376
  1851. [Files-DigiBoard8r-images]
  1852. 1, sxfep.bin, SIZE=6144
  1853. 1, sxbios.bin, SIZE=2048
  1854. [Files-IBM8r]
  1855. 1, ntxem.sys, SIZE=37376
  1856. [Files-IBM8r-images]
  1857. 1, sxfep.bin, SIZE=6144
  1858. 1, sxbios.bin, SIZE=2048
  1859. [Files-DigiBoard4e]
  1860. 1, ntxall.sys, SIZE=37376
  1861. [Files-DigiBoard4e-images]
  1862. 1, xacook.bin, SIZE=6144
  1863. 1, xabios.bin, SIZE=2048
  1864. [Files-DigiBoard8e]
  1865. 1, ntxall.sys, SIZE=37376
  1866. [Files-DigiBoard8e-images]
  1867. 1, xacook.bin, SIZE=6144
  1868. 1, xabios.bin, SIZE=2048
  1869. [Files-DigiBoard16e]
  1870. 1, ntxall.sys, SIZE=37376
  1871. [Files-DigiBoard16e-images]
  1872. 1, xacook.bin, SIZE=6144
  1873. 1, xabios.bin, SIZE=2048
  1874. [OptionsTextENG]
  1875.     DigiBoardCX     = "Digi C/X Adapter"
  1876.     DigiBoardXem    = "Digi PC/Xem Adapter"
  1877.     DigiBoard8r     = "Digi AccelePort 8 Adapter"
  1878.     IBM8r           = "IBM 8-Port Async, EIA-232 (ISA) Adapter"
  1879.     DigiBoard8i     = "Digi PC/8i Adapter"
  1880.     DigiBoard16i    = "Digi PC/16i Adapter"
  1881.     DigiBoard2Port  = "Digi PC/2e (8K) Adapter"
  1882.     DigiBoard4Port  = "Digi PC/4e (8K) Adapter"
  1883.     DigiBoard8Port  = "Digi PC/8e (8K) Adapter"
  1884.     DigiBoard4e     = "Digi PC/4e Adapter"
  1885.     DigiBoard8e     = "Digi PC/8e Adapter"
  1886.     DigiBoard16e    = "Digi PC/16e Adapter"
  1887.     DigiBoardEPC    = "Digi EPC Adapter"
  1888.     StarGateClusStar = "Digi/StarGate ClusStar Adapter"
  1889. [OptionsTextMCAENG]
  1890.     DigiBoardCX     = "Digi MC C/X Adapter"
  1891.     DigiBoardXem    = "Digi MC/Xem Adapter"
  1892.     DigiBoard8r     = "Digi MC AccelePort 8 Adapter"
  1893.     DigiBoard4i     = "Digi MC/4i Adapter"
  1894.     DigiBoard8i     = "Digi MC/8i Adapter"
  1895.     DigiBoard16i    = "Digi MC/16i Adapter"
  1896.     DigiBoard2Port  = "Digi MC/2e (8K) Adapter"
  1897.     DigiBoard4Port  = "Digi MC/4e (8K) Adapter"
  1898.     DigiBoard8Port  = "Digi MC/8e (8K) Adapter"
  1899.     DigiBoardEPC    = "Digi MC EPC Adapter"
  1900.     StarGateClusStar = "Digi/StarGate MC ClusStar Adapter"
  1901. [FileConstantsENG]
  1902.     ProCaption   = $(ManufacturerDisplayName)" "$(AdapterTitle)" Adapter Setup"
  1903.     ProCancel    = "Cance&l"
  1904.     ProCancelMsg = $(ManufacturerDisplayName)" Adapters and/or Drivers are not correctly installed. "+
  1905.                    "Are you sure you want to cancel copying files?"
  1906.     ProCancelCap = $(ProCaption)
  1907.     ProText1     = "Copying:"
  1908.     ProText2     = "To:"
  1909.     Error         = "Unable to determine proper source disk location; copy cannot be performed."
  1910.     FunctionTitle = $(ProCaption)
  1911.     ProductSoftwareDescription          = $(ManufacturerDisplayName)" FEP 5 Adapter Driver"
  1912.     ProductSoftwareDescriptionHdwDriver = $(ManufacturerDisplayName)" "$(AdapterTitle)" Miniport Driver"
  1913.     ProductSoftwareTitle    = $(ManufacturerDisplayName)" FEP 5 Driver"
  1914.     ProductSoftwareTitleHdwDriver = $(ManufacturerDisplayName)" "$(AdapterTitle)" Miniport Driver"
  1915.    ConfigurationTitle = $(ProCaption)
  1916.    IRQDisableLabel = "Disabled"
  1917.     ProductHardwareDescription      = $(ManufacturerDisplayName)" "$(AdapterTitle)" Adapter"
  1918.     ProductHardwareTitle        = $(ManufacturerDisplayName)" "$(AdapterTitle)" Adapter"
  1919. [DialogConstantsENG]
  1920.     Help        = "&Help"
  1921.     Exit        = "E&xit"
  1922.     OK          = "OK"
  1923.     HelpContext = ""
  1924.     Continue    = "C&ontinue"
  1925.     Cancel      = "C&ancel"
  1926. [UpdatingConfigurationENG]
  1927.     UpdatingConfiguration      = "Updating new configuration..."
  1928. [AbortMessageENG]
  1929.   AbortText  =  "Aborting "$(ManufacturerDisplayName)" Setup. Please reboot the system "+
  1930.                 "to fix the problem."
  1931.