home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Online Praxis 1997 March
/
OP2_97.BIN
/
cd-rom
/
treiber
/
diamond
/
wnt
/
rasnce1.exe
/
rar
/
OEMSETUP.INF
< prev
next >
Wrap
Windows Setup INFormation
|
1997-04-18
|
42KB
|
1,327 lines
;//***********************************************************************
;//
;// ISDN for NT
;//
;// ACOTEC ISDN RasCapi software setup
;//
;// Copyright (C) ACOTEC GmbH, Berlin 1995 - 1996
;//
;// Version 3.0 for Windows NT 3.51 (4.0)
;//
;//***********************************************************************
[Version]
3.0
[PrintParms]
FALSE
; TRUE
;//-----------------------------------------------------------------------
;// OPTION TYPE
;// -----------
;// This identifies the Option type we are dealing with. The different
;// possible types are:
;//
;// COMPUTER, DISPLAY, MOUSE, KEYBOARD, LAYOUT, SCSI, PRINTER, ...
;//
;// Types specific to networking:
;//
;// NetAdapter, a netcard / adapter combination or just a netcard
;// NetDriver, just a netcard driver
;// NetTransport, a complete NDIS-compliant TDI transport stack
;// NetService, an NT networking service
;// NetWork, a complete network ensemble.
;// NetProvider a complete network which supports NT MPR protocol
;//-----------------------------------------------------------------------
[Identification]
OptionType = NetAdapter
; OptionType = NetService
;//-----------------------------------------------------------------------
;// PlatformsSupported
;// ------------------
;// This identifies the platforms supported by the adapter card.
;// Possible types are:
;//
;// ISA, EISA, MCA ...
;//
;// Cause we don't access the hardware directly we accept any platform
;//
;//-----------------------------------------------------------------------
[PlatformsSupported]
ANY
;//-----------------------------------------------------------------------
;// LanguagesSupported
;// ------------------
;// This identifies the languages supported by this inf file.
;// As long as NT supports only "ENG" and expects the national text versions
;// under the "ENG" topic we must hardwire the preferred language here
;//
;//-----------------------------------------------------------------------
[LanguagesSupported]
ENG
GER
[PreferredLanguage]
Language = GER
;//-----------------------------------------------------------------------
;// OPTION LIST
;// -----------
;// This section lists the OEM Option key names. These keys are locale
;// independent and used to represent the option in a locale independent
;// manner.
;//
;//-----------------------------------------------------------------------
[Options]
AcoRas 0
[OptionsTextGER]
AcoRas = "ACOTEC ISDN RASCAPI Treiber"
[OptionsTextENG]
AcoRas = "ACOTEC ISDN RASCAPI driver"
[Source Media Descriptions]
1 = "ACOTEC ISDN RASCAPI driver diskette" , TAGFILE = RasDisk1.TAG
[FileConstantsGER]
SoftwareDescription = "ACOTEC ISDN RASCAPI Treiber"
SoftwareTitle = "ACOTEC ISDN RASCAPI Treiber"
FunctionTitle = "ACOTEC ISDN RASCAPI Treibereinrichtung"
ShellCodeErrorTitle = "Fehler: "$(FunctionTitle)
ShellCodeErrorText = "Shell-Codefehler"
HardwareTitle = $(SoftwareTitle)
HardwareDescription = $(SoftwareDescription)
;// This constants are relevant for a file copybox
ProCaption = $(SoftwareTitle)" Setup"
ProCancel = "Abbrechen"
ProCancelMsg = "Sind Sie sicher, da▀ Sie das Kopieren der Dateien abbrechen m÷chten? "+
"Wenn Sie jetzt abbrechen, wurde der "$(SoftwareTitle)" unvollstΣndig installiert. "+
"Bereits installierte Komponenten werden wieder entfernt."
ProCancelCap = "Meldung zum Acotec RASCAPI Setup"
ProText1 = "Kopiert:"
ProText2 = "Nach:"
[FileConstantsENG]
SoftwareDescription = "ACOTEC ISDN RASCAPI driver"
SoftwareTitle = "ACOTEC ISDN RASCAPI Driver"
FunctionTitle = "ACOTEC ISDN RASCAPI Driver Setup"
ShellCodeErrorTitle = "Error: "$(FunctionTitle)
ShellCodeErrorText = "Shell-Code Error"
HardwareTitle = $(SoftwareTitle)
HardwareDescription = $(SoftwareDescription)
ProCaption = "Acotec RASCAPI setup"
ProCancel = "Cancel"
ProCancelMsg = "Are you sure for canceling copy files? "+
"If you cancel than is Acotec RASCAPI not correctly installed.The installed software components remove now."
ProCancelCap = "Message Acotec RASCAPI setup"
ProText1 = "copied:"
ProText2 = "to:"
[GeneralConstants]
;// File Names
UtilInf = "UTILITY.INF"
ParmInf = "NCPARAM.INF"
SubrInf = "SUBROUTN.INF"
;// Registry access
MAXPERM = 33554432
KeyNull = ""
NoTitle = 0
;// Product Info
Product = "AcoRas"
Manufacturer = "ACOTEC"
Logo = $(Product)" software (c) "$(Manufacturer)
;// Setup.dll file; Data files
ProductDirectory = "ACOTEC"
ProductPath = $(!STF_WINDOWSSYSPATH)"\"$(ProductDirectory)
SetupPath = $(ProductPath)"\AcoSuDLL.DLL"
InCallFileName = $(ProductPath)"\caller.dat"
;// Software
SoftwareName = $(Product)
SoftwareType = "driver"
SoftwareServiceName = $(SoftwareName)
SoftwareServiceGroup = "NDIS"
SoftwareServiceType = "kernel"
SoftwareServiceTypeDisabled = "kerneldisable"
SoftwareImagePath = "\SystemRoot\system32\drivers\"$(Product)".sys"
SoftwareBase = $(!NTN_SoftwareBase)"\"$(Manufacturer)
SoftwareKeyName = $(SoftwareBase)"\"$(Product)"\CurrentVersion"
NetRuleSoftwareType = $(Product)"Sys RasCapiDriver"
NetRuleSoftwareUse = $(SoftwareType)
NetRuleSoftwareBindForm = """"$(Product)"Driver"" yes no container"
NetRuleSoftwareClass = {"RasCapiDriver basic"}
NetRuleSoftwareBindable = {"RasCapiDriver RasCapiAdapter non exclusive 100"}
;// Hardware
HardwareName = $(Product)
NetRuleHardwareType = $(Product)" RasCapiAdapter"
NetRuleHardwareBindForm = " yes yes container"
NetRuleHardwareClass = {$(Product)"Adapter basic"}
;// Service
CurrentControlSet = "SYSTEM\CurrentControlSet"
ServiceBase = $(CurrentControlSet)"\Services"
ServicePath = $(ServiceBase)"\"$(SoftwareServiceName)
ServiceParameters = $(ServicePath)"\Parameters"
OldServiceParameters = $(ServiceBase)"\RasCapi\Parameters"
ControlBase = $(CurrentControlSet)"\Control"
ServiceGroupOrder = $(ControlBase)"\ServiceGroupOrder"
TapiDevicesPath = "HARDWARE\DEVICEMAP\TAPI DEVICES"
CapiDevicesPath = "SOFTWARE\CAPI20"
;// Traceservice
TrcServiceName = "AcoRasTraceSV"
TrcServiceTitle = "ACOTEC RasCapi Trace Service"
TrcServicePath = $(ServiceBase)"\"$(TrcServiceName)
TrcServiceParmPath = $(TrcServicePath)"\Parameters"
TrcServiceImagePath = "%SystemRoot%\system32\"$(ProductDirectory)"\RasTrcSv.EXE"
TrcServiceStartTypeMan = "service"
TrcServiceStartTypeAuto = "serviceauto"
TrcServiceGroup = "Network"
;// Setup pathes
AcoSetupIconsPath = $(ProductPath)"\AcoIcons.inf"
[date]
;// Now is a list which contains:
;// Sec from 1-1-1970, Year, Month, Day, Hour, Minute, Second
Now = {} ? $(!LIBHANDLE) GetSystemDate
;//---------------------------------------------------------------------------
;// 1. Identify
;//
;// DESCRIPTION: To verify that this INF deals with the same type of options
;// as we are choosing currently.
;//
;// INPUT: None
;//
;// OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL
;// $($R1): Option Type (COMPUTER ...)
;// $($R2): Diskette description
;//---------------------------------------------------------------------------
[Identify]
read-syms Identification
set Identifier = $(OptionType)
set Media = #("Source Media Descriptions", 1, 1)
ifstr(i) *(^(PrintParms, 1), 1) == TRUE
set parms = "Identify: Id="$(Identifier)" Media="$(Media)
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"STATUS",$(parms)
endif
return STATUS_SUCCESSFUL $(Identifier) $(Media)
;//------------------------------------------------------------------------
;// 2. ReturnOptions:
;//
;// DESCRIPTION: To return the option list supported by this INF and the
;// localised text list representing the options.
;//
;// INPUT: $($0): Language used. ( ENG | GER | FRN ... )
;//
;// OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
;// STATUS_NOLANGUAGE
;// STATUS_FAILED
;// STATUS_NOTSUPPORTED
;//
;// $($R1): Option List
;// $($R2): Option Text List
;//------------------------------------------------------------------------
[ReturnOptions]
Shell "" GetLanguage
set Language = $($R0)
set OptionList = ^(Options, 1)
set OptionTextList = ^(OptionsText$(!Language), 1)
ifstr(i) *(^(PrintParms, 1), 1) == TRUE
set parms = "ReturnOptions: Lang="$($0)" Platform="$($1)""$(!LF)+
$(OptionList)$(!LF)$(OptionTextList)
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"STATUS",$(parms)
endif
return STATUS_SUCCESSFUL $(OptionList) $(OptionTextList)
;//------------------------------------------------------------------------
;//
;// InstallOption:
;//
;// This section is shelled to by main installation processing
;// or by NCPASHEL.INF during reconfig, removal, update, etc.
;//
;// FUNCTION: To copy files representing Options
;// To configure the installed option
;// To update the registry for the installed option
;//
;// INPUT: $($0): Language to use
;// $($1): Option, i.e name of card type to install
;// $($2): SourceDirectory
;// $($3): AddCopy (YES | NO)
;// $($4): DoCopy (YES | NO)
;// $($5): DoConfig (YES | NO)
;//
;// OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
;// STATUS_NOLANGUAGE |
;// STATUS_USERCANCEL |
;// STATUS_FAILED
;//
;//------------------------------------------------------------------------
[InstallOption]
;// append a "\ " to SrcDir if necessary (nice bug, depends on user input)
set SrcDir = $($2)
set SplitList = {}
split-string $(SrcDir) "\" SplitList
querylistsize SplitCount $(SplitList)
ifstr(i) "\" != *($(SplitList), $(SplitCount))
set SrcDir = $(SrcDir)"\"
endif
Shell "" GetLanguage
set-subst !LF = \n
set !Product = "AcoRas"
;// set !STF_DISPLAYDEBUGOUTPUT = TRUE
set !SetupHandle = ""
;// caseswitch for install modes
ifstr(i) $(!NTN_InstallMode) == deinstall
Shell "" RemoveRequest
else-ifstr(i) $(!NTN_InstallMode) == update
Shell "" UpdateRequest $(SrcDir)
else-ifstr(i) $(!NTN_InstallMode) == bind
Shell "" BindRequest
else-ifstr(i) $(!NTN_InstallMode) == configure
Shell "" ConfigureRequest
else-ifstr(i) $(!NTN_InstallMode) == install
Shell "" InstallRequest $(SrcDir)
endif
return $($R0)
;// ****************************************************************************
;// Installmode : Remove
[RemoveRequest]
read-syms GeneralConstants
read-syms FileConstants$(!Language)
;// set the libraryhandle
LoadLibrary "" $(SetupPath) !SetupHandle
;// remove the files used by RAS
set !ExitCondition = "REBOOT"
LibraryProcedure Result $(!SetupHandle) AcoRasCleanUp
Shell $(AcoSetupIconsPath) "RemoveRasIcons"
Shell "" CheckRemovingCommonIcons
Shell "" GetLanguage
ifstr(i) $($R0) == "GER"
set parms = "Die Deinstallation des "*(^(OptionsText$(!Language), 1),1)+
" ist erfolgreich beendet."
else
set parms = "The removing from the "*(^(OptionsText$(!Language), 1),1)+
" has been finished succesfully."
endif
ifstr(i) $(!ExeCalled) == TRUE
set !EndText = $(parms)
else
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"STATUS",$(parms)
endif
return STATUS_SUCCESSFUL
;// ****************************************************************************
;// Installmode : Update
[UpdateRequest]
Shell "" GetLanguage
read-syms GeneralConstants
read-syms FileConstants$(!Language)
set SrcDir = $($0)
LoadLibrary "" $(SrcDir)"AcoSUDLL.DLL" !SetupHandle
LibraryProcedure Result $(!SetupHandle) AttachLangDLL $(!STF_HWND) $(SrcDir)
;// Check old Version of RasCapi
OpenRegKey $(!REG_H_LOCAL) "" $(OldServiceParameters) $(MAXPERM) Key
ifstr $(Key) != $(KeyNull)
ifstr(i) Language == "GER"
set parms = "Der ACOTEC ISDN RASCAPI kann nicht direkt aktualisiert werden. "+
"Die auf Ihren Computer installierte Version wird entfernt."
"Booten Sie Ihren Computer. Installieren sie dann die neue Version des Acotec RasCapi Treibers."
else
set parms = "The ACOTEC ISDN RASCAPI can't upgraded directly. The old version "+
"is removing now. "+
"After restart your computer install the new version of the Acotec RasCapi driver."
endif
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"ERROR",$(parms)
LibraryProcedure Result $(!SetupHandle) AcoRasCleanUp $(HWND)
return STATUS_OK
endif
set !ExitCondition = "REBOOT"
;// get the old inffilename for the new oemsetup.inf
Shell "" GetInfFileName
set !UG_FILENAME = $($R0)
install "install-install"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
LibraryProcedure Result $(!SetupHandle) AcoRasCleanUp
return STATUS_USERCANCEL
endif
Shell $(AcoSetupIconsPath) "InstallRASIcons" $(!Language)
;// Set the Libraryhandle by harddisk
LoadLibrary "" $(SetupPath) !SetupHandle
Shell "" ConfigureWANController
Shell "" MS-RASInstall
return STATUS_SUCCESSFUL
;// ****************************************************************************
;// Installmode : Bind (here not allowed -> fatal error)
[BindRequest]
Shell "" GetLanguage
ifstr(i) $($R0) == "ENG"
set CantChangeBinding = "Cannot change binding"
else
set CantChangeBinding = "Die Bindungsdaten k÷nnen nicht verΣndert werden"
endif
Shell "SUBROUTN.INF" SetupMessage,ENG,"FATAL",$(parms)
return STATUS_FAILED
;// ****************************************************************************
;// Installmode : Configure
[ConfigureRequest]
read-syms GeneralConstants
read-syms FileConstants$(!Language)
set changecount = 0
;// set the libraryhandle
LoadLibrary "" $(SetupPath) !SetupHandle
;//configure WAN controller
Shell "" ConfigureWANController
set changecount = 0
ifstr(i) $($R0) != "USER_CANCEL"
set-add changecount = $(changecount), 1
endif
ifint $(changecount) == 0
return STATUS_USERCANCEL
endif
set !ExitCondition = "REBOOT"
Shell "" MS-RASInstall
return STATUS_SUCCESSFUL
;// ****************************************************************************
;// Installmode : Install
;// Input : $($0) Sourcedirectory
[InstallRequest]
StartWait
set SrcDir = $($0)
LoadLibrary "" $(SrcDir)"AcoSUDLL.DLL" !SetupHandle
LibraryProcedure Result $(!SetupHandle) AttachLangDLL $(!STF_HWND) $(SrcDir)
;//read the global constants from sections
read-syms GeneralConstants
Shell "" GetLanguage
read-syms FileConstants$(!Language)
;// Check the tagfile for a correctly install directory
Shell "" CheckCorrectlyInstallDir $(SrcDir)
ifstr(i) $($R0) == "ERROR"
LibraryProcedure Result $(!SetupHandle) AcoRasCleanUp
return STATUS_SUCCESSFUL
endif
;// if only speacards installed no serialnumber input
LibraryProcedure Result $(!SetupHandle) RasCheckSpeaCard
ifstr(i) $(Result) == "SERIAL_REQUEST"
LibraryProcedure Result $(!SetupHandle) AcoRasConfigKeyNumber $(!STF_HWND) $(SrcDir)"SETUP.HLP"
ifstr(i) $(Result) == "USER_CANCEL"
return STATUS_USERCANCEL
endif
endif
set !ExitCondition = "REBOOT"
;// Install various components
set errorcount = 0
set errorlist = {}
;// Install the RasCapiSoftware
;// Return KeyServiceParameters in $($R0)
Shell "" InstallRasSoftware
ifstr(i) $($R0) == "ERROR"
set-add errorcount = $(errorcount) , 1
set errorlist = >($(errorlist), $($R1))
endif
set KeyServiceParameter = $($R0)
;// Install the RasCapiHardware
Shell "" InstallRasHardware $(KeyServiceParameter)
ifstr(i) $($R0) == "ERROR"
set-add errorcount = $(errorcount) , 2
set errorlist = >($(errorlist), $($R1))
endif
Shell "" InstallTraceService
ifstr(i) $($R0) == "ERROR"
set-add errorcount = $(errorcount) , 4
set errorlist = >($(errorlist), $($R1))
endif
;//if errorcheck ok finished the Registry Installation else break the installation
ifint $(errorcount) != 0
set list = ""
ForListDo $(errorlist)
set list = $(list)$(!LF)$($)
EndForListDo
ifstr(i) *(^(PrintParms, 1), 1) == TRUE
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"Fatal","Registry installation error with ("+
$(errorcount)" errors)"$(!LF)$(list)
endif
ifstr(i) $(!Language) == "GER"
set parms = "Bei der Installation der RegistryeintrΣge fⁿr den "+
*(^(OptionsText$(!Language), 1), 1)+
" ist ein Fehler aufgetreten.(Nr: "$(errorcount)") Starten Sie Ihren Computer neu "+
"und fⁿhren Sie nochmals die Installation des MPR aus."
else
set parms = "The registry installation from the "+
*(^(OptionsText$(!Language), 1), 1)+
" has a error. (Nb. "$(errorcount)") Boot your computer and start installation oncemore."
endif
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"Fatal",$(parms)
LibraryProcedure Result $(!SetupHandle) AcoRasCleanUp
return STATUS_FAILED
endif
EndWait
;//copy the files
install "Install-Install"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
LibraryProcedure Result $(!SetupHandle) AcoRasCleanUp
return STATUS_USERCANCEL
endif
;// Set the Libraryhandle by harddisk
LoadLibrary "" $(SetupPath) !SetupHandle
;//configure WAN controller
ConfWanCtr =+
Shell "" ConfigureWANController
ifstr(i) $($R0) == "USER_CANCEL"
Shell "" CheckReallyCancel
ifstr(i) $($R0) == "USER_CANCEL"
LibraryProcedure Result $(!SetupHandle) AcoRasCleanUp
return STATUS_SUCCESSFUL
else
goto ConfWanCtr
endif
endif
;//if not controller choose than typ of start switch off
;// Install a program group and a program for futher configuration
Shell $(AcoSetupIconsPath) "InstallRasIcons" $(!Language)
;// Install Eventlog Entry
LibraryProcedure Result $(!SetupHandle) AcoRasProvideRegistry
;// Install ended
ifstr(i) $(!Language) == "GER"
set parms = "Die Installation des "*(^(OptionsText$(!Language), 1),1)" ist abgeschlossen!"+
"Um RAS nutzen zu k÷nnen, installieren oder konfigurieren Sie Microsoft-RAS."+
"Drⁿcken Sie die Taste 'OK' wenn Sie MS-RAS installieren oder konfigurieren wollen."
else
set parms = "The installation from "*(^(OptionsText$(!Language), 1),1)" finished."+
"For using RAS install or configure MS-RAS. Press button 'OK' for install or configure MS-RAS."
endif
Shell "" MS-RASInstall
return STATUS_SUCCESSFUL
;// ****************************************************************************
;// various software components installsections
;// ****************************************************************************
[InstallRasSoftware]
;// Output $($R0) KeyServiceParameters for Hardwareinstall
read-syms GeneralConstants
read-syms FileConstants$(!Language)
ifstr(i) *(^(PrintParms, 1), 1) == TRUE
set params = "AddSoftwareComponent"$(!LF)+
"Manufacturer :"$(Manufacturer)$(!LF)+
"Softwarename :"$(SoftwareName)$(!LF)+
"Servicename :"$(SoftwareServiceName)$(!LF)+
"Softwaretitle :"$(SoftwareTitle)$(!LF)+
"Inf-filename :"$(STF_CONTEXTINFNAME)$(!LF)+
"SW-Imagepath :"$(SoftwareImagePath)$(!LF)+
"Servicetyp :kernel"$(!LF)+
"Servicegroup :"$(SoftwareServiceGroup)
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"Status",$(params)
endif
Shell $(UtilInf), AddSoftwareComponent, +
$(Manufacturer), +
$(SoftwareName), +
$(SoftwareServiceName), +
$(SoftwareTitle), +
$(STF_CONTEXTINFNAME), +
$(SoftwareImagePath), +
"kernel", +
$(SoftwareServiceGroup), +
{}, +
"", +
$(NetEventDLL)
ifstr(i) $($R0) != NO_ERROR
return "ERROR" "Registry error RasSoftware"
endif
ifint $($ShellCode) != $(!SHELL_CODE_OK)
return "ERROR" "SHELL_CODE error RasSoftware"
endif
set RegistryError = $($R0)
set KeySoftware = $($R1)
set KeySoftwareNetRules = $($R2)
set KeyService = $($R3)
set KeyServiceParameters = $($R4)
CloseRegKey $($R5)
detect date
ifstr(i) *(^(PrintParms, 1), 1) == TRUE
set params = "AddValues Software"$(!LF)+
"SoftwareType :"$(SoftwareType)$(!LF)+
"Version :"*(^(Version, 1), 1)$(!LF)+
"Softwaretitle :"$(SoftwareTitle)$(!LF)+
"Description :"$(SoftwareDescription)$(!LF)+
"SW-Imagepath :"$(SoftwareImagePath)$(!LF)+
"Servicename :"$(SoftwareServiceName)$(!LF)+
"InstallDate :"*($(Now),1)
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"Status",$(params)
endif
set NewValueList = {+
{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
{Version,$(NoTitle),$(!REG_VT_DWORD),*(^(Version, 1), 1)},+
{Title,$(NoTitle),$(!REG_VT_SZ),$(SoftwareTitle)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(SoftwareDescription)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$(SoftwareServiceName)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}+
}
Shell $(UtilInf), AddValueList, $(KeySoftware), $(NewValueList)
ifstr(i) $($R0) != NO_ERROR
return "ERROR" "Registry error Addvalue RasSoftware"
endif
ifint $($ShellCode) != $(!SHELL_CODE_OK)
return "ERROR" "SHELL_CODE error Addvalue RasSoftware"
endif
ifstr(i) *(^(PrintParms, 1), 1) == TRUE
set params = "AddValues Software Rules"$(!LF)+
"Type :"$(NetRuleSoftwareType)$(!LF)+
"Use :"$(NetRuleSoftwareUse)$(!LF)+
"bindform :"$(NetRuleSoftwareBindForm)$(!LF)+
"Class :"$(NetRuleSoftwareClass)$(!LF)+
"bindable :"$(NetRuleSoftwareBindable)$(!LF)+
"Infoption :AcoRas"
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"Status",$(params)
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),"AcoRas"}+
}
Shell $(UtilInf), AddValueList, $(KeySoftwareNetRules), $(NewValueList)
ifstr(i) $($R0) != NO_ERROR
return "ERROR" "Registry error Addvalue RasSoftware Rules"
endif
ifint $($ShellCode) != $(!SHELL_CODE_OK)
return "ERROR" "SHELL_CODE error Addvalue RasSoftware Rules"
endif
return $(KeyServiceParameters) ""
[InstallRasHardware]
;// Input $($0) KeyServiceParameters from Softwareinstall
set KeyServiceParameters = $($0)
read-syms GeneralConstants
read-syms FileConstants$(!Language)
Shell $(UtilInf), AddHardwareComponent, $(HardwareName),+
$(STF_CONTEXTINFNAME), $(SoftwareKeyName)
ifstr(i) $($R0) != NO_ERROR
return "ERROR" "Registry error Addvalue RasHardware"
endif
ifint $($ShellCode) != $(!SHELL_CODE_OK)
return "ERROR" "SHELL_CODE error Addvalue RasHardware"
endif
set KeyNetworkCard = $($R1)
set KeyAdapterRules = $($R2)
set KeyParameters = $($R3)
set AdapterNumber = $($R4)
detect date
ifstr(i) *(^(PrintParms, 1), 1) == TRUE
set params = "AddValues Hardware"$(!LF)+
"Manufacturer :"$(Manufacturer)$(!LF)+
"Title :"$(HardwareTitle)$(!LF)+
"Description :"$(HardwareDescription)$(!LF)+
"Productname :"$(HardwareName)$(!LF)+
"Servicename :"$($R5)
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"Status",$(params)
endif
set NewValueList = {+
{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
{Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(HardwareTitle)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(HardwareDescription)},+
{ProductName,$(NoTitle),$(!REG_VT_SZ),$(HardwareName)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}+
}
Shell $(UtilInf), AddValueList, $(KeyNetworkCard), $(NewValueList)
ifstr(i) $($R0) != NO_ERROR
return "ERROR" "Registry error Addvalue RasHardware"
endif
ifint $($ShellCode) != $(!SHELL_CODE_OK)
return "ERROR" "SHELL_CODE error Addvalue RasHardware"
endif
set TempProdName = """"$(HardwareName)$(AdapterNumber)""""
set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
ifstr(i) *(^(PrintParms, 1), 1) == TRUE
set params = "AddValues Hardware Rules"$(!LF)+
"type :"$(NetRuleHardwareType)$(!LF)+
"bindform :"$(TempBindForm)$(!LF)+
"class :"$(NetRuleHardwareClass)$(!LF)+
"InfOption :AcoRas"
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"Status",$(params)
endif
set NewValueList = {+
{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
{bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),"AcoRas"}+
}
Shell $(UtilInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
CloseRegKey $(KeyAdapterRules)
ifstr(i) $($R0) != NO_ERROR
return "ERROR" "Registry error Addvalue RasHardware Rules"
endif
ifint $($ShellCode) != $(!SHELL_CODE_OK)
return "ERROR" "SHELL_CODE error Addvalue RasHardware Rules"
endif
; write the private global configuration parameters
ifstr(i) *(^(PrintParms, 1), 1) == TRUE
set params = "AddValues Hardware"$(!LF)+
"Reg-Path :"$(KeyServiceParameters)$(!LF)+
"AdapterNumber :"$(AdapterNumber)$(!LF)+
"MSNEAZ :"{}$(!LF)+
"Trace :3"$(!LF)+
"Tracebuffer :4096"$(!LF)+
"DefaultInbound :B_HDLC"$(!LF)+
"DefaultOutbound :B_HDLC"$(!LF)+
"Repair :0"
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"Status",$(params)
endif
set ValueList = { +
{AdapterNumber,$(NoTitle),$(!REG_VT_DWORD),$(AdapterNumber)},+
{Controllers,$(NoTitle),$(!REG_VT_MULTI_SZ),{}},+
{DefaultInbound,$(NoTitle),$(!REG_VT_SZ),"B_HDLC"},+
{DefaultOutbound,$(NoTitle),$(!REG_VT_SZ),"B_HDLC"},+
{IncallFlag,$(NoTitle),$(!REG_VT_DWORD),2},+
{IncomingCallerFile,$(NoTitle),$(!REG_VT_SZ),$(InCallFileName)},+
{LogBufferSize,$(NoTitle),$(!REG_VT_DWORD),1024},+
{LogLevel,$(NoTitle),$(!REG_VT_DWORD),1},+
{MSNEAZ,$(NoTitle),$(!REG_VT_MULTI_SZ),{}},+
{Repair,$(NoTitle),$(!REG_VT_DWORD),0},+
{TraceBufferSize,$(NoTitle),$(!REG_VT_DWORD),8192},+
{TraceLevel,$(NoTitle),$(!REG_VT_DWORD),1},+
{UseExternTrace,$(NoTitle),$(!REG_VT_DWORD),0}+
}
Shell $(UtilInf), AddValueList, $(KeyServiceParameters), $(ValueList)
ifstr(i) $($R0) != NO_ERROR
return "ERROR" "Registry error Addvalue RasHardware Serviceparameter"
endif
ifint $($ShellCode) != $(!SHELL_CODE_OK)
return "ERROR" "SHELL_CODE error Addvalue RasHardware Serviceparameter"
endif
; Finally write the adapter specific parameters in the adapter service
; parameters key (although we are a dummy adapter it seems necessary
; to set "BusType" and "BusNumber" there).
Shell $(UtilInf), GetBusTypeNum
set BusTypeNum = $($R1)
set BusNumber = 0
set ValueList = {+
{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
{BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
}
Shell $(UtilInf), AddValueList, $(KeyParameters), $(ValueList)
ifstr(i) $($R0) != NO_ERROR
return "ERROR" "Registry error Addvalue RasHardware Bustyp"
endif
ifint $($ShellCode) != $(!SHELL_CODE_OK)
return "ERROR" "SHELL_CODE error Addvalue RasHardware Bustyp"
endif
return $(AdapterNumber) ""
[CheckCorrectlyInstallDir]
;// INPUT : in $($0) SourceDirectory
set SrcDir = $($0)
read-syms GeneralConstants
Shell "" GetLanguage
set Name = $(SrcDir)"\RasDisk1.TAG"
LibraryProcedure FilePresent, $(!LIBHANDLE), CheckFileExistance, $(Name)
ifstr(i) $(FilePresent) != "YES"
ifstr(i) $(!Language) == "GER"
set parms = "Fⁿr die Installation einer neuen Version des "+
*(^(OptionsText$(!Language), 1),1)" werden Informationen aus "+
"der Datei oemsetup.inf, die sich auf Ihrer Installationsdiskette "+
"befindet, ben÷tigt. Benutzen Sie daher bitte den Eintrag "+
"'<andere> erfordert Diskette des Hersteller' aus dieser Auswahlbox."
else
set parms = "Use entry '<Other> Requires disk from manufacturer' from the listbox "+
"for install a new version "+
*(^(OptionsText$(!Language), 1),1)
endif
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"STATUS",$(parms)
;// Clear the old File
LibraryProcedure Status, $(!LIBHANDLE), DelFile, $(STF_CONTEXTINFNAME)
return "ERROR"
endif
return ""
[GetLanguage]
read-syms GeneralConstants
set MAXPERM = 33554432
set KeyNull = ""
set !Language = ENG
OpenRegKey $(!REG_H_LOCAL) "" $(SetupRegKeyName) $(MAXPERM) Key
ifstr $(Key) != $(KeyNull)
set L = {}
GetRegValue $(Key) "SetupLanguage" L
CloseRegKey $(Key)
ifstr(i) $(L) != {}
set L = *($(L),4)
ifstr(i) $(L) == ENG
set !Language = ENG
endif
ifstr(i) $(L) == ENGLISH
set !Language = ENG
endif
ifstr(i) $(L) == GER
set !Language = GER
endif
ifstr(i) $(L) == GERMAN
set !Language = GER
endif
return $(!Language)
endif
endif
OpenRegKey $(!REG_H_CUSER) "" "Control Panel\International" $(MAXPERM) LangKey
ifstr $(LangKey) != $(KeyNull)
GetRegValue $(LangKey) "Locale" LocaleInfo
ifint $(RegLastError) == $(!REG_ERROR_SUCCESS)
ifcontains *($(LocaleInfo),4) in {00000407}
set !Language = GER
endif
endif
CloseRegKey $(LangKey)
endif
return $(!Language)
[ConfigureWANController]
LibraryProcedure Result $(!SetupHandle) AcoRasWanConfig
ifstr(i) $(Result) == "NOT_ANY_CONTROLLER"
;// deactivate or activate the wan driver
Shell "" StartTypeWANDriver $(!SERVICE_DISABLED)
else
Shell "" StartTypeWANDriver $(!SERVICE_AUTO_START)
endif
return $(Result)
[StartTypeWANDriver]
;// Input $($0) Starttyp
read-syms GeneralConstants
OpenRegKey $(!REG_H_LOCAL) "" $(ServicePath) $(MAXPERM) WanKey
ifstr $(WanKey) != $(KeyNull)
SetRegValue $(WanKey) {"Start",0,4,$($0)}
CloseRegKey $(WanKey)
endif
return
[InstallTraceService]
read-syms GeneralConstants
set StartType = $(TrcServiceStartTypeAuto)
Shell "UTILITY.INF" CreateService, +
$(TrcServiceName), +
$(TrcServiceTitle), +
$(TrcServiceImagePath), +
$(StartType), +
$(TrcServiceGroup), +
"", "", "", "", "", "", "", "", ""
set KeyService = $($R1)
set KeyServiceParameters = $($R2)
CloseRegKey $($R3)
ifstr(i) $($R0) != NO_ERROR
return "ERROR" "REGISTRY error Create TraceDemon"
endif
ifint $($ShellCode) != $(!SHELL_CODE_OK)
return "ERROR" "REGISTRY error Create TraceDemon"
endif
return ""
[MS-RASInstall]
;// if RAS is not installed, then shell ras setup INF file to install RAS
;// else invoke RAS to allow user to configure RAS for the ISDN lines.
Shell "" GetLanguage
read-syms GeneralConstants
read-syms FileConstants$(!Language)
Shell "" DoYouWantInstallMSRas
ifstr(i) $($R0) != "YES"
return "NO RASINSTALL"
endif
Shell "oemnsvra.inf" CheckRasInstalled
set RasInstalled = $($R0)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
ifstr(i) $(!Language) == "GER"
set parms = "MS-RAS kann nicht installiert werden, weil die Setupdatei "+
"nicht gefunden wurde."
else
set parms = "Can't install MS-RAS, because not found setup file."
endif
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"STATUS",$(parms)
return
endif
; Set the flags based on whether this is an IDW installation
ifstr(i) $(!STF_IDW) == TRUE
set AddCopy = NO
set DoCopy = NO
set DoConfig = NO
else
set AddCopy = YES
set DoCopy = YES
set DoConfig = YES
endif
; set the global install mode flag according to the neccessary operation
set SaveNTN_InstallMode = $(!NTN_InstallMode)
ifstr(i) $(RasInstalled) == TRUE
set !NTN_InstallMode = configure
else
set !STF_SRCDIR_OVERRIDE = ""
set !NTN_InstallMode = install
endif
; now invoke RAS setup
Shell "oemnsvra.inf" InstallOption $(!STF_LANGUAGE) "RAS" $(SrcDir) +
$(AddCopy) $(DoCopy) $(DoConfig)
; restore the global install mode flag
set !NTN_InstallMode = $(SaveNTN_InstallMode)
return
[GetInfFileName]
read-syms GeneralConstants
set InfFile = ""
OpenRegKey $(!REG_H_LOCAL) "" $(SoftwareKeyName) $(MAXPERM) KeySoftware
ifstr $(KeySoftware) != $(KeyNull)
Shell $(UtilInf), GetInfFileNameFromRegistry, $(KeySoftware)
ifint $($ShellCode) == $(!SHELL_CODE_OK)
set InfFile = $($R0)
endif
CloseRegKey $(KeySoftware)
endif
return $(InfFile)
[CheckRemovingCommonIcons]
read-syms GeneralConstants
OpenRegKey $(!REG_H_LOCAL) "" $(SoftwareBase)"\AcoMpr" $(MAXPERM) Key
ifstr $(Key) != $(KeyNull)
CloseRegKey $(WanKey)
return
endif
OpenRegKey $(!REG_H_LOCAL) "" $(SoftwareBase)"\AcoRas" $(MAXPERM) Key
ifstr $(Key) != $(KeyNull)
CloseRegKey $(WanKey)
return
endif
OpenRegKey $(!REG_H_LOCAL) "" $(SoftwareBase)"\AcoCG" $(MAXPERM) Key
ifstr $(Key) != $(KeyNull)
CloseRegKey $(WanKey)
return
endif
Shell $(AcoSetupIconsPath) "RemoveCommonIcons"
return
;//***************************************************************
;// INSTALL SECTIONS; copy the files used by MPR
;//***************************************************************
[Files-Inf]
1, OEMSETUP.INF, SIZE=1, RENAME=$(!UG_FILENAME)
[Files-System]
1, AcoRas.sy_, SIZE=1, RENAME=AcoRas.sys
[Files-Disk1]
1, RASCFG.EX_, SIZE=1, RENAME=RASCFG.EXE
1, RasTrcSv.EX_, SIZE=1, RENAME=RasTrcSv.EXE
1, RasReadG.txt, SIZE=1, RENAME=RasReadG.txt
1, RasReadE.txt, SIZE=1, RENAME=RasReadE.txt
1, RasFAQE.txt, SIZE=1, RENAME=RasFAQE.txt
1, RasFAQG.txt, SIZE=1, RENAME=RasFAQG.txt
1, RasMonis.EX_, SIZE=1, RENAME=RasMonis.EXE
1, RAS30HBE.HL_, SIZE=1, RENAME=RAS30HBE.HLP
1, RAS30HBG.HL_, SIZE=1, RENAME=RAS30HBG.HLP
1, ACORASHB.EX_, SIZE=1, RENAME=ACORASHB.EXE
[Files-Setup]
1, AcoSUDLL.DLL, SIZE=1, OVERWRITE=VERIFYSOURCEOLDER, RENAME=AcoSUDLL.DLL
1, AcoIcons.INF, SIZE=1, OVERWRITE=VERIFYSOURCEOLDER, RENAME=AcoIcons.INF
1, SETUPGER.HLP, SIZE=1, OVERWRITE=VERIFYSOURCEOLDER, RENAME=SetupGER.HLP
1, SETUPENG.HLP, SIZE=1, OVERWRITE=VERIFYSOURCEOLDER, RENAME=SetupENG.HLP
1, ACORASBG.BMP, SIZE=1, OVERWRITE=VERIFYSOURCEOLDER, RENAME=ACORASBG.BMP
1, GETVER.EXE, SIZE=1, OVERWRITE=VERIFYSOURCEOLDER, RENAME=GETVER.EXE
; 1, AcoSetup.EXE, SIZE=1, OVERWRITE=VERIFYSOURCEOLDER, RENAME=AcoSetup.EXE
1, LANGGER.DLL, SIZE=1, OVERWRITE=VERIFYSOURCEOLDER, RENAME=LANGGER.DLL
1, LANGENG.DLL, SIZE=1, OVERWRITE=VERIFYSOURCEOLDER, RENAME=LANGENG.DLL
1, DELFILES.DAT, SIZE=1, OVERWRITE=VERIFYSOURCEOLDER, RENAME=DELFILES.DAT
1, DATAS.DLL, SIZE=1, OVERWRITE=VERIFYSOURCEOLDER, RENAME=DATAS.DLL
1, RASSETUP.BAT, SIZE=1, RENAME=RASSETUP.BAT
[Install-Install]
set STF_VITAL = "1"
set STF_DECOMPRESS = 1
CreateDir $(!STF_WINDOWSSYSPATH)"\"$(ProductDirectory)
AddSectionFilesToCopyList Files-System $(SrcDir) +
$(!STF_WINDOWSSYSPATH)"\drivers"
AddSectionFilesToCopyList Files-Disk1 $(SrcDir) +
$(!STF_WINDOWSSYSPATH)"\"$(ProductDirectory)
AddSectionFilesToCopyList Files-Setup $(SrcDir) +
$(!STF_WINDOWSSYSPATH)"\"$(ProductDirectory)
ifstr(i) $(!NTN_InstallMode) == update
AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
endif
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
exit
[DoYouWantInstallMSRas]
Shell "" GetLanguage
read-syms WantMSRasInstall$(!Language)
ui start "CustomMessageBox"
ifstr(i) $(DLGEVENT) == "YES"
return "YES"
endif
return "NO"
[WantMSRasInstallGER]
DlgType = "MessageBox"
STF_MB_TITLE = "Acotec ISDN RasCapi Setup"
STF_MB_TEXT = +
"Der Acotec ISDN RasCapi Treiber wurde erfolgreich installiert bzw. konfiguriert. "+
"Sie mⁿssen jetzt die Microsoft RAS Konfiguration aufrufen, um die ISDN ZugΣnge einzurichten. "$(!LF)+
"Wollen Sie jetzt MS-Ras konfigurieren?"
STF_MB_TYPE = 3
STF_MB_ICON = 4
STF_MB_DEF = 1
[WantMSRasInstallENG]
DlgType = "MessageBox"
STF_MB_TITLE = "Acotec ISDN RasCapi Setup"
STF_MB_TEXT = +
"The Acotec ISDN RasCapi driver installed or configured successful. "+
"You must configure the Microsoft RAS for providing the ISDN lines. "$(!LF)+
"Do you want call the installation of Microsoft RAS?"
STF_MB_TYPE = 3
STF_MB_ICON = 4
STF_MB_DEF = 1
[CheckReallyCancel]
Shell "" GetLanguage
read-syms WillCancelMessageDlg$(!Language)
ui start "CustomMessageBox"
ifstr(i) $(DLGEVENT) == "YES"
return "USER_CANCEL"
endif
return ""
[WillCancelMessageDlgGER]
DlgType = "MessageBox"
STF_MB_TITLE = "Acotec ISDN RasCapi Setup"
STF_MB_TEXT = +
"Wollen Sie die Installation des Acotec ISDN RasCapi Treibers wirklich abbrechen?"
STF_MB_TYPE = 3
STF_MB_ICON = 3
STF_MB_DEF = 1
[WillCancelMessageDlgENG]
DlgType = "MessageBox"
STF_MB_TITLE = "Acotec ISDN RasCapi Setup"
STF_MB_TEXT = +
"Do you want really quit the installation of Acotec ISDN RasCapi drivers?"
STF_MB_TYPE = 3
STF_MB_ICON = 3
STF_MB_DEF = 1
[StfVariableSyms]
!ProcessorID_I386 = I386
!ProcessorID_I486 = I486
!ProcessorID_I586 = I586
!ProcessorID_R4000 = R4000
!ProcessorID_Alpha = Alpha_AXP
!ProcessorID_PPC601 = PPC601
!ProcessorID_PPC603 = PPC603
!ProcessorID_PPC604 = PPC604
!ProcessorID_PPC620 = PPC620
!PlatformID_I386 = I386
!PlatformID_Mips = Mips
!PlatformID_Alpha = Alpha
!PlatformID_PPC = ppc
!STF_PRODUCT = WINNT
!STF_USERNAME = ""
!STF_INSTALL_MODE = "CUSTOM"
!STF_UPDGRADE = NO
!STF_NCDETECT = NO
!STF_NCOPTION = ""
!STF_NCDETCARD = 99999
!STF_NCDETINFO = {}
!STF_NC_PARAMS = {}
!STF_NC_PNAMES = {}
!STF_SRCDIR_KEYED = ""
!STF_SRCDIR_USED = ""
!STF_SRCDIR_OVERRIDE = ""
!STF_SRCDIR_WINNT = ""
!STF_TEMPLATE_CRITERR = "CRITERR2"
!STF_TEMPLATE_NONCRITERR = "NONCRITERR2"
!STF_INSTALLED_OS = {} ? $(!LIBHANDLE) GetInstalledOSNames
FatalErrorIndex = 1
Exit_Code = 0
[StfVariableDetect]
!STF_PROCESSOR = "" ? $(!LIBHANDLE) GetProcessor
!STF_PLATFORM = "I386"
!STF_LANGUAGE = "" ? $(!LIBHANDLE) GetLanguage
LanguageList = ^(LanguageID, 1)
!STF_WINDOWSPATH = "" ? $(!LIBHANDLE) GetWindowsNtDir
!STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
!STF_NTPATH = $(!STF_WINDOWSPATH)
!STF_COMPUTERNAME = "" ? $(!LIBHANDLE) GetMyComputerName
!STF_BUSTYPE = "" ? $(!LIBHANDLE) GetMyBusType
!STF_BUSTYPELIST = "" ? $(!LIBHANDLE) GetMyBusTypeList
[ExeStart]
LoadLibrary "y" $(!STF_CWDDIR)"ncpa.cpl" !NCPA_HANDLE
LoadLibrary "x" $(!STF_CWDDIR)"setupdll.dll" !LIBHANDLE
read-syms StfVariableSyms
read-syms StfVariableDetect
detect StfVariableDetect
Shell "" GetLanguage
set !NTN_SoftwareBase = "SOFTWARE"
set !NTN_ServiceBase = "SYSTEM\CurrentControlSet\SERVICES"
set !NTN_InstallMode = $(InstallMode)
set SRCDir = $(SrcPath)
set !ExeCalled = TRUE
set !EndText = ""
set !ExitCondition = "CANCEL"
Shell "" InstallOption ENG AcoRasCapi $(SRCDir) YES YES YES
ifstr(i) $($R0) == STATUS_USERCANCEL
;// no actions required
else
;// Bindings analyse
LibraryProcedure Result $(!NCPA_HANDLE),"CPlSetup" $(!STF_HWND),"NCPA"
endif
ifstr(i) $(!EndText) != ""
Shell "SUBROUTN.INF" SetupMessage,$(!STF_LANGUAGE),"STATUS",$(!EndText)
endif
;// write Exφtcondition by registry
set MAXPERM = 33554432
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase) $(MAXPERM) ServKey
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\AcotecTempKey" $(MAXPERM) Key
ifstr $(Key) == ""
set NewKey = {"AcotecTempKey",$(NoTitle),""}
CreateRegKey $(ServKey) $(NewKey) "" $(!REG_KEY_ALL_ACCESS) "" Key
endif
SetRegValue $(Key) {"BootCondition",0,1,$(!ExitCondition)}
CloseRegKey $(Key)
CloseRegKey $(ServKey)
exit
[Shell Commands]
;// test environment
set !STF_WINDOWSSYSPATH = "c:\winnt4\system32"
read-syms GeneralConstants
Shell "" GetLanguage
read-syms FileConstants$(!Language)
set !STF_LANGUAGE = ENG
LoadLibrary "" $(SetupPath) !SetupHandle
Shell "SUBROUTN.INF" SetupMessage,ENG,"STATUS",$(!SetupHandle)
LibraryProcedure Result $(!SetupHandle) AcoRasCleanUp
exit