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

📄 oemsetnt.inf

📁 test SNMP JAVA
💻 INF
📖 第 1 页 / 共 3 页
字号:
    else-ifstr(i) $(DLGEVENT) == "BACK"
        set CommonStatus = STATUS_USERCANCEL
        ui pop 1
        goto end
    else
        ui pop 1
        goto end
    endif
    set ConnectionValue = *($(ConnectionValues), ~($(ConnectionList),$(ConnectionIndex)))
    ifstr(i) $(!NTN_InstallMode) == configure
        goto updateparameters
    endif
installproduct =+
    StartWait
    ; DEVICE_ID....
    ; 65535

    ; search device ID for 3043 and 3065
    set AdapterList65 = {}
    set AdapterList43 = {}

    set-div DeviceID = $(VT3043CFID) 65535
    Shell $(UtilityInf), GetPCIInformation, $(VendorID) $(DeviceID)

    ifint $($ShellCode) != $(!SHELL_CODE_OK)
             goto ShellCodeError
    endif

    ifstr(i) $($R0) == {}
             set-div DeviceID = $(VT3065CFID) 65535
             Shell $(UtilityInf), GetPCIInformation, $(VendorID) $(DeviceID)

             ifint $($ShellCode) != $(!SHELL_CODE_OK)
              goto ShellCodeError
             endif

             ifstr(i) $($R0) == {}
              set Error = $(CANNOT_FIND_ANY_CARD)
              set CommonStatus = USER_CANCEL
              set from = end
              goto nonfatal
             else
                      set AdapterList65 = $($R0)
             endif
    else
             set AdapterList43 = $($R0)

             set-div DeviceID = $(VT3065CFID) 65535
             Shell $(UtilityInf), GetPCIInformation, $(VendorID) $(DeviceID)

             ifint $($ShellCode) != $(!SHELL_CODE_OK)
              goto ShellCodeError
             endif

             ifstr(i) $($R0) != {}
          set AdapterList65 = $($R0)
             endif
    endif

    ifint $(OldVersionExisted) == $(FALSE)
        Ifstr(i) $(DoCopy) == "YES"
           Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
           Ifint $($ShellCode) != $(!SHELL_CODE_OK)
               Goto ShellCodeError
           Else-Ifstr(i) $($R0) == STATUS_FAILED
               Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
               ifint $($ShellCode) != $(!SHELL_CODE_OK)
                  goto ShellCodeError
               endif
               set Error = $($R0)
               Goto fatal
           Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
               Goto successful
           Endif
           Set SrcDir = $($R1)
        Endif
        install "Install-Option"
        ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
           Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
           ifint $($ShellCode) != $(!SHELL_CODE_OK)
               goto ShellCodeError
           endif
           set Error = $($R0)
           goto fatal
        endif
    endif

    ;
    ;   Check to see if the product Software key exists already in the system
    ;   service keys before we try to add the software component.
    ;
    OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProductHardwareName) $(!REG_KEY_READ) KeyNt
    CloseRegKey $(KeyNt)

    Ifstr(i) $(KeyNt) == ""
        Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
            $(ProductSoftwareName), +
            $(ProductSoftwareName), +
            $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
            $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
            $(NetEventDLL)
        Set OEM_ABANDON_SOFTWARE = TRUE
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
            goto ShellCodeError
        endif
        set RegistryErrorIndex = $($R0)
        Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
            EndWait
            CloseRegKey $($R1)
            CloseRegKey $($R2)
            CloseRegKey $($R3)
            CloseRegKey $($R4)
            CloseRegKey $($R5)
            goto fatalregistry
        endif
        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)
            goto ShellCodeError
        endif
        set RegistryErrorIndex = $($R0)
        Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
            EndWait
            CloseRegKey $(SoftProductKey)
            CloseRegKey $(SoftNetRuleKey)
            CloseRegKey $(SoftServiceKey)
            CloseRegKey $(SoftParameterKey)
            CloseRegKey $(SoftLinkageKey)
            goto fatalregistry
        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),$(NetRuleSoftwareSWBindable)}, +
                            {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
        Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
        ifint $($ShellCode) != $(!SHELL_CODE_OK)
            goto ShellCodeError
        endif
        set RegistryErrorIndex = $($R0)
        CloseRegKey $(SoftProductKey)
        CloseRegKey $(SoftNetRuleKey)
        CloseRegKey $(SoftServiceKey)
        CloseRegKey $(SoftParameterKey)
        CloseRegKey $(SoftLinkageKey)
        Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
            EndWait
            goto fatalregistry
        endif
    endif

    ifstr(i) $(AdapterList65) == {}
                        goto InstallAdapter43
        endif

        ForListDo $(AdapterList65)
        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
            set ConnectionIndex = 0
            set ConnectionValue = *($(ConnectionList),~($(ConnectionValues),$(ConnectionIndex)))
            read-syms FileDependentDlg$(!STF_LANGUAGE)
            SetHelpFile $(!STF_WINDOWSSYSPATH)"\"$(OptionHelpFile) $(MinHelpId) $(MaxHelpId) $(Help$(Option)Id)

            ;
            ;   UNATTENDED installation support
            ;   During UNATTENDED installation, DO NOT show the dialog box to prompt the
            ;   user to select options.
            ;                                           Add by David Hsieh
            ifstr $(!STF_GUI_UNATTENDED) != "YES"
                ui start "InputDlg"
                ifstr(i) $(DLGEVENT) == "CONTINUE"
                    set ConnectionIndex = $(Combo1Out)
                    set NetworkAddress = *($(EditTextOut),1)
                    ui pop 1
                else-ifstr(i) $(DLGEVENT) == "BACK"
                    set CommonStatus = STATUS_USERCANCEL
                    ui pop 1
                    goto setfailed
                else
                    ui pop 1
                    goto setfailed
                endif
            endif
            ;

            set ConnectionValue = *($(ConnectionValues), ~($(ConnectionList),$(ConnectionIndex)))
            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),$(VT3065CFID)},+
                                {NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)}}
            Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
            ifint $($ShellCode) != $(!SHELL_CODE_OK)
                goto ShellCodeError
            endif

            ; for 3065 registery
            set NewValueList = {{ReceiveBuffers,$(NoTitle),$(!REG_VT_DWORD),32},+
            {TransmitBuffers,$(NoTitle),$(!REG_VT_DWORD),32},+
            {ReceiveBurstIndicate,$(NoTitle),$(!REG_VT_DWORD),32},+
            {ReceiveThreshold,$(NoTitle),$(!REG_VT_DWORD),0},+
            {TransmitThreshold,$(NoTitle),$(!REG_VT_DWORD),0},+
            {BurstLength,$(NoTitle),$(!REG_VT_DWORD),1},+
            {MapRegisters,$(NoTitle),$(!REG_VT_DWORD),32},+
            {EarlyReceive,$(NoTitle),$(!REG_VT_DWORD),0},+
            {EarlyTransmit,$(NoTitle),$(!REG_VT_DWORD),0},+
             {TotalPHY,$(NoTitle),$(!REG_VT_DWORD),1},+
             {PhyId1M,$(NoTitle),$(!REG_VT_DWORD),0},+
             {PhyId10M,$(NoTitle),$(!REG_VT_DWORD),0},+
;             {NetworkAddress,$(NoTitle),$(!REG_VT_SZ),"000000000000"},+
             {FlowCtrl,$(NoTitle),$(!REG_VT_DWORD),1},+
            {OsId,$(NoTitle),$(!REG_VT_DWORD),524288}}

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

            set NewValueList = {{ConnectionType,$(NoTitle),$(!REG_VT_DWORD),$(ConnectionValue)}}
            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
        endif
    EndForListDo

        ifstr(i) $(AdapterList43) == {}
                        goto InstallAdapterOK
        endif

InstallAdapter43 =+

        ForListDo $(AdapterList43)
        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
            set ConnectionIndex = 0
            set ConnectionValue = *($(ConnectionList),~($(ConnectionValues),$(ConnectionIndex)))
            read-syms FileDependentDlg$(!STF_LANGUAGE)
            SetHelpFile $(!STF_WINDOWSSYSPATH)"\"$(OptionHelpFile) $(MinHelpId) $(MaxHelpId) $(Help$(Option)Id)

            ;
            ;   UNATTENDED installation support
            ;   During UNATTENDED installation, DO NOT show the dialog box to prompt the
            ;   user to select options.
            ;                                           Add by David Hsieh
            ifstr $(!STF_GUI_UNATTENDED) != "YES"
                ui start "InputDlg"
                ifstr(i) $(DLGEVENT) == "CONTINUE"
                    set ConnectionIndex = $(Combo1Out)
                    set NetworkAddress = *($(EditTextOut),1)
                    ui pop 1

⌨️ 快捷键说明

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