OEMSETNT.INF Driver File Contents (ses.zip)

[commentOEM]
  EtherSerial driver setup script
 for Windows NT 4.0
 FileVersion 4.10c (970628)

[Identification]
  OptionType = NetAdapter

[PlatformsSupported]
  ISA

[LanguagesSupported]
  ENG


[Options]
  SESNDIS


[OptionsTextENG]
  SESNDIS = " EtherSerial Adapter"


[Files-Inf]
1, oemsetnt.inf, SIZE=50000, RENAME=$(!UG_Filename)

[Files-SESNDIS-W32]
1, ESCPL.CP_, SIZE=60000,  DECOMPRESS, RENAME=ESCPL.CPL

[Files-SESNDIS-SYS]
1, ESNDIS.sy_, SIZE=50000, DECOMPRESS, RENAME=ESNDIS.SYS
1, ESDRV.sy_,  SIZE=20000, DECOMPRESS, RENAME=ESDRV.SYS

[FileConstants]
UtilityInf      = "UTILITY.INF"
ParamInf        = "NCPARAM.INF"
subroutineinf   = "SUBROUTN.INF"
SoftwareType    = "driver"
Exit_Code       = 0

Manufacturer    =  "Generic"
ProductMajorVersion     = "3"
ProductMinorVersion     = "24"
ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)

ProductSoftwareName     = "ESPC"
ProductSoftwareTitle    = " EtherSerial Adapter Driver"
ProductSoftwareImagePath = "\SystemRoot\System32\drivers\ESNDIS.SYS"
NetRuleSoftwareType     = "ESPCSys ndisDriver ESPCDriver"
NetRuleSoftwareUse      = $(SoftwareType)
NetRuleSoftwareBindForm = """ESPCSys"" yes no container"
NetRuleSoftwareClass    = {"ESPCDriver basic"}
NetRuleSoftwareBindable = {"ESPCDriver ESPCAdapter non exclusive 100"}


ProductHardwareName     = "ESPC"
ProductHardwareTitle    = " EtherSerial Adapter"
NetRuleHardwareType     = "ESPC ESPCAdapter"
NetRuleHardwareBindForm = " yes yes container"
NetRuleHardwareClass    = {"ESPCAdapter basic"}

NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"

ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
;-ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"

[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   = "ESCPL.CPL"
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 = " EtherSerial Adapter Setup"
ProductSoftwareDescription = " EtherSerial Adapter Driver"
ProductHardwareDescription = "Network part of  EtherSerial Adapter"

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

[date]
    Now = {} ? $(!LIBHANDLE) GetSystemDate

[Source Media Descriptions]
    1  = " EtherSerial Drivers Disk"  ;- , TAGFILE = disk1

[FileDependentDlgENG]
;nothing here

[Identify]
;    set !G:DebugOutputControl = 1
    debug-output "*** SEM:identify:contextinfname="$(STF_CONTEXTINFNAME)     

    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 "*** SEM:retopt="$(STF_CONTEXTINFNAME)     

    set Status        = STATUS_FAILED
    set OptionList     = {}
    set OptionTextList = {}

    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) in $(LanguageList)
	;
	; Check if the platforms requested is supported
	;
	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)

 debug-output "sem:infname="$(STF_CONTEXTINFNAME)" Action="$(SetupAction)
;$$$  - always name of copied inf on C:
								 ; Install -------- Configure
 debug-output " - SrcDir="$($2)	 ; "A:\A\"			"c:\source\ntw40\"
 debug-output " - AddCopy="$($3) ;"YES"				 ""
 debug-output " - DoCopy="$($4)	 ;"YES"				 ""
 debug-output " - DoConfig="$($5);"YES"				 ""
 debug-output " - regbase="$(!NTN_RegBase) ;""		 "SOFTWARE\Microsoft....\NetworkCards\1"

    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) NOT-IN $(LanguageList)
	Return STATUS_NOLANGUAGE
    endif

;$$$ get syms ------------------------
    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)
	    ;  configure the software component (not in NT4)
	    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
     ; Install hardware component
	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
    debug-output "*sem: unknown NTN_InstallMode="$(!NTN_InstallMode)
    set Error = "Unknown action"
    goto Fatal
  endif

  Goto $(StartLabel)

;===========================================================================
; Configure installed
;===========================================================================
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)

    ;  R1= services key, don't need it
    CloseRegKey $($R1)

    Ifstr $(KeyParameters) == $(KeyNull)
	set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
	goto fatalregistry
    endif

    set OldVersionExisted = $(TRUE)

; $(KeyParameters)  $(SetupAction)=configure

    goto UIDisplay

;=======================================================================
; Install new
; first time setup or add instance
;========================================================================
installadapter = +

  ;We never install in the silent Detection mode, so
  ;always display config. dialog and copy all files from SrcDir
   set DoCopy = "YES"
   set DoConfig = "YES"
   set SrcDirOk = "YES" 

;$$$ move to DLL : before install
    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct

  Ifstr $(KeyProduct) != $(KeyNull)
	;
	; Some version already exists - ask the user 
	;
	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)   
    debug-output "*sem - installed ver="$(InstVersion)

	CloseRegKey $(KeyProduct)

	ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
	   ; Cannot Install the same software again
	   Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
	       $(ProductVersion)
	   ifint $($ShellCode) != $(!SHELL_CODE_OK)
	       goto ShellCodeError
	   endif

	   goto end
	else
    ;$$$ hardware already installed: ask to remove. NT4 has no Upgrade cmd??
	   ifstr(i) $(ProductVersion) != $(InstVersion)
         Shell "Subroutn.Inf" SetupMessage $(!STF_LANGUAGE) "WARNING" +
          "There is version "$(InstVersion)" of this driver already installed." +
	      $(LF)"Please uninstall it before installing this version."
         goto end
       endif

	   ; Add another instance?
	   Shell $(UtilityInf), CardExistedDlg

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

	   ifstr(i) $($R1) != "OK"
	       goto end
	   endif
       debug-output "*sem: adding 2nd instance??"
	   set OldVersionExisted = $(TRUE)
	endif
  endif

;$$$ param key unknown
  Set KeyParameters = ""

adapteroptions = +
    Set from = adapteroptions

  ; Copy DLL and other files if not yet =============
  ; DLL always runs from HD and not from src diskette (compression)
  
  ; no old version in the registry - copy always, ignore DoCopy
  ifint $(OldVersionExisted) != $(TRUE)
    goto Copyfiles
  endif

  ;$$$ here test if dll exists, else ask src; and other files
   
  Copyfiles = +
  ifstr(i) $(SrcDirOk) != "YES"

  Ifstr(i) $(DoCopy) == "YES"

;+ STF_SRCDIR_OVERRIDE can be set, then doesnt't ask
;+ after copy, dll always on harddisk
   Debug-output " -on (30) AskSource"
   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)
   Debug-output "(30) SrcDir="$(SrcDir)

  Endif ;SrcDirOk
  Endif ;DoCopy

  Debug-output " -on copyfiles"
  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)  ;$(!STF_WINDOWSSYSPATH)

  StartWait

;============ add serv
 debug-output "*** SEM:addSW:contextinfname="$(STF_CONTEXTINFNAME)     
	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
	;
	;   At this point:
    ;     $R0  Error code, if ok:
	;     $R1 product version key handle Software/.../NetworkCards/n
	;     $R2 NetRules subkey handle   .../n/Netrules
	;     $R3 New Services key handle Services/<name>
	;     $R4 Parameters key Services/<name>/Parameters - not used
	;     $R5 Linkage subkey
	;
	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
    endif

 debug-output "*** SEM:addHW:contextinfname="$(STF_CONTEXTINFNAME)     
    Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
    ;At this point:
    ; $R0  Error code, if ok:
    ; $R1  Registry handle for Software\...\NetworkCards\(n) ??
    ; $R2  Registry handle for Software\Netcard\(n)\\NetRules ??
    ; $R3  Registry handle for <device>\Parameters key
    ; $R4  Adapter number assigned to adapter
    ; $R5  Device name = Service name + adapter number
    ;
    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 = +
    debug-output "sem:KeyParameters="$(KeyParameters)
; wizard
    read-syms FileDependentDlg$(!STF_LANGUAGE)
    set LibPath = $(DLLPath)"\"$(DlgDllName)  ;$(!STF_WINDOWSSYSPATH)

    Debug-output "(25) LoadLib="$(LibPath)
  LoadLibrary "" $(LibPath) hLib

    Debug-output "sem:calling wizard"$(KeyParameters)
    LibraryProcedure MyResult $(hLib), ADPWIZARD +
        $(KeyParameters) $(AdapterName) $(AdapterNumber) $(STF_CONTEXTINFNAME)

	Debug-output "RESULT="$(MyResult) 
  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 = +
    debug-output "sem:KeyParameters="$(KeyParameters)
 
 ;propsheet

    read-syms FileDependentDlg$(!STF_LANGUAGE)
    set LibPath = $(DLLPath)"\"$(DlgDllName)  ;$(!STF_WINDOWSSYSPATH)

    Debug-output "(23) LoadLib="$(LibPath)
  LoadLibrary "" $(LibPath) hLib

    Debug-output "sem:calling propsheet"$(KeyParameters)
    LibraryProcedure MyResult $(hLib), ADPSETUP +
        $(KeyParameters) $(AdapterName) $(AdapterNumber) $(STF_CONTEXTINFNAME)

	Debug-output "RESULT="$(MyResult) 
  FreeLibrary $(hLib)


    CloseRegKey $(KeyParameters)

 ; DBG
 ; Split-String $(MyResult) " " tmpl
 ; queryListSize ctmpl $(tmpl)
 ; debug-output "list:"$(tmpl)" size="$(ctmpl)
 ; debug-output "last:"*($(tmpl),$(ctmpl))

    set CommonStatus = STATUS_SUCCESSFUL;
    ifstr(i) *($(tmpl), 1) != "CONTINUE"

;-    else    ;  -BACK or EXIT
      set CommonStatus = STATUS_USERCANCEL
      goto end
    endif
    
;$$$ configure: force CANCEL to avoid binding;STATUS_NO_EFFECT?
    EndWait

    goto successful



;==========================
; Remove
;==========================
removeadapter = +
    Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
	; Remove Software Component
 Debug-Output "sem: remove sw comp="$(ProductKeyName)
	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
 Debug-Output "sem: remove hw comp="$(!NTN_RegBase)
	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 = +
    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
	; Remove Software Component
	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 $(OldVersionExisted) == $(TRUE)
    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]
 Debug-Output "seminf dbg at:"$($0)
    return


[Install-Option]
    set STF_VITAL = ""
;-   set STF_OVERWRITE = "VERIFYSOURCEOLDER"
;-   set STF_VERSION   = "YES"

   ifstr(i) $(AddCopy) == "YES"
     AddSectionFilesToCopyList Files-$(Option)-SYS $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
     AddSectionFilesToCopyList Files-$(Option)-W32 $(SrcDir) $(!STF_WINDOWSSYSPATH)
   endif

    ifstr(i) $(DoCopy) == "YES"
      set !STF_NCPA_FLUSH_COPYLIST = TRUE
      CopyFilesInCopyList
    endif

    Exit

;[end]

Download Driver Pack

How To Update Drivers Manually

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.

server: ftp, load: 1.03