; ----------------------------------------------------------------------------- ; OEMSETUP.INF ; ; Windows NT40 FastEther+Modem56 CardBus Setup Script ; Copyright . 1998, 1999 ; ----------------------------------------------------------------------------- [commentOEM] FastEther+Modem56 CardBus driver setup script for Windows NT 4.0 FileVersion V2.03.007 [Identification] OptionType = NetAdapter [PlatformsSupported] ISA PCI [LanguagesSupported] ENG [Options] FEM [OptionsTextENG] FEM = " FastEther+Modem56 CardBus" [Files-Inf] 1, oemsetup.inf, SIZE=50000, RENAME=$(!UG_Filename) [Files-FEM-W32] 1, FEM.DLL, SIZE=60000 1, feminst.EXE, SIZE=20000 [Files-FEM-SYS] 1, FEM324.SY_, SIZE=50000, DECOMPRESS, RENAME=FEM324.SYS 1, MDMENB.SY_, SIZE=20000, DECOMPRESS, RENAME=MDMENB.SYS [Files-FEM-INF] 1, slm56.inf, SIZE=50000, RENAME=MDMFEM.INF [FileConstants] UtilityInf = "UTILITY.INF" ParamInf = "NCPARAM.INF" subroutineinf = "SUBROUTN.INF" Exit_Code = 0 Manufacturer = "Generic" ProductMajorVersion = "4" ProductMinorVersion = "573" ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion) ProductHardwareName = "FEM" ProductHardwareTitle = " FastEther+Modem56 CardBus" NetRuleHardwareType = "FEM FEMAdapter" NetRuleHardwareBindForm = " yes yes container" NetRuleHardwareClass = {"FEMAdapter basic"} SoftwareType = "driver" ProductSoftwareName = "FEM" ProductSoftwareTitle = "Network part of FastEther+Modem56 CardBus" ProductSoftwareImagePath = "\SystemRoot\System32\drivers\FEM324.SYS" NetRuleSoftwareType = "FEMSys ndisDriver FEMDriver" NetRuleSoftwareUse = $(SoftwareType) NetRuleSoftwareBindForm = """FEMSys"" yes no container" NetRuleSoftwareClass = {"FEMDriver basic"} NetRuleSoftwareBindable = {"FEMDriver FEMAdapter non exclusive 100"} NetEventDLL = "%SystemRoot%\System32\netevent.dll" IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll" ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion" [ProductType] STF_PRODUCT = Winnt STF_PLATFORM = I386 [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 DLLPath = $(!STF_NTPATH) [FileConstantsENG] DlgDllName = "FEM.DLL" 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 = " FastEther+Modem56 CardBus Setup" ProductSoftwareDescription = " FastEther+Modem56 CardBus Driver" ProductHardwareDescription = "Network part of FastEther+Modem56 CardBus" [DialogConstantsENG] Help = "&Help" Exit = "Cancel" OK = "OK" HelpContext = "" Continue = "Continue" Cancel = "Cancel" [date] Now = {} ? $(!LIBHANDLE) GetSystemDate [Source Media Descriptions] 1 = " FastEther+Modem56 CardBus Drivers Disk" [FileDependentDlgENG] [Identify] set !G:DebugOutputControl = 1 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 set Status = STATUS_FAILED set OptionList = {} set OptionTextList = {} set LanguageList = ^(LanguagesSupported, 1) Ifcontains(i) $($0) in $(LanguageList) ifstr(i) $($1) == "" goto returnoptions endif set PlatformList = ^(PlatformsSupported, 1) Ifcontains(i) $($1) in $(PlatformList) goto returnoptions else set Status = STATUS_NOTSUPPORTED goto finish_ReturnOptions endif 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 Set SetupAction = $(!NTN_InstallMode) set Option = $($1) set SrcDir = $($2) set AddCopy = $($3) set DoCopy = $($4) set DoConfig = $($5) set LanguageList = ^(LanguagesSupported, 1) Ifcontains(i) $($0) NOT-IN $(LanguageList) Return STATUS_NOLANGUAGE endif set Status = STATUS_FAILED set-subst LF = "\n" read-syms GeneralConstants read-syms FileConstants read-syms FileConstants$(!STF_LANGUAGE) read-syms DialogConstants$(!STF_LANGUAGE) detect date ifstr(i) $(!NTN_Origination) == "NCPA" set Continue = "OK" endif set-title $(FunctionTitle) set to = Begin set from = Begin set CommonStatus = STATUS_SUCCESSFUL EndWait Begin = + Set ActivateDetection = FALSE Set DetectedCard = FALSE Ifstr(i) $(!NTN_InstallMode) == DEINSTALL set StartLabel = removeadapter else-Ifstr(i) $(!NTN_InstallMode) == UPDATE set StartLabel = UpgradeSoftware else-Ifstr(i) $(!NTN_InstallMode) == BIND set StartLabel = bindingadapter else-Ifstr(i) $(!NTN_InstallMode) == CONFIGURE set ActivateDetection = TRUE set StartLabel = configureadapter Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase) set Error = "Please configure the Adapter (in the lower pane)." set from = end set to = end goto nonfatalinfo endif else-Ifstr(i) $(!NTN_InstallMode) == INSTALL set ActivateDetection = TRUE set StartLabel = installadapter set OEM_ABANDON_OPTIONS = {} set OEM_ABANDON_SOFTWARE = FALSE set OEM_ABANDON_ON = TRUE set from = $(fatal) set to = $(fatal) else set Error = "Unknown action" goto Fatal endif Goto $(StartLabel) configureadapter = + Ifstr $(KeyProduct) == $(KeyNull) OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct Ifstr $(KeyProduct) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE goto fatalregistry Endif Endif Shell $(UtilityInf) FindService, $(KeyProduct) Ifint $($ShellCode) != $(!SHELL_CODE_OK) Goto ShellCodeError Endif Ifstr(i) $($R0) != NO_ERROR set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Goto fatalregistry endif Set KeyParameters = $($R2) CloseRegKey $($R1) Ifstr $(KeyParameters) == $(KeyNull) set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE goto fatalregistry endif set OldVersionExisted = $(TRUE) goto UIDisplay installadapter = + set DoCopy = "YES" set DoConfig = "YES" set SrcDirOk = "YES" OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct Ifstr $(KeyProduct) != $(KeyNull) set ValueList = {} set InstMajorVersion = "" set InstMinorVersion = "" GetRegValue $(KeyProduct) "MajorVersion" ValueList set InstMajorVersion = *($(ValueList),4) GetRegValue $(KeyProduct) "MinorVersion" ValueList set InstMinorVersion = *($(ValueList),4) set InstVersion = $(InstMajorVersion)"."$(InstMinorVersion) CloseRegKey $(KeyProduct) ifstr(i) !(NTN_RegBase) == $(ProductKeyName) Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle), $(ProductVersion) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif goto end else Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL",+ " FastEther+Modem56 CardBus is installed! You can't install another one." ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif goto end endif endif Set KeyParameters = "" adapteroptions = + Set from = adapteroptions ifint $(OldVersionExisted) != $(TRUE) goto Copyfiles endif Copyfiles = + Ifstr(i) $(DoCopy) == "YES" ifstr(i) $(SrcDirOk) != "YES" Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) NO 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 ;SrcDirOk Endif ;DoCopy 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 AfterCopyfiles = + set LibPath = $(DLLPath)"\"$(DlgDllName) StartWait 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) set KeyProduct = $($R1) Set SoftNetRulesKey = $($R2) CloseRegKey $($R3) CloseRegKey $($R4) CloseRegKey $($R5) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR EndWait CloseRegKey $(KeyProduct) CloseRegKey $(SoftNetRulesKey) goto fatalregistry endif 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, $(KeyProduct), $(NewValueList) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR EndWait CloseRegKey $(KeyProduct) CloseRegKey $(SoftNetRulesKey) 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),$(NetRuleSoftwareBindable)}, + {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}} Shell $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set RegistryErrorIndex = $($R0) CloseRegKey $(KeyProduct) CloseRegKey $(SoftNetRulesKey) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR EndWait goto fatalregistry endif 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 KeyParameters = $($R3) set KeyAdapterRules = $($R2) set AdapterNumber = $($R4) set AdapterName = $($R5) set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+ {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardwareTitle)},+ {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareDescription)},+ {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+ {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+ {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}} Shell $(UtilityInf), AddValueList, $($R1), $(NewValueList) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif CloseRegKey $($R1) set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)"""" set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm) set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+ {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, + {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, + {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}} Shell $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR EndWait CloseRegKey $(KeyParameters) CloseRegKey $(KeyAdapterRules) goto fatalregistry endif CloseRegKey $(KeyAdapterRules) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR goto fatalregistry endif goto UIAddAdapter UIAddAdapter = + read-syms FileDependentDlg$(!STF_LANGUAGE) set LibPath = $(DLLPath)"\"$(DlgDllName) LoadLibrary "" $(LibPath) hLib LibraryProcedure MyResult $(hLib), ADPWIZARD + $(KeyParameters) $(AdapterName) $(AdapterNumber) $(STF_CONTEXTINFNAME) $(!STF_HWND) $(SrcDir) $(!STF_GUI_UNATTENDED) $(!STF_UNATTENDED) FreeLibrary $(hLib) CloseRegKey $(KeyParameters) Split-String $(MyResult) " " tmpl ifstr(i) *($(tmpl), 1) != "CONTINUE" set CommonStatus = STATUS_USERCANCEL goto abandon endif set CommonStatus = STATUS_SUCCESSFUL goto successful UIDisplay = + read-syms FileDependentDlg$(!STF_LANGUAGE) set LibPath = $(DLLPath)"\"$(DlgDllName) LoadLibrary "" $(LibPath) hLib LibraryProcedure MyResult $(hLib), ADPSETUP + $(KeyParameters) $(!NTN_RegBase) $(ProductHardwareName) $(STF_CONTEXTINFNAME) $(!STF_HWND) FreeLibrary $(hLib) CloseRegKey $(KeyParameters) Split-String $(MyResult) " " tmpl queryListSize ctmpl $(tmpl) set CommonStatus = STATUS_USERCANCEL set CommonStatus = STATUS_SUCCESSFUL ifstr(i) *($(tmpl), 1) != "CONTINUE" set CommonStatus = STATUS_USERCANCEL goto end endif EndWait goto end 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 read-syms FileDependentDlg$(!STF_LANGUAGE) set LibPath = $(DLLPath)"\"$(DlgDllName) LibraryProcedure DllFound, $(!LIBHANDLE), CheckFileExistance $(LibPath) Ifstr(i) $(DllFound) != "YES" Shell "Subroutn.Inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" + "The driver setup program,"$(DlgDllName)" could not be found." + "Removing anyway." Endif ifstr(i) $(DllFound) == "YES" LoadLibrary "" $(LibPath) hLib LibraryProcedure MyResult $(hLib), ADPREMOVE + "HWPRE" $(STF_CONTEXTINFNAME) $(!STF_HWND) $(ProductSoftwareName) endif ;HWPRE 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 ifstr(i) $(DllFound) == "YES" LibraryProcedure MyResult $(hLib), ADPREMOVE + "HWPOST" $(STF_CONTEXTINFNAME) $(!STF_HWND) $(ProductSoftwareName) FreeLibrary $(hLib) endif ; HWPOST endif ;remove hw goto end UpgradeSoftware = + set Error = "Upgrade: Sorry, not implemented." goto fatal bindingadapter =+ set Error = "Binding: Sorry, not yet implemented." goto fatal 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 = + 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 Severity = STATUS Set CommonStatus = STATUS_USERCANCEL 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 fataldetect = + Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT 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 = "Error: "$(FunctionTitle) set STF_MB_TEXT = "Shell Code Error" 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) [DebugConfiguration] return [SystemVariables] STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir STF_NTPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir STF_WINDOWSPATH = "" ? $(!LIBHANDLE) GetWindowsNtDir [ExternalInstallOption] Set !G:DebugOutputControl = 1 set Exit_Code = $(!SETUP_ERROR_GENERAL) install LoadSetupLibrary LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE set STF_CONTROLSET = CurrentControlSet read-syms SystemVariables Detect SystemVariables ifstr(i) $(STF_LANGUAGE) == "" goto end else-ifstr(i) $(INFFILE) == "" goto end endif Set !STF_CWDIR = $(!STF_WINDOWSSYSPATH) Shell NCPARAM.INF Param_SetGlobals LoadLibrary "x" $(!STF_CWDIR)\ncpa.cpl !NCPA_HANDLE LoadLibrary "x" $(!STF_CWDIR)\setupdll.dll !LIBHANDLE Shell "NCPARAM.INF" Param_ControlDetection DTSTART set !NTN_RegBase = $(INF_NET_REG_BASE) set !NTN_SoftwareBase = "Software" set !NTN_ServiceBase = "System\CurrentControlSet\Services" set !NTN_InstallMode = install SET !STF_INSTALL_MODE = install ifstr(i) $(INF_SECTION_OP) == "R" set !NTN_InstallMode = deinstall else-ifstr(i) $(INF_SECTION_OP) == "C" set !NTN_InstallMode = configure else Set !STF_CWDIR = $(!INITSRC) Shell OTHER.INF GetNewOEMMultiOption $(STF_LANGUAGE) "{}" "{""NetAdapter""}" $(!STF_CWDIR) ifstr(i) $($R0) == STATUS_SUCCESSFUL set Exit_Code = $(!SETUP_ERROR_SUCCESS) else-ifstr(i) $($R0) == STATUS_USERCANCEL set Exit_Code = $(!SETUP_ERROR_USERCANCEL) goto end endif set STF_CONTEXTINFNAME = *(*($($R1),1),1) endif set !STF_BUSTYPELIST = {PCMCIA} Shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(!STF_CWDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG) ifstr(i) $($R0) == STATUS_SUCCESSFUL set Exit_Code = $(!SETUP_ERROR_SUCCESS) else-ifstr(i) $($R0) == STATUS_USERCANCEL set Exit_Code = $(!SETUP_ERROR_USERCANCEL) goto end endif Set NCPA_CMD_LINE = " /t STF_INSTALL_MODE = EXPRESS" Set NCPA_FUNC = NCPA LibraryProcedure NCPA_RESULT $(!NCPA_HANDLE),CPlSetup $(!STF_HWND), $(NCPA_FUNC), $(NCPA_CMD_LINE) ifstr(i) $($R0) == STATUS_SUCCESSFUL set Exit_Code = $(!SETUP_ERROR_SUCCESS) else-ifstr(i) $($R0) == STATUS_USERCANCEL set Exit_Code = $(!SETUP_ERROR_USERCANCEL) endif End =+ install FreeSetupLibrary FreeLibrary $(!LIBHANDLE) exit [Install-Option] set STF_VITAL = "" ifstr(i) $(AddCopy) == "YES" AddSectionFilesToCopyList Files-$(Option)-SYS $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers AddSectionFilesToCopyList Files-$(Option)-W32 $(SrcDir) $(!STF_WINDOWSSYSPATH) AddSectionFilesToCopyList Files-$(Option)-INF $(SrcDir) $(!STF_WINDOWSPATH)\INF endif ifstr(i) $(DoCopy) == "YES" set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList endif ExitDownload Driver Pack
After your driver has been downloaded, follow these simple steps to install it.
Expand the archive file (if the download file is in zip or rar format).
If the expanded file has an .exe extension, double click it and follow the installation instructions.
Otherwise, open Device Manager by right-clicking the Start menu and selecting Device Manager.
Find the device and model you want to update in the device list.
Double-click on it to open the Properties dialog box.
From the Properties dialog box, select the Driver tab.
Click the Update Driver button, then follow the instructions.
Very important: You must reboot your system to ensure that any driver updates have taken effect.
For more help, visit our Driver Support section for step-by-step videos on how to install drivers for every file type.