OEMSETUP.INF Driver File Contents (AS59099V2_0.zip)

[Identification]
    OptionType = NetAdapter

[PlatformsSupported]
    PCI
    "Jazz-Internal Bus"

[LanguagesSupported]
    ENG

[Options]
    4200/PCI

[AdapterInfo]
    4200/PCI	    = "AX4200/PCI",  Axserdrv, Axserdrv, 0, axserui.exe, {16896}

[FileConstants]
    ExitState	= "Active"
    OldVersionExisted = $(FALSE)
    HdwDriverComponentExists = $(FALSE)
    DriverPath	= $(!STF_NTPATH)"\drivers"
    UtilityInf	= "UTILITY.INF"
    subroutninf = "SUBROUTN.INF"
    ParamInf	= "NCPARAM.INF"
    HandleNull	= ""
AdapterList = ^(AdapterInfo,0)
AdapterTitleList = ^(AdapterInfo, 1)
AdapterHardwareNameList = ^(AdapterInfo, 2)
AdapterHardwareDriverList = ^(AdapterInfo, 3)
AdapterHardwareTypeList = ^(AdapterInfo, 4)
AdapterSetupList = ^(AdapterInfo, 5)
AdapterHardwareAdapterIDList = ^(AdapterInfo$(BusType), 6)
AdapterTitle = *($(AdapterTitleList), ~($(AdapterList), $(Option)))
AdapterHardwareName = *($(AdapterHardwareNameList), ~($(AdapterList), $(Option)))
AdapterHardwareDriver = *($(AdapterHardwareDriverList), ~($(AdapterList), $(Option)))
AdapterHardwareType = *($(AdapterHardwareTypeList), ~($(AdapterList), $(Option)))
AdapterSetupName = *($(AdapterSetupList), ~($(AdapterList), $(Option)))
AdapterRule = *($(AdapterHardwareDriverList), ~($(AdapterList), $(Option)))
AdapterHardwareAdapterID = *($(AdapterHardwareAdapterIDList), ~($(AdapterList), $(Option)))
AdapterServiceName = ""
AdapterName = ""    ; Axserdrv0, ...
    NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
    IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
    Manufacturer    = "AXIOMTEK"
    SoftwareType    = "driver"
    ProductMajorVersionHdwDriver     = "1"
    ProductMinorVersionHdwDriver     = "0"
    ProductVersionHdwDriver  = $(ProductMajorVersionHdwDriver)"."$(ProductMinorVersionHdwDriver)
    ProductSoftwareNameHdwDriver = $(AdapterHardwareDriver)
    ProductSoftwareImagePathHdwDriver = "%SystemRoot%\System32\drivers\"$(AdapterHardwareDriver)".sys"
    NetRuleSoftwareTypeHdwDriver     = $(AdapterHardwareDriver)"sys "$(AdapterHardwareDriver)"Driver"
    NetRuleSoftwareUseHdwDriver      = $(SoftwareType)
    NetRuleSoftwareBindFormHdwDriver = """"$(AdapterHardwareDriver)"Driver"" yes no container"
    NetRuleSoftwareClassHdwDriver    = {$(AdapterHardwareDriver)"Driver basic"}
    NetRuleSoftwareHiddenHdwDriver   = 1
    NetRuleHardwareType     = $(AdapterRule)" "$(AdapterRule)"Adapter"
    NetRuleHardwareBindForm = " yes yes container"
    NetRuleHardwareClass    = {$(AdapterHardwareDriver)"Adapter basic"}
    ProductHardwareName 	= $(AdapterHardwareDriver)
    AdapterParameters = {}
    ProductKeyNameHdwDriver  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareNameHdwDriver)"\CurrentVersion"
    ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"

[GeneralConstants]
    NoTitle	       = 0
    ExitCodeOk	       = 0
    ExitCodeCancel     = 1
    ExitCodeFatal      = 2
    KeyNull	       = ""
    MAXIMUM_ALLOWED    = 33554432
    RegistryErrorIndex = NO_ERROR
    KeyProduct	       = ""
    KeyParameters      = ""
    TRUE	       = 1
    FALSE	       = 0
    fRemoveAX	       = TRUE
    ProductID	       = "0"

[DebugOptions]
    !DebugOutputControl = 0

[UiVars]
    from      = ""
    to	      = ""
    !STF_NTDRIVE	= ""
    !STF_NTPATH 	= ""
    !STF_WINDOWSPATH	= "" ? $(!LIBHANDLE) GetWindowsNtDir
    !STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
    !STF_FLOPPYLIST	= {} ? $(!LIBHANDLE) GetFloppyDriveLetters
    !STF_UNUSEDDRIVES	= {} ? $(!LIBHANDLE) GetUnusedDrives
    !STF_LANGUAGE	= "ENG"
    VolumeList	    = {} ? $(!LIBHANDLE) GetHardDriveLetters
    VolumeFreeList  = {} ? $(!LIBHANDLE) GetHardDriveFreeSpace
    VolumeFSList    = {} ? $(!LIBHANDLE) GetHardDriveFileSystems
    DestVolume	    = ""
    MinHelpID	= 25000
    MaxHelpID	= 25999

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

[Identify]
    read-syms Identification
    set Status	   = STATUS_SUCCESSFUL
    set Identifier = $(OptionType)
    set Media	   = #("Source Media Descriptions", 1, 1)
    Return $(Status) $(Identifier) $(Media)

[ReturnOptions]
    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)

[Shell Commands]
    set-title "Serial Setup"
    set-subst LF = "\n"
    set Exit_Code = $(ExitCodeOk)
    ifstr(i) $(!STF_RANFROM) != ""
	ifstr(i) $(!STF_RANFROM) != $(!STF_CWDDIR)"SERIAL\"
	   set !STF_SRCDIR = $(!STF_RANFROM)
	endif
    endif
    LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
    shell "" InstallOption ENG AXIOMTEK $(!STF_SRCDIR)
    FreeLibrary $(!LIBHANDLE)
    set Status = $($R0)
    Return $(Status)

[InstallOption]
    read-syms DebugOptions
    set Status = STATUS_FAILED
    set Option	  = $($1)
    set SrcDir	  = $($2)
    set AddCopy   = $($3)
    set DoCopy	  = $($4)
    set DoConfig  = $($5)
    set !SourceDir = $($2)
    read-syms GeneralConstants
    read-syms FileConstants
    set LanguageList = ^(LanguagesSupported, 1)
    Ifcontains(i) $($0) NOT-IN $(LanguageList)
	return STATUS_NOLANGUAGE
    Endif
    set-subst LF = "\n"
    read-syms BindingInfo-$(AdapterHardwareDriver)
    set NetRuleSoftwareBindableHdwDriver = $(BindingInfo)
    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
    set CommonStatus = STATUS_SUCCESSFUL
    EndWait

;-----------------------------------------------------------------------------
Begin = +
    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 StartLabel = getAdapterSettings
	Ifstr(i) $(ProductKeyNameHdwDriver) == $(!NTN_RegBase)
	    Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
	    ifint $($ShellCode) != $(!SHELL_CODE_OK)
		goto ShellCodeError
	    endif
	    set Error = $($R0)
	    set from = end
	    set to = end
	    goto nonfatalinfo
	endif
	set from = end
    else
	set StartLabel = installadapter
	set OEM_ABANDON_OPTIONS = {}
	set OEM_ABANDON_SOFTWARE = FALSE
	set OEM_ABANDON_ON = TRUE
    endif
    set to = $(fatal)
    Goto $(StartLabel)

;-----------------------------------------------------------------------------
installadapter = +
	    OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyNameHdwDriver) +
		       $(MAXIMUM_ALLOWED) KeyProductHdwDriver
	    Ifstr $(KeyProductHdwDriver) != $(KeyNull)
		CloseRegKey $(KeyProductHdwDriver)
		Shell $(UtilityInf), CardExistedDlg
		ifint $($ShellCode) != $(!SHELL_CODE_OK)
		    goto ShellCodeError
		endif
		ifstr(i) $($R1) != "OK"
		    goto end
		endif
		set HdwDriverComponentExists = $(TRUE)
		set OldVersionExisted = $(TRUE)
	    EndIf
    goto skipoptions

;-----------------------------------------------------------------------------
skipoptions = +
    ifint $(HdwDriverComponentExists) == $(TRUE)
	    set from = end
	    goto getAdapterSettings
    endif
    StartWait
    ifstr(i) $(!NTN_InstallMode) == "install"
	shell $(UtilityInf) AssignAdapterNumber
	set AdapterName = $(ProductHardwareName)$($R1)
    endif
    ifint $(HdwDriverComponentExists) == $(FALSE)
	ifstr(i) $(!NTN_InstallMode) == "install"
	   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
		  set CommonStatus = STATUS_USERCANCEL
		  Goto end
	      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
    endif

;-----------------------------------------------------------------------------
addHdwDriverComponent = +
    set AXSpecificString = $(AdapterHardwareName)
    Ifint $(HdwDriverComponentExists) == $(TRUE)
	goto addAdapterComponent
    Endif
	set TypeofService = "kernelautostart"
	set ServiceOrderGroup = "Extended base"
	set Dependencies = {}
	set ObjectName = ""
	set TypeSupported = "7"
	set EventLogLocation = "System"
	set ErrorControlValue = 1
	Shell $(UtilityInf), AddSoftwareComponent, +
				    $(Manufacturer), +
				    $(ProductSoftwareNameHdwDriver), +
				    $(ProductSoftwareNameHdwDriver), +
				    $(ProductSoftwareTitleHdwDriver), +
				    $(STF_CONTEXTINFNAME), +
				    $(ProductSoftwareImagePathHdwDriver), +
				    $(TypeofService), +
				    $(ServiceOrderGroup), +
				    $(Dependencies), +
				    $(ObjectName), +
				    $(IoLogMsgDLL)";"$(ProductSoftwareImagePathHdwDriver), +
				    $(TypeSupported), +
				    $(EventLogLocation), +
				    $(ErrorControlValue)
	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),$(ProductMajorVersionHdwDriver)},+
			   {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersionHdwDriver)},+
			   {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitleHdwDriver)},+
			   {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescriptionHdwDriver)},+
			   {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareNameHdwDriver)},+
			   {hidden,$(NoTitle),$(!REG_VT_DWORD),$(NetRuleSoftwareHiddenHdwDriver)}, +
			   {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),$(NetRuleSoftwareTypeHdwDriver)},+
			    {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUseHdwDriver)}, +
			    {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindFormHdwDriver)}, +
			    {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClassHdwDriver)}, +
			    {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindableHdwDriver)}, +
			    {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
	Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
	ifint $($ShellCode) != $(!SHELL_CODE_OK)
	    goto ShellCodeError
	endif
	set RegistryErrorIndex = $($R0)
	FlushRegKey $(SoftProductKey)
	FlushRegKey $(SoftNetRuleKey)
	FlushRegKey $(SoftServiceKey)
	FlushRegKey $(SoftParameterKey)
	FlushRegKey $(SoftLinkageKey)
	CloseRegKey $(SoftProductKey)
	CloseRegKey $(SoftNetRuleKey)
	CloseRegKey $(SoftServiceKey)
	CloseRegKey $(SoftParameterKey)
	CloseRegKey $(SoftLinkageKey)
	Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	    EndWait
	    goto fatalregistry
	endif

;-----------------------------------------------------------------------------
addAdapterComponent = +
    Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName), +
			 $(STF_CONTEXTINFNAME), $(ProductKeyNameHdwDriver)
    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 AdapterServiceName = $($R5)
    set AdapterName = $(AdapterServiceName)
    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
    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
    FlushRegKey $(KeyParameters)
    FlushRegKey $(KeyAdapterRules)
    CloseRegKey $(KeyParameters)
    CloseRegKey $(KeyAdapterRules)

;-----------------------------------------------------------------------------


	Shell $(UtilityInf), BaseServiceKey
	set RegistryErrorIndex = $($R0)
	Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	   goto fatalregistry
	endif
	set KeyServices = $($R1)
	OpenRegKey $(KeyServices) "" $(AdapterHardwareDriver) $(MAXIMUM_ALLOWED) KeyAxcard
	Ifstr $(KeyAxcard) == $(KeyNull)
	   set RegistryErrorIndex = UNABLE_ACCESS_CONFIGURE_SERVICE
	   goto fatalregistry
	endif
	SetRegValue $(KeyAxcard) {ProductID,$(NoTitle),$(!REG_VT_DWORD),$(ProductID)}
	CloseRegKey $(KeyAxcard)
;;;;
    set from = end
    goto getAdapterSettings

;-----------------------------------------------------------------------------
getAdapterSettings = +
    set AXsetup = $(!STF_WINDOWSSYSPATH)"\"$(AdapterSetupName)
    set SlotDeviceNumList = {}
    set DeviceIdList = {}
    ForListDo $(AdapterHardwareAdapterID)
	ifint $($) != 0
	    set VendorID = 4277
	    Shell $(UtilityInf), GetPCIInformation, $(VendorID) $($)
	    ifstr(i) $($R0) != {}
		set SlotDeviceNumList = >($(SlotDeviceNumList), $($R0))
		set DeviceIdList = >($(DeviceIdList), $($))
	    endif
	endif
    EndForListDo
    RunProgram ExitCode "" "" $(AXsetup) $(DeviceIdList) $(SlotDeviceNumList)
    Ifint $(ExitCode) == 1
	set CommonStatus = STATUS_USERCANCEL
    endif
    goto $(from)

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

;-----------------------------------------------------------------------------
removeadapter = +
    set AXSpecificString = $(AdapterHardwareName)
    ifstr(i) $(fRemoveAX) == FALSE
      install RemoveFiles
      goto removeadapterExit
    endif
    Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
	$(ProductSoftwareNameHdwDriver), $(!NTN_RegBase)
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	goto ShellCodeError
    endif
    set RegistryErrorIndex = $($R0)
    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
	goto fatalregistry
    endif
;;;
    install RemoveFiles
removeadapterExit = +
    goto end

;-----------------------------------------------------------------------------
UpgradeSoftware = +
    set Error = "Update not implemented. To update, remove driver and then re-install"
    goto fatal

;-----------------------------------------------------------------------------
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)" - service "$(AXSpecificString)"."
    ifstr(i) $(fRemoveAX) == TRUE
	read-syms AbortMessage$(!STF_LANGUAGE)
	set Error = $(Error)$(!LF)$(!LF)$(AbortText)
    endif
    goto fatal

;-----------------------------------------------------------------------------
fataldetect = +
    Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
    ifint $($ShellCode) != $(!SHELL_CODE_OK)
	goto ShellCodeError
    endif
    set Error = $($R0)
    Goto fatal

;-----------------------------------------------------------------------------
fatal = +
    Shell $(subroutninf) 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) $(fRemoveAX) == TRUE
	set fRemoveAX = FALSE
	goto removeadapter
    endif
    goto end

;-----------------------------------------------------------------------------
end = +
    Return $(CommonStatus)

;-----------------------------------------------------------------------------
[RemoveFiles]
   set RemoveList = {}
   set RemoveList = >($(RemoveList), $(!STF_WINDOWSSYSPATH)"\drivers\"$(AdapterHardwareDriver)".sys")
   set RemoveList = >($(RemoveList), $(!STF_WINDOWSSYSPATH)"\drivers\"axserdev".sys")
   set RemoveList = >($(RemoveList), $(!STF_WINDOWSSYSPATH)"\"$(AdapterSetupName))
   ForListDo $(RemoveList)
       LibraryProcedure Status , $(!LIBHANDLE), DelFile $($)
   EndForListDo
   exit

[BindingInfo-Axserdrv]
BindingInfo	= {+
		  $(AdapterHardwareDriver)"Driver "$(AdapterHardwareDriver)"Adapter non exclusive 100" +
		  }

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

[Source Media Descriptions]
    1  = "Windows NT Setup Disk #1"          , TAGFILE = disk1
    2  = "AXIOMTEK AX4200 Driver Disk"  , TAGFILE = winnt\Axserdrv.sys

[Files-4200/PCI]
2,Axserdrv.sys , SIZE=134656
2,Axserdev.sys , SIZE=4992

[Files-Resource-4200/PCI]
2,axserui.exe, SIZE=39936

[OptionsTextENG]
    4200/PCI   = "Axiomtek AX4200 RS422/485 PCI Card "

[FileConstantsENG]
    ProCaption	 = $(ApaterHardwareDriver)" Setup"
    ProCancel	 = "Cance&l"
    ProCancelMsg = "AXIOMTEK AX4200 card and/or Drivers are not correctly installed. "+
		   "Are you sure you want to cancel copying files?"
    ProCancelCap = $(ApaterHardwareDriver)" Setup Message"
    ProText1	 = "Copying:"
    ProText2	 = "To:"
    Error	  = "Unable to determine proper source disk location; copy cannot be performed."
    FunctionTitle   =$(ApaterHardwareDriver)" Setup"
    ProductSoftwareDescriptionHdwDriver = "Axiomtek "$(AdapterTitle)" Driver"
    ProductSoftwareTitleHdwDriver = "Axiomtek "$(AdapterTitle)" Driver"
    ConfigurationTitle = "Axiomtek "$(AdapterTitle)" Adapter Setup"
    ProductHardwareDescription	    = "Axiomtek "$(AdapterTitle)" Adapter"
    ProductHardwareTitle	= "Axiomtek "$(AdapterTitle)" Adapter"

[DialogConstantsENG]
    Help	= "&Help"
    Exit	= "E&xit"
    OK		= "OK"
    HelpContext = ""
    Continue	= "C&ontinue"
    Cancel	= "C&ancel"

[UpdatingConfigurationENG]
    UpdatingConfiguration      = "Updating new configuration..."

[AbortMessageENG]
  AbortText  =	"Aborting "$(ApaterHardwareDriver)" Setup. Please reboot the system "+
		"to fix the problem."


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: web2, load: 0.77