[Identification] OptionType = NetAdapter [DriverFileSystem32] 1, capi2032.dl_, SIZE=8000, DECOMPRESS, RENAME=capi2032.dll 1, capiunin.ex_, SIZE=27000, DECOMPRESS, RENAME=capiunin.exe 1, isdnprop.ex_, SIZE=60000, DECOMPRESS, RENAME=isdnprop.exe 1, utilcpy.ex_, SIZE=23000, DECOMPRESS, RENAME=utilcpy.exe [DriverFileSystem] 1, capi20.dl_, SIZE=9000, DECOMPRESS, RENAME=capi20.dll 1, capitask.ex_, SIZE=4000, DECOMPRESS, RENAME=capitask.exe [DriverFileDrivers] 1, ntcapi_p.sy_, SIZE=650000, DECOMPRESS, RENAME=ntcapi_p.sys ;*********************************************************************** ; ;; ;*********************************************************************** [FilesToBeRemoved] RemoveFiles = {+ "isdnprop.exe",+ "capiunin.exe",+ "Diagonst.exe",+ "drivers\NTWANMP.sys"} [Uninstall] UNINSTALL=RUN_UNINSTALL.EXE ;*********************************************************************** ; ;*********************************************************************** [PlatformsSupported] ISA ;*********************************************************************** ; ;; ;*********************************************************************** [Options] NTWANMP ;*********************************************************************** ; ;; ;*********************************************************************** [FileConstants] InfName = "NTWANMP.INF" UtilityInf = "UTILITY.INF" RegID = "S?PG=:B=$D5LE;>" ParamInf = "NCPARAM.INF" subroutineinf = "SUBROUTN.INF" SoftwareType = "driver" Exit_Code = 0 NetEventDLL = "%SystemRoot%\System32\netevent.dll" IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll" Manufacturer = "BG CONSULT NORWAY" ProductMajorVersion = "3" ProductMinorVersion = "1" ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion) ProductSoftwareName = "NTWANMP" ProductSoftwareImagePath = "\SystemRoot\System32\drivers\NTWANMP.sys" NetRuleSoftwareType = "NTWANMPSys NTWANMPDriver" NetRuleSoftwareUse = $(SoftwareType) NetRuleSoftwareBindForm = """NTWANMPSys"" yes no container" NetRuleSoftwareClass = {"NTWANMPDriver basic"} NetRuleSoftwareBindable = {"NTWANMPDriver NTWANMPAdapter non exclusive 100"} ProductHardwareName = "NTWANMP" NetRuleHardwareBindForm = " yes yes container" NetRuleHardwareNTWANMPType = "NTWANMP NTWANMPAdapter" NetRuleHardwareNTWANMPClass = {"NTWANMPAdapter basic"} BindableNTWANMPTxt = {"NTWANMPDriver NTWANMPAdapter non exclusive 100"} DeviceMap = "HARDWARE\DEVICEMAP" TapiDevices = "TAPI DEVICES" TapiDeviceKey = $(ProductHardwareName) TapiMediaType = "ISDN" ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"+ $(ProductSoftwareName)"\CurrentVersion" ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductHardwareName)+ "\Parameters" LineType = 1 ; FIXME - Set to zero before release, 3 for debug DebugFlags = 0 ;*********************************************************************** ; ;*********************************************************************** [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 ;*********************************************************************** ; ;*********************************************************************** [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 SetOptions EndIf Set PlatformList = ^(PlatformsSupported, 1) IfContains(i) $($1) in $(PlatformList) GoTo SetOptions Else Set Status = STATUS_NOTSUPPORTED GoTo ExitReturnOptions EndIf Else Set Status = STATUS_NOLANGUAGE GoTo ExitReturnOptions EndIf SetOptions = + Set OptionList = ^(Options, 1) Set OptionTextList = ^(OptionsText$($0), 1) Set Status = STATUS_SUCCESSFUL ExitReturnOptions = + Return $(Status) $(OptionList) $(OptionTextList) ;*********************************************************************** ; ;*********************************************************************** [InstallOption] Set Status = STATUS_FAILED Set Option = $($1) Set SrcDir = $($2) Set RasDir = $($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 SystemLanguage = $(!STF_LANGUAGE) OpenRegKey $(!REG_H_CUSER) "" "Control Panel\International" 33554432 RVcp ifstr $(RVcp) == "" else GetRegValue $(RVcp) "Locale" RVLocale ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) else ifcontains *($(RVLocale),4) in {00000407} set SystemLanguage = GER endif endif ; ; FIXME - make sure this flag is disabled before shipping ; Set OldDebugControl = $(!DebugOutputControl) Set !DebugOutputControl = 0 Set-Subst LF = "\n" Read-Syms GeneralConstants Read-Syms FileConstants Read-Syms DialogConstants$(SystemLanguage) IfStr(i) $(!NTN_Origination) == "NCPA" Set Continue = $(OK) EndIf read-syms OptionsTextENG Read-Syms FileConstants$(SystemLanguage) Detect Date Set-Title $(FunctionTitle)$(Option) Set to = Begin Set from = Begin Set CommonStatus = STATUS_SUCCESSFUL EndWait ;*********************************************************************** ; ;*********************************************************************** Begin = + Set ActivateDetection = FALSE IfStr(i) $(!NTN_InstallMode) == deinstall Set StartLabel = RemoveAdapter RunProgram ExitCode $(RunProg1) "" CAPIUNIN.exe 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 = ConfigureAdapter Set ActivateDetection = TRUE Set CommonStatus = STATUS_REBOOT IfStr(i) $(ProductKeyName) == $(!NTN_RegBase) Debug-Output $(InfName)": Cannot configure the EtherWORKS 3 driver software." Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": ShellCode error: cannot get an error string." GoTo ShellCodeError EndIf Set Error = $($R0) Set from = end Set to = end GoTo NonFatalInfo EndIf Else ;; ifstr $(!STF_SRCDIR_OVERRIDE) == "" ;; Debug-Output $(InfName)": RAS not exist. quit." ;; Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", + ;; " Please choose [Have Disk...] in the [Control Panel]/[Network]/[Adapters]/[Add...] to"+ ;; " Install a new adapter." ;; goto end ;; EndIf Set StartLabel = InstallAdapter Set ActivateDetection = TRUE Set OEM_ABANDON_OPTIONS = {} Set OEM_ABANDON_SOFTWARE = FALSE Set OEM_ABANDON_ON = TRUE EndIf Debug-Output $(InfName)": ==================================================" Debug-Output $(InfName)": STF_CWDIR is: "$(!STF_CWDIR) Debug-Output $(InfName)": STF_LANGUAGE is: "$(!STF_LANGUAGE) Debug-Output $(InfName)": System_LANGUAGE is: "$(SystemLanguage) Debug-Output $(InfName)": Option is: "$(Option) Debug-Output $(InfName)": !STF_NCDETECT is: "$(!STF_NCDETECT) Debug-Output $(InfName)": !STF_NCOPTION is: "$(!STF_NCOPTION) Debug-Output $(InfName)": !STF_NCDETCARD is: "$(!STF_NCDETCARD) Debug-Output $(InfName)": !STF_NCDETINFO is: "$(!STF_NCDETINFO) Debug-Output $(InfName)": ==================================================" Set DetectedCard = FALSE IfStr(i) $(ActivateDetection) != TRUE Debug-Output $(InfName)": Goto StartLabel Since DetectedCard=FALSE"$(StartLabel) GoTo $(StartLabel) EndIf IfStr(i) $(!NTN_InstallMode) != configure Debug-Output $(InfName)": Calling Param_SetDefaults" Shell $(ParamInf) Param_SetDefaults {} Endif IfStr(i) $(!STF_NCDETECT) == YES IfStr(i) $(!STF_NCOPTION) == $(Option) Set DetectedCard = TRUE Debug-Output $(InfName)": Setting DetectedCard to TRUE" EndIf EndIf Set from = FatalError Set to = FatalError GoTo $(StartLabel) ;*********************************************************************** ; ;*********************************************************************** InstallAdapter = + OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct IfStr $(KeyProduct) != $(KeyNull) CloseRegKey $(KeyProduct) IfStr(i) !(NTN_RegBase) == $(ProductKeyName) Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+ $(ProductVersion) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": ShellCode error: cannot get an error string." GoTo ShellCodeError EndIf GoTo end Else Shell $(UtilityInf), CardExistedDlg IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": ShellCode error: cannot get an error string." GoTo ShellCodeError EndIf IfStr(i) $($R1) != "OK" Set CommonStatus = STATUS_USERCANCEL GoTo end EndIf ;; Set OldVersionExisted = $(TRUE) EndIf EndIf Debug-Output $(InfName)": ===11111" Set CurrParamSettings = {} IfStr(i) $(DetectedCard) != TRUE GoTo AdapterSetup EndIf StartWait Shell $(ParamInf) Param_QueryCard $(!STF_NCDETCARD) EndWait IfStr(i) $($R0) != STATUS_SUCCESSFUL GoTo AdapterSetup EndIf Set DetectedParams = $($R1) Debug-Output $(InfName)": Calling Param_SetDefaults to merge detected params" Shell $(ParamInf) Param_SetDefaults $(DetectedParams) GoTo AdapterSetup ;*********************************************************************** ; ;*********************************************************************** ConfigureAdapter = + IfStr $(KeyProduct) == $(KeyNull) OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct IfStr $(KeyProduct) == $(KeyNull) Set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output $(InfName)": Cannot find component product key" GoTo FatalRegistry EndIf EndIf Debug-Output $(InfName)": Shelling to FindService" Shell $(UtilityInf) FindService, $(KeyProduct) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": FindService shell failure" GoTo ShellCodeError EndIf IfStr(i) $($R0) != NO_ERROR Debug-Output $(InfName)": FindService Shell error: "$($R0) GoTo FatalRegistry EndIf Set KeyParameters = $($R2) CloseRegKey $($R1) IfStr $(KeyParameters) == $(KeyNull) Set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE Debug-Output $(InfName)": Cannot find component service" GoTo FatalRegistry EndIf RunProgram ExitCode $(RunProg2) "" isdnprop.exe Debug-Output $(InfName)": finish isdnprop.exe" goto end ;*********************************************************************** ; ;*********************************************************************** AdapterSetup = + Set from = end ;*********************************************************************** ; ;*********************************************************************** SkipOptions =+ IfInt $(OldVersionExisted) == $(TRUE) IfStr(i) $(!NTN_InstallMode) == configure GoTo WriteParameters EndIf EndIf StartWait IfInt $(OldVersionExisted) == $(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 FatalError Else-IfStr(i) $($R0) == STATUS_USERCANCEL GoTo SuccessfulOption 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 FatalError EndIf EndIf Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), + $(ProductSoftwareName), + $(ProductSoftwareName), + $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), + $(ProductSoftwareImagePath), "kernelautostart", "NDIS", {}, "",+ $(NetEventDLL) Set OEM_ABANDON_SOFTWARE = TRUE IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": ShellCode error" GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) Set KeyProduct = $($R1) Set SoftNetRulesKey = $($R2) CloseRegKey $($R3) CloseRegKey $($R4) CloseRegKey $($R5) IfStr(i) $(RegistryErrorIndex) != NO_ERROR EndWait Debug-Output $(InfName)": Registry error: add software components" CloseRegKey $(KeyProduct) CloseRegKey $(SoftNetRulesKey) GoTo FatalRegistry EndIf Install CopyDriverFiles Shell "" RunCapiInstall, $(SrcDir) 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) Debug-Output $(InfName)": ShellCode error." GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) IfStr(i) $(RegistryErrorIndex) != NO_ERROR EndWait Debug-Output $(InfName)": Registry error: add value list." 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),$(Bindable$(Option)Txt)}, + {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}} Shell $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": ShellCode error." GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) CloseRegKey $(KeyProduct) CloseRegKey $(SoftNetRulesKey) IfStr(i) $(RegistryErrorIndex) != NO_ERROR EndWait Debug-Output $(InfName)": Resgitry error: add value list." GoTo FatalRegistry EndIf 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) Debug-Output $(InfName)": Cannot add hardware component" GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) IfStr(i) $(RegistryErrorIndex) != NO_ERROR EndWait Debug-Output $(InfName)": Registry error: add hardware component" CloseRegKey $($R1) CloseRegKey $($R2) CloseRegKey $($R3) GoTo FatalRegistry EndIf Set KeyParameters = $($R3) Set KeyAdapterRules = $($R2) Set AdapterNumber = $($R4) Set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+ {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+ {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+ {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) Debug-Output $(InfName)": ShellCode error" GoTo ShellCodeError EndIf CloseRegKey $($R1) Set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)"""" Set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm) Set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardware$(Option)Type)},+ {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, + {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardware$(Option)Class)}, + {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}} Shell $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": ShellCode error." GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) IfStr(i) $(RegistryErrorIndex) != NO_ERROR EndWait Debug-Output $(InfName)": Resgitry error: add value list." CloseRegKey $(KeyParameters) CloseRegKey $(KeyAdapterRules) GoTo FatalRegistry EndIf CloseRegKey $(KeyAdapterRules) GoTo WriteParameters ;*********************************************************************** ; ;*********************************************************************** WriteParameters = + ;;; You need one address entry in the list for each channel on your device. ;;; FIXME - at this point RAS requires there to be one logical line per address ;;; FIXME - so the address (channel) number is ignored and the line number is used Set TapiAddressList = {$(AdapterNumber)" 1 0"} Set TapiAddressList = >($(TapiAddressList),$(AdapterNumber)" 2 0") Set NewValueList = {+ {AddressList,$(NoTitle),$(!REG_VT_MULTI_SZ),$(TapiAddressList)},+ {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+ {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusType)},+ {DeviceName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+ {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(InterruptNumber)},+ {LineType,$(NoTitle),$(!REG_VT_DWORD),$(LineType)},+ {MediaType,$(NoTitle),$(!REG_VT_SZ),$(TapiMediaType)},+ {iobaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(iobaseAddress)}+ } ;;; {DebugFlags,$(NoTitle),$(!REG_VT_DWORD),$(DebugFlags)},+ Shell $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList) CloseRegKey $(KeyParameters) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": ShellCode error." GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) IfStr(i) $(RegistryErrorIndex) != NO_ERROR Debug-Output $(InfName)": Registry error: Add value list" GoTo FatalRegistry EndIf ; ; Skip TAPI/RAS setup if already installed. ; IfStr(i) $(!NTN_InstallMode) == configure GoTo SuccessfulOption EndIf ; ;; ; Create the HARDWARE\DEVICEMAP\TAPI DEVICES\NTWANMP key ; OpenRegKey $(!REG_H_LOCAL) "" "HARDWARE\DEVICEMAP" $(MAXIMUM_ALLOWED) BaseKey shell "" ManuCreateRegKey $(BaseKey) "TAPI DEVICES\NTWANMP" IfStr(i) $($R0) != NO_ERROR Debug-Output $(InfName)": Error creating registry key!" GoTo FatalRegistry EndIf Set TapiDeviceKey = $($R1) Set NewValueList = {+ {Address,$(NoTitle),$(!REG_VT_MULTI_SZ),$(TapiAddressList)},+ {"Media Type",$(NoTitle),$(!REG_VT_SZ),$(TapiMediaType)}} Shell $(UtilityInf), AddValueList, $(TapiDeviceKey), $(NewValueList) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": ShellCode error." GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) IfStr(i) $(RegistryErrorIndex) != NO_ERROR Debug-Output $(InfName)": Registry error: Add value list" GoTo FatalRegistry EndIf CloseRegKey $(TapiDeviceKey) CloseRegKey $(BaseKey) Read-Syms InvokeRasDlg$(SystemLanguage) Shell "oemnsvra.inf" CheckRasInstalled Debug-Output $(InfName)": CHECK IF RAS INSTALL? " IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": Error Shelling the RAS INF file oemnsvra.inf" Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), + "STATUS", $(InvokeRasError) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf GoTo SuccessfulOption EndIf Set RasInstalled = $($R0) Debug-Output $(InfName)": Is RAS Installed? "$(RasInstalled) ; ; display a message to the user that RAS setup will now be invoked ; IfStr(i) $(RasInstalled) == FALSE Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", + $(InvokeRasSetupMsg) Else Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", + $(InvokeRasConfigMsg) EndIf EndWait ; ; Set the flags based on whether this is an IDW installation ; IfStr(i) $(!STF_IDW) == TRUE Set AddCopy = NO Set DoCopy = NO Set DoConfig = NO Else Set AddCopy = YES Set DoCopy = YES Set DoConfig = YES EndIf Set SaveNTN_InstallMode = $(!NTN_InstallMode) IfStr(i) $(RasInstalled) == TRUE Set !NTN_InstallMode = configure else Set !NTN_InstallMode = install EndIf LoopRas =+ set STF_SRCDIR_OVERRIDEBack = $(!STF_SRCDIR_OVERRIDE) IfStr(i) $(RasInstalled) == FALSE LoadLibrary "x" $(!STF_CWDDIR)"setupdll.dll" !LIBHANDLE shell "" QueryRasPath $(RasDir) $(SystemLanguage) $(DiagMsg1) FreeLibrary $(!LIBHANDLE) ifstr $($R0) == STATUS_USERCANCEL GoTo SuccessfulOption endif Set RasDir = $($R1) LoadLibrary "x" $(!STF_CWDDIR)"setupdll.dll" !LIBHANDLE LibraryProcedure RetValue,$(!LIBHANDLE),CheckFileExistance $(RasDir)"RASMAM.EX_" ifstr(i) $(RetValue) != YES LibraryProcedure RetValue,$(!LIBHANDLE),CheckFileExistance $(RasDir)"RASMON.EX_" ifstr(i) $(RetValue) != YES LibraryProcedure RetValue,$(!LIBHANDLE),CheckFileExistance $(RasDir)"WINNT32.EXE" ifstr(i) $(RetValue) != YES set !STF_SRCDIR_OVERRIDE = $(STF_SRCDIR_OVERRIDEBack) set STF_MB_TEXT = $(DiagMsg2) set DlgType = "MessageBox" set STF_MB_TITLE = "NDIS WAN Miniport Adapter Setup" set STF_MB_ICON = 3 set STF_MB_TYPE = 5 set STF_MB_DEF = 1 EndWait ui start "MessageBox" StartWait FreeLibrary $(!LIBHANDLE) ifstr(i) $(DLGEVENT) == RETRY goto LoopRas endif GoTo SuccessfulOption endif endif endif FreeLibrary $(!LIBHANDLE) EndIf ; ; now invoke RAS setup to do the right thing ; set !STF_SRCDIR_OVERRIDE = $(RasDir) Shell "oemnsvra.inf" InstallOption $(!STF_LANGUAGE) "RAS" $(RasDir) $(AddCopy) $(DoCopy) $(DoConfig) ; ; restore the global instal mode flag if it was changed ; ; IfStr(i) $(RasInstalled) == TRUE Set !NTN_InstallMode = $(SaveNTN_InstallMode) ; EndIf IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": Error Shelling the RAS INF file oemnsvra.inf" Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", + $(InvokeRasError) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf EndIf EndWait GoTo SuccessfulOption ;*********************************************************************** ; ;*********************************************************************** BindingAdapter =+ Set Error = $(BindError) GoTo FatalError ;*********************************************************************** ; ;*********************************************************************** RemoveAdapter = + IfStr(i) $(ProductKeyName) == $(!NTN_RegBase) Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), + $(ProductSoftwareName) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": ShellCode error" GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) IfStr(i) $(RegistryErrorIndex) != NO_ERROR GoTo FatalRegistry EndIf Else Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), + $(ProductSoftwareName), $(!NTN_RegBase) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": ShellCode error" GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) IfStr(i) $(RegistryErrorIndex) != NO_ERROR GoTo FatalRegistry EndIf EndIf read-syms FilesToBeRemoved LoadLibrary "x" $(!STF_CWDDIR)"setupdll.dll" !LIBHANDLE ForListDo $(RemoveFiles) LibraryProcedure Status, $(!LIBHANDLE), DelFile, $(!STF_CWDDIR)$($) EndForListDo FreeLibrary $(!LIBHANDLE) Read-Syms InvokeRasDlg$(SystemLanguage) Shell "oemnsvra.inf" CheckRasInstalled Debug-Output $(InfName)": CHECK IF RAS INSTALL? " IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": Error Shelling the RAS INF file oemnsvra.inf" Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), + "STATUS", $(InvokeRasError) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf GoTo SuccessfulOption EndIf Set RasInstalled = $($R0) Debug-Output $(InfName)": Is RAS Installed? "$(RasInstalled) ; ; display a message to the user that RAS setup will now be invoked ; IfStr(i) $(RasInstalled) == FALSE goto SuccessfulOption Else Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", + $(InvokeRasRemoveMsg) EndIf EndWait ; ; Set the flags based on whether this is an IDW installation ; IfStr(i) $(!STF_IDW) == TRUE Set AddCopy = NO Set DoCopy = NO Set DoConfig = NO Else Set AddCopy = YES Set DoCopy = YES Set DoConfig = YES EndIf ; ; change the global install mode flag to configure if RAS is already installed ; Set SaveNTN_InstallMode = $(!NTN_InstallMode) Set !NTN_InstallMode = configure ; ; now invoke RAS setup to do the right thing ; Shell "oemnsvra.inf" InstallOption $(!STF_LANGUAGE) "RAS" $(RasDir) $(AddCopy) $(DoCopy) $(DoConfig) ; ; restore the global instal mode flag if it was changed ; Set !NTN_InstallMode = $(SaveNTN_InstallMode) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": Error Shelling the RAS INF file oemnsvra.inf" Shell "subroutn.inf" SetupMessage, $(!STF_LANGUAGE), "STATUS", + $(InvokeRasError) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf GoTo SuccessfulOption EndIf EndWait GoTo SuccessfulOption ;*********************************************************************** ; ;*********************************************************************** UpgradeSoftware = + IfStr(i) $(ProductKeyName) == $(!NTN_RegBase) OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct IfStr $(KeyProduct) != $(KeyNull) GetRegValue $(KeyProduct),"MajorVersion", VersionInfo Set Version = *($(VersionInfo), 4) Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": ShellCode error" GoTo ShellCodeError EndIf Set !UG_Filename = $($R0) IfStr(i) $(!UG_Filename) != "" install "Install-Update" IfStr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS GoTo FatalError EndIf EndIf SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)} SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)} IfInt $(Version) != $(ProductVersion) EndIf CloseRegKey $(KeyProduct) Else GoTo FatalRegistry EndIf Else OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) + $(MAXIMUM_ALLOWED) NetworkCardKey IfStr(i) $(NetworkCardKey) != $(KeyNull) GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo Set ServiceName = *($(ServiceNameInfo), 4) OpenRegKey $(NetworkCardKey) "" "NetRules" + $(MAXIMUM_ALLOWED) NetRuleKey IfStr(i) $(NetRuleKey) != $(KeyNull) Else GoTo FatalRegistry EndIf CloseRegKey $(NetRules) CloseRegKey $(NetworkCardKey) Else GoTo FatalRegistry EndIf OpenRegKey $(!REG_H_LOCAL) "" + $(!NTN_ServiceBase)"\"$(ServiceName) + $(MAXIMUM_ALLOWED) ServiceKey IfStr(i) $(ServiceKey) != $(KeyNull) CloseRegKey $(ServiceKey) Else GoTo FatalRegistry EndIf EndIf GoTo end ;*********************************************************************** ; ;*********************************************************************** SuccessfulOption = + GoTo end ;*********************************************************************** ; ;*********************************************************************** Abandon = + ForListDo $(OEM_ABANDON_OPTIONS) Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), + $(ProductSoftwareName), $($) IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": ShellCode error" 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) Debug-Output $(InfName)": ShellCode error" GoTo ShellCodeError EndIf Set RegistryErrorIndex = $($R0) IfStr(i) $(RegistryErrorIndex) != NO_ERROR GoTo FatalRegistry EndIf EndIf GoTo end ;*********************************************************************** ; ;*********************************************************************** WarningMsg = + 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) EndIf GoTo end ;*********************************************************************** ; ;*********************************************************************** NonFatalInfo = + Set Severity = STATUS Set CommonStatus = STATUS_USERCANCEL 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) EndIf GoTo end ;*********************************************************************** ; ;*********************************************************************** FatalRegistry = + Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex) IfInt $($ShellCode) != $(!SHELL_CODE_OK) GoTo ShellCodeError EndIf Set Error = $($R0) GoTo FatalError ;*********************************************************************** ; ;*********************************************************************** FatalDetect = + Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT IfInt $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output $(InfName)": ShellCode error: cannot get an error string." GoTo ShellCodeError EndIf Set Error = $($R0) GoTo FatalError ;*********************************************************************** ; ;*********************************************************************** FatalError = + 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 = $(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 Abandon EndIf GoTo end ;*********************************************************************** ; ;*********************************************************************** end = + Set !DebugOutputControl = $(OldDebugControl) Return $(CommonStatus) ;*********************************************************************** ; ;*********************************************************************** [ManuCreateRegKey] Debug-Output $(InfName)": Entering [ManuCreateRegKey]" Set ECR_Result = NO_ERROR Set ECR_BaseKeyHandle = $($0) Set ECR_NewPath = $($1) Set KeyNull = "" Set MAXIMUM_ALLOWED = 33554432 Debug-Output $(InfName)": ManuCreateRegKey - ECR_BaseKeyHandle = "$(ECR_BaseKeyHandle) Debug-Output $(InfName)": ECR_NewPath = "$(ECR_NewPath) Debug-Output $(InfName)": MAXIMUM_ALLOWED = "$(MAXIMUM_ALLOWED) Debug-Output $(InfName)": KeyNull = "$(KeyNull) OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_NewPath) $(MAXIMUM_ALLOWED) + ECR_BaseKey Debug-Output $(InfName)": ECR_BaseKey = "$(ECR_BaseKey) Debug-Output $(InfName)": OpenRegKey returned "$($R0) IfStr $(ECR_BaseKey) == $(KeyNull) Debug-Output $(InfName)": ECR_BaseKey == KeyNull" Else Debug-Output $(InfName)": ECR_BaseKey != KeyNull" Set ECR_KeyHandle = $(ECR_BaseKey) GoTo ECR_Return EndIf Set ECR_TmpPath = "" Split-String $(ECR_NewPath) "\" ECR_PList Debug-Output $(InfName)": ECR_PList = "$(ECR_PList) ForListDo $(ECR_PList) IfStr(i) $($) != "\" IfInt $(#) == 1 Set ECR_TmpPath = $($) Else Set ECR_TmpPath = $(ECR_TmpPath)"\"$($) EndIf Debug-Output $(InfName)": Determining if "$(ECR_TmpPath)" exists" OpenRegKey $(ECR_BaseKeyHandle) "" $(ECR_TmpPath) $(MAXIMUM_ALLOWED) ECR_BaseKey IfStr $(ECR_BaseKey) == $(KeyNull) Debug-Output $(InfName)": Creating "$(ECR_TmpPath) CreateRegKey $(ECR_BaseKeyHandle) {$(ECR_TmpPath),0,GenericClass} "" $(MAXIMUM_ALLOWED) "" ECR_KeyHandle IfStr(i) $(ECR_KeyHandle) == $(KeyNull) Set ECR_Result = $($R0) GoTo ECR_Return EndIf EndIf EndIf EndForListDo ECR_Return = + Return $(ECR_Result) $(ECR_KeyHandle) ;*********************************************************************** ; ;*********************************************************************** [Install-Option] Set STF_VITAL = "" IfStr(i) $(AddCopy) == "YES" AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers EndIf ;; IfStr(i) $(DoCopy) == "YES" Set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList ;; EndIf Exit ;*********************************************************************** ; ;*********************************************************************** [Install-Update] Set STF_VITAL = "" Set STF_OVERWRITE = "VERIFYSOURCEOLDER" AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH) Set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList Exit ;*********************************************************************** ; ;; ;*********************************************************************** [Source Media Descriptions] 1 = "Windows NT Setup Diskette #1" , TAGFILE = NTDRIVER.TAG ;*********************************************************************** ; ;*********************************************************************** [ProductType] STF_PRODUCT = Winnt STF_PLATFORM = I386 ;*********************************************************************** ; ;*********************************************************************** [Files-Inf] 1, oemsetnt.inf, SIZE=1000, RENAME=$(!UG_Filename) ;*********************************************************************** ;;; ;*********************************************************************** [Files-NTWANMP] 1, NTWANMP.SY_, SIZE=41000, DECOMPRESS, RENAME=NTWANMP.SYS ;*********************************************************************** ; ;*********************************************************************** [LanguagesSupported] ENG GER ;*********************************************************************** ; ;; ;*********************************************************************** [OptionsTextENG] NTWANMP = "JENSEN ISDN EASY-PCI" ;*********************************************************************** ; ;; ;*********************************************************************** [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:" FunctionTitleNTWANMP = "NDIS WAN Miniport Setup" ProductSoftwareTitle = "NDIS WAN Miniport Driver" ProductSoftwareDescription = "NDIS WAN (ISDN) Miniport Driver" ProductHardwareNTWANMPDescription = "ISDN card with 128Kbps data access for Windows 95, 98, ME, NT4.0 and 2000." ProductHardwareNTWANMPTitle = $(NTWANMP) ShellCodeErrorTitle = "Error: "$(FunctionTitle)$(Option)) ShellCodeErrorText = "Shell Code Error." DiagMsg1 = "Fail to process the path entered. Please verify and reenter the path." DiagMsg2 = "Fail to find the source files of RAS in the specified directory. "+ " Please choose [Retry] for another path or [Cancel] to cancel the installation of RAS." RunProg1 = "Uninstall Prorgam for NTCAPI drivers" RunProg2 = "Configuration Progam for NT drivers" RunProg3 = "Setup Prorgam for NT drivers" BindError = "Binding: Sorry, not yet implemented." [FileConstantsGER] ProCaption = "Windows NT Setup" ProCancel = "Abbrechen" ProCancelMsg = "Windows NT Networking ist nicht korrekt installatiert. "+ "Sind Sie sicher das Sie das Kopieren der Programme abbrechen möchten?" ProCancelCap = "Netzwerk Setup Nachricht" ProText1 = "Kopiere:" ProText2 = "Nach:" FunctionTitleNTWANMP = "NDIS WAN Miniport Setup" ProductSoftwareTitle = "NDIS WAN Miniport Driver" ProductSoftwareDescription = "NDIS WAN (ISDN) Miniport Driver" ProductHardwareNTWANMPDescription = "ISDN Karte mit 128 Kbps Datentransferrate für Windows 95, 98, NT4.0 und 2000." ProductHardwareNTWANMPTitle = $(NTWANMP) ShellCodeErrorTitle = "Fehler: "$(FunctionTitle)$(Option)) ShellCodeErrorText = "Shell Code Fehler." DiagMsg1 = "Fehler beim Überprüfen des eingegebenen Pfades. Bitte überprüfen "+ "und den Pfad erneut eingeben." DiagMsg2 = "Konnte das Quell Programm für RAS in dem angegebenen Verzeichnis nicht finden. "+ "Bitte wählen Sie [Wiederholen] für einen anderen Pfad or [Abbrechen] um "+ "die Installation von RAS abzubrechen" RunProg1 = "Deinstallationsprogramm für NTCAPI Treiber" RunProg2 = "Konfigurationsprogramm für NT Treiber laufen" RunProg3 = "Setup Programm für NT Treiber" BindError = "Binding: Leider noch nicht implementiert." ;*********************************************************************** ; ;*********************************************************************** [DialogConstantsENG] Help = "&Help" Exit = "Cancel" OK = "OK" HelpContext = "" Continue = "Continue" Cancel = "Cancel" [DialogConstantsGER] Help = "&Hilfe" Exit = "Abbrechen" OK = "OK" HelpContext = "" Continue = "Fortsetzen" Cancel = "Abbrechen" ;*********************************************************************** ; ;; ;*********************************************************************** [InvokeRasDlgENG] InvokeRasSetupMsg = "Remote Access Services (RAS) must now be installed. "+ "Please configure the ISDN ports in RAS setup "+ "to enable you to use RAS over the NDIS WAN miniport." InvokeRasRemoveMsg = "Remote Access Services (RAS) must now be invoked. "+ "Please remove the ISDN ports in RAS setup." InvokeRasConfigMsg = "Remote Access Services (RAS) setup must now be invoked. "+ "Please configure the ISDN ports in RAS setup to enable you "+ "to use RAS over the NDIS WAN miniport." InvokeRasError = "NDIS WAN miniport setup encountered an error "+ "while invoking the RAS setup INF file (OEMNSVRA.INF). "+ "Please make sure that the file is present in the "+ "System32 directory and is the proper file." [InvokeRasDlgGER] InvokeRasSetupMsg = "Remote Access Services (RAS) muß jetzt installiert werden. "+ "Bitte konfigurieren Sie die ISDN ports im RAS Setup "+ "um es zu ermöglichen RAS über NDIS WAN Miniport. " InvokeRasRemoveMsg = "Remote Access Services (RAS) muß jetzt gestartet werden. "+ "Bitte entfernen Sie die ISDN ports im RAS Setup." InvokeRasConfigMsg = "Remote Access Services (RAS) setup muß jetzt gestartet werden. "+ "Bitte konfigurieren Sie die ISDN ports in RAS setup um es Ihnen zu ermöglichen "+ "RAS über NDIS WAN miniport zu benutzen." InvokeRasError = "NDIS WAN miniport setup verursachte einen Fehler "+ "während des Aufrufs des RAS Setup INF Programm (OEMNSVRA.INF). "+ "Bitte überprüfen Sie das das Programm im System32 Ordner vorhanden ist "+ "und das richtige Programm ist." [DlgParm1ENG] DlgText = "Please enter the full path of the Windows NT distribution files "+ "for Remote Access Service, e.g., 'D:\i386'. (Press [Cancel] to cancel the installation of RAS. )" Caption = "NDIS WAN Miniport Adapter Setup" Continue = "Continue" Cancel = "Cancel" DlgType = "Edit" DlgTemplate = "DISKETTE" Edit1Label = "" EditFocus = "ALL" [DlgParm1GER] DlgText = "Bitte geben Sie den gesamten Pfad der Windows NT Distributions Programme "+ "für Remote Access Service, z.B. 'D:\i386' an. (Drücken Sie [Abbrechen] um die "+ "Installation von RAS abzubrechen.)" Caption = "NDIS WAN Miniport Adapter Setup" Continue = "Fortsetzen" Cancel = "Abbrechen" DlgType = "Edit" DlgTemplate = "DISKETTE" Edit1Label = "" EditFocus = "ALL" [RunCapiInstall] set aSrcDir = $($0) RunProgram ExitCode $(RunProg3) "" $(!STF_WINDOWSSYSPATH)\isdnprop.exe return STATUS_SUCCESSFUL exit [CopyDriverFiles] Debug-Output "$(InfFile) $(Option): CopyDriverFiles" set STF_VITAL = "" set STF_DECOMPRESS = 1 ifstr(i) $(AddCopy) == "YES" clearCopyList AddSectionFilesToCopyList DriverFileDrivers $(SrcDir) $(!STF_WINDOWSSYSPATH)"\drivers" AddSectionFilesToCopyList DriverFileSystem32 $(SrcDir) $(!STF_WINDOWSSYSPATH) AddSectionFilesToCopyList DriverFileSystem $(SrcDir) $(!STF_WINDOWSPATH)"\system" endif ;; ifstr(i) $(DoCopy) == "YES" set !STF_NCPA_FLUSH_COPYLIST = TRUE CopyFilesInCopyList ;; endif exit [QueryRasPath] set SrcDir = $($0) set SystemLanguage = $($1) set DiagMsg1 = $($2) set-subst LF = "\n" shell $(subroutineinf) PopBillboard set EditTextIn = $(SrcDir) ifstr $(EditTextIn) == $(!STF_SRCDIR_USED) set EditTextIn = $(!STF_SRCDIR_KEYED) endif LoopAgain =+ read-syms DlgParm1$(SystemLanguage) ui start "Diskette" ifstr(i) $(DLGEVENT) == "CONTINUE" LibraryProcedure Result $(!LIBHANDLE) CheckPathFullPathSpec $(EditTextOut) ifstr(i) $(Result) != "NO" set SrcDir = $(EditTextOut) else LibraryProcedure RetValue $(!LIBHANDLE) ProcessForUNC $(EditTextOut) set FAILF = "FAIL" ifstr(i) $(RetValue) != "ERROR" ifstr(i) $(RetValue) != "NOT-UNC" ifstr(i) $(RetValue) != "UNC-FAILCONNECT" set SrcDir = $(RetValue) set FAILF ="" endif endif endif ifstr $(FAILF) != "" set DlgType = "MessageBox" set STF_MB_TITLE = "NDIS WAN Miniport Adapter Setup" set STF_MB_ICON = 3 set STF_MB_TYPE = 1 set STF_MB_DEF = 1 set STF_MB_TEXT = $(DiagMsg1) EndWait ui start "MessageBox" StartWait set EditTextIn = $(EditTextOut) goto LoopAgain endif endif ui pop 1 LibraryProcedure RetValue $(!LIBHANDLE) AppendBackSlash $(SrcDir) ifstr(i) $(RetValue) != "ERROR" set SrcDir = $(RetValue) set RetValue = STATUS_SUCCESSFUL endif else-ifstr(i) $(DLGEVENT) == "BACK" ui pop 1 set RetValue = STATUS_USERCANCEL else ui pop 1 endif endif set !STF_SRCDIR_KEYED = $(EditTextOut) set !STF_SRCDIR_USED = $(SrcDir) shell $(subroutineinf) PushBillboard NETSTATUSDLG "" return $(RetValue) $(SrcDir) [Proc_STF] !STF_PROCESSOR = "" ? $(!LIBHANDLE) GetProcessor !STF_WINDOWSPATH = "" ? $(!LIBHANDLE) GetWindowsNtDir !STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir !STF_WINDOWSVERSION = "" ? $(!LIBHANDLE) GetWindowsNtVersion !STF_COMPUTERNAME = "" ? $(!LIBHANDLE) GetMyComputerName !STF_USERNAME = "" ? $(!LIBHANDLE) GetMyUserName !STF_FLOPPYLIST = {} ? $(!LIBHANDLE) GetFloppyDriveLetters !STF_UNUSEDDRIVES = {} ? $(!LIBHANDLE) GetUnusedDrives !STF_BUSTYPE = "" ? $(!LIBHANDLE) GetMyBusType !STF_BUSTYPELIST = "" ? $(!LIBHANDLE) GetMyBusTypeList !STF_LANGUAGE = "" ? $(!LIBHANDLE) GetLanguage !STF_IS_UP_SYSTEM = "" ? $(!LIBHANDLE) IsUniprocessorSystem [Proc_Const] Titl = "ISDN Card Setup Commands Version 1.0" Lang = "ENG" !NTN_InstallMode = "install" !STF_IDW = "FALSE" !STF_PLATFORM = "I386" !NTN_ServiceBase = "SYSTEM\CurrentControlSet\Services" !NTN_SoftwareBase = "SOFTWARE" !NTN_Origination = "ncpa" !NTN_InstallPhase = "secondary" OOptionList = $(NTWANMP) OOptionTextList = $(NTWANMP) OOptionTypeText = "Network Adapter" [Shell Commands] StartWait read-syms OptionsTextENG read-syms Proc_Const set-title $(Titl) set !LIBHANDLE = "" set !NCPA_HANDLE = "" OpenRegKey $(!REG_H_CUSER) "" "Control Panel\International" $(!REG_KEY_READ) KeyLang ifstr $(KeyLang) != "" GetRegValue $(KeyLang) "Locale" LangInf ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) ifcontains *($(LangInf),4) in {00000407} set Lang = "GER" else set Lang = "ENG" endif endif CloseRegKey $(KeyLang) endif read-syms DialogConstants$(Lang) Split-String $(STF_CONTEXTINFNAME) "\" TmpInfName QueryListSize ListSz $(TmpInfName) set-sub ListSz = $(ListSz),1 set !STF_SRCDIR = "" Loop_SetSrcDir = + ifint $(ListSz) > 0 ifstr $(!STF_SRCDIR) == "" ifstr *($(TmpInfName),$(ListSz)) != "\" set !STF_SRCDIR = *($(TmpInfName),$(ListSz))"\" endif else set !STF_SRCDIR = *($(TmpInfName),$(ListSz))$(!STF_SRCDIR) endif set-sub ListSz = $(ListSz),1 goto Loop_SetSrcDir endif set !STF_SRCDIR_KEYED = $(!STF_SRCDIR) set !STF_SRCDIR_USED = $(!STF_SRCDIR) OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows NT\CurrentVersion" $(!REG_KEY_READ) HCurVer ifstr $(HCurVer) == "" goto PreEnd endif GetRegValue $(HCurVer) "SystemRoot" HSysRot ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) CloseRegKey $(HCurVer) goto PreEnd endif CloseRegKey $(HCurVer) set !STF_CWDDIR = *($(HSysRot),4)"\system32\" LoadLibrary "x" $(!STF_CWDDIR)"setupdll.dll" !LIBHANDLE LoadLibrary "x" $(!STF_CWDDIR)"ncpa.cpl" !NCPA_HANDLE read-syms Proc_STF detect Proc_STF set !STF_NTPATH = $(!STF_WINDOWSSYSPATH) GetDriveInPath !STF_NTDRIVE $(!STF_WINDOWSSYSPATH) shell "" Identify $(!STF_LANGUAGE) shell "" ReturnOptions $(!STF_LANGUAGE) shell "other.inf" DoSingleOption $(OemOptionList) $(OOptionTextList) $(OOptionTypeText) "" ifstr(i) $($R0) == STATUS_USERCANCEL goto PreEnd else-ifstr(i) $($R0) != STATUS_SUCCESSFUL goto PreEnd endif Read-Syms GeneralConstants Read-Syms FileConstants set order = "0" loop1 = + set TmpInf = $(!STF_WINDOWSSYSPATH)"\oemnad"$(order)".inf" LibraryProcedure RetValue,$(!LIBHANDLE),CheckFileExistance $(TmpInf) ifstr(i) $(RetValue) != YES goto loopend endif set-add order = $(order),1 ifint $(order) < 100 goto loop1 else goto PreEnd endif loopend = + LibraryProcedure RetValue,$(!LIBHANDLE),CopySingleFile $(STF_CONTEXTINFNAME) $(TmpInf) set !STF_SRCDIR_OVERRIDE = $(!STF_SRCDIR) set !NTN_Infname = $(TmpInf) set !NTN_InfOption = "NTWANMP" set !NTN_InfSection = "InstallOption" shell $(!NTN_Infname) $(!NTN_InfSection) $(!STF_LANGUAGE) $(!NTN_InfOption) $(!STF_CWDDIR) YES YES YES set !STF_INSTALL_MODE = "EXPRESS" set !STF_PRODUCT = "WINNT" LibraryProcedure XResult $(!NCPA_HANDLE),"CPlSetup" $(!STF_HWND),"NCPA",$(WN) OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Ncpa\CurrentVersion" 33554432 KeyHandle OpenRegKey $(KeyHandle) "" "ConfigChanged" $(!REG_KEY_READ) KeyHandle1 ifstr(i) $(KeyHandle1) == "" CreateRegKey $(KeyHandle) {"ConfigChanged",$(QN),GenericClass} "" $(OU) 1 KeyHandle1 endif CloseRegKey $(KeyHandle1) CloseRegKey $(KeyHandle) RunProgram ExitCode "" "" $(!STF_WINDOWSSYSPATH)"\control.exe" ncpa.cpl PreEnd = + set Exit_Code = 0 EndWait ifstr $(!NCPA_HANDLE) != "" FreeLibrary $(!NCPA_HANDLE) endif ifstr $(!LIBHANDLE) != "" FreeLibrary $(!LIBHANDLE) 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.