[Identification]
OptionType = NetService
[DebugOptions]
!G:DebugOutputControl = 1
[Options]
RealPort
[FileConstants]
Manufacturer = "Digi"
ProductMajorVersion = "1"
ProductMinorVersion = "0"
ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
ProductRealPortName = "DigiRealPort"
ProductRealPortImagePath = "%SystemRoot%\System32\Drivers\DigiRlPt.sys"
ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\DigiRealPort\CurrentVersion"
IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll"
[GeneralConstants]
UtilityInf = "UTILITY.INF"
subroutineinf = "SUBROUTN.INF"
Exit_Code = 0
BillboardVisible = 0
from = ""
to = ""
ExitCodeOk = 0
ExitCodeCancel = 1
ExitCodeFatal = 2
KeyNull = ""
MAXIMUM_ALLOWED = 33554432
SERVICE_NO_CHANGE = 4294967295
RegistryErrorIndex = NO_ERROR
KeyProduct = ""
KeyParameters = ""
TRUE = 1
FALSE = 0
NoTitle = 0
ExitState = "Active"
OldVersionExisted = $(FALSE)
[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)
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]
read-syms DebugOptions
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
Debug-Output "OEMNSVCU.INF: STF_CWDIR is: "$(!STF_CWDIR)
Debug-Output "OEMNSVCU.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
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
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) == configure
set StartLabel = configureadapter
else-Ifstr(i) $(!NTN_InstallMode) == bind
set StartLabel = bindingadapter
else
set StartLabel = installadapter
set OEM_ABANDON_SOFTWARE = {}
set OEM_ABANDON_OPTIONS = {}
endif
set from = $(fatal)
set to = $(fatal)
read-syms ProcessorID
read-syms PlatformID
read-syms ProcessorVar
detect ProcessorVar
Ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_I386)
set STF_PLATFORM = $(PlatformID_X86)
else-Ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_I486)
set STF_PLATFORM = $(PlatformID_X86)
else-Ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_I586)
set STF_PLATFORM = $(PlatformID_X86)
else-Ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_Alpha)
set STF_PLATFORM = $(PlatformID_Alpha)
endif
Debug-Output "Processor: "$(STF_PROCESSOR)
Debug-Output "Processor Platform (for install directory name): "$(STF_PLATFORM)
goto $(StartLabel)
installadapter = +
; make sure user is running right inf for the platform
read-syms ProductType
ifstr(i) $(STF_PLATFORM) != $(!STF_PLATFORM)
set Error = $(WrongPlatform)
set from = "end"
LibraryProcedure Status , $(!LIBHANDLE), DelFile $(STF_CONTEXTINFNAME)
goto fatal
endif
; is already installed
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
OpenRegKey $(KeyProduct) "" "NetRules" $(MAXIMUM_ALLOWED) NetRulesProduct
Ifstr $(NetRulesProduct) != $(KeyNull)
GetRegValue $(NetRulesProduct), "InfName", InfNameList
CloseRegKey $(NetRulesProduct)
set TempInfFileName = $(!STF_WINDOWSSYSPATH)"\"*($(InfNameList), 4)
ifstr(i) $(TempInfFileName) != $(STF_CONTEXTINFNAME)
LibraryProcedure Status , $(!LIBHANDLE), DelFile $(STF_CONTEXTINFNAME)
endif
endif
; it is so get version info
GetRegValue $(KeyProduct),"MajorVersion", MajorVersionInfo
set MajorVersion = *($(MajorVersionInfo), 4)
GetRegValue $(KeyProduct),"MinorVersion", MinorVersionInfo
set MinorVersion = *($(MinorVersionInfo), 4)
; we want to make sure the user upgrades an older version
; and doesn't install with a newer version
ifint $(MajorVersion) < $(ProductMajorVersion)
set Error = $(ShouldUpgrade)
set from = "end"
set CommonStatus = STATUS_USERCANCEL
goto nonfatal
else-ifint $(MajorVersion) == $(ProductMajorVersion)
ifint $(MinorVersion) < $(ProductMinorVersion)
set Error = $(ShouldUpgrade)
set from = "end"
set CommonStatus = STATUS_USERCANCEL
goto nonfatal
else-ifint $(MinorVersion) > $(ProductMinorVersion)
set Error = $(NewerInstalled)
set from = "end"
set CommonStatus = STATUS_USERCANCEL
goto nonfatal
else
Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle), $(ProductVersion)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "ShellCode error: cannot get an error string."
goto ShellCodeError
endif
goto end
endif
else
set Error = $(NewerInstalled)
set from = "end"
set CommonStatus = STATUS_USERCANCEL
goto nonfatal
endif
endif
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)
ifstr(i) $(!NTN_InstallMode) == "install"
Debug-Output "OEMNSVCU.INF: installadapter: installing [Install-Option]"
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
set OEM_ABANDON_ON = TRUE
StartWait
Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer),+
$(ProductRealPortName),+
$(ProductRealPortName),+
$(ProductRealPortDisplayName), $(STF_CONTEXTINFNAME),+
$(ProductRealPortImagePath),+
"kernelautostart",+
"", {"Tcpip"}, "",+
$(ProductRealPortImagePath)";"$(IoLogMsgDLL)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNSVTP.INF: ShellCode error, add software component"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "OEMNSVTP.INF: Registry error: add software components"
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
CloseRegKey $($R4)
CloseRegKey $($R5)
goto fatalregistry
endif
Set RealPortVersKeyHandle = $($R1)
Set RealPortRulesKeyHandle = $($R2)
Set RealPortSvcKeyHandle = $($R3)
Set RealPortParmKeyHandle = $($R4)
Set RealPortLinkageHandle = $($R5)
set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),"service"},+
{MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
{MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
{Review,$(NoTitle),$(!REG_VT_DWORD),0},+
{Title,$(NoTitle),$(!REG_VT_SZ),$(ProductRealPortTitle)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductRealPortDescription)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductRealPortName)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(UtilityInf), AddValueList, $(RealPortVersKeyHandle), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNSVTP.INF: ShellCode error, add value list"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "OEMNXPTC.INF: Registry error: add value list."
CloseRegKey $(RealPortVersKeyHandle)
CloseRegKey $(RealPortRulesKeyHandle)
CloseRegKey $(RealPortSvcKeyHandle)
CloseRegKey $(RealPortParmKeyHandle)
CloseRegkey $(RealPortLinkageHandle)
goto fatalregistry
Endif
set NewValueList = {{InfOption,$(NoTitle),$(!REG_VT_SZ),RealPort},+
{type,$(NoTitle),$(!REG_VT_SZ),"RealPort RealPortProtocol"},+
{bindform,$(NoTitle),$(!REG_VT_SZ),{"RealPortProtocol nothing non non 100"}}+
}
Shell $(UtilityInf), AddValueList, $(RealPortRulesKeyHandle), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNSVTP.INF: ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "OEMNXPTC.INF: Registry error: add value list."
CloseRegKey $(RealPortVersKeyHandle)
CloseRegKey $(RealPortRulesKeyHandle)
CloseRegKey $(RealPortSvcKeyHandle)
CloseRegKey $(RealPortParmKeyHandle)
CloseRegkey $(RealPortLinkageHandle)
goto fatalregistry
Endif
set NewValueList = +
{{OtherDependencies, $(NoTitle), $(!REG_VT_MULTI_SZ), { "Tcpip" } }}
Shell $(UtilityInf), AddValueList, $(RealPortLinkageHandle), $(NewValueList)
set RegistryErrorIndex = $($R0)
CloseRegKey $(RealPortVersKeyHandle)
CloseRegKey $(RealPortRulesKeyHandle)
CloseRegKey $(RealPortSvcKeyHandle)
CloseRegKey $(RealPortParmKeyHandle)
CloseRegKey $(RealPortLinkageHandle)
EndWait
configureadapter = +
; OK load and run the config DLL
LoadLibrary "x" $(!STF_CWDDIR)DigiRlPt.dll DIGIHANDLE
Shell $(subroutineinf) PopBillboard
LibraryProcedure Result $(DIGIHANDLE) DigiEntry $(ProductRealPortName) $(!STF_HWND)
FreeLibrary $(DIGIHANDLE)
debug-output "DLL result :"$(Result)
Ifstr(i) $(Result) == $(OK)
Ifstr(i) $(!NTN_InstallMode) == configure
; noroot on config
set JumpLabel = cancel
else
set JumpLabel = Successful
endif
else-Ifstr(i) $(Result) == $(Cancel)
; cancel at install means remove any installing we've done
; and possiblely remove the files
ifstr(i) $(!NTN_InstallMode) == install
set Error = $(RealPortCancelInstall)
set from = "end"
set JumpLabel = fatal
else
set JumpLabel = cancel
endif
else
; this error condition will only happen if the config DLL couldn't come
; up this will always be a programmer error
; I suppose the registry could be corrupted or fail to work but you'd
; be in serious trouble then
set Error = $(RealPortFail)
set JumpLabel = fatal
endif
goto $(JumpLabel)
removeadapter = +
; remove realport service
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), $(ProductRealPortName)
; remove files
LibraryProcedure STATUS, $(!LIBHANDLE), DelFile $(!STF_WINDOWSSYSPATH)"\DigiRlPt.dll"
LibraryProcedure STATUS, $(!LIBHANDLE), DelFile $(!STF_WINDOWSSYSPATH)"\DigiRlPt.hlp"
LibraryProcedure STATUS, $(!LIBHANDLE), DelFile $(!STF_WINDOWSSYSPATH)"\DigiRlPt.cnt"
LibraryProcedure STATUS, $(!LIBHANDLE), DelFile $(!STF_WINDOWSSYSPATH)"\drivers\DigiRlPt.sys"
LibraryProcedure STATUS, $(!LIBHANDLE), DelFile $(STF_CONTEXTINFNAME)
; remove SOFTWARE\Digi key if empty
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_SoftwareBase)"\"$(Manufacturer) $(MAXIMUM_ALLOWED) ManKey
ifstr $(ManKey) != $(KeyNull)
EnumRegKey $(ManKey) DigiProductList
CloseRegKey $(ManKey)
QueryListSize NumDigiProducts $(DigiProductList)
ifint $(NumDigiProducts) == 0
DeleteRegTree $(!REG_H_LOCAL) $(!NTN_SoftwareBase)"\"$(Manufacturer)
endif
endif
goto end
bindingadapter = +
; nothing to bind to
goto end
UpgradeSoftware = +
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr(i) $(KeyProduct) != $(KeyNull)
SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
SetRegValue $(KeyProduct) {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductRealPortDescription)}
CloseRegKey $(KeyProduct)
install "Install-Update"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
goto fatal
endif
OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\CurrentControlSet\Services\DigiRealPort" $(MAXIMUM_ALLOWED) RealPortKey
Ifstr $(RealPortKey) != $(KeyNull)
SetRegValue $(RealPortKey) {DisplayName,$(NoTitle),$(!REG_VT_SZ),$(ProductRealPortDisplayName)}
CloseRegKey $(RealPortKey)
endif
CloseRegKey $(KeyProduct)
else
goto fatalregistry
endif
goto end
cancel = +
set CommonStatus = STATUS_USERCANCEL
goto end
successful = +
goto end
infomsg =+
read-syms InfoDlg
ui start "Warning"
set CommonStatus = STATUS_USERCANCEL
goto end
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)
goto fatal
fatal = +
ifstr(i) $(Error) == ""
Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
endif
Ifint $(BillboardVisible) != 0
Shell "subroutn.inf" PopBillboard
Set BillboardVisible = 0
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 = $(ShellCodeErrorTitle)
set STF_MB_TEXT = $(ShellCodeErrorText)
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 removeadapter
endif
goto end
end = +
goto term
term = +
Return $(CommonStatus)
[Install-Option]
set STF_VITAL = ""
ifstr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-RealPort-Help $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-RealPort-Dll $(SrcDir)$(STF_PLATFORM)\ $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-RealPort-Driver $(SrcDir)$(STF_PLATFORM)\ $(!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 = ""
set STF_OVERWRITE = "VERIFYSOURCEOLDER"
AddSectionFilesToCopyList Files-RealPort-Help $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-RealPort-Dll $(SrcDir)$(STF_PLATFORM)\ $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-RealPort-Driver $(SrcDir)$(STF_PLATFORM)\ $(!STF_WINDOWSSYSPATH)"\Drivers"
ifstr(i) $(DoCopy) == "YES"
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
endif
Exit
[Source Media Descriptions]
1 = "Digi RealPort Service" , TAGFILE = disk1
[Signature]
FileType = MICROSOFT_FILE
[GetSignature]
read-syms Signature
return $(FileType)
[ProcessorVar]
STF_PROCESSOR = "" ? $(!LIBHANDLE) GetProcessor
[ProcessorID]
ProcessorID_I386 = I386
ProcessorID_I486 = I486
ProcessorID_I586 = I586
ProcessorID_Alpha = Alpha_AXP
[PlatformID]
PlatformID_X86 = I386
PlatformID_Alpha = Alpha
[ProductType]
STF_PRODUCT = Winnt
[Files-Inf]
2, oemsetup.inf, SIZE=20000, RENAME=$(!UG_Filename)
[Files-RealPort-Help]
1, DigiRlPt.hlp, SIZE=30000
1, DigiRlPt.cnt, SIZE=1024
[Files-RealPort-Dll]
1, DigiRlPt.dll, SIZE=500000
[Files-RealPort-Driver]
1, DigiRlPt.sys, SIZE=100000
[LanguagesSupported]
ENG
[DialogConstantsENG]
Help = "&Help"
Exit = "Cancel"
OK = "OK"
HelpContext = ""
Continue = "Continue"
Cancel = "Cancel"
[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:"
ProductRealPortDisplayName = "Digi RealPort"
ProductRealPortTitle = "Digi RealPort Service"
ProductRealPortDescription = "Access PortServer ports as local COM ports."
RealPortFail = "The configuration DLL failed to load!"
RealPortCancelInstall = "Installion of the Digi RealPort Service has been canceled."
ShouldUpgrade = "An older version of the Digi RealPort Service is already installed. "+
"Press the Update button in the Control Panel and enter the path to "+
"this INF."
NewerInstalled = "A newer version of the Digi RealPort Service is already installed."
[OptionsTextENG]
RealPort = "Digi RealPort Service"
Download 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.