⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oemsetup.inf

📁 It is something about net security also.Maybe useful.Hope you like it.
💻 INF
📖 第 1 页 / 共 2 页
字号:
	set RegistryErrorIndex = $($R0)
	CloseRegKey $(SoftProductKey)
	CloseRegKey $(SoftNetRuleKey)
	CloseRegKey $(SoftServiceKey)
	CloseRegKey $(SoftParameterKey)
	CloseRegKey $(SoftLinkageKey)
	Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
	    EndWait
	    goto fatalregistry
	endif
    endif
    ForListDo $(AdapterList)
	set BusNum = *($($),1)
	set DeviceNum = *($($),2)
	set FunctionNum = *($($),3)

		Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
		    $(DeviceNum), $(ProductHardware$(Option)Description), $(ProductHardwareName) "YES"

		ifint $($ShellCode) != $(!SHELL_CODE_OK)
		    goto ShellCodeError
		endif
		ifstr $($R0) != "NO_ERROR"
		    set Error = $($R0)
		    goto fatal
		endif
		ifstr(i) $($R1) != "YES"
		    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)
			goto ShellCodeError
		    endif
		    set RegistryErrorIndex = $($R0)
		    Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
			 EndWait
			 CloseRegKey $($R1)
			 CloseRegKey $($R2)
			 CloseRegKey $($R3)
			 goto fatalregistry
		    endif
		    ; Default Values
	        set NetworkIndex = "AutoNegotiate"
		    set JumboIndex = "1) 1514 (Standard)"
		    set VLANID = 0
		    set NcBitIndex = "Enabled"
		    set PriQIndex = "Disabled"
		    set RxQueueSz = 64
		    set FlowControl = "Enable"	
			set NcBitValue = *($(EDValues), ~($(EDList),$(NcBitIndex)))
			set PriQValue = *($(EDValues), ~($(EDList),$(PriQIndex)))
	   	    set JumboValue = *($(JumboValues), ~($(JumboList),$(JumboIndex)))
	   	    set FlowControlValue = *($(FlowControlValues), ~($(FlowControlList),$(FlowControl)))
		    set NetworkValue = *($(NetworkValues), ~($(NetworkList),$(NetworkIndex)))
		    Set HardNetCardKey      = $($R1)
		    Set HardNetRuleKey      = $($R2)
		    Set HardParameterKey    = $($R3)
		    set AdapterNumber = $($R4)
		   
		    set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
					{Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
					{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
					{ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
					{ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
					{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
		    Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
		    ifint $($ShellCode) != $(!SHELL_CODE_OK)
			 goto ShellCodeError
		    endif
		    set BusTypeNum = 5


		    set NewValueList = {{AdapterType,$(NoTitle),$(!REG_VT_DWORD),$(Adapter$(Option)Type)},+
					{MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
					{BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
					{AdapterCFID,$(NoTitle),$(!REG_VT_DWORD),$($(Option)CFID)},+
					{NetworkMedia,$(NoTitle),$(!REG_VT_DWORD),$(NetworkValue)},+
					{NcBit,$(NoTitle),$(!REG_VT_DWORD),$(NcBitValue)},+
					{PriQ,$(NoTitle),$(!REG_VT_DWORD),$(PriQValue)},+
					{RxQueueSz,$(NoTitle),$(!REG_VT_DWORD),$(RxQueueSz)},+
					{FlowControl,$(NoTitle),$(!REG_VT_DWORD),$(FlowControlValue)},+
					{JumboFrame,$(NoTitle),$(!REG_VT_DWORD),$(JumboValue)}}

		    Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
		    ifint $($ShellCode) != $(!SHELL_CODE_OK)
			goto ShellCodeError
		    endif
		    ifstr(i) $(Option) == "MULTIA"
			set NewValueList = {{ExternalSia,$(NoTitle),$(!REG_VT_DWORD),1},+
					    {SiaRegister0,$(NoTitle),$(!REG_VT_DWORD),$(SiaRegister0)},+
					    {SiaRegister1,$(NoTitle),$(!REG_VT_DWORD),$(SiaRegister1)},+
					    {SiaRegister2,$(NoTitle),$(!REG_VT_DWORD),$(SiaRegister2)}}
			Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
			ifint $($ShellCode) != $(!SHELL_CODE_OK)
			    goto ShellCodeError
			endif
		    endif
		    set NewValueList = {{NetworkType,$(NoTitle),$(!REG_VT_DWORD),$(NetworkValue)}}
		    Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
		    ifint $($ShellCode) != $(!SHELL_CODE_OK)
			goto ShellCodeError
		    endif
		    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, $(HardNetRuleKey), $(NewValueList)
		    ifint $($ShellCode) != $(!SHELL_CODE_OK)
			goto ShellCodeError
		    endif
		    CloseRegKey $(HardNetCardKey)
		    CloseRegKey $(HardNetRuleKey)
		    set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
					{SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(DeviceNum)},+
					{FunctionNumber,$(NoTitle),$(!REG_VT_DWORD),$(FunctionNum)}}
		    Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
		    CloseRegKey $(HardParameterKey)
		endif       
    EndForListDo
    EndWait
    goto successful

updateparameters =+

    set HardParameterKey    = $($R3)


   set NewValueList = {{NetworkMedia,$(NoTitle),$(!REG_VT_DWORD),$(NetworkValue)},+
		       	{NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)},+
		       	{NcBit,$(NoTitle),$(!REG_VT_DWORD),$(NcBitValue)},+
		       	{PriQ,$(NoTitle),$(!REG_VT_DWORD),$(PriQValue)},+
			   	{RxQueueSz,$(NoTitle),$(!REG_VT_DWORD),$(RxQueueSz)},+
			    {JumboFrame,$(NoTitle),$(!REG_VT_DWORD),$(JumboValue)},+
				{FlowControl,$(NoTitle),$(!REG_VT_DWORD),$(FlowControlValue)},+
				{VLANID,$(NoTitle),$(!REG_VT_DWORD),$(VLANID)}}

    Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	goto ShellCodeError
    endif
    CloseRegKey $(KeyParameters)
    goto successful

bindingadapter =+
    set Error = "Binding: Sorry, not yet implemented."
    goto fatal

removeadapter = +
    Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
	Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
	    $(ProductSoftwareName)
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    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)
	    goto ShellCodeError
	endif
	set RegistryErrorIndex = $($R0)
	Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	    goto fatalregistry
	endif
    endif
    goto end

UpgradeSoftware = +
     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
     Ifstr $(KeyProduct) != $(KeyNull)
	   Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
	   ifint $($ShellCode) != $(!SHELL_CODE_OK)
	       Debug-Output "ShellCode error"
	       goto ShellCodeError
	   endif
	   set !UG_Filename = $($R0)
	   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 = +
    goto end

abandon = +

    ForListDo $(OEM_ABANDON_OPTIONS)
	Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
	    $(ProductSoftwareName), $($)
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    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)
	    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

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 = $(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 = +

    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)

[Install-Option]
    set STF_VITAL = ""
    ifstr(i) $(AddCopy) == "YES"
	AddSectionFilesToCopyList Files-$(Option) $(SrcDir)\WINNT $(!STF_WINDOWSSYSPATH)\drivers
    endif
    ifstr(i) $(DoCopy) == "YES"
       set !STF_NCPA_FLUSH_COPYLIST = TRUE
       CopyFilesInCopyList
    endif
	AddSectionFilesToCopyList Files-Utility1 $(SrcDir)\WINNT $(!STF_WINDOWSSYSPATH)
	CopyFilesInCopyList
    Exit
[Install-Update]
   set STF_VITAL        = ""
   AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
   AddSectionFilesToCopyList Files-$(Option) $(SrcDir)\WINNT $(!STF_WINDOWSSYSPATH)\drivers
   set !STF_NCPA_FLUSH_COPYLIST = TRUE
   CopyFilesInCopyList
   exit

[Source Media Descriptions]
    1  = "NETGEAR GA622T Gigabit UTP Adapter Driver Disk" 

[ProductType]
STF_PRODUCT  = Winnt
STF_PLATFORM = I386
STF_PLATFORM = Alpha

[Files-Inf]
2,      OEMSETUP.INF,    SIZE=1000,     RENAME=$(!UG_Filename)

[Files-NGEGIGA]
1,GA622ND4.SYS , SIZE=999
[Files-Utility1]
1,NSCCONFIG.DLL, SIZE=999

[LanguagesSupported]
    ENG

[OptionsTextENG]
    NGEGIGA  = "NETGEAR GA622T Gigabit UTP 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:"

ProductSoftwareDescription = "NETGEAR GA622T Gigabit UTP Adapter"

FunctionNGEGIGATitle = "NETGEAR GA622T Gigabit UTP Adapter"
ProductHardwareNGEGIGADescription = "NETGEAR GA622T Gigabit UTP Adapter"

NetworkList  = ^(NetworkChoices, 1)
NetworkValues = ^(NetworkChoices, 2)
JumboList  = ^(JumboChoices, 1)
JumboValues = ^(JumboChoices, 2)
EDList  = ^(ED, 1)
EDValues = ^(ED, 2)
FlowControlList  = ^(FlowControl, 1)
FlowControlValues = ^(FlowControl, 2)

NoList  = ^(NoChoices, 1)
NoValues = ^(NoChoices, 2)
ShellCodeErrorTitle     = "Error: "$(Function$(Option)Title)
ShellCodeErrorText      = "Shell Code Error."
CANNOT_FIND_ANY_CARD    = "Network card is not present in the system"

[DialogConstantsENG]
Help        = "Help"
Exit        = "Cancel"
OK          = "OK"
HelpContext = ""
Continue    = "Continue"
Cancel      = "Cancel"

[NetworkChoices]
    Connect_0 = "AutoNegotiate",  8
    Connect_7 = "Auto 1000",      1
    Connect_6 = "Auto 100",       2
    Connect_5 = "Auto 10",        3
    Connect_4 = "Force 100 Full", 4
    Connect_3 = "Force 100 Half", 5
    Connect_2 = "Force 10 Full",  6
    Connect_1 = "Force 10 Half",  7

[ED]
    Ed_1 = "Enabled", 		 1
    Ed_0 = "Disabled",           0

[JumboChoices]
	Fc_0 = "1) 1514 (Standard)", 	1514
	Fc_1 = "2) 4088", 		4088
	Fc_2 = "3) 8000 (NSC)",		8000
	Fc_3 = "4) 9014 (Alteon)",	9014
	Fc_4 = "5) 10000",		10000

[FlowControl]
	Fc_0 = "Enable",  		3
	Fc_1 = "Tx Pause Frames", 	1
	Fc_2 = "Rx Pause Frames", 	2
	Fc_3 = "Disable", 		0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -