Article ID: 143134
Article Last Modified on 11/1/2006
installadapter = +
Debug-Output "At installadapter"
;
; First, check whether the same version of the software exists
;
;; As a workaround for CPS and Unattended Setup, the below lines have
; been added:
ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
goto skipoptions
endif
NOTE: In many cases, the skipoptions section may be called nextstep. Look at your OEMSETUP.INF file to verify the appropriate section name.
installadapter = + Debug-Output "At installadapter" ; ; First, check whether the same version of the software exists ; ;; As a workaround for CPS and Unattended Setup, the below lines are ; commented out by prepending a semicolon. ; OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct ; Ifstr $(KeyProduct) != $(KeyNull) ; ; Same version already existed in the local machine ; Popup the dialog and ask the user whether he wants to continue ; ; CloseRegKey $(KeyProduct) ; ifstr(i) !(NTN_RegBase) == $(ProductKeyName) ; ; Cannot Install the same software again ; ; 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 ; ; Add a new adapter card? ; ; 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
;===================================================
; Netcard Detection logic
;
; Check that this card's parameters can be
; fully detected.
;
;; As a workaround for CPS and Unattended Setup, the below line is
; commented out by prepending a semicolon.
; Shell $(ParamInf) Param_ParameterConfidence
Ifstr(i) $($R0) != STATUS_SUCCESSFUL
Debug-Output "OEMNADIN.INF: parameter confidence too low to bypass
configuration"
;; As a workaround for CPS and Unattended Setup, the below lines are ; commented out by prepending a semicolon. ;=================================================== ;Display configuration dialog if confidence is too low. This is to ;provide ;the user the opportunity to verify or modify the settings manually. ; ; ui start "InputDlg" ; ifstr(i) $(DLGEVENT) == "CONTINUE" ; Set IRQValue = $(Combo1Out) ; Set IOAddrValue = $(Combo2Out) ; Set IOReadyValue = ~($(IOReadyListExt),$(Combo3Out)) ; Set IOReadyValue = ~($(IOReadyList),$(Combo3Out)) ; Set TransceiverValue = ~($(TransceiverList),$(Combo4Out)) ; ui pop 1 ; else-ifstr(i) $(DLGEVENT) == "BACK" ; set CommonStatus = STATUS_USERCANCEL ; Debug-Output "Action: exit. Bye." ; ui pop 1 ; goto end ; else ; Debug-Output "Action: unknown. Bye." ; ui pop 1 ; goto end ; endif
; Verify parameter values selected. Give the user a chance to retry ; or force the options given. ; Set from = adapteroptions Set to = skipoptions ;; As a workaround for CPS and Unattended Setup, the below lines are ; commented out by prepending a semicolon. ; 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
writeparameters = +
Debug-Output "At writeparameters"
;
; Add the rest of the parameters to the Services area
;
Ifstr(i) $(MachineType) == "MCA"
set NewValueList =
{{BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
{McaPosId,$(NoTitle),$(!REG_VT_DWORD),$(NETCARD_ID)},+
{SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)},+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),1}}
else
Set IOAddrValue = *($(IOAddrValues),
~($(IOAddrList),$(IOAddrValue)))
Shell "" DebugConfiguration "Before Writing Parameters"
set NewValueList =
{{INTERRUPT,$(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+
{BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusInterfaceType)},+
{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
{MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
{IoChannelReady,$(NoTitle),$(!REG_VT_DWORD),$(IOReadyValue)},+
{Transceiver,$(NoTitle),$(!REG_VT_DWORD),$(TransceiverValue)},+
{IOADDRESS,$(NoTitle),$(!REG_VT_DWORD),$(IOAddrValue)}}
endif
Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
;; Following lines added for CPS or Unattended Setup
ifstr(i) $(!STF_GUI_UNATTENDED) == "YES"
Shell $(UtilityInf),AddDefaultNetCardParameters,$(KeyParameters)
endif
Additional query words: automate
Keywords: kbsetup KB143134