home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 March
/
CHIPCD_3_98.iso
/
software
/
testsoft
/
exchange
/
connect
/
msmcon
/
bin
/
oemsetup.inf
< prev
next >
Wrap
INI File
|
1997-08-25
|
105KB
|
3,135 lines
[Identification]
OptionType = NetAdapter
[PlatformsSupported]
ISA
EISA
MCA
"Jazz-Internal Bus"
[LanguagesSupported]
ENG
[UiVars]
WANRootDir = ""
DefWANRootDir = "C:\WAN"
WANRootDir = $(DefWANRootDir)
!ProductDir = ""
SubroutineInf = $(!STF_WINDOWSSYSPATH)\SUBROUTN.INF
[Registry Constants]
MaskAllAccess = 33554432 ; 0x2000000
PathRegKeyName = "System\CurrentControlSet\Control"+
"\Session Manager\Environment"
[FreeSpaceVars]
STF_VolList = {} ? $(!LIBHANDLE) GetHardDriveLetters
STF_VolFreeList = {} ? $(!LIBHANDLE) GetHardDriveFreeSpace
[Options]
EiconEC
EiconHSI
EiconDPNA
EiconMPNA
EiconIMC
EiconECMC
EiconHSIMC
EiconIMCMC
EiconMPNAMC
[OptionsTextENG]
EiconEC = "Eicon Card (EC)"
EiconHSI = "Eicon Card (HSI)"
EiconDPNA = "Eicon Card (DPNA)"
EiconMPNA = "Eicon Card (MPNA)"
EiconIMC = "Eicon Card (IMC)"
EiconECMC = "Eicon Card (EC/MC)"
EiconHSIMC = "Eicon Card (HSI/MC)"
EiconIMCMC = "Eicon Card (IMC/MC)"
EiconMPNAMC = "Eicon Card (MPNA/MC)"
[LoadSetupLibrary1stTime]
set !LIBHANDLE = ""
LoadLibrary "x" $(!STF_CWDDIR)\setupdll.dll !LIBHANDLE
exit
[LoadSetupLibrary]
set !LIBHANDLE = ""
LoadLibrary "x" $(!STF_WINDOWSSYSPATH)\setupdll.dll !LIBHANDLE
exit
[FreeSetupLibrary]
FreeLibrary $(!LIBHANDLE)
set !LIBHANDLE = ""
exit
[LoadDlgLibrary]
set !DLGHANDLE = ""
LoadLibrary "x" $(!STF_CWDDIR)$(DialogLibrary) !DLGHANDLE
exit
[FreeDlgLibrary]
FreeLibrary $(!WANDLGHANDLE)
set !DLGHANDLE = ""
exit
[LoadServiceLibrary]
set !SVCHANDLE = ""
LoadLibrary "x" $(!STF_WINDOWSSYSPATH)\ECUTL_NT.DLL !SVCHANDLE
exit
[FreeServiceLibrary]
FreeLibrary $(!SVCHANDLE)
set !SVCHANDLE = ""
exit
[IRQ_Level]
IRQ_2 = "2"
IRQ_3 = "3"
IRQ_4 = "4"
IRQ_5 = "5"
IRQ_6 = "6"
IRQ_7 = "7"
;IRQ_8 = "8"
;IRQ_9 = "9"
IRQ_10 = "10"
IRQ_11 = "11"
IRQ_12 = "12"
;IRQ_13 = "13"
IRQ_14 = "14"
IRQ_15 = "15"
[IOAddrChoices]
;
; Only 380 & 390 are valid for NA & DNA
;
;
IO_632 = "0x278", 632
IO_640 = "0x280", 640
IO_888 = "0x378", 888
IO_896 = "0x380", 896
IO_904 = "0x388", 904
IO_912 = "0x390", 912
IO_920 = "0x398", 920
IO_1656= "0x678", 1656
IO_1664 = "0x680", 1664
IO_1912 = "0x778", 1912
IO_1920 = "0x780", 1920
IO_1928 = "0x788", 1928
IO_1936 = "0x790", 1936
IO_1944 = "0x798", 1944
[WinAddrChoices]
WinAdd_786432 = "0xc0000", 786432
WinAdd_794624 = "0xc2000", 794624
WinAdd_802816 = "0xc4000", 802816
WinAdd_811008 = "0xc6000", 811008
WinAdd_819200 = "0xc8000", 819200
WinAdd_827392 = "0xca000", 827392
WinAdd_835584 = "0xcc000", 835584
WinAdd_843776 = "0xce000", 843776
WinAdd_851968 = "0xd0000", 851968
WinAdd_860160 = "0xd2000", 860160
WinAdd_868352 = "0xd4000", 868352
WinAdd_876544 = "0xd6000", 876544
WinAdd_884736 = "0xd8000", 884736
WinAdd_892928 = "0xda000", 892928
WinAdd_901120 = "0xdc000", 901120
WinAdd_909312 = "0xde000", 909312
; Below section is used to interface with the getcardinfo to the
; configurator -> see FileConstants Definition
[Card_Request_Type]
ID_CARD_Number = 0064
ID_CARD_Type = 0065
ID_CARD_Module = 0067
ID_CARD_IO = 0068
ID_CARD_IRQ = 006A
ID_CARD_MemSeg = 006E
ID_CARD_NbrPorts = 006B
ID_CARD_AutoActPort = 006C
ID_CARD_LLCSupport = 00CA
ID_CARD_Slot = 006D
[FileConstants]
Networkstr = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards"
NetworkCardKeyName = $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards"
WANDialogLibrary = "WAN.SRL"
NTN_ServiceBase = "System\CurrentControlSet\Services"
UtilityInf = $(!STF_WINDOWSSYSPATH)"\UTILITY.INF"
SubroutineInf = $(!STF_WINDOWSSYSPATH)"\SUBROUTN.INF"
DialogLibrary = "ECSDLC.SRL"
ParamInf = "NCPARAM.INF"
SoftwareType = "driver"
Exit_Code = 0
NetEventDLL = "%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\Drivers\Ecnb.sys"
IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll"
Manufacturer = "Eicon"
ProductMajorVersion = "3"
ProductMinorVersion = "1"
ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
ProductSoftwareName = "Ecnb"
ProductSoftwareTitle = "EiconCard Driver"
ProductSoftwareImagePath = "\SystemRoot\System32\Drivers\Ecnb.sys"
; The following WAN definitions must match with the ones defined in
; the oemsetnt.inf used to install the WAN Configurator software,
; otherwise software detection will not be possible
WanProductSoftwareName = "WAN Services"
WanProductSoftwareTitle = "WAN Services for Windows NT"
WanProductMajorVersion = "3"
WanProductMinorVersion = "1"
WanProductVersion = $(WanProductMajorVersion)"."$(WanProductMinorVersion)
WanProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(WanProductSoftwareName)"\CurrentVersion"
WanProductSoftwareDescription = "WAN Services for Windows NT"
WanSoftwareType = "services"
;NetRuleSoftwareType = "ecnbSys ndisDriver ecnbDriver"
NetRuleSoftwareType = "ecnbSys ecnbDriver"
NetRuleSoftwareUse = $(SoftwareType)
NetRuleSoftwareBindForm = """EcnbSys"" yes no container"
;NetRuleSoftwareBindForm = """EcnbSys"" yes yes simple"
NetRuleSoftwareClass = {"ecnbDriver basic"}
ProductHardwareName = "Ecnb"
ProductHardwareEiconECTitle = "Eicon Card (EC)"
ProductHardwareEiconHSITitle = "Eicon Card (HSI)"
ProductHardwareEiconDPNATitle = "Eicon Card (DPNA)"
ProductHardwareEiconMPNATitle = "Eicon Card (MPNA)"
ProductHardwareEiconIMCTitle = "Eicon Card (IMC)"
ProductHardwareEiconNATitle = "Eicon Card (NA)"
;ProductHardwareEiconDNATitle = "Eicon Card (DNA)"
ProductHardwareEiconECMCTitle = "Eicon Card (EC/MC)"
ProductHardwareEiconHSIMCTitle = "Eicon Card (HSI/MC)"
ProductHardwareEiconIMCMCTitle = "Eicon Card (IMC/MC)"
ProductHardwareEiconMPNAMCTitle = "Eicon Card (MPNA/MC)"
NetRuleHardwareEiconECType = "eiconEC eiconECAdapter"
NetRuleHardwareEiconHSIType = "eiconHSI eiconHSIAdapter"
NetRuleHardwareEiconDPNAType = "eiconDPNA eiconDPNAAdapter"
NetRuleHardwareEiconMPNAType = "eiconMPNA eiconMPNAAdapter"
NetRuleHardwareEiconIMCType = "eiconIMC eiconIMCAdapter"
NetRuleHardwareEiconNAType = "eiconNA eiconNAAdapter"
;NetRuleHardwareEiconDNAType = "eiconDNA eiconDNAAdapter"
NetRuleHardwareEiconECMCType = "eiconECMC eiconECMCAdapter"
NetRuleHardwareEiconHSIMCType = "eiconHSIMC eiconHSIMCAdapter"
NetRuleHardwareEiconIMCMCType = "eiconIMCMC eiconIMCMCAdapter"
NetRuleHardwareEiconMPNAMCType = "eiconMPNAMC eiconMPNAMCAdapter"
NetRuleHardwareBindForm = " yes yes container"
NetRuleHardwareEiconECClass = {"eiconECAdapter basic"}
NetRuleHardwareEiconHSIClass = {"eiconHSIAdapter basic"}
NetRuleHardwareEiconDPNAClass = {"eiconDPNAAdapter basic"}
NetRuleHardwareEiconMPNAClass = {"eiconMPNAAdapter basic"}
NetRuleHardwareEiconIMCClass = {"eiconIMCAdapter basic"}
NetRuleHardwareEiconNAClass = {"eiconNAAdapter basic"}
;NetRuleHardwareEiconDNAClass = {"eiconDNAAdapter basic"}
NetRuleHardwareEiconECMCClass = {"eiconECMCAdapter basic"}
NetRuleHardwareEiconHSIMCClass = {"eiconHSIMCAdapter basic"}
NetRuleHardwareEiconIMCMCClass = {"eiconIMCMCAdapter basic"}
NetRuleHardwareEiconMPNAMCClass = {"eiconMPNAMCAdapter basic"}
ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
;CardChoiceList = ^(CardChoices,1)
!CardRequestList = ^(Card_Request_Type,1)
WinBaseAddressList = ^(WinAddrChoices, 1)
WinBaseAddressValue = ^(WinAddrChoices, 2)
IOBaseAddressList = ^(IOAddrChoices, 1)
IOBaseAddressValue = ^(IOAddrChoices, 2)
IRQ_List = ^(IRQ_Level, 1)
WANRootDir = $(!STF_WINDOWSSYSPATH)
[GeneralConstants]
from = ""
to = ""
ExitCodeOk = 0
ExitCodeCancel = 1
ExitCodeFatal = 2
KeyNull = ""
MAXIMUM_ALLOWED = 33554432
RegistryErrorIndex = NO_ERROR
KeyProduct = ""
KeyParameters = ""
TRUE = 1
FALSE = 0
NoTitle = 0
ExitState = "Active"
OldVersionExisted = $(FALSE)
DriverPath = $(!STF_NTPATH)\drivers
[FileConstantsENG]
ProCaption = "WAN Services for NT Setup"
ProCancel = "Cancel"
ProCancelMsg = "Windows NT Networking is not correctly installed. "+
"Are you sure you want to cancel copying files?"
ProCancelCap = "Network Setup Message"
ProText1 = "Copying:"
ProText2 = "To:"
FunctionTitleEiconEC = "Eicon Card EC/PC Adapter"
FunctionTitleEiconHSI = "Eicon Card HSI/PC Adapter"
FunctionTitleEiconDPNA = "Eicon Card DPNA/PC Adapter"
FunctionTitleEiconMPNA = "Eicon Card MPNA/PC Adapter"
FunctionTitleEiconIMC = "Eicon Card IMC/PC Adapter"
FunctionTitleEiconNA = "Eicon Card NA/PC Adapter"
;FunctionTitleEiconDNA = "Eicon Card DNA/PC Adapter"
FunctionTitleEiconECMC = "Eicon Card EC/MC Adapter"
FunctionTitleEiconHSIMC = "Eicon Card HSI/MC Adapter"
FunctionTitleEiconIMCMC = "Eicon Card IMC/MC Adapter"
FunctionTitleEiconMPNAMC = "Eicon Card MPNA/MC Adapter"
ProductSoftwareDescription = "Eicon Card Driver"
ProductHardwareEiconECDescription = "Eicon Card EC/PC Adapter"
ProductHardwareEiconHSIDescription = "Eicon Card HSI/PC Adapter"
ProductHardwareEiconDPNADescription = "Eicon Card DPNA/PC Adapter"
ProductHardwareEiconMPNADescription = "Eicon Card MPNA/PC Adapter"
ProductHardwareEiconIMCDescription = "Eicon Card IMC/PC Adapter"
ProductHardwareEiconNADescription = "Eicon Card NA/PC Adapter"
;ProductHardwareEiconDNADescription = "Eicon Card DNA/PC Adapter"
ProductHardwareEiconECMCDescription = "Eicon Card EC/MC Adapter"
ProductHardwareEiconHSIMCDescription = "Eicon Card HSI/MC Adapter"
ProductHardwareEiconIMCMCDescription = "Eicon Card IMC/MC Adapter"
ProductHardwareEiconMPNAMCDescription = "Eicon Card MPNA/MC Adapter"
[DialogConstantsENG]
Help = "&Help"
Exit = "Cancel"
OK = "OK"
HelpContext = ""
Continue = "Continue"
Cancel = "Cancel"
[date]
Now = {} ? $(!LIBHANDLE) GetSystemDate
[ShellCommands]
install LoadSetupLibrary1stTime ; happens to be %SystemRoot%\system32
; if not set otherwise in this script
ifstr(i) $(STF_RANFROM) != "" ; but we want it to point to where we
set !STF_CWDDIR = $(STF_RANFROM) ; ran our own (WAN) setup.exe
endif
set-subst LF = "\n"
read-syms GeneralConstants
read-syms FileConstants
install FreeSetupLibrary
; Got some unknown problem here, load library directly seems to work
; if time permits, investigate later.
; install LoadDlgLibrary
; Append a trailing backslash if necessary
Split-String $(!SOURCEDIR) "\" _DirSplit
QueryListSize _DirSize $(_DirSplit)
ifstr(i) *( $(_DirSplit), $(_DirSize) ) != "\"
set !SOURCEDIR = $(!SOURCEDIR)"\"
endif
set !DLGHANDLE = ""
LoadLibrary "" $(!SOURCEDIR)"WAN.SRL" !DLGHANDLE
ifstr(i) $(!DLGHANDLE) == ""
shell $(!STF_WINDOWSSYSPATH)"\SUBROUTN.INF" SetupMessage $(!STF_LANGUAGE) +
"WARNING" +
"Couldn't load "$(!DialogLibrary)"! This library contains all"$(!LF)+
"the dialogs needed by the "WAN Services for Windows NT" Setup program."$(!LF)+
$(!LF)+
"Please find this file and copy it into the same directory"$(!LF)+
"from which you ran Setup."
goto End
endif
DestPath =+
shell "" DoDestPath
set Status = $($R0)
Return $(Status)
[DoDestPath]
BeginDoDestPath =+
set Status = STATUS_FAILED
read-syms FileConstants
read-syms UiVars
detect UiVars
; must be after UIVARS
set !WANRootDir = $(WANRootDir)
read-syms DestPathDlg
ui start $(DlgTemplate) $(!DLGHANDLE)
ifstr(i) $(DLGEVENT) == "Continue"
;
; Check path validity.
;
install LoadSetupLibrary
ifstr(i) $(!LIBHANDLE) != ""
LibraryProcedure IsFullPath $(!LIBHANDLE) +
CheckPathFullPathSpec $(EditTextOut)
endif
ifstr(i) $(IsFullPath) == "No"
shell $(!STF_WINDOWSSYSPATH)"\SUBROUTN.INF" SetupMessage $(!STF_LANGUAGE) +
"NONFATAL" +
""""$(EditTextOut)""" is not a valid path! Please try again."
ui pop 1
goto BeginDoDestPath
endif
;
; Check that there's enough disk space on the target drive.
;
; read-syms TreeSizes
detect FreeSpaceVars
install FreeSetupLibrary
GetDriveInPath WANDrive $(EditTextOut)
ForListDo $(STF_VolList)
ifstr(i) $($) == $(WANDrive)
set VolSpaceFree = *( $(STF_VolFreeList), $(#) )
endif
EndForListDo
ifint $(VolSpaceFree) < 5
shell $(!STF_WINDOWSSYSPATH)"\SUBROUTN.INF" SetupMessage $(!STF_LANGUAGE) STATUS +
"Not enough room for the WAN Services on drive "+
$(WANDrive)" ("5") megs needed, "+
$(VolSpaceFree)" available)."$(!LF)$(!LF)+
"Click OK to try a path on a different drive."
ui pop 1
goto BeginDoDestPath
endif
set Status = STATUS_SUCCESSFUL
set !WANRootDir = $(EditTextOut)
set !ProductDir = $(!WANRootDir)"\"
else-ifstr(i) $(DLGEVENT) == "Back"
set Status = STATUS_FAILED
endif
ui pop 1
return $(Status)
[FileDependentDlgENG]
DlgType = "MultiCombo"
DlgTemplate = "WD"
Caption = $(FunctionTitle$(Option))
ComboCardLabel = "&Card Selection"
Combo1Label = "&IRQ Level:"
Combo2Label = "&Memory Base Address:"
Combo3Label = "I&O Port Address:"
Radio1 = "&Primary"
Radio2 = "&Secondary"
;ComboCardList = $(CardChoiceList)
;ComboCardOut = $(CardType)
Combo1List = $(IRQ_List)
Combo1Out = $(IRQLevel)
Combo2List = $(WinBaseAddressList)
Combo2Out = $(WinBaseAddress)
Combo3List = $(IOBaseAddressList)
Combo3Out = $(IOBaseAddress)
;ComboListItemsIn = {Combo1List, Combo2List, Combo3List}
;ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out}
;ComboListItemsIn = { ComboCardList }
;ComboListItemsOut = { ComboCardOut }
EditTextIn = ""
EditTextLim = ""
NotifyFields = {NO, NO, NO}
;HelpContext = $(!IDH_DB_OEMNADWD_INS)
[DoAskEiconDest]
set Status = STATUS_FAILED
; set Src = $($0)
set Src = "C:\EICON"
set DriveToFree = ""
read-syms AskEiconDestStrings$(!STF_LANGUAGE)
askdest = +
read-syms DisketteDlg$(!STF_LANGUAGE)
ui start "Diskette"
ifstr(i) $(DLGEVENT) == "CONTINUE"
LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(EditTextOut)
ifstr(i) $(IsFullPath) == "NO"
LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(EditTextOut)
ifstr(i) $(STATUS) == "ERROR"
Shell $(SubroutineInf), SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(String1)
goto askdest
else-ifstr(i) $(STATUS) == "NOT-UNC"
Shell $(SubroutineInf), SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(String2)
goto askdest
else-ifstr(i) $(STATUS) == "UNC-NOFREEDRIVE"
Shell $(SubroutineInf), SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(String3)
goto askdest
else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
Shell $(SubroutineInf), SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(String4)
goto askdest
else
set Src = $(STATUS)
GetDriveInPath DriveToFree $(Src)
endif
else
set Src = $(EditTextOut)
endif
ui pop 1
LibraryProcedure STATUS, $(!LIBHANDLE), AppendBackSlash $(Src)
ifstr(i) $(STATUS) == "ERROR"
goto finish_DoAskDest
else
set Src = $(STATUS)
set Status = STATUS_SUCCESSFUL
goto finish_DoAskDest
endif
else-ifstr(i) $(DLGEVENT) == "BACK"
ui pop 1
set Status = STATUS_USERCANCEL
goto finish_DoAskDest
else
ui pop 1
goto finish_DoAskDest
endif
finish_DoAskDest = +
Return $(Status) $(Src) $(DriveToFree)
[AskEiconDestStringsENG]
String1 = "Error processing path entered. Please reenter the path."
String2 = "Setup requires a full path where the Eicon WAN server files will be "+
"located. "+
"Please reenter the path."
String3 = "Setup failed to find a free drive to use to connect to the "+
"server specified. Please free up some drives and try again."
String4 = "Setup failed to connect to the server specified. Please reenter "+
"the path."
[DisketteDlgENG]
DlgType = "Edit"
DlgTemplate = "DISKETTE"
Caption = "WAN Server Software for Windows/NT Setup"
DlgText = "The WAN Server files will be installed in the "+
"directory shown below."$(!LF)$(!LF)+
"To install the files somewhere else, edit the path."
Continue = "Continue"
Cancel = "Cancel"
Edit1Label = ""
EditTextIn = $(Src)
EditFocus = "ALL"
[Identify]
read-syms Identification
set Status = STATUS_SUCCESSFUL
set Identifier = $(OptionType)
set Media = #("Source Media Descriptions", 1, 1)
Return $(Status) $(Identifier) $(Media)
[ReturnOptions]
set Status = STATUS_FAILED
set OptionList = {}
set OptionTextList = {}
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
ifstr(i) $($1) == ""
goto returnoptions
endif
set PlatformList = ^(PlatformsSupported, 1)
Ifcontains(i) $($1) in $(PlatformList)
goto returnoptions
else
set Status = STATUS_NOTSUPPORTED
goto finish_ReturnOptions
endif
else
set Status = STATUS_NOLANGUAGE
goto finish_ReturnOptions
endif
returnoptions = +
set OptionList = ^(Options, 1)
set OptionTextList = ^(OptionsText$($0), 1)
set Status = STATUS_SUCCESSFUL
finish_ReturnOptions = +
Return $(Status) $(OptionList) $(OptionTextList)
[InstallOption]
set Option = $($1)
set SrcDir = $($2)
set AddCopy = $($3)
set DoCopy = $($4)
set DoConfig = $($5)
set LanguageList = ^(LanguagesSupported, 1)
set !SOURCEDIR = $(SrcDir)
; Shell $(SubroutineInf), SetupMessage, $(!STF_LANGUAGE), "STATUS" $(Option)
; !Cardselected to be used with addcard from ecutl_nt.dll
ifstr(i) $(Option) == "EiconEC"
Set !CardSelected = "EC/PC"
Set !SystemType = "ISA"
else-Ifstr(i) $(Option) == "EiconHSI"
Set !CardSelected = "HSI/PC"
Set !SystemType = "ISA"
else-Ifstr(i) $(Option) == "EiconDPNA"
Set !CardSelected = "DPNA/PC"
Set !SystemType = "ISA"
else-Ifstr(i) $(Option) == "EiconMPNA"
Set !CardSelected = "MPNA/PC"
Set !SystemType = "ISA"
else-Ifstr(i) $(Option) == "EiconIMC"
Set !CardSelected = "IMC/PC"
Set !SystemType = "ISA"
else-Ifstr(i) $(Option) == "EiconECMC"
Set !CardSelected = "EC/MC"
Set !SystemType = "MCA"
else-Ifstr(i) $(Option) == "EiconHSIMC"
Set !CardSelected = "HSI/MC"
Set !SystemType = "MCA"
else-Ifstr(i) $(Option) == "EiconIMCMC"
Set !CardSelected = "IMC/MC"
Set !SystemType = "MCA"
else-Ifstr(i) $(Option) == "EiconMPNAMC"
Set !CardSelected = "MPNA/MC"
Set !SystemType = "MCA"
endif
Shell $(UtilityInf), GetBusTypeNum
ifstr(i) $(!STF_BUSTYPE) == "MCA"
ifstr(i) $(!SystemType) == "MCA"
set BusType = "CARDMC"
else
Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
"You can not install such adapter due to the bus type of your system."
set CommonStatus = STATUS_NO_EFFECT
goto end
endif
else
ifstr(i) $(!SystemType) == "ISA"
set BusType = "CARDPC"
else
Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
"You can not install such adapter due to the bus type of your system."
set CommonStatus = STATUS_NO_EFFECT
goto end
endif
endif
Ifcontains(i) $($0) NOT-IN $(LanguageList)
Return STATUS_NOLANGUAGE
endif
set-subst LF = "\n"
read-syms GeneralConstants
read-syms FileConstants
; Shell $(UtilityInf), GetBindingInfo, "DEC"
; ifint $($ShellCode) != $(!SHELL_CODE_OK)
; Debug-Output "ShellCode error: cannot get an error string."
; goto ShellCodeError
; endif
; set NetRuleSoftwareBindable = $($R1)
set NetRuleSoftwareBindable = {+
"ecnbDriver eiconECAdapter non exclusive 100",+
"ecnbDriver eiconHSIAdapter non exclusive 100",+
"ecnbDriver eiconDPNAAdapter non exclusive 100",+
"ecnbDriver eiconMPNAAdapter non exclusive 100",+
"ecnbDriver eiconIMCAdapter non exclusive 100",+
"ecnbDriver eiconNAAdapter non exclusive 100",+
; "ecnbDriver eiconDNAAdapter non exclusive 100",+
"ecnbDriver eiconECMCAdapter non exclusive 100",+
"ecnbDriver eiconHSIMCAdapter non exclusive 100",+
"ecnbDriver eiconIMCMCAdapter non exclusive 100",+
"ecnbDriver eiconMPNAMCAdapter non exclusive 100" +
}
read-syms DialogConstants$(!STF_LANGUAGE)
ifstr(i) $(!NTN_Origination) == "NCPA"
set Continue = "OK"
endif
read-syms FileConstants$(!STF_LANGUAGE)
detect date
set-title $(FunctionTitle$(Option))
set to = Begin
set from = Begin
set CommonStatus = STATUS_SUCCESSFUL
EndWait
Begin = +
Set ActivateDetection = FALSE
Ifstr(i) $(!NTN_InstallMode) == deinstall
set StartLabel = removeadapter
else-Ifstr(i) $(!NTN_InstallMode) == Update
set StartLabel = UpgradeSoftware
else-Ifstr(i) $(!NTN_InstallMode) == bind
set StartLabel = bindingadapter
else-Ifstr(i) $(!NTN_InstallMode) == configure
;mjt Set ActivateDetection = TRUE
set StartLabel = configureadapter
Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
Debug-Output "Cannot configure the software component."
Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
set Error = $($R0)
set from = end
set to = end
goto nonfatalinfo
endif
; Install option
else
set StartLabel = installadapter
set OEM_ABANDON_OPTIONS = {}
set OEM_ABANDON_SOFTWARE = FALSE
set OEM_ABANDON_ON = TRUE
;mjt Set ActivateDetection = TRUE
endif
Debug-Output "OEMNAD0.INF: =================================================="
Debug-Output "OEMNAD0.INF: STF_CWDIR is: "$(!STF_CWDIR)
Debug-Output "OEMNAD0.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
Debug-Output "OEMNAD0.INF: Option is: "$(Option)
Debug-Output "OEMNAD0.INF: !STF_NCDETECT is: "$(!STF_NCDETECT)
Debug-Output "OEMNAD0.INF: !STF_NCOPTION is: "$(!STF_NCOPTION)
Debug-Output "OEMNAD0.INF: !STF_NCDETCARD is: "$(!STF_NCDETCARD)
Debug-Output "OEMNAD0.INF: !STF_NCDETINFO is: "$(!STF_NCDETINFO)
Debug-Output "OEMNAD0.INF: =================================================="
Set DetectedCard = FALSE
Ifstr(i) $(ActivateDetection) != TRUE
Goto skipdetection
Endif
Set TypeList = {{IRQ,IRQ_List,IRQLevel},+
{IOADDR, IOADDR_Addr_List, IOBaseAddress},+
{MEMADDR, MemBaseAddrDecList MemBaseAddrDec}}
Debug-Output "OEMNAD0.INF: Calling Param_BuildTypeLists"
Shell $(ParamInf) Param_BuildTypeLists $(Option) $(TypeList)
Set Status = $($R0)
ifstr(i) $(Status) != STATUS_SUCCESSFUL
Goto fataldetect
Endif
Debug-Output "OEMNAD0.INF: Calling Param_SetDefaults"
Shell $(ParamInf) Param_SetDefaults {}
Set IOADDR_Base_List = {1,2}
Shell $(ParamInf) HexListFromDecList $(MemBaseAddrDecList)
Set MemBaseAddrHexList = $($R0)
Ifstr(i) $(!STF_NCDETECT) == YES
Ifstr(i) $(!STF_NCOPTION) == $(Option)
Set DetectedCard = TRUE
Debug-Output "OEMNADD1.INF: Setting DetectedCard to TRUE"
Endif
Endif
skipdetection =+
set from = $(fatal)
set to = $(fatal)
goto $(StartLabel)
installadapter = +
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
CloseRegKey $(KeyProduct)
ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
$(ProductVersion)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
goto end
else
Shell $(UtilityInf), CardExistedDlg
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
ifstr(i) $($R1) != "OK"
goto end
endif
set OldVersionExisted = $(TRUE)
endif
endif
ifint $(OldVersionExisted) == $(FALSE)
ifstr(i) $(!NTN_InstallMode) == "install"
Ifstr(i) $(DoCopy) == "YES"
Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Goto ShellCodeError
Else-Ifstr(i) $($R0) == STATUS_FAILED
Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
Goto fatal
Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
Goto successful
Endif
Set SrcDir = $($R1)
Endif
shell "" ShellCommands
ifstr(i) $($R0) == "STATUS_FAILED"
shell $(!STF_WINDOWSSYSPATH)"\SUBROUTN.INF" SetupMessage $(!STF_LANGUAGE) +
"STATUS", "Setup aborted by user"
Return $($R0)
endif
install "Install-Option"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
endif
endif
Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName), +
$(ProductSoftwareName), +
$(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
$(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
$(NetEventDLL)
Set OEM_ABANDON_SOFTWARE = TRUE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Registry error: add software components"
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
CloseRegKey $($R4)
CloseRegKey $($R5)
goto fatalregistry
endif
set SoftProductKey = $($R1)
Set SoftNetRuleKey = $($R2)
Set SoftServiceKey = $($R3)
Set SoftParameterKey = $($R4)
Set SoftLinkageKey = $($R5)
set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
{MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
{MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
{Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
{RootPath,$(NoTitle),$(!REG_VT_SZ),$(!WANRootDir)},+
{ConfigPath,$(NoTitle),$(!REG_VT_SZ),$(!WANRootDir)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Resgitry error: add value list."
CloseRegKey $(SoftProductKey)
CloseRegKey $(SoftNetRuleKey)
CloseRegKey $(SoftServiceKey)
CloseRegKey $(SoftParameterKey)
CloseRegKey $(SoftLinkageKey)
goto fatalregistry
endif
set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
{use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
{bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
{bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Shell $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
CloseRegKey $(SoftProductKey)
CloseRegKey $(SoftNetRuleKey)
CloseRegKey $(SoftServiceKey)
CloseRegKey $(SoftParameterKey)
CloseRegKey $(SoftLinkageKey)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Resgitry error: add value list."
goto fatalregistry
endif
endif
shell "" GetWANSoftwarePath
set WANRootDir = $($R1)
set ConfigFilePath = $($R1)
set ConfigFileName = $($R1)"\eccfg.eic"
set !SVCHANDLE = ""
; Append a trailing backslash if necessary
Split-String $(!SOURCEDIR) "\" _DirSplit
QueryListSize _DirSize $(_DirSplit)
ifstr(i) *( $(_DirSplit), $(_DirSize) ) != "\"
set !SOURCEDIR = $(!SOURCEDIR)"\"
endif
LoadLibrary "" $(!STF_WINDOWSSYSPATH)"\ECUTL_NT.DLL" !SVCHANDLE
ifstr(i) $(!SVCHANDLE) == ""
Shell $(SubroutineInf), SetupMessage, $(!STF_LANGUAGE), "STATUS",+
"Could not load the required missing ECUTL_NT.DLL file."
; shell $(SubroutineInf) SetupMessage $(!STF_LANGUAGE) +
; "WARNING" +
; "Couldn't load the DLL file (ECUTL_NT.DLL)!. This DLL contains all"$(!LF)+
; "the services calls needed to configure the WAN Services for Windows NT"$(!LF)+
; "software."$(!LF)+
; "Please find this file and copy it into the same directory"$(!LF)+
; "from which you ran Setup."
set CommonStatus = STATUS_NO_EFFECT
goto End
endif
LibraryProcedure CardNumber $(!SVCHANDLE) Eccfg_GetLastCard $(ConfigFileName)
set CardNum = $(CardNumber)
set-add ConvertCard = $(CardNum), $(CardNum)
set-sub ConvertCard = $(ConvertCard), $(CardNum)
set !CardsBefore = $(ConvertCard)
ifint $(!CardsBefore) < 0
set !CardsBefore = 0
endif
ifint $(!CardsBefore) >= 6
Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
"Only 6 EiconCards can be configured."
set CommonStatus = STATUS_NO_EFFECT
goto end
endif
LibraryProcedure Result $(!SVCHANDLE) Eccfg_AddCard $(ConfigFileName) $(BusType) $(!CardSelected)
LibraryProcedure DateStringBefore $(!SVCHANDLE) Eccfg_GetIniFileDateTime $(ConfigFileName)
RunProgram ExitCode "" "" $(ConfigFilePath)"\eccfgwnt.exe" $(ConfigFileName) "/DISABLE_DELETE /DSA /DO /DN"
LibraryProcedure DateStringAfter $(!SVCHANDLE) Eccfg_GetIniFileDateTime $(ConfigFileName)
LibraryProcedure CardNumber $(!SVCHANDLE) Eccfg_GetLastCard $(ConfigFileName)
set CardNum = $(CardNumber)
set-add ConvertCard = $(CardNum), $(CardNum)
set-sub ConvertCard = $(ConvertCard), $(CardNum)
; Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
; "card after config = "$(ConvertCard)
LibraryProcedure Result $(!SVCHANDLE) Eccfg_CardExists $(ConfigFileName) $(ConvertCard)
; Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
; "Cardexist = "$(Result)
ifstr(i) $(Result) == "0"
; Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
; "remove card section"
LibraryProcedure Result $(!SVCHANDLE) Eccfg_DeleteCard $(ConfigFileName) $(ConvertCard)
endif
; has to be here need to remove the card which was added manually by the setup
; program
ifstr(i) $(DateStringBefore) == $(DateStringAfter)
set CommonStatus = STATUS_NO_EFFECT
goto end
endif
; Recheck if card was saved or not to get right number of card
LibraryProcedure CardNumber $(!SVCHANDLE) Eccfg_GetLastCard $(ConfigFileName)
set CardNum = $(CardNumber)
set-add ConvertCard = $(CardNum), $(CardNum)
set-sub ConvertCard = $(ConvertCard), $(CardNum)
; Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
;"Recheck Card = "$(ConvertCard)
set !CardsAfter = $(ConvertCard)
set !MaxCards = $(ConvertCard)
set-add !MaxCards = $(!MaxCards), 1
set !MyIndex = 1
set-add !MyIndex = $(!MyIndex), $(!CardsBefore)
set StartIndex = $(!CardsBefore)
set EndIndex = $(!CardsAfter)
; configuration starts
set StartCard = 1
set !CardIndex = $(StartCard)
set EndCard = $(!CardsBefore)
set-add EndCard = $(EndCard), 1
;if first time but card was not saved, do nothing but exit
ifint $(!CardsAfter) == 0
; Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
;"Card was not saved at first time"
set CommonStatus = STATUS_NO_EFFECT
goto end
endif
; if first time should not go to configure add since there is no cards
ifint $(!CardsBefore) == 0
goto AddCards
endif
ConfigureAdd =+
set CardType = ""
LibraryProcedure CardType $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),2)
ifstr(i) $(CardType) == "EC/PC"
Set !CardToConfigure = "EiconEC"
else-Ifstr(i) $(CardType) == "HSI/PC"
Set !CardToConfigure = "EiconHSI"
else-Ifstr(i) $(CardType) == "DPNA/PC"
Set !CardToConfigure = "EiconDPNA"
else-Ifstr(i) $(CardType) == "MPNA/PC"
Set !CardToConfigure = "EiconMPNA"
else-Ifstr(i) $(CardType) == "IMC/PC"
Set !CardToConfigure = "EiconIMC"
else-Ifstr(i) $(CardType) == "EC/MC"
Set !CardToConfigure = "EiconECMC"
else-Ifstr(i) $(CardType) == "HSI/MC"
Set !CardToConfigure = "EiconHSIMC"
else-Ifstr(i) $(CardType) == "IMC/MC"
Set !CardToConfigure = "EiconIMCMC"
else-Ifstr(i) $(CardType) == "MPNA/MC"
Set !CardToConfigure = "EiconMPNAMC"
endif
set Option = $(!CardToConfigure)
ifstr(i) $(!SystemType) == "ISA"
; Update configuration registry for all possible cards
LibraryProcedure CardIO $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),4)
LibraryProcedure CardIRQ $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),5)
LibraryProcedure CardMemSeg $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),6)
set IRQLevel = $(CardIRQ)
set MyIOBaseChoice = $(CardIO)
set MyMemBaseAddr = $(CardMemSeg)"0"
; set-hextodec IRQLevel = $(IRQLevel)
set-hextodec MyMemBaseAddr = $(MyMemBaseAddr)
set-hextodec MyIOBaseChoice = $(MyIOBaseChoice)
else
LibraryProcedure CardSlot $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),10)
endif
; scan cards starts here
Set ScanIndex = 1
ScanConfigureAddLoop =+
ifint $(ScanIndex) < 10
set IndexStr = "0"$(ScanIndex)
else
set IndexStr = $(ScanIndex)
endif
set SearchCardStr = "SYSTEM\CurrentControlSet\Services\Ecnb"$(IndexStr)"\Parameters"
OpenRegKey $(!REG_H_LOCAL) "" $(SearchCardStr) $(MAXIMUM_ALLOWED) KeyCurVer
Ifstr $(KeyCurVer) == $(KeyNull)
set-add ScanIndex = $(ScanIndex), 1
Ifint $(ScanIndex) < 99
goto ScanConfigureAddLoop
endif
endif
GetRegValue $(KeyCurVer) "CardNumber" CardNumberValueStr
ifstr(i) $(CardNumberValueStr) != ""
set CardNumberValue = *($(CardNumberValueStr),4)
endif
; Found same card index number with the configurator
Ifint $(CardNumberValue) == $(!CardIndex)
GetRegValue $(KeyCurVer) "CardIndex" ScanIndexValueStr
ifstr(i) $(ScanIndexValueStr) != ""
set ScanIndexValue = *($(ScanIndexValueStr),4)
endif
else
set-add ScanIndex = $(ScanIndex), 1
Ifint $(ScanIndex) < 99
goto ScanConfigureAddLoop
endif
endif
Ifint $(ScanIndex) > 99
Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
"No such card"
goto end
endif
ifint $(ScanIndexValue) < 10
set comp = "0"
set compstr = $(comp)$(ScanIndexValue)
else
set compstr = $(ScanIndexValue)
endif
; scan cards ends here
set CardToConfigureStr = $(compstr)
set EcnbKeyName = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$(CardToConfigureStr)
OpenRegKey $(!REG_H_LOCAL) "" $(EcnbKeyName) $(MAXIMUM_ALLOWED) KeyProduct
; Be careful not to blew up the data of the service name
; reminder = to also modify subkey in 01
Ifstr $(KeyProduct) != $(KeyNull)
set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
{Title,$(NoTitle),$(!REG_VT_SZ),"["$(compstr)"] "$(ProductHardware$(Option)Title)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
{ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)}}
; {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
;; {CallName,$(NoTitle),$(!REG_VT_SZ),$($R1)},+
; {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(!STF_WINDOWSSYSPATH)"\utility.inf", AddValueList, $(KeyProduct), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
endif
OpenRegKey $(!REG_H_LOCAL) "" $(EcnbKeyName)"\NetRules" $(MAXIMUM_ALLOWED) KeyProdRules
Ifstr $(KeyProdRules) != $(KeyNull)
set AdapterNumber = $(CardToConfigureStr)
set Option = $(!CardToConfigure)
set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardware$(Option)Type)},+
{bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardware$(Option)Class)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Shell $(!STF_WINDOWSSYSPATH)"\utility.inf", AddValueList, $(KeyProdRules), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
endif
Debug-Output "INF: Shelling to FindService"
Shell $(!STF_WINDOWSSYSPATH)"\utility.inf" FindService, $(KeyProduct)
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "INF: FindService shell failure"
Goto ShellCodeError
Endif
; Ifstr(i) $($R0) != "STATUS_SUCCESSFUL"
; Debug-Output "INF: FindService Shell error: "$($R0)
; Goto fatalregistry
; endif
set KeyParameters = $($R2)
CloseRegKey $($R1)
Ifstr $(KeyParameters) == $(KeyNull)
set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
Debug-Output "Cannot find component service"
goto fatalregistry
endif
;Set BusType = "999"
;Set BusTypeNum = 999
; should not write cardindex value
; must keep whatever before
ifstr(i) $(!SystemType) == "ISA"
set NewValueList = {+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
; {BusType,$(NoTitle),$(!REG_VT_SZ),$(BusType)},+
; {BusTypeNum,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
{CardType,$(NoTitle),$(!REG_VT_SZ),$(!CardToConfigure)},+
{CardNumber,$(NoTitle),$(!REG_VT_DWORD),$(!CardIndex)},+
; {CardIndex,$(NoTitle),$(!REG_VT_DWORD),$(!CardIndex)},+
{InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQLevel)},+
{IOBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MyIOBaseChoice)},+
{MemoryMappedBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MyMemBaseAddr)}+
}
else
set NewValueList = {+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
; {BusType,$(NoTitle),$(!REG_VT_SZ),$(BusType)},+
; {BusTypeNum,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
{CardType,$(NoTitle),$(!REG_VT_SZ),$(!CardToConfigure)},+
{CardNumber,$(NoTitle),$(!REG_VT_DWORD),$(!CardIndex)},+
; {CardIndex,$(NoTitle),$(!REG_VT_DWORD),$(!CardIndex)},+
{SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(CardSlot)}}
endif
Shell $(!STF_WINDOWSSYSPATH)"\utility.inf", AddValueList, $(KeyParameters), $(NewValueList)
CloseRegKey $(KeyParameters)
CloseRegKey $(KeyProduct)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set-add !CardIndex = $(!CardIndex), 1
Ifint $(!CardIndex) < $(EndCard)
goto ConfigureAdd
endif
; configuration ends
; Only add cards which are new.
AddCards =+
; only add cards if users did a save in the configurator
ifint $(!CardsAfter) > $(!CardsBefore)
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
CloseRegKey $(KeyProduct)
ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
$(ProductVersion)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
goto end
else
; Shell $(UtilityInf), CardExistedDlg
; ifint $($ShellCode) != $(!SHELL_CODE_OK)
; Debug-Output "ShellCode error: cannot get an error string."
; goto ShellCodeError
; endif
; ifstr(i) $($R1) != "OK"
; goto end
; endif
set OldVersionExisted = $(TRUE)
endif
endif
Ifstr(i) $(DetectedCard) != TRUE
Goto adaptersetup
Endif
;; not used ...
StartWait
Shell $(ParamInf) Param_QueryCard $(!STF_NCDETCARD)
EndWait
Ifstr(i) $($R0) != STATUS_SUCCESSFUL
Goto adaptersetup
Endif
Set DetectedParams = $($R1)
Debug-Output "OEMNAD0.INF: Calling Param_SetDefaults to merge detected params"
Shell $(ParamInf) Param_SetDefaults $(DetectedParams)
Goto adaptersetup
else
goto end
endif
configureadapter = +
; Default card is 1
read-syms GeneralConstants
read-syms FileConstants
shell "" GetWANSoftwarePath
set WANRootDir = $($R1)
set ConfigFilePath = $($R1)
set ConfigFileName = $($R1)"\eccfg.eic"
set !SVCHANDLE = ""
LoadLibrary "" $(!STF_WINDOWSSYSPATH)"\ECUTL_NT.DLL" !SVCHANDLE
LibraryProcedure DateStringBefore $(!SVCHANDLE) Eccfg_GetIniFileDateTime $(ConfigFileName)
RunProgram ExitCode "" "" $(ConfigFilePath)"\eccfgwnt.exe" $(ConfigFileName) "/DA /DD /DSA /DO /DN"
LibraryProcedure DateStringAfter $(!SVCHANDLE) Eccfg_GetIniFileDateTime $(ConfigFileName)
ifstr(i) $(DateStringBefore) == $(DateStringAfter)
set CommonStatus = STATUS_NO_EFFECT
goto end
endif
LibraryProcedure CardNumber $(!SVCHANDLE) Eccfg_GetLastCard $(ConfigFileName)
set CardNum = $(CardNumber)
set-add ConvertCard = $(CardNum), $(CardNum)
set-sub ConvertCard = $(ConvertCard), $(CardNum)
set StartCard = 1
set !CardIndex = $(StartCard)
set EndCard = $(ConvertCard)
set-add EndCard = $(EndCard), 1
ConfigureCards =+
set CardType = ""
LibraryProcedure CardType $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),2)
ifstr(i) $(CardType) == "EC/PC"
Set !CardToConfigure = "EiconEC"
else-Ifstr(i) $(CardType) == "HSI/PC"
Set !CardToConfigure = "EiconHSI"
else-Ifstr(i) $(CardType) == "DPNA/PC"
Set !CardToConfigure = "EiconDPNA"
else-Ifstr(i) $(CardType) == "MPNA/PC"
Set !CardToConfigure = "EiconMPNA"
else-Ifstr(i) $(CardType) == "IMC/PC"
Set !CardToConfigure = "EiconIMC"
else-Ifstr(i) $(CardType) == "EC/MC"
Set !CardToConfigure = "EiconECMC"
else-Ifstr(i) $(CardType) == "HSI/MC"
Set !CardToConfigure = "EiconHSIMC"
else-Ifstr(i) $(CardType) == "IMC/MC"
Set !CardToConfigure = "EiconIMCMC"
else-Ifstr(i) $(CardType) == "MPNA/MC"
Set !CardToConfigure = "EiconMPNAMC"
endif
set Option = $(!CardToConfigure)
ifstr(i) $(!SystemType) == "ISA"
LibraryProcedure CardIO $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),4)
LibraryProcedure CardIRQ $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),5)
LibraryProcedure CardMemSeg $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),6)
set IRQLevel = $(CardIRQ)
set MyIOBaseChoice = $(CardIO)
set MyMemBaseAddr = $(CardMemSeg)"0"
; set-hextodec IRQLevel = $(IRQLevel)
set-hextodec MyMemBaseAddr = $(MyMemBaseAddr)
set-hextodec MyIOBaseChoice = $(MyIOBaseChoice)
else
LibraryProcedure CardSlot $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),10)
endif
; scan cards starts here
Set ScanIndex = 1
ScanConfigureLoop =+
ifint $(ScanIndex) < 10
set IndexStr = "0"$(ScanIndex)
else
set IndexStr = $(ScanIndex)
endif
set SearchCardStr = "SYSTEM\CurrentControlSet\Services\Ecnb"$(IndexStr)"\Parameters"
OpenRegKey $(!REG_H_LOCAL) "" $(SearchCardStr) $(MAXIMUM_ALLOWED) KeyCurVer
Ifstr $(KeyCurVer) == $(KeyNull)
set-add ScanIndex = $(ScanIndex), 1
Ifint $(ScanIndex) < 99
goto ScanConfigureLoop
endif
endif
GetRegValue $(KeyCurVer) "CardNumber" CardNumberValueStr
ifstr(i) $(CardNumberValueStr) != ""
set CardNumberValue = *($(CardNumberValueStr),4)
endif
; Found same card index number with the configurator
Ifint $(CardNumberValue) == $(!CardIndex)
GetRegValue $(KeyCurVer) "CardIndex" ScanIndexValueStr
ifstr(i) $(ScanIndexValueStr) != ""
set ScanIndexValue = *($(ScanIndexValueStr),4)
endif
else
set-add ScanIndex = $(ScanIndex), 1
Ifint $(ScanIndex) < 99
goto ScanConfigureLoop
endif
endif
Ifint $(ScanIndex) > 99
Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
"No such cards"
goto end
endif
ifint $(ScanIndexValue) < 10
set comp = "0"
set compstr = $(comp)$(ScanIndexValue)
else
set compstr = $(ScanIndexValue)
endif
; scan cards ends here
set CardToConfigureStr = $(compstr)
set EcnbKeyName = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$(CardToConfigureStr)
; Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
; $(EcnbKeyName)
OpenRegKey $(!REG_H_LOCAL) "" $(EcnbKeyName) $(MAXIMUM_ALLOWED) KeyProduct
; Be careful not to blew up the data of the service name
; reminder = to also modify subkey in 01
Ifstr $(KeyProduct) != $(KeyNull)
set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
{Title,$(NoTitle),$(!REG_VT_SZ),"["$(compstr)"] "$(ProductHardware$(Option)Title)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
{ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)}}
; {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
;; {CallName,$(NoTitle),$(!REG_VT_SZ),$($R1)},+
; {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(!STF_WINDOWSSYSPATH)"\utility.inf", AddValueList, $(KeyProduct), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
OpenRegKey $(!REG_H_LOCAL) "" $(EcnbKeyName)"\NetRules" $(MAXIMUM_ALLOWED) KeyProdRules
Ifstr $(KeyProdRules) != $(KeyNull)
set AdapterNumber = $(CardToConfigureStr)
set Option = $(!CardToConfigure)
set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardware$(Option)Type)},+
{bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardware$(Option)Class)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Shell $(!STF_WINDOWSSYSPATH)"\utility.inf", AddValueList, $(KeyProdRules), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
Debug-Output "INF: Shelling to FindService"
Shell $(!STF_WINDOWSSYSPATH)"\utility.inf" FindService, $(KeyProduct)
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "INF: FindService shell failure"
Goto ShellCodeError
Endif
; Ifstr(i) $($R0) != "STATUS_SUCCESSFUL"
; Debug-Output "INF: FindService Shell error: "$($R0)
; Goto fatalregistry
; endif
set KeyParameters = $($R2)
CloseRegKey $($R1)
Ifstr $(KeyParameters) == $(KeyNull)
set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
Debug-Output "Cannot find component service"
goto fatalregistry
endif
; card index should not be changed so do not change it
ifstr(i) $(!SystemType) == "ISA"
set NewValueList = {+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
; {BusType,$(NoTitle),$(!REG_VT_SZ),$(BusType)},+
; {BusTypeNum,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
{CardType,$(NoTitle),$(!REG_VT_SZ),$(!CardToConfigure)},+
{CardNumber,$(NoTitle),$(!REG_VT_DWORD),$(!CardIndex)},+
; {CardIndex,$(NoTitle),$(!REG_VT_DWORD),$(ScanIndexValue)},+
{InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQLevel)},+
{IOBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MyIOBaseChoice)},+
{MemoryMappedBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MyMemBaseAddr)}+
}
else
set NewValueList = {+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
; {BusType,$(NoTitle),$(!REG_VT_SZ),$(BusType)},+
; {BusTypeNum,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
{CardType,$(NoTitle),$(!REG_VT_SZ),$(!CardToConfigure)},+
{CardNumber,$(NoTitle),$(!REG_VT_DWORD),$(!CardIndex)},+
; {CardIndex,$(NoTitle),$(!REG_VT_DWORD),$(ScanIndexValue)},+
{SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(CardSlot)}}
endif
Shell $(!STF_WINDOWSSYSPATH)"\utility.inf", AddValueList, $(KeyParameters), $(NewValueList)
CloseRegKey $(KeyParameters)
CloseRegKey $(KeyProduct)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set-add !CardIndex = $(!CardIndex), 1
Ifint $(!CardIndex) < $(EndCard)
goto ConfigureCards
endif
FreeLibrary $(!SVCHANDLE)
goto end
adaptersetup =+
; Set IOBaseChoice = *($(IOADDR_Base_List),~($(IOADDR_Addr_List),$(IOBaseAddress)))
Debug-Output "OEMNAD0.INF: setting IOBaseChoice to: "$(IOBaseChoice)
;;; Set MemBaseAddrHex = *($(MemBaseAddrHexList), ~($(MemBaseAddrDecList),+
;;; $(MemBaseAddrDec)))
Ifstr(i) $(DetectedCard) == TRUE
Ifstr(i) $(!STF_INSTALL_MODE) != CUSTOM
Goto adapterverify
Endif
Endif
adapteroptions = +
Shell $(UtilityInf), GetBusTypeNum
ifstr(i) $($R1) == 3
set BusType = "CARDMC"
else
set BusType = "CARDPC"
endif
set Result = ""
; Need from card info the following datas
; new added
set CardType = ""
LibraryProcedure CardType $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!MyIndex) *($(!CardRequestList),2)
ifstr(i) $(CardType) == "EC/PC"
Set !CardToAdd = "EiconEC"
else-Ifstr(i) $(CardType) == "HSI/PC"
Set !CardToAdd = "EiconHSI"
else-Ifstr(i) $(CardType) == "DPNA/PC"
Set !CardToAdd = "EiconDPNA"
else-Ifstr(i) $(CardType) == "MPNA/PC"
Set !CardToAdd = "EiconMPNA"
else-Ifstr(i) $(CardType) == "IMC/PC"
Set !CardToAdd = "EiconIMC"
else-Ifstr(i) $(CardType) == "EC/MC"
Set !CardToAdd = "EiconECMC"
else-Ifstr(i) $(CardType) == "HSI/MC"
Set !CardToAdd = "EiconHSIMC"
else-Ifstr(i) $(CardType) == "IMC/MC"
Set !CardToAdd = "EiconIMCMC"
else-Ifstr(i) $(CardType) == "MPNA/MC"
Set !CardToAdd = "EiconMPNAMC"
endif
set Option = $(!CardToAdd)
ifstr(i) $(!SystemType) == "ISA"
LibraryProcedure CardIO $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!MyIndex) *($(!CardRequestList),4)
LibraryProcedure CardIRQ $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!MyIndex) *($(!CardRequestList),5)
LibraryProcedure CardMemSeg $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!MyIndex) *($(!CardRequestList),6)
set IRQLevel = $(CardIRQ)
set MyIOBaseChoice = $(CardIO)
set MyMemBaseAddr = $(CardMemSeg)"0"
; set-hextodec IRQLevel = $(IRQLevel)
set-hextodec MyMemBaseAddr = $(MyMemBaseAddr)
set-hextodec MyIOBaseChoice = $(MyIOBaseChoice)
else
LibraryProcedure CardSlot $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!MyIndex) *($(!CardRequestList),10)
endif
set from = adapteroptions
adapterverify =+
Ifstr(i) $(DetectedCard) != TRUE
Goto skipoptions
Endif
Debug-Output "OEMNAD0.INF: Calling Param_VerifyCard"
Shell $(ParamInf) Param_VerifyCard $(!STF_NCDETCARD)
Ifstr(i) $($R0) == STATUS_SUCCESSFUL
Debug-Output "OEMNAD0.INF: Param_VerifyCard succeeded"
Goto skipoptions
Endif
Set from = adapteroptions
Set to = skipoptions
Shell $(UtilityInf),RegistryErrorString,VERIFY_WARNING
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
set Error = $($R0)
Goto Warning
skipoptions =+
ifint $(OldVersionExisted) == $(TRUE)
ifstr(i) $(!NTN_InstallMode) == configure
goto writeparameters
endif
endif
StartWait
ifint $(OldVersionExisted) == $(FALSE)
ifstr(i) $(!NTN_InstallMode) == "install"
Ifstr(i) $(DoCopy) == "YES"
Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Goto ShellCodeError
Else-Ifstr(i) $($R0) == STATUS_FAILED
Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
Goto fatal
Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
Goto successful
Endif
Set SrcDir = $($R1)
Endif
install "Install-Option"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
endif
endif
Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName), +
$(ProductSoftwareName), +
$(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
$(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
$(NetEventDLL)
Set OEM_ABANDON_SOFTWARE = TRUE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Registry error: add software components"
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
CloseRegKey $($R4)
CloseRegKey $($R5)
goto fatalregistry
endif
set SoftProductKey = $($R1)
Set SoftNetRuleKey = $($R2)
Set SoftServiceKey = $($R3)
Set SoftParameterKey = $($R4)
Set SoftLinkageKey = $($R5)
set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
{MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
{MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
{Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
{RootPath,$(NoTitle),$(!REG_VT_SZ),$(!WANRootDir)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Resgitry error: add value list."
CloseRegKey $(SoftProductKey)
CloseRegKey $(SoftNetRuleKey)
CloseRegKey $(SoftServiceKey)
CloseRegKey $(SoftParameterKey)
CloseRegKey $(SoftLinkageKey)
goto fatalregistry
endif
set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
{use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
{bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
{bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Shell $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
CloseRegKey $(SoftProductKey)
CloseRegKey $(SoftNetRuleKey)
CloseRegKey $(SoftServiceKey)
CloseRegKey $(SoftParameterKey)
CloseRegKey $(SoftLinkageKey)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Resgitry error: add value list."
goto fatalregistry
endif
endif
Shell $(UtilityInf), AddHardwareComponent,$(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
ifint $($R4) != -1
Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
endif
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "Cannot add hardware component"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Registry error: add hardware component"
Debug-Output $(RegistryErrorIndex)
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
goto fatalregistry
endif
set KeyParameters = $($R3)
set KeyAdapterRules = $($R2)
set AdapterNumber = $($R4)
set !CardRegIndex = $($R4)
; Call name field will be used to change title in configuration in case
; add hardware component is not supported while doing the configuration
; or removal or even adding
set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
{Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
; {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(!CardTitle)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
{ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
; {CallName,$(NoTitle),$(!REG_VT_SZ),$($R1)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(UtilityInf), AddValueList, $($R1), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
CloseRegKey $($R1)
set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardware$(Option)Type)},+
{bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardware$(Option)Class)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Shell $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "Resgitry error: add value list."
CloseRegKey $(KeyParameters)
CloseRegKey $(KeyAdapterRules)
goto fatalregistry
endif
CloseRegKey $(KeyAdapterRules)
goto writeparameters
writeparameters = +
set MemBaseAddrDec = *($(MemBaseAddrDecList), ~($(MemBaseAddrHexList),+
$(MemBaseAddrHex)))
; ifstr(i) $(Option) == "DEC100"
; set CardTypeValue = 1
; else
; set CardTypeValue = 7
set CardTypeValue = 0
; set CardNumberValue = $(CardNum)
endif
Shell $(UtilityInf), GetBusTypeNum
set BusTypeNum = $($R1)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set-hextodec BusTypeNum = $(BusTypeNum)
ifstr(i) $(!SystemType) == "ISA"
set NewValueList = {+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
{BusType,$(NoTitle),$(!REG_VT_SZ),$(BusType)},+
{BusTypeNum,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
{CardType,$(NoTitle),$(!REG_VT_SZ),$(CardType)},+
{CardNumber,$(NoTitle),$(!REG_VT_DWORD),$(!MyIndex)},+
{CardIndex,$(NoTitle),$(!REG_VT_DWORD),$(!CardRegIndex)},+
{InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQLevel)},+
{IOBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MyIOBaseChoice)},+
{MemoryMappedBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MyMemBaseAddr)}+
}
else
set NewValueList = {+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
{BusType,$(NoTitle),$(!REG_VT_SZ),$(BusType)},+
{BusTypeNum,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
{CardType,$(NoTitle),$(!REG_VT_SZ),$(CardType)},+
{CardNumber,$(NoTitle),$(!REG_VT_DWORD),$(!MyIndex)},+
{CardIndex,$(NoTitle),$(!REG_VT_DWORD),$(!CardRegIndex)},+
{SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(CardSlot)}}
endif
Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
CloseRegKey $(KeyParameters)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Output "Registry error: Add value list"
goto fatalregistry
endif
; Create Eicon Cards Service Only for install or for other, to check ???
set ServiceName = "EiconCards"
set DisplayName = "Eicon Cards"
set ImagePath = $(!WANRootDir)"\ECSRV.EXE"
set CreateServiceDesc = "serviceauto"
set Group = ""
set DependList = { "Ecnb" }
set Objectname = "LocalSystem"
set EventLogFile = {""}
set EventTypes = ""
set EventLocation = ""
set ErrorControl = 1
shell $(!STF_WINDOWSSYSPATH)\UTILITY.INF CreateService +
$(ServiceName) $(DisplayName) $(ImagePath) $(CreateServiceDesc) +
$(Group) $(DependList) $(ObjectName) $(EventLogFile) +
$(EventTypes) $(EventLocation) $(ErrorControl)
EndWait
set-add !MyIndex = $(!MyIndex), 1
Ifint $(!MyIndex) < $(!MaxCards)
goto AddCards
endif
FinishAdd=+
; Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
; "Finish adding cards"
install FreeServiceLibrary
; add wan path to system environment
shell "" ModifySystemPath "Add" $(!WANRootDir)
goto successful
bindingadapter =+
set Error = "Binding: Sorry, not yet implemented."
goto fatal
removeadapter = +
shell "" GetWANSoftwarePath
set WANRootDir = $($R1)
set ConfigFilePath = $($R1)
set ConfigFileName = $($R1)"\eccfg.eic"
set !SVCHANDLE = ""
; Append a trailing backslash if necessary
; Split-String $(!SOURCEDIR) "\" _DirSplit
; QueryListSize _DirSize $(_DirSplit)
;
; ifstr(i) *( $(_DirSplit), $(_DirSize) ) != "\"
; set !SOURCEDIR = $(!SOURCEDIR)"\"
; endif
set !SVCHANDLE = ""
LoadLibrary "" $(!STF_WINDOWSSYSPATH)"\ECUTL_NT.DLL" !SVCHANDLE
ifstr(i) $(!SVCHANDLE) == ""
Shell $(SubroutineInf), SetupMessage, $(!STF_LANGUAGE), "STATUS",+
"Could not load the required missing ECUTL_NT.DLL file."
; shell $(SubroutineInf) SetupMessage $(!STF_LANGUAGE) +
; "WARNING" +
; "Couldn't load the DLL file (ECUTL_NT.DLL)!. This DLL contains all"$(!LF)+
; "the services calls needed to configure the WAN Services for Windows NT"$(!LF)+
; "software."$(!LF)+
; "Please find this file and copy it into the same directory"$(!LF)+
; "from which you ran Setup."
goto End
endif
LibraryProcedure CardNumber $(!SVCHANDLE) Eccfg_GetLastCard $(ConfigFileName)
set CardNum = $(CardNumber)
set-add ConvertCard = $(CardNum), $(CardNum)
set-sub ConvertCard = $(ConvertCard), $(CardNum)
set !CardsBefore = $(ConvertCard)
ifint $(!CardsBefore) <= 1
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
set !UG_Filename = $($R0)
LibraryProcedure Status , $(!LIBHANDLE), DelFile $(!STF_WINDOWSSYSPATH)"\"$(!UG_Filename)
CloseRegKey $(KeyProduct)
endif
Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
; Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
; "removesoftwarecompo = "$($ShellCode)
; set RegistryErrorIndex = $($R0)
; Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
; goto fatalregistry
; endif
else
Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
$(ProductSoftwareName), $(!NTN_RegBase)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
; set RegistryErrorIndex = $($R0)
; Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
; goto fatalregistry
; endif
endif
set InitConfigStr = "[Tree]"$(LF)"Tree.1=Server, SERVER, 1, SERVER, Wan Services"$(LF)
; set SystemTypeISAStr = $(InitConfigStr)"[SERVER]"$(LF)"0067=ID_SERVER_InterType, 0031, Industry Standard Architecture (PCbus)"
; For last card do not need to reset the contents anymore since files are
; deleted
; LibraryProcedure Result $(!SVCHANDLE) Eccfg_ResetConfig $(ConfigFileName) $(InitConfigStr)
install FreeServiceLibrary
; this is the place to call remove files
install "DeInstall-Option"
shell "" ModifySystemPath "Delete" $(WANRootDir)
set ServiceName = "EiconCards"
Shell $(UtilityInf), RemoveService, $(ServiceName), "YES"
goto end
else
LibraryProcedure DateStringBefore $(!SVCHANDLE) Eccfg_GetIniFileDateTime $(ConfigFileName)
RunProgram ExitCode "" "" $(ConfigFilePath)"\eccfgwnt.exe" $(ConfigFileName) "/DISABLE_ADD /DSA /DO /DN"
LibraryProcedure DateStringAfter $(!SVCHANDLE) Eccfg_GetIniFileDateTime $(ConfigFileName)
ifstr(i) $(DateStringBefore) == $(DateStringAfter)
set CommonStatus = STATUS_NO_EFFECT
goto end
endif
LibraryProcedure CardNumber $(!SVCHANDLE) Eccfg_GetLastCard $(ConfigFileName)
set CardNum = $(CardNumber)
set-add ConvertCard = $(CardNum), $(CardNum)
set-sub ConvertCard = $(ConvertCard), $(CardNum)
set !CardsAfter = $(ConvertCard)
set !MaxCards = $(ConvertCard)
set StartIndex = $(!CardsAfter)
set-add StartIndex = $(StartIndex), 1
set EndIndex = $(!CardsBefore)
set-add EndIndex = $(EndIndex), 1
; start card to remove
set CardIndex = $(StartIndex)
; configuration starts here
set StartCard = 1
set !CardIndex = $(StartCard)
set EndCard = $(!CardsAfter)
set-add EndCard = $(EndCard), 1
ConfigureRemove =+
LibraryProcedure CardIO $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),4)
ifstr(i) $(CardIO) != ""
set CardType = ""
LibraryProcedure CardType $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),2)
ifstr(i) $(CardType) == "EC/PC"
Set !CardToConfigure = "EiconEC"
else-Ifstr(i) $(CardType) == "HSI/PC"
Set !CardToConfigure = "EiconHSI"
else-Ifstr(i) $(CardType) == "DPNA/PC"
Set !CardToConfigure = "EiconDPNA"
else-Ifstr(i) $(CardType) == "MPNA/PC"
Set !CardToConfigure = "EiconMPNA"
else-Ifstr(i) $(CardType) == "IMC/PC"
Set !CardToConfigure = "EiconIMC"
else-Ifstr(i) $(CardType) == "EC/MC"
Set !CardToConfigure = "EiconECMC"
else-Ifstr(i) $(CardType) == "HSI/MC"
Set !CardToConfigure = "EiconHSIMC"
else-Ifstr(i) $(CardType) == "IMC/MC"
Set !CardToConfigure = "EiconIMCMC"
else-Ifstr(i) $(CardType) == "MPNA/MC"
Set !CardToConfigure = "EiconMPNAMC"
endif
set Option = $(!CardToConfigure)
ifstr(i) $(!SystemType) == "ISA"
LibraryProcedure CardIRQ $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),5)
LibraryProcedure CardMemSeg $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),6)
set IRQLevel = $(CardIRQ)
set MyIOBaseChoice = $(CardIO)
set MyMemBaseAddr = $(CardMemSeg)"0"
; set-hextodec IRQLevel = $(IRQLevel)
set-hextodec MyMemBaseAddr = $(MyMemBaseAddr)
set-hextodec MyIOBaseChoice = $(MyIOBaseChoice)
else
LibraryProcedure CardSlot $(!SVCHANDLE) Eccfg_GetCardInfo $(ConfigFileName) $(!CardIndex) *($(!CardRequestList),10)
endif
; scan cards starts here
Set ScanIndex = 1
ScanConfigureRemoveLoop =+
ifint $(ScanIndex) < 10
set IndexStr = "0"$(ScanIndex)
else
set IndexStr = $(ScanIndex)
endif
set SearchCardStr = "SYSTEM\CurrentControlSet\Services\Ecnb"$(IndexStr)"\Parameters"
OpenRegKey $(!REG_H_LOCAL) "" $(SearchCardStr) $(MAXIMUM_ALLOWED) KeyCurVer
Ifstr $(KeyCurVer) == $(KeyNull)
set-add ScanIndex = $(ScanIndex), 1
Ifint $(ScanIndex) < 99
goto ScanConfigureRemoveLoop
endif
endif
GetRegValue $(KeyCurVer) "CardNumber" CardNumberValueStr
ifstr(i) $(CardNumberValueStr) != ""
set CardNumberValue = *($(CardNumberValueStr),4)
endif
; Found same card index number with the configurator
Ifint $(CardNumberValue) == $(!CardIndex)
GetRegValue $(KeyCurVer) "CardIndex" ScanIndexValueStr
ifstr(i) $(ScanIndexValueStr) != ""
set ScanIndexValue = *($(ScanIndexValueStr),4)
endif
else
set-add ScanIndex = $(ScanIndex), 1
Ifint $(ScanIndex) < 99
goto ScanConfigureRemoveLoop
endif
endif
Ifint $(ScanIndex) > 99
Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
"No such cards"
goto end
endif
ifint $(ScanIndexValue) < 10
set comp = "0"
set compstr = $(comp)$(ScanIndexValue)
else
set compstr = $(ScanIndexValue)
endif
; scan cards ends here
set CardToConfigureStr = $(compstr)
set EcnbKeyName = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$(CardToConfigureStr)
OpenRegKey $(!REG_H_LOCAL) "" $(EcnbKeyName) $(MAXIMUM_ALLOWED) KeyProduct
; Be careful not to blew up the data of the service name
; reminder = to also modify subkey in 01
Ifstr $(KeyProduct) != $(KeyNull)
set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
{Title,$(NoTitle),$(!REG_VT_SZ),"["$(compstr)"] "$(ProductHardware$(Option)Title)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
{ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)}}
; {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
;; {CallName,$(NoTitle),$(!REG_VT_SZ),$($R1)},+
; {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(!STF_WINDOWSSYSPATH)"\utility.inf", AddValueList, $(KeyProduct), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
endif
OpenRegKey $(!REG_H_LOCAL) "" $(EcnbKeyName)"\NetRules" $(MAXIMUM_ALLOWED) KeyProdRules
Ifstr $(KeyProdRules) != $(KeyNull)
set AdapterNumber = $(CardToConfigureStr)
set Option = $(!CardToConfigure)
set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardware$(Option)Type)},+
{bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardware$(Option)Class)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
Shell $(!STF_WINDOWSSYSPATH)"\utility.inf", AddValueList, $(KeyProdRules), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
endif
Debug-Output "INF: Shelling to FindService"
Shell $(!STF_WINDOWSSYSPATH)"\utility.inf" FindService, $(KeyProduct)
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "INF: FindService shell failure"
Goto ShellCodeError
Endif
; Ifstr(i) $($R0) != "STATUS_SUCCESSFUL"
; Debug-Output "INF: FindService Shell error: "$($R0)
; Goto fatalregistry
; endif
set KeyParameters = $($R2)
CloseRegKey $($R1)
Ifstr $(KeyParameters) == $(KeyNull)
set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
Debug-Output "Cannot find component service"
goto fatalregistry
endif
;Set BusType = "999"
;Set BusTypeNum = 999
; should not modify index when removing card other wise
; it will remove a bad one !!!!
ifstr(i) $(!SystemType) == "ISA"
set NewValueList = {+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
; {BusType,$(NoTitle),$(!REG_VT_SZ),$(BusType)},+
; {BusTypeNum,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
{CardType,$(NoTitle),$(!REG_VT_SZ),$(!CardToConfigure)},+
{CardNumber,$(NoTitle),$(!REG_VT_DWORD),$(!CardIndex)},+
; {CardIndex,$(NoTitle),$(!REG_VT_DWORD),$(!CardIndex)},+
{InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQLevel)},+
{IOBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MyIOBaseChoice)},+
{MemoryMappedBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(MyMemBaseAddr)}+
}
else
set NewValueList = {+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
; {BusType,$(NoTitle),$(!REG_VT_SZ),$(BusType)},+
; {BusTypeNum,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
{CardType,$(NoTitle),$(!REG_VT_SZ),$(!CardToConfigure)},+
{CardNumber,$(NoTitle),$(!REG_VT_DWORD),$(!CardIndex)},+
; {CardIndex,$(NoTitle),$(!REG_VT_DWORD),$(!CardIndex)},+
{SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(CardSlot)}}
endif
Shell $(!STF_WINDOWSSYSPATH)"\utility.inf", AddValueList, $(KeyParameters), $(NewValueList)
CloseRegKey $(KeyParameters)
CloseRegKey $(KeyProduct)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error."
goto ShellCodeError
endif
set-add !CardIndex = $(!CardIndex), 1
Ifint $(!CardIndex) < $(EndCard)
goto ConfigureRemove
endif
else
; no more cards to process, must remove if any extra from configuration
; registry so remember the last card number from the configurator
set NumberOfCards = $(Index)
; Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.inf", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
; "No more cards to configure in remove"
endif
; configuration ends here
; must be at outer loop
Set Inc = 0
Set Val = 0
RemoveCards =+
; Remove cards only if cards were removed in the configurator with
; a save
ifint $(!CardsAfter) < $(!CardsBefore)
; Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
; $(ProductSoftwareName) $(!NTN_RegBase)
; ifint $($ShellCode) != $(!SHELL_CODE_OK)
; Debug-Output "ShellCode error"
; goto ShellCodeError
; endif
;goto end
; Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
; $(ProductSoftwareName)
; ifint $($ShellCode) != $(!SHELL_CODE_OK)
; Debug-Output "ShellCode error"
; goto ShellCodeError
; endif
; set RegistryErrorIndex = $($R0)
;; Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
;; goto fatalregistry
;; endif
;
;goto end
; scan cards starts here
Set ScanIndex = 1
ScanRemoveLoop =+
ifint $(ScanIndex) < 10
set IndexStr = "0"$(ScanIndex)
else
set IndexStr = $(ScanIndex)
endif
set SearchCardStr = "SYSTEM\CurrentControlSet\Services\Ecnb"$(IndexStr)"\Parameters"
OpenRegKey $(!REG_H_LOCAL) "" $(SearchCardStr) $(MAXIMUM_ALLOWED) KeyCurVer
Ifstr $(KeyCurVer) == $(KeyNull)
set-add ScanIndex = $(ScanIndex), 1
Ifint $(ScanIndex) < 99
goto ScanRemoveLoop
endif
endif
GetRegValue $(KeyCurVer) "CardNumber" CardNumberValueStr
ifstr(i) $(CardNumberValueStr) != ""
set CardNumberValue = *($(CardNumberValueStr),4)
endif
set-add Val = $(!CardIndex), $(Inc)
Ifint $(CardNumberValue) == $(Val)
; if found same card must increment otherwise will not be able to find
; the card value which matchs since the previous card is
; already removed.
set-add Inc = $(Inc), 1
; get the value which was assigned by setup
GetRegValue $(KeyCurVer) "CardIndex" ScanIndexValueStr
ifstr(i) $(ScanIndexValueStr) != ""
set ScanIndexValue = *($(ScanIndexValueStr),4)
endif
else
set-add ScanIndex = $(ScanIndex), 1
Ifint $(ScanIndex) < 99
goto ScanRemoveLoop
endif
endif
Ifint $(ScanIndex) > 99
Shell $(!STF_WINDOWSSYSPATH)"\subrouTN.INF", SetupMessage, $(!STF_LANGUAGE), "STATUS",+
"No such cards"
goto end
endif
ifint $(ScanIndexValue) < 10
set comp = "0"
set compstr = $(comp)$(ScanIndexValue)
else
set compstr = $(ScanIndexValue)
endif
; scan cards ends here
set CardToRemoveStr = $(compstr)
set EcnbKeyName = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$(CardToRemoveStr)
Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
$(ProductSoftwareName), $(EcnbKeyName)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
; Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
; goto fatalregistry
; endif
set-add CardIndex = $(CardIndex), 1
Ifint $(CardIndex) < $(EndIndex)
goto RemoveCards
endif
endif
install FreeServiceLibrary
; remove wan configurator files
goto end
else
goto end
endif
endif
UpgradeSoftware = +
ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
set Version = *($(VersionInfo), 4)
Split-String $(!NTN_Infname), "\", FilenameList
QueryListSize ListSize $(FilenameList)
set !UG_Filename = *($(FilenameList), $(ListSize))
install "Install-Update"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
goto fatal
endif
SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
ifint $(Version) != $(ProductVersion)
endif
CloseRegKey $(KeyProduct)
else
goto fatalregistry
endif
else
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
$(MAXIMUM_ALLOWED) NetworkCardKey
Ifstr(i) $(NetworkCardKey) != $(KeyNull)
GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
set ServiceName = *($(ServiceNameInfo), 4)
OpenRegKey $(NetworkCardKey) "" "NetRules" +
$(MAXIMUM_ALLOWED) NetRuleKey
Ifstr(i) $(NetRuleKey) != $(KeyNull)
else
goto fatalregistry
endif
CloseRegKey $(NetRules)
CloseRegKey $(NetworkCardKey)
else
goto fatalregistry
endif
OpenRegKey $(!REG_H_LOCAL) "" +
$(!NTN_ServiceBase)"\"$(ServiceName) +
$(MAXIMUM_ALLOWED) ServiceKey
Ifstr(i) $(ServiceKey) != $(KeyNull)
CloseRegKey $(ServiceKey)
else
goto fatalregistry
endif
endif
goto end
successful = +
goto end
abandon = +
ForListDo $(OEM_ABANDON_OPTIONS)
Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
$(ProductSoftwareName), $($)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
EndForListDo
Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName), FALSE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
endif
goto end
warning = +
Shell $(SubroutineInf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
ifstr(i) $($R1) == "OK"
goto $(to)
else-ifstr(i) $($R1) == "CANCEL"
goto $(from)
else
goto "end"
endif
nonfatalinfo = +
Set CommonStatus = STATUS_USERCANCEL
Set Severity = STATUS
goto nonfatalmsg
nonfatal = +
Set Severity = NONFATAL
goto nonfatalmsg
nonfatalmsg = +
ifstr(i) $(Error) == ""
Set Severity = NONFATAL
Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
endif
Shell $(SubroutineInf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
ifstr(i) $($R1) == "OK"
goto $(from)
else
goto "end"
endif
fatalregistry = +
Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
fataldetect = +
Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
set Error = $($R0)
Goto fatal
fatal = +
ifstr(i) $(Error) == ""
Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
endif
Shell $(SubroutineInf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
goto setfailed
ShellCodeError = +
set DlgType = "MessageBox"
set STF_MB_TITLE = "Error: "$(FunctionTitle$(Option))
set STF_MB_TEXT = "Shell Code Error"
set STF_MB_TYPE = 1
set STF_MB_ICON = 3
set STF_MB_DEF = 1
ui start "Error Message"
goto setfailed
setfailed = +
set CommonStatus = STATUS_FAILED
ifstr(i) $(OEM_ABANDON_ON) == TRUE
set OEM_ABANDON_ON = FALSE
goto abandon
endif
goto end
end = +
goto term
term = +
Return $(CommonStatus)
[ModifySystemPath]
read-syms "Registry Constants"
set Status = STATUS_FAILED
set !True = 1
set !False = 0
ifstr(i) $($0) == ""
goto EndModifySystemPath
else-ifstr(i) $($1) == ""
goto EndModifySystemPath
endif
set Action = $($0)
set Dir = $($1)
OpenRegKey $(!REG_H_LOCAL) "" $(PathRegKeyName) $(MaskAllAccess) EnvKey
ifstr(i) $(EnvKey) == $(KeyNull)
goto EndModifySystemPath
endif
GetRegValue $(EnvKey) "Path" PathValue
ifstr(i) $(PathValue) == $(KeyNull)
CloseRegKey $(EnvKey)
goto EndModifySystemPath
endif
set PathString = *( $(PathValue), 4 )
set FoundFlag = $(!False)
set Modify = $(!False)
set NewPathString = ""
Split-String $(PathString) ";" PathDirList
QueryListSize LastItem $(PathDirList)
ForListDo $(PathDirList)
ifstr(i) $($) != ";"
ifstr(i) $($) == $(Dir)
set FoundFlag = $(!True)
else
set NewPathString = $(NewPathString)$($)";"
endif
endif
EndForListDo
ifstr(i) $(FoundFlag) == $(!True)
ifstr(i) $(Action) == "Delete"
set Modify = $(!True)
endif
else
ifstr(i) $(Action) == "Add"
set NewPathString = $(NewPathString)$(Dir)";"
set Modify = $(!True)
endif
endif
ifstr(i) $(Modify) == $(!True)
SetRegValue $(EnvKey) { "Path", $(NoTitle), $(!REG_VT_EXPAND_SZ), $(NewPathString) }
set !LIB2HANDLE = ""
LoadLibrary "" $(!STF_WINDOWSSYSPATH)\setupdll.dll !LIB2HANDLE
ifstr(i) $(!LIB2HANDLE) != ""
LibraryProcedure Result, $(!LIB2HANDLE), SetEnvVar, SYSTEM, +
"Path", $(NoTitle), $(!REG_VT_EXPAND_SZ), $(NewPathString)
FreeLibrary $(!LIB2HANDLE)
set !LIB2HANDLE = ""
endif
endif
set Status = STATUS_SUCCESSFUL
CloseRegKey $(EnvKey)
EndModifySystemPath =+
return $(Status)
[GetWANSoftwarePath]
set Status = STATUS_SUCCESSFUL
set ProductPathStr = ""
OpenRegKey $(!REG_H_LOCAL), "", +
"SOFTWARE\Eicon\Ecnb\CurrentVersion", +
$(!REG_KEY_READ), KeyCurVer
ifstr(i) $(KeyCurVer) != $(KeyNull)
GetRegValue $(KeyCurVer) "ConfigPath" ProductPathStr
ifstr(i) $(ProductPathStr) != ""
set !WANSoftwarePath = *($(ProductPathStr),4)
; Shell $(SubroutineInf), SetupMessage, $(!STF_LANGUAGE), "STATUS", $(!WANSoftwarePath)
endif
CloseRegKey $(KeyCurVer)
return $(Status) $(!WANSoftwarePath)
else
return STATUS_FAILED ""
endif
[Install-Option]
set STF_VITAL = ""
ifstr(i) $(AddCopy) == "YES"
CreateDir $(!WANRootDir)
AddSectionFilesToCopyList Files-Wan $(SrcDir) $(!WANRootDir)
AddSectionFilesToCopyList Files-WanSys $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-driver $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-Eicon-DLL $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Eicon $(SrcDir) $(!WANRootDir)
ifstr(i) $(!SystemType) == "ISA"
AddSectionFilesToCopyList Files-CfgISA $(SrcDir) $(!WANRootDir)
else
AddSectionFilesToCopyList Files-CfgMCA $(SrcDir) $(!WANRootDir)
endif
AddSectionFilesToCopyList Files-EcUtl $(SrcDir) $(!STF_WINDOWSSYSPATH)
endif
ifstr(i) $(DoCopy) == "YES"
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
set EiconGroup = "Eicon Technology"
CreateCommonProgManGroup $(EiconGroup) ""
CreateCommonProgmanItem $(EiconGroup) "Release Notes" +
"notepad.exe "$(!WANRootDir)"\wanntrel.txt" +
"" 0
CreateCommonProgmanItem $(EiconGroup) "Error Messages" +
"notepad.exe "$(!WANRootDir)"\wannterr.txt" +
"" 0
endif
ifstr(i) $(DoConfig) == "YES"
endif
Exit
;-----------------------------------------------------------------------------
[DestPathDlg]
DlgType = "Edit"
DlgTemplate = "IDD_DESTPATH"
Caption = "Installation Path"
DlgText1 = "The WAN Services for Windows NT files will be installed in the "+
"directory shown below."$(!LF)$(!LF)+
"To install the files somewhere else, edit the path."
EditLabel1 = "Install to:"
EditTextIn = $(!WANRootDir)
EditFocus = "END"
EditTextLim = 255
Continue = "&OK"
Back = "&Cancel"
; Help = "&Help"
; Exit = "E&xit"
; HelpContext = #( HelpContextIDs, $(DlgTemplate), 1 )
;;-----------------------------------------------------------------------------
;[SetupModeDlg]
; DlgType = "MultiCombo"
; DlgTemplate = "IDD_SETUPMODE"
; Caption = "Eicon Card Selection"
; DlgText1 = "Please choose the type of Eicon Card you need to install on your system"
; ComboCardLabel = "&Card Type"
; Continue = "&OK"
; Back = "&Cancel"
;; Help = "&Help"
;; Exit = "E&xit"
;; HelpContext = #( HelpContextIDs, $(DlgTemplate), 1 )
;
[Install-Update]
set STF_VITAL = ""
set STF_OVERWRITE = "VERIFYSOURCEOLDER"
AddSectionFilesToCopyList Files-driver $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-Eicon-DLL $(SrcDir) $(!STF_WINDOWSSYSPATH)
; must add code to scan wan path to update software
shell "" GetWANSoftwarePath
AddSectionFilesToCopyList Files-WanSys $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Wan $(SrcDir) $(!WANRootDir)
AddSectionFilesToCopyList Files-Eicon $(SrcDir) $(!WANRootDir)
AddSectionFilesToCopyList Files-EcUtl $(SrcDir) $(!STF_WINDOWSSYSPATH)
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
exit
[DeInstall-Option]
; Debug-Msg "DeInstall-Option"
set RemoveList = {}
set RemoveList = >($(RemoveList), #(UtilFiles-RemoveList, FILE1, 1))
set RemoveList = >($(RemoveList), #(UtilFiles-RemoveList, FILE2, 1))
set RemoveList = >($(RemoveList), #(UtilFiles-RemoveList, FILE3, 1))
ForListDo $(RemoveList)
; Debug-Msg "Removing "$($)
LibraryProcedure Status , $(!LIBHANDLE), DelFile $(!STF_WINDOWSSYSPATH)"\"$($)
; Debug-Msg "Status is "$(Status)
EndForListDo
set RemoveList = {}
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE1, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE2, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE3, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE4, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE5, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE6, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE7, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE8, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE9, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE10, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE11, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE12, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE13, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE14, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE15, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE16, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE17, 1))
set RemoveList = >($(RemoveList), #(ConfigFiles-RemoveList, FILE18, 1))
ForListDo $(RemoveList)
; Debug-Msg "Removing "$($)
LibraryProcedure Status , $(!LIBHANDLE), DelFile $(ConfigFilePath)"\"$($)
; Debug-Msg "Status is "$(Status)
EndForListDo
set RemoveList = {}
; set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE1, 1))
; set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE2, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE3, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE4, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE5, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE6, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE7, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE8, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE9, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE10, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE11, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE12, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE13, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE14, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE15, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE16, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE17, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE18, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE19, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE20, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE21, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE22, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE23, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE24, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE25, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE26, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE27, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE28, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE29, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE30, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE31, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE32, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE33, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE34, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE35, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE36, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE37, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE38, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE39, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE40, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE41, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE42, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE43, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE44, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE45, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE46, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE47, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE48, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE49, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE50, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE51, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE52, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE53, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE54, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE55, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE56, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE57, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE58, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE59, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE60, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE61, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE62, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE63, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE64, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE65, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE66, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE67, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE68, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE69, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE70, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE71, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE72, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE73, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE74, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE75, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE76, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE77, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE78, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE79, 1))
set RemoveList = >($(RemoveList), #(DriverFiles-RemoveList, FILE80, 1))
ForListDo $(RemoveList)
; Debug-Msg "Removing "$($)
LibraryProcedure Status , $(!LIBHANDLE), DelFile $(ConfigFilePath)"\"$($)
; Debug-Msg "Status is "$(Status)
EndForListDo
; Remove eicon group in progman
; Do not remove for now
; set EiconGroup = "Eicon Technology"
; set EiconGroupItem1 = "Release Notes"
; set EiconGroupItem2 = "Error Messages"
; RemoveCommonProgManItem $(EiconGroup), $(EiconGroupItem1)
; RemoveCommonProgManItem $(EiconGroup), $(EiconGroupItem2)
; RemoveCommonProgManGroup $(EiconGroup)
exit
[Source Media Descriptions]
1 = "WAN Services for Windows NT Disk #1" , TAGFILE = disk1
2 = "WAN Services for Windows NT Disk #2" , TAGFILE = disk2
[ProductType]
STF_PRODUCT = Winnt
STF_PLATFORM = I386
;[Files-Inf]
;1, oemsetup.inf, SIZE=1000, RENAME=$(!UG_Filename)
[Files-Driver]
1, Ecnb.sys
[Files-Eicon-DLL]
1, ecbios.dll
1, eccrpi.dll
[Files-CfgISA]
1, tempisa.eic, RENAME=eccfg.eic
[Files-CfgMCA]
1, tempmca.eic, RENAME=eccfg.eic
[Files-Wan]
2, eccfgwnt.lod
2, uk.dat
2, us_other.dat
;2, eccfg.eic
2, eem.dll
2, cfgerr.dll
2, eccfgwnt.exe
2, hproto.dll
2, cfg_itoc.dll
2, dlg.dll
2, dialers.dll
2, cfglib.dll
2, base.dll
2, lproto.dll
2, wntconf.hlp
2, elibs.dll
[Files-WanSys]
2, ctl3d.dll
[Files-EcUtl]
1, ecutl_nt.dll
1, ecutl_nt.exp
[Files-Eicon]
1, relnotes.txt, RENAME=wanntrel.txt
1, wannterr.txt
;1, oemsetup.inf
1, eccard.msg
1, ecmderr.msg
1, eccommon.msg
;1, eccfg.hlp
1, alrm.elm
1, alrmbios.elm
1, asydpna.elm
1, asyec.elm
1, asyhsi.elm
;1, asyimc.elm
1, asympn2.elm
1, asyna.elm
1, asyspcc.elm
1, bios.elm
1, bopdpna.elm
1, bopec.elm
1, bophsi.elm
1, bopimc.elm
1, bopmpn2.elm
1, bopmpna.elm
1, bopna.elm
1, bopspcc.elm
1, conm.elm
1, conmbios.elm
1, dial.elm
1, dialbios.elm
1, dlc.elm
1, dlcbios.elm
1, ectest.elm
1, hdlc.elm
1, hdlcbios.elm
1, os_dpna.elm
1, os_ec.elm
1, os_hsi.elm
1, os_mpn2.elm
1, os_mpna.elm
1, os_na.elm
1, os_imc.elm
1, os_spcc.elm
1, rs_dpna.elm
1, rs_ec.elm
1, rs_hsi.elm
1, rs_mpn2.elm
1, rs_mpna.elm
1, rs_na.elm
1, rs_spcc.elm
1, sdlc.elm
1, sdlcbios.elm
1, v22imc.elm
1, v25bdpna.elm
1, v25bec.elm
1, v25bhsi.elm
1, v25bmpn2.elm
1, v25bmpna.elm
1, v25bna.elm
1, v25bspcc.elm
1, v32bimc.elm
1, verifcfg.elm
1, x25.elm
1, x25bios.elm
1, xpti.elm
1, xptibios.elm
1, xptt.elm
1, xpttbios.elm
2, eclist.exe
2, eccard.exe
;2, eccfg.exe
2, ecload.exe
2, ecport.exe
2, ecmodule.exe
2, ecstatus.exe
2, ecstats.exe
2, ectrace.exe
2, ecver.exe
2, ecsrv.exe
2, ecdialer.exe
[ConfigFiles-RemoveList]
FILE1=eccfgwnt.lod
FILE2=uk.dat
FILE3=us_other.dat
FILE4=eccfg.eic
FILE5=eem.dll
FILE6=cfgerr.dll
FILE7=eccfgwnt.exe
FILE8=hproto.dll
FILE9=cfg_itoc.dll
FILE10=dlg.dll
FILE11=dialers.dll
FILE12=cfglib.dll
FILE13=base.dll
FILE14=lproto.dll
FILE15=wntconf.hlp
FILE16=elibs.dll
FILE17=eccfg.ini
FILE18=ec.cfg
[DriverFiles-RemoveList]
FILE1=ecutl_nt.dll
FILE2=ecutl_nt.exp
FILE3=eccard.msg
FILE4=ecmderr.msg
FILE5=eccommon.msg
FILE6=alrm.elm
FILE7=alrmbios.elm
FILE8=asydpna.elm
FILE9=asyec.elm
FILE10=asyhsi.elm
FILE11=asympn2.elm
FILE12=asyna.elm
FILE13=asyspcc.elm
FILE14=bios.elm
FILE15=bopdpna.elm
FILE16=bopec.elm
FILE17=bophsi.elm
FILE18=bopimc.elm
FILE19=bopmpn2.elm
FILE20=bopmpna.elm
FILE21=bopna.elm
FILE22=bopspcc.elm
FILE23=conm.elm
FILE24=conmbios.elm
FILE25=dial.elm
FILE26=dialbios.elm
FILE27=dlc.elm
FILE28=dlcbios.elm
FILE29=ectest.elm
FILE30=hdlc.elm
FILE31=hdlcbios.elm
FILE32=os_dpna.elm
FILE33=os_ec.elm
FILE34=os_hsi.elm
FILE35=os_mpn2.elm
FILE36=os_mpna.elm
FILE37=os_na.elm
FILE38=os_imc.elm
FILE39=os_spcc.elm
FILE40=rs_dpna.elm
FILE41=rs_ec.elm
FILE42=rs_hsi.elm
FILE43=rs_mpn2.elm
FILE44=rs_mpna.elm
FILE45=rs_na.elm
FILE46=rs_spcc.elm
FILE47=sdlc.elm
FILE48=sdlcbios.elm
FILE49=v22imc.elm
FILE50=v25bdpna.elm
FILE51=v25bec.elm
FILE52=v25bhsi.elm
FILE53=v25bmpn2.elm
FILE54=v25bmpna.elm
FILE55=v25bna.elm
FILE56=v25bspcc.elm
FILE57=v32bimc.elm
FILE58=verifcfg.elm
FILE59=x25.elm
FILE60=x25bios.elm
FILE61=eclist.exe
FILE62=eccard.exe
FILE63=ecload.exe
FILE64=ecport.exe
FILE65=ecmodule.exe
FILE66=ecstatus.exe
FILE67=ecstats.exe
FILE68=ectrace.exe
FILE69=ecver.exe
FILE70=ecsrv.exe
FILE71=ecbios.dll
FILE72=eccrpi.dll
FILE73=Ecnb.sys
FILE74=wanntrel.txt
FILE75=wannterr.txt
FILE76=ecdialer.exe
FILE77=xpti.elm
FILE78=xptibios.elm
FILE79=xptt.elm
FILE80=xpttbios.elm
[UtilFiles-RemoveList]
FILE1=ecutl_nt.dll
FILE2=ecutl_nt.exp
FILE3=ctl3d.dll