home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 March
/
CHIPCD_3_98.iso
/
software
/
testsoft
/
exchange
/
connect
/
msmcon
/
bin
/
oemsetnt.inf
< prev
next >
Wrap
INI File
|
1997-08-25
|
14KB
|
522 lines
;
; Eicon X.PAD installation script
;
[LanguagesSupported]
ENG
[Options]
XPAD
[OptionsTextENG]
XPAD = "Eicon Technology X.PAD"
[Identify]
set Status = STATUS_SUCCESSFUL
set Identifier = NetService
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)
set OptionList = ^(Options, 1)
set OptionTextList = ^(OptionsText$($0), 1)
set Status = STATUS_SUCCESSFUL
Else
set Status = STATUS_NOLANGUAGE
Endif
Return $(Status) $(OptionList) $(OptionTextList)
[FileConstants]
; WANProgManGroup = "WAN Services"
; WANProgManItem = "X.PAD Configuration Tool"
UtilityInf = "UTILITY.INF"
Manufacturer = "Eicon"
SoftwareType = "Driver"
ProductMajorVersion = "3"
ProductMinorVersion = "1"
ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
ProductSoftwareName = "EcXpad"
ProductSoftwareTitle = "Eicon X.PAD Driver"
ProductSoftwareImagePath = "\SystemRoot\System32\drivers\ecxpad.sys"
ProductSoftwareDescription = "Eicon X.PAD Driver"
; NetRuleSoftwareType = "ecxpadSys ecxpadDriver"
NetRuleSoftwareType = ""
NetRuleSoftwareUse = $(SoftwareType)
; NetRuleSoftwareBindForm = """ecxpadSys"" yes no container"
NetRuleSoftwareBindForm = ""
; NetRuleSoftwareBindForm = "ecxpadSys" "ecnbDriver" " yes no container"
NetRuleSoftwareClass = {"ecxpadDriver basic"}
ProductSoftwareDescription = "Eicon X.PAD Driver"
NetEventDLL = "%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\ecxpad.sys"
ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
[FileConstantsENG]
ProCaption = "Eicon X.PAD Driver 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:"
[GeneralConstants]
NoTitle = 0
TRUE = 1
FALSE = 0
MAXIMUM_ALLOWED = 33554432
[date]
Now = {} ? $(!LIBHANDLE) GetSystemDate
[FreeSpaceVars]
STF_VolList = {} ? $(!LIBHANDLE) GetHardDriveLetters
STF_VolFreeList = {} ? $(!LIBHANDLE) GetHardDriveFreeSpace
[InstallOption]
set Option = $($1)
set SrcDir = $($2)
set AddCopy = $($3)
set DoCopy = $($4)
set DoConfig = $($5)
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) NOT-IN $(LanguageList)
Return STATUS_NOLANGUAGE
endif
detect date
read-syms GeneralConstants
read-syms FileConstants
read-syms Files-RunList
set-subst LF = "\n"
set Status = STATUS_UNSUCCESSFUL
;
; Branch on option
;
;
; De-install X.PAD
;
Ifstr(i) $(!NTN_InstallMode) == deinstall
; Debug-Msg "InstallOption -DEINSTALL"
;
; Stop the driver so we can delete it
;
;RunProgram ExitCode "" "" $(!STF_WINDOWSSYSPATH)\cmd.exe /c $(!STF_WINDOWSSYSPATH)\net.exe stop ecxpad
;
; Remove files - NOTE: if driver running, stop it
;
install LoadSetupLibrary
install "DeInstall-Option"
install FreeSetupLibrary
;
; Delete registry Keys
;
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Msg "ShellCode error"
; goto ShellCodeError
Return $(Status)
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
Debug-Msg "registry remove error"
; goto fatalregistry
Return $(Status)
endif
set Status = STATUS_SUCCESSFUL
;
; Update X.PAD
;
else-Ifstr(i) $(!NTN_InstallMode) == update
; Debug-Msg "InstallOption -UPDATE"
;
; Stop the driver so we can overwrite it
;
;RunProgram ExitCode "" "" $(!STF_WINDOWSSYSPATH)\cmd.exe /c $(!STF_WINDOWSSYSPATH)\net.exe stop ecxpad
;
; Copy files
;
read-syms FileConstants$(!STF_LANGUAGE)
install "Install-Option"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
; goto ShellCodeError
Return $(Status)
endif
set Error = $($R0)
; goto fatal
Return $(Status)
endif
;
; Configure X.PAD
;
else-Ifstr(i) $(!NTN_InstallMode) == configure
; Debug-Msg "InstallOption -CONFIG"
;
; Run config program
;
RunProgram ExitCode "" "" $(PADCNFG) "NCPA"
ifint $(ExitCode) == 1
set Status = STATUS_SUCCESSFUL
; Debug-Msg "CHANGES MADE"
else
ifint $(ExitCode) == 0
set Status = STATUS_NO_EFFECT
; Debug-Msg "NO CHANGES MADE"
else
; Debug-Msg "Not able to run"
endif
endif
;
; Install X.PAD
;
else-Ifstr(i) $(!NTN_InstallMode) == install
; Debug-Msg "InstallOption -INSTALL"
;
; Check if already installed
;
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
CloseRegKey $(KeyProduct)
Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
$(ProductVersion)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Msg "ShellCode error: cannot get an error string."
; goto ShellCodeError
Return $(Status)
endif
ifstr(i) $($R1) != "OK"
; goto end
Return $(Status)
endif
Return $(Status)
endif
;
; Check that there's enough disk space on the target drive.
;
detect FreeSpaceVars
GetDriveInPath WANDrive $(!STF_WINDOWSSYSPATH)
ForListDo $(STF_VolList)
ifstr(i) $($) == $(WANDrive)
set VolSpaceFree = *( $(STF_VolFreeList), $(#) )
endif
EndForListDo
ifint $(VolSpaceFree) < 1
shell $(!STF_WINDOWSSYSPATH)"\SUBROUTN.INF" SetupMessage $(!STF_LANGUAGE) STATUS +
"Not enough room for the Eicon X.PAD Service on drive "+
$(WANDrive)" (".5") megs needed, "+
$(VolSpaceFree)" available)."$(!LF)$(!LF)
Return $(Status)
endif
;
; Not installed, copy files
;
read-syms FileConstants$(!STF_LANGUAGE)
install "Install-Option"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
; goto ShellCodeError
Return $(Status)
endif
set Error = $($R0)
; goto fatal
Return $(Status)
endif
;
; Create registry Keys + values
;
Shell $(UtilityInf), AddSoftwareComponent,+
$(Manufacturer), +
$(ProductSoftwareName), +
$(ProductSoftwareName), +
$(ProductSoftwareTitle), +
$(STF_CONTEXTINFNAME), +
$(ProductSoftwareImagePath),+
"kernelautostart", +
"Extended Base", +
{"Ecnb"},+
"",+
$(NetEventDLL)
Set OEM_ABANDON_SOFTWARE = TRUE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Msg "ShellCode error"
else
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Msg "Registry error: add software components-1"
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
CloseRegKey $($R4)
CloseRegKey $($R5)
else
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)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Msg "ShellCode error."
else
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Msg "Resgitry error: add value list."
CloseRegKey $(SoftProductKey)
CloseRegKey $(SoftNetRuleKey)
CloseRegKey $(SoftServiceKey)
CloseRegKey $(SoftParameterKey)
CloseRegKey $(SoftLinkageKey)
else
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-Msg "ShellCode error."
else
set RegistryErrorIndex = $($R0)
CloseRegKey $(SoftProductKey)
CloseRegKey $(SoftNetRuleKey)
CloseRegKey $(SoftServiceKey)
CloseRegKey $(SoftParameterKey)
CloseRegKey $(SoftLinkageKey)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Msg "Resgitry error: add value list."
endif
endif
endif
endif
endif
endif
;
; Run config program
;
RunProgram ExitCode "" "" $(PADCNFG) "NCPA"
ifint $(ExitCode) == 1
set Status = STATUS_SUCCESSFUL
else
ifint $(ExitCode) == 0
set Status = STATUS_SUCCESSFUL
Shell $(!STF_WINDOWSSYSPATH)"\subroutn.inf" +
SetupMessage $(!STF_LANGUAGE) +
WARNING +
$(!LF)"No X.PAD COM Ports were defined."$(!LF)$(!LF)+
"The X.PAD driver will not load."$(!LF)+
"Please select Configure and add"$(!LF)+
"at least 1 X.PAD COM port in order for"$(!LF)+
"the driver to load."$(!LF)
else
; Debug-Msg "Not able to run"
endif
endif
endif
Return $(Status)
[Install-Option]
ifstr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-Driver $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-Eicon $(SrcDir) $(!STF_WINDOWSSYSPATH)
endif
ifstr(i) $(DoCopy) == "YES"
set !STF_NCPA_FLUSH_COPYLIST = TRUE
;
; Copy files
;
CopyFilesInCopyList
;
; Add icon to group
;
; CreateCommonProgmanItem $(WANProgManGroup) $(WANProgManItem) +
; $(PADCNFG) +
; "" 0
endif
exit
[DeInstall-Option]
;
; Remove files
;
set RemoveList = {}
set RemoveList = >($(RemoveList), #(Files-RemoveList, PADDRVR, 1))
set RemoveList = >($(RemoveList), #(Files-RemoveList, PADCNFG, 1))
set RemoveList = >($(RemoveList), #(Files-RemoveList, PADCNFGHLP, 1))
set RemoveList = >($(RemoveList), #(Files-RemoveList, PADFR, 1))
set RemoveList = >($(RemoveList), #(Files-RemoveList, PADEN, 1))
ForListDo $(RemoveList)
; Debug-Msg "Removing "$($)
LibraryProcedure Status , $(!LIBHANDLE), DelFile $($)
; Debug-Msg "Status is "$(Status)
EndForListDo
;
; Remove icon from group
;
; RemoveCommonProgmanItem $(WANProgManGroup) $(WANProgManItem)
;
; Remove the inf file residing on the system
;
OpenRegKey $(!REG_H_LOCAL), "", +
"SOFTWARE\Eicon\EcXpad\CurrentVersion\NetRules", +
$(!REG_KEY_READ), KeyCurVer
ifstr(i) $(KeyCurVer) != $(KeyNull)
set WanInf = ""
GetRegValue $(KeyCurVer) "InfName" WanInf
CloseRegKey $(KeyCurVer)
ifstr(i) $(WanInf) != ""
set WanInfName = *($(WanInf),4)
LibraryProcedure Status , $(!LIBHANDLE), DelFile $(WanInfName)
endif
endif
exit
[LoadSetupLibrary]
set !LIBHANDLE = ""
LoadLibrary "x" $(!STF_WINDOWSSYSPATH)\setupdll.dll !LIBHANDLE
exit
[FreeSetupLibrary]
FreeLibrary $(!LIBHANDLE)
set !LIBHANDLE = ""
exit
[Source Media Descriptions]
1 = "Eicon X.PAD Windows NT Setup Disk", TAGFILE = xpadisk1
[Files-RunList]
PADCNFG = $(!STF_WINDOWSSYSPATH)\xpadcnfg.exe
[Files-RemoveList]
PADDRVR = $(!STF_WINDOWSSYSPATH)\drivers\ecxpad.sys
PADCNFG = $(!STF_WINDOWSSYSPATH)\xpadcnfg.exe
PADCNFGHLP = $(!STF_WINDOWSSYSPATH)\xpadcnfg.hlp
PADFR = $(!STF_WINDOWSSYSPATH)\ecxpad.fr
PADEN = $(!STF_WINDOWSSYSPATH)\ecxpad.en
[Files-Driver]
1, ecxpad.sys, SIZE=100000
[Files-Eicon]
1, xpadcnfg.exe, SIZE=50000
1, xpadcnfg.hlp, SIZE=150000
1, ecxpad.fr, SIZE=5000
1, ecxpad.en, SIZE=5000