📄 oemsetup.inf
字号:
endif
CloseRegKey $(KeyAdapterRules)
goto writeparameters
writeparameters = +
; ifint $(BusInterfaceType) == 8
; set PCMCIA = 1
; set BusInterfaceType = 1
; endif
; ifint $(PCMCIA) == 1
; set CardType = 3
; endif
; Set NewValueList = {+
; {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusInterfaceType)},+
; {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+
; {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
; {CardType,$(NoTitle),$(!REG_VT_DWORD),$(CardType)},+
; {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
; {Transceiver,$(NoTitle),$(!REG_VT_DWORD),$(Transceiver)},+
; {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)}}
; Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
; ifint $(PCMCIA) == 1
; set NewValueList = {{Pcmcia,$(NoTitle),$(!REG_VT_DWORD),1}}
; Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
; else
; DeleteRegValue $(KeyParameters) "Pcmcia"
; endif
; ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
; Shell $(UtilityInf),AddDefaultNetCardParameters,$(KeyParameters)
; endif
; CloseRegKey $(KeyParameters)
; ifint $($ShellCode) != $(!SHELL_CODE_OK)
; Debug-Output "Siemens: ShellCode error."
; goto ShellCodeError
; endif
; set RegistryErrorIndex = $($R0)
; Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
; Debug-Output "Siemens: Registry error: Add value list"
; goto fatalregistry
; endif
; EndWait
goto successful
bindingadapter =+
Debug-Output "Siemens: Label bindingadapter"
set Error = "Binding: Sorry, not yet implemented."
goto fatal
removeadapter = +
Debug-Output "Siemens: Label removeadapter"
Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
$(ProductSoftwareName)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "Siemens: ShellCode error"
goto ShellCodeError
endif
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 "Siemens: ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
endif
goto end
UpgradeSoftware = +
Debug-Output "Siemens: Label UpgradeSoftware"
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
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)}
CloseRegKey $(KeyProduct)
else
goto fatalregistry
endif
goto end
successful = +
Debug-Output "Siemens: Label successful"
goto end
abandon = +
Debug-Output "Siemens: Label abandon"
ForListDo $(OEM_ABANDON_OPTIONS)
Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
$(ProductSoftwareName), $($)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "Siemens: 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 "Siemens: ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
endif
goto end
warning = +
Debug-Output "Siemens: Label 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 = +
Debug-Output "Siemens: Label nonfatalinfo"
Set Severity = STATUS
Set CommonStatus = STATUS_USERCANCEL
goto nonfatalmsg
nonfatal = +
Debug-Output "Siemens: Label nonfatal"
Set Severity = NONFATAL
goto nonfatalmsg
nonfatalmsg = +
Debug-Output "Siemens: Label 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 = +
Debug-Output "Siemens: Label fatalregistry"
Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
fataldetect = +
Debug-Output "Siemens: Label fataldetect"
Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "Siemens: ShellCode error: cannot get an error string."
goto ShellCodeError
endif
set Error = $($R0)
Goto fatal
fatal = +
Debug-Output "Siemens: Label 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 = +
Debug-Output "Siemens: Label ShellCodeError"
set DlgType = "MessageBox"
set STF_MB_TITLE = $(ShellCodeErrorTitle)
set STF_MB_TEXT = $(ShellCodeErrorText)
set STF_MB_TYPE = 1
set STF_MB_ICON = 3
set STF_MB_DEF = 1
ui start "Error Message"
goto setfailed
setfailed = +
Debug-Output "Siemens: Label setfailed"
set CommonStatus = STATUS_FAILED
ifstr(i) $(OEM_ABANDON_ON) == TRUE
set OEM_ABANDON_ON = FALSE
goto abandon
endif
goto end
end = +
Debug-Output "Siemens: Label end"
goto term
term = +
Debug-Output "Siemens: Label term"
Return $(CommonStatus)
[DebugConfiguration]
Set InfName = "Siemens"
Debug-Output $(InfName)" **CONFIGURATION STATE: "$($0)
Debug-Output $(InfName)" IOBaseAddrValue is "$(!p:IOBaseAddrValue)
return
[Install-Option]
set STF_VITAL = ""
ifstr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
endif
ifstr(i) $(DoCopy) == "YES"
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
endif
Exit
[Install-Update]
set STF_VITAL = ""
set STF_OVERWRITE = "VERIFYSOURCEOLDER"
AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
exit
[Source Media Descriptions]
1 = "Siemens NDIS1413 Setup Disk" , TAGFILE = disk1.id
[Signature]
FileType = MICROSOFT_FILE
[GetSignature]
read-syms Signature
return $(FileType)
[ProductType]
STF_PRODUCT = Winnt
STF_PLATFORM = I386
[Files-Inf]
2, oemsetup.inf, SIZE=1000, RENAME=$(!UG_Filename)
[LanguagesSupported]
ENG
[Files-CP1413NDIS]
1,NDIS1413.SYS , SIZE=17408
[OptionsTextENG]
CP1413NDIS = "Siemens CP1413 ISA Adapter"
[FileConstantsENG]
ProCaption = "Windows 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:"
FunctionTitle = "Siemens CP1413 Adapter Card Setup"
ProductSoftwareDescription = "Siemens CP1413 Adapter Driver"
ProductHardwareCP1413NDISDescription = "Siemens CP1413 Adapter"
ProductSoftwareTitle = "Siemens CP1413 Adapter Driver"
ProductHardwareCP1413NDISTitle = "Siemens CP1413 Adapter"
ShellCodeErrorTitle = "Error: "$(FunctionTitle)
ShellCodeErrorText = "Shell Code Error."
TransceiverList = {"Thin Net (BNC/COAX)"}
TransceiverDisplayList = {"Thin Net (BNC/COAX)"}
[DialogConstantsENG]
Help = "&Help"
Exit = "Cancel"
OK = "OK"
HelpContext = ""
Continue = "Continue"
Cancel = "Cancel"
[FileDependentDlgENG]
Label1 = "I/O &Port Address:"
Label2 = "&Interrupt Number:"
Label3 = "&Transceiver Type:"
DlgType = "Combination"
DlgTemplate = "UBNDIS"
Caption = $(FunctionTitle)
Combo1List = $(IOADDR_Hex_List)
Combo1Out = $(IOADDR_Hex_Value)
Combo2List = $(IRQList)
Combo2Out = $(IRQValue)
Combo3List = $(TransceiverDisplayList)
Combo3Out = $(TransceiverValue)
ComboListItemsIn = {Combo1List, Combo2List, Combo3List}
ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out}
EditTextIn = ""
EditTextLim = ""
CBOptionsGreyed = {}
NotifyFields = {NO, NO, NO}
HelpContext = $(!IDH_DB_OEMNADE3_INS)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -