📄 oemsetup.inf
字号:
; ======================================================================
; File: OEMSETUP.INF
;
; Contains: Virtual PC Network Services for Windows NT 4.0 INF file
;
; Copyright: (c) 2001-2003, Connectix Corporation
; ======================================================================
; ======================================================================
; Install Options
; ======================================================================
[Identification]
OptionType = NetTransport
[Options]
VPCNetNT
[ProductType]
STF_PRODUCT = WinNT
STF_PLATFORM = I386
; ======================================================================
; Constants
; ======================================================================
[FileConstants]
UtilityInf = "UTILITY.INF"
ParamInf = "NCPARAM.INF"
subroutineinf = "SUBROUTN.INF"
Exit_Code = 0
NetEventDLL = "%SystemRoot%\System32\netevent.dll"
IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll"
Manufacturer = "Connectix"
ProductMajorVersion = "2"
ProductMinorVersion = "3"
ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
ProductName = "VPCNetNT"
MaxNumberOfLowerNICs = 1
MaxCardsToCheck = 100
ServiceLogFiles = "%SystemRoot%\System32\drivers\VPCNetNT.sys;%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\netevent.dll"
NDISProtocolImagePath = "\SystemRoot\System32\drivers\VPCNetNT.sys"
NDISProtocolName = $(ProductName)
NDISProtocolServiceType = 4
NDISProtocolServiceStart = 3
NetRuleNDISProtocolType = "VPCNetNT VPCNetNT"
NetRuleNDISProtocolClass = {"VPCNetNT basic"}
NetRuleNDISProtocolUse = "transport none none"
NetRuleNDISProtocolBindForm = """VPCNetNT"" yes yes simple"
NetRuleNDISProtocolBindable = {"VPCNetNT ndisDriver non non 100"}
NDISProtocolReviewBindings = 1
NDISProtocolHide = 0
NDISProtocolOperationsSupport= 133
NDISProtocolProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(NDISProtocolName)"\CurrentVersion"
NDISProtocolServiceKeyName = $(!NTN_ServiceBase)"\"$(NDISProtocolName)
NDISProtocolParamKeyName = $(!NTN_ServiceBase)"\"$(NDISProtocolName)"\Parameters"
NDISProtocolLinkageKeyName = $(!NTN_ServiceBase)"\"$(NDISProtocolName)"\Linkage"
OEM_ABANDON_PROTOCOL = FALSE
NDISMiniportImagePath = "\SystemRoot\System32\drivers\VPCNetNT.sys"
NDISMiniportName = $(ProductName)"Miniport"
NDISMiniportServiceType = 1
NDISMiniportServiceStart = 2
NetRuleNDISMiniportType = "VPCNetNTSys ndisDriver VPCNetNTDriver"
NetRuleNDISMiniportClass = {"VPCNetNTDriver basic"}
NetRuleNDISMiniportUse = "driver"
NetRuleNDISMiniportBindForm = """VPCNetNTSys"" yes no simple"
NetRuleNDISMiniportBindable = {"VPCNetNTDriver VPCNetNTAdapter non exclusive 100"}
NDISMiniportReviewBindings = 0
NDISMiniportHide = 0
NDISMiniportOperationsSupport= 132
NDISMiniportProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(NDISMiniportName)"\CurrentVersion"
NDISMiniportServiceKeyName = $(!NTN_ServiceBase)"\"$(NDISMiniportName)
NDISMiniportParamKeyName = $(!NTN_ServiceBase)"\"$(NDISMiniportName)"\Parameters"
NDISMiniportLinkageKeyName = $(!NTN_ServiceBase)"\"$(NDISMiniportName)"\Linkage"
NDISMiniportSignature = $(NDISMiniportName)
OEM_ABANDON_MINIPORT = FALSE
AdapterName = $(NDISMiniportName)
NetRuleAdapterType = "VPCNetNTVirtualNIC VPCNetNTAdapter"
NetRuleAdapterClass = {"VPCNetNTAdapter basic"}
NetRuleAdapterBindForm = " yes yes simple"
AdapterOperationsSupport = $(NDISMiniportOperationsSupport)
AdapterProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(AdapterName)"\CurrentVersion"
AdapterServiceKeyName = $(!NTN_ServiceBase)"\"$(AdapterName)
AdapterParamKeyName = $(!NTN_ServiceBase)"\"$(AdapterName)"\Parameters"
AdapterLinkageKeyName = $(!NTN_ServiceBase)"\"$(AdapterName)"\Linkage"
DisableProtocolsList = {"AppleTalk", "DLC", "Nbf", "NwLnkIpx", "Tcpip", "NetBT"}
[GeneralConstants]
from = ""
to = ""
ExitCodeOk = 0
ExitCodeCancel = 1
ExitCodeFatal = 2
KeyNull = ""
MAXIMUM_ALLOWED = 33554432
RegistryErrorIndex = NO_ERROR
KeyProduct = ""
KeyParameters = ""
TRUE = 1
FALSE = 0
NoTitle = 0
ExitState = "Active"
OldVersionExisted = $(FALSE)
DriverPath = $(!STF_NTPATH)\drivers
NetworkCardKeyName = $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards"
[date]
Now = {} ? $(!LIBHANDLE) GetSystemDate
; ======================================================================
; Localization
; ======================================================================
[LanguagesSupported]
ENG
[OptionsTextENG]
VPCNetNT = "Virtual PC Emulated Ethernet Switch for Windows NT 4.0"
[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:"
ShellCodeErrorTitle = "Error: "$(FunctionTitle)
ShellCodeErrorText = "Shell Code Error."
ProductDesc = "Virtual PC Emulated Ethernet Switch"
FunctionTitle = "Virtual PC Emulated Ethernet Switch Setup"
NDISProtocolTitle = "Virtual PC Emulated Ethernet Switch (Protocol)"
NDISProtocolDescription = "Provides support for Virtual PC's Virtual Switch networking feature."
NDISMiniportTitle = "Virtual PC Emulated Ethernet Switch"
NDISMiniportDescription = "Provides support for Virtual PC's Virtual Switch networking feature."
AdapterTitle = "Virtual PC Emulated Ethernet Switch (Adapter)"
AdapterDescription = "Provides support for Virtual PC's Virtual Switch networking feature."
[DialogConstantsENG]
Help = "&Help"
Exit = "Cancel"
OK = "OK"
HelpContext = ""
Continue = "Continue"
Cancel = "Cancel"
[RemoveProtocolMessageDlgENG]
DlgType = "MessageBox"
STF_MB_TITLE = "Important Deinstallation Information"
STF_MB_TEXT = "To uninstall this adapter, remove "$(NDISProtocolTitle)" from Protocols."
STF_MB_TYPE = 1 ; display OK button
STF_MB_ICON = 5 ; ! icon
STF_MB_DEF = 1 ; default button is OK
[ReenableBindingsMessageDlgENG]
DlgType = "MessageBox"
STF_MB_TITLE = "Important Deinstallation Information"
STF_MB_TEXT = "In order to restore complete network connectivity, you must manually re-enable the protocol bindings to your real adapter(s)."
STF_MB_TYPE = 1 ; display OK button
STF_MB_ICON = 5 ; ! icon
STF_MB_DEF = 1 ; default button is OK
[ProtocolBindingsMessageDlgENG]
DlgType = "MessageBox"
STF_MB_TITLE = "Important Configuration Information"
STF_MB_TEXT = "To complete the setup of "$(ProductDesc)", make sure that TCP/IP, the WINS Client and any protocols other than "$(NDISProtocolTitle)" are bound only to the "$(NDISMiniportTitle)" adapter(s). "$(NDISProtocolTitle)" must be bound to the real Ethernet adapter(s) installed in this computer."
STF_MB_TYPE = 1 ; display OK button
STF_MB_ICON = 5 ; ! icon
STF_MB_DEF = 1 ; default button is OK
[ConfigureMessageDlgENG]
DlgType = "MessageBox"
STF_MB_TITLE = "Configuration Not Supported"
STF_MB_TEXT = "Configuration of this component is not necessary."
STF_MB_TYPE = 1 ; display OK button
STF_MB_ICON = 5 ; ! icon
STF_MB_DEF = 1 ; default button is OK
; ======================================================================
; Install Sections
; ======================================================================
[Install-Option]
set STF_VITAL = "1"
set STF_DECOMPRESS = "1"
ifstr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-Driver $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
endif
ifstr(i) $(DoCopy) == "YES"
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
endif
ifstr(i) $(DoConfig) == "YES"
endif
Exit
[Install-Update]
set STF_VITAL = "1"
set STF_DECOMPRESS = "1"
AddSectionFilesToCopyList Files-Driver $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
exit
[Source Media Descriptions]
1 = "Virtual PC Emulated Ethernet Switch Setup Disk", TAGFILE = VPCNetNT.
; ======================================================================
; Files List
; ======================================================================
[Files-Inf]
1, oemsetup.inf, RENAME=$(!UG_Filename), SIZE=40, !DECOMPRESS
[Files-Driver]
1, VPCNetNT.sys, SIZE=100
; ======================================================================
; Required Sections
; ======================================================================
[Identify]
set !G:DebugOutputControl = 1
Debug-Output "VPCNetNT - Identify section"
read-syms Identification
set Status = STATUS_SUCCESSFUL
set Identifier = $(OptionType)
set Media = #("Source Media Descriptions", 1, 1)
Return $(Status) $(Identifier) $(Media)
[ReturnOptions]
set !G:DebugOutputControl = 1
Debug-Output "VPCNetNT - ReturnOptions section"
Debug-Output "VPCNetNT: --> Language : "$($0)
set Status = STATUS_FAILED
set OptionList = {}
set OptionTextList = {}
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
goto returnoptions
else
set Status = STATUS_NOLANGUAGE
goto finish_ReturnOptions
endif
returnoptions = +
set OptionList = ^(Options, 1)
set OptionTextList = ^(OptionsText$($0), 1)
set Status = STATUS_SUCCESSFUL
finish_ReturnOptions = +
Return $(Status) $(OptionList) $(OptionTextList)
[InstallOption]
set !G:DebugOutputControl = 1
Debug-Output "VPCNetNT - InstallOption section"
set Status = STATUS_FAILED
set Language = $($0)
set Option = $($1)
set SrcDir = $($2)
set AddCopy = $($3)
set DoCopy = $($4)
set DoConfig = $($5)
Debug-Output "VPCNetNT: --> Language : "$(Language)
Debug-Output "VPCNetNT: --> Option : "$(Option)
Debug-Output "VPCNetNT: --> SrcDir : "$(SrcDir)
Debug-Output "VPCNetNT: --> AddCopy : "$(AddCopy)
Debug-Output "VPCNetNT: --> DoCopy : "$(DoCopy)
Debug-Output "VPCNetNT: --> DoConfig : "$(DoConfig)
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $(Language) NOT-IN $(LanguageList)
Return STATUS_NOLANGUAGE
endif
set-subst LF = "\n"
read-syms GeneralConstants
read-syms FileConstants
read-syms DialogConstants$(!STF_LANGUAGE)
ifstr(i) $(!NTN_Origination) == "NCPA"
set Continue = $(OK)
endif
read-syms FileConstants$(!STF_LANGUAGE)
detect date
set-title $(FunctionTitle)
set to = Begin
set from = Begin
;
; Assume all is well.
;
; STATUS_SUCCESSFUL
; STATUS_USERCANCEL
; STATUS_NO_EFFECT
; STATUS_REBIND
; STATUS_REBOOT
set CommonStatus = STATUS_SUCCESSFUL
EndWait
Begin = +
;
Debug-Output "VPCNetNT - Begin label "
Debug-Output "VPCNetNT: --> NTN_InstallMode : "$(!NTN_InstallMode)
ifstr(i) $(!NTN_InstallMode) == deinstall
set StartLabel = ReviewBindings
set RemoveBindings = TRUE
set CheckBindings = FALSE
set WhenDone = RemoveSoftware
set FirstTime = FALSE
else-ifstr(i) $(!NTN_InstallMode) == Update
set StartLabel = UpgradeSoftware
set RemoveBindings = FALSE
set CheckBindings = TRUE
set WhenDone = end
set FirstTime = FALSE
else-ifstr(i) $(!NTN_InstallMode) == bind
set StartLabel = ReviewBindings
set RemoveBindings = FALSE
set CheckBindings = TRUE
set WhenDone = end
set FirstTime = FALSE
else-ifstr(i) $(!NTN_InstallMode) == configure
set StartLabel = ConfigureSoftware
set RemoveBindings = FALSE
set CheckBindings = TRUE
set WhenDone = end
set FirstTime = FALSE
else
set StartLabel = installadapter
set OEM_ABANDON_OPTIONS = {}
set OEM_ABANDON_PROTOCOL = FALSE
set OEM_ABANDON_ON = TRUE
set RemoveBindings = FALSE
set CheckBindings = TRUE
set WhenDone = end
set FirstTime = TRUE
endif
Set from = $(fatal)
Set to = $(fatal)
Goto $(StartLabel)
; -----------------------------------------------
; UpgradeSoftware
; -----------------------------------------------
UpgradeSoftware = +
Debug-Output "VPCNetNT - UpgradeSoftware label"
Debug-Output "VPCNetNT: --> NTN_RegBase : "$(!NTN_RegBase)
OpenRegKey $(!REG_H_LOCAL) "" $(NDISProtocolProductKeyName) $(MAXIMUM_ALLOWED) ProtocolKey
ifstr(i) $(ProtocolKey) == $(KeyNull)
Debug-Output "VPCNetNT: Failed to open key "$(NDISProtocolProductKeyName)
goto fatalregistry
else
OpenRegKey $(!REG_H_LOCAL) "" $(NDISMiniportProductKeyName) $(MAXIMUM_ALLOWED) MiniportKey
ifstr(i) $(MiniportKey) == $(KeyNull)
CloseRegKey $(ProtocolKey)
Debug-Output "VPCNetNT: Failed to open key "$(NDISMiniportProductKeyName)
goto fatalregistry
else
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -