;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ; ; ; OEMNSVNP.INF ; ; Novell Distributed Print Services ; ; ;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ; ; The following is the version info for Novell ; ;VeRsIoN=v4.81 Novell Distributed Print Services for Windows NT (980316) ;CoPyRiGhT=copyright 1992-2001, by Novell, INC. All rights reserved. [Identification] OptionType = NetService [Options] NDPS [FileConstants] ; ; File names, etc. ; UtilityInf = "UTILITY.INF" subroutineinf = "SUBROUTN.INF" NwSubsInf = "NWSUBS.INF" NwLangIdDll = "NWLANGID.DLL" NwSetupDll = "nwsetup.dll" SoftwareType = "service" Exit_Code = 0 PrintProviderName = "Novell Distributed Print Services" PrintProvider = "System\CurrentControlSet\Control\Print\Providers" ; ; Product Info ; Manufacturer = "Novell" UserModeRoot = "%SystemRoot%" System32Root = $(UserModeRoot)"\System32" SoftwareBinHome = $(System32Root)"\NetWare\" DriverBinHome = $(System32Root)"\Drivers\" NDPSEventFile = $(System32Root)"\nls\"$(NLSDirName)"\nwevents.dll" ; ; Services ; ; ; NDPS: Novell Distributed Print Services ; ProductNDPSControl = software ProductNDPSHidden = 0 ProductNDPSInstrumentation = FALSE ProductNDPSName = "NDPS" ProductNDPSGroup = "" ProductNDPSDependList = {} ProductNDPSEventFile = $(NDPSEventFile) ; ; Registry key names ; ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductNDPSName)"\CurrentVersion" ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductNDPSName)"\Parameters" ServiceNameList = ^(ServiceNames, 1) UpdateServiceNameList = ^(UpdateServiceNames, 1) RemoveServiceNameList = ^(RemoveServiceNames, 1) [ServiceNames] SVC_1 = "NDPS" [UpdateServiceNames] SVC_1 = "NDPS" [RemoveServiceNames] SVC_1 = "NDPS" [GeneralConstants] ; ; Program Flow control variables ; from = "" to = "" ; ; Return Codes ; Exit_Code is set to one of these ; ExitCodeOk = 0 ExitCodeCancel = 1 ExitCodeFatal = 2 KeyNull = "" MAXIMUM_ALLOWED = 33554432 RegistryErrorIndex = NO_ERROR KeyProduct = "" KeyParameters = "" TRUE = 1 FALSE = 0 NoTitle = 0 ExitState = "Active" DriverPath = $(!STF_NTPATH)\drivers ; ; Product Info ; Manufacturer = "Novell" ProductMajorVersion = 4 ProductMinorVersion = 81 ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion) [date] ; ; Now is a list which contains { Sec from 1-1-1970, Year, Month, Day, Hour, ; Minute, Second } ; Now = {} ? $(!LIBHANDLE) GetSystemDate ;------------------------------------------------------------------------------ ; 1. Identify To verify that this INF deals with the smae type of options ; as we are choosing currently. ; ; Input: none ; ; Output: $($R0): STATUS: STATUS_SUCCESSFUL ; $($R1): Option Type (COMPUTER ...) ; $($R2): Diskette Description ;------------------------------------------------------------------------------ [Identify] read-syms Identification set Status = STATUS_SUCCESSFUL set Identifier = $(OptionType) set Media = #("Source Media Descriptions", 1, 1) Return $(Status) $(Identifier) $(Media) ;------------------------------------------------------------------------------ ; 2. ReturnOptions To return the option list supported by this INF and ; the localized text list representing the options. ; Input: $($0): Lang. used (ENG | FRN | ....) ; ; Output: $($R0): STATUS: STATUS_SUCCESSFUL | ; STATUS_NOLANGUAGE | ; STATUS_FAILED | ; STATUS_NOTSUPPORTED ; $($R1): Option List ; $($R2): Option Text List ; ;------------------------------------------------------------------------------ [ReturnOptions] set Status = STATUS_FAILED set OptionList = {} set OptionTextList = {} ; ; Check if the language requested is supported ; set LanguageList = ^(LanguagesSupported, 1) Ifcontains(i) $($0) in $(LanguageList) goto returnoptions else set Status = STATUS_NOLANGUAGE goto finish_ReturnOptions endif ; ; form a list of all the options and another of the text representing ; returnoptions = + set OptionList = ^(Options, 1) set OptionTextList = ^(OptionsText$($0), 1) set Status = STATUS_SUCCESSFUL finish_ReturnOptions = + Return $(Status) $(OptionList) $(OptionTextList) ;------------------------------------------------------------------------------ ; 2. InstallOption This section is shelled to by main installation processing ; ; Function: To copy files representing Options ; To configure the installed option ; To update the Registry for the installed option ; ; Input: $($0): Lang. to use ; $($1): OptionID to install ; $($2): SourceDirectory ; $($3): AddCopy ( YES | NO ) ; $($4): DoCopy ( YES | NO ) ; $($5): DoConfig ( YES | NO ) ; ; Output: $($R0): STATUS: STATUS_SUCCESSFUL | ; STATUS_NOLANGUAGE | ; STATUS_USERCANCEL | ; STATUS_FAILED | ; STATUS_NOTSUPPORTED ; ;------------------------------------------------------------------------------ [InstallOption] Set !G:DebugOutputControl = 0 ; ; Set default values for ; set Status = STATUS_FAILED ; ; extract parameters ; set Option = $($1) set SrcDir = $($2) set AddCopy = $($3) set DoCopy = $($4) set DoConfig = $($5) set OriginalAddCopy = $($3) set OriginalDoCopy = $($4) set OriginalDoConfig = $($5) Debug-OutPut "OEMNSVNP.INF: Option = "$($Option) Debug-OutPut "OEMNSVNP.INF: SrcDir = "$($SrcDir) Debug-OutPut "OEMNSVNP.INF: AddCopy = "$($AddCopy) Debug-OutPut "OEMNSVNP.INF: DoCopy = "$($DoCopy) Debug-OutPut "OEMNSVNP.INF: DoConfig = "$($DoConfig) set-subst LF = "\n" read-syms GeneralConstants read-syms FileConstants read-syms FileConstants$(!STF_LANGUAGE) read-syms InstallOption$(!STF_LANGUAGE) detect date ; ; Check if the language requested is supported ; set LanguageList = ^(LanguagesSupported, 1) Ifcontains(i) $($0) in $(LanguageList) goto installoption else Debug-OutPut "OEMNSVNP.INF: Language not supported" set Status = STATUS_NOLANGUAGE goto finish_InstallOption endif installoption = + ; ; This call checks the STF_ variables and sets the NWU variables. ; Shell "" UnattendedInstallOption ; ; Get the data from the Unattended file. ; ifstr(i) $(!NWUnattendedFile) != "" ifstr(i) $(!NWUnattendedSection) != "" Shell $(!NWUnattendedFile) ReadDefaultData, $(!NWUnattendedSection) ifstr(i) $($R0) != "STATUS_SUCCESSFUL" Debug-Output "Shell to read the NW Parameter values from an Unattend.txt file Failed." Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "Warning", $(UnattendFileReadFailed) ifstr(i) $($R1) == "CANCEL" set CommonStatus = STATUS_USERCANCEL goto end endif endif endif endif ifstr(i) $(!NWUnattendedFile) != "" ifstr(i) $(!NWWizard) != YES Debug-OutPut "OEMNSVNP.INF: !DoRemove = "$(!DoRemove) ifstr(i) $(!DoRemove) == YES set !NTN_InstallMode = deinstall else-Ifstr(i) $(!DoInstall) == NO Debug-OutPut "OEMNSVNP.INF: !DoInstall = "$(!DoInstall) set CommonStatus = STATUS_SUCCESSFUL goto end endif endif endif ; ; Must have the client installed first ; OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\NetWareWorkStation" $(MAXIMUM_ALLOWED) KeyProduct ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(NetWareClientNotInstalledMessage) ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError endif set CommonStatus = STATUS_USERCANCEL goto end endif CloseRegKey $(KeyProduct) ; ; Find what NLS directory is being used ; set NovellParameters = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\Parameters" Debug-OutPut "OEMNSVNP.INF: NovellParameters is "$(NovellParameters) OpenRegKey $(!REG_H_LOCAL) "" $(NovellParameters) $(MAXIMUM_ALLOWED) KeyNovellParameters ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) GetRegValue $(KeyNovellParameters) "NWLanguage" LanguageList ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) set NLSDirName = *($(LanguageList), 4) else goto fatalregistry endif CloseRegKey $(KeyNovellParameters) else goto fatalregistry Endif ; ; Get NT version ; set CurrentVersion = $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion" OpenRegKey $(!REG_H_LOCAL) "" $(CurrentVersion) $(MAXIMUM_ALLOWED) CurrentVersionKey ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) GetRegValue $(CurrentVersionKey) "CurrentVersion" VersionList ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) set VersionListData = *($(VersionList), 4) Split-string $(VersionListData) "." SplitVersionList Set NTMajorVersion = *($(SplitVersionList), 1) Set NTMinorVersion = *($(SplitVersionList), 3) Debug-OutPut "OEMNSVNP.INF: Windows NT current version is "$(VersionListData) Debug-OutPut "OEMNSVNP.INF: Windows NT Major version is "$(NTMajorVersion) Debug-OutPut "OEMNSVNP.INF: Windows NT Minor version is "$(NTMinorVersion) else Debug-Output "OEMNSVNP.INF: Error getting NT version" endif CloseRegKey $(CurrentVersionKey) else Debug-Output "OEMNSVNP.INF: Error opening "$(CurrentVersion) endif ; ; Is this an Advanced Server ; Debug-Output "OEMNSVNP.INF: Checking to see if advanced server" set AdvancedServer = "NO" Set TempKeyName = "SYSTEM\CurrentControlSet\Control\ProductOptions" OpenRegKey $(!REG_H_LOCAL) "" $(TempKeyName) $(MAXIMUM_ALLOWED) TempKey Ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) Set ValueName = "ProductType" GetRegValue $(TempKey) $(ValueName) ValueList Ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) set ValueListData = *($(ValueList), 4) set AdvancedServer = "YES" ifstr(i) $(ValueListData) == "WinNT" set AdvancedServer = "NO" Debug-Output "OEMNSVNP.INF: AdvancedServer is "$(AdvancedServer) endif else Debug-Output "OEMNSVNP.INF: Failed to get ProductType" endif CloseRegKey $(TempKey) else Debug-Output "OEMNSVNP.INF: Failed to open ProductOptions key" endif set-title $(FunctionTitle) set to = Begin set from = Begin set CommonStatus = STATUS_SUCCESSFUL EndWait Begin = + Debug-Output "OEMNSVNP.INF: Begin Install Mode = "$(!NTN_InstallMode) Ifstr(i) $(!NTN_InstallMode) == deinstall set StartLabel = removendps else-Ifstr(i) $(!NTN_InstallMode) == Update set StartLabel = updatendps else-Ifstr(i) $(!NTN_InstallMode) == bind set StartLabel = bindndps else-Ifstr(i) $(!NTN_InstallMode) == configure set StartLabel = configurendps ; Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase) ; Debug-Output "OEMNSVNP.INF: Can't configure the Novell Distributed Print Services software." ; Shell $(UtilityInf), RegistryErrorString, CANNOT_CONFIGURE_SOFTWARE ; ifint $($ShellCode) != $(!SHELL_CODE_OK) ; Debug-Output "OEMNSVNP.INF: ShellCode error: can't get an error string." ; goto ShellCodeError ; endif ; set Error = $($R0) ; set from = end ; set to = end ; goto Warning ; endif else set StartLabel = installndps set OEM_ABANDON_OPTIONS = {} set OEM_ABANDON_SOFTWARE = FALSE set OEM_ABANDON_ON = TRUE ; ; Turn on all the options. ; ForListDo $(ServiceNameList) Set Do$($) = TRUE EndForListDo endif set from = $(fatal) set to = $(fatal) goto $(StartLabel) ;************************************************** ; ; Install the Novell Distributed Print Services ; ;************************************************** installndps = + Debug-Output "OEMNSVNP.INF: Installing NDPS" set AddCopy = "YES" set DoCopy = "YES" Ifstr(i) $(DoCopy) == "YES" AskSourceAgain = + ; ; Get source location ; Shell "", 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 end Endif Set SrcDir = $($R1) LibraryProcedure STATUS, $(!LIBHANDLE), AppendBackSlash $(SrcDir) ifstr(i) $(STATUS) != "ERROR" set SrcDir = $(STATUS) Endif LibraryProcedure Status1, $(!LIBHANDLE), CheckFileExistance, $(SrcDir)nls\$(NLSDirName)"\oemnsvnp.inf" ifstr(i) $(Status1) != "YES" goto AskSourceAgain endif Endif set OEM_ABANDON_ON = TRUE StartWait ; ; Create file directories ; install "Install-Dirs" ; ; Copy all files to destination ; install "Install-Files" 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 set AddCopy = $(OriginalAddCopy) set DoCopy = $(OriginalDoCopy) StartWait ; ; Install all enabled services mentioned in the ServiceNameList ; InstallEnabledServices = + ForListDo $(ServiceNameList) Set SvcOpt = $($) ; ; Check to see if the product to be installed is already installed ; Set TempProductKeyName = $(!NTN_ServiceBase)"\"$(Product$(SvcOpt)Name) OpenRegKey $(!REG_H_LOCAL) "" $(TempProductKeyName) $(MAXIMUM_ALLOWED) TempKey ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSGTS.INF: "$(SvcOpt)" is already installed" Set Do$(SvcOpt) = FALSE Endif Ifstr(i) $(Do$(SvcOpt)) == TRUE Ifstr(i) $(Product$(SvcOpt)Control) == component Debug-Output "OEMNSVNP.INF: install component: "$(SvcOpt) Shell $(UtilityInf), AddSoftwareComponent + $(Manufacturer), + $(Product$(SvcOpt)Name), + $(Product$(SvcOpt)Name), + $(Product$(SvcOpt)DisplayName), + "oemnsvnp.inf", + $(Product$(SvcOpt)ImagePath), + $(Product$(SvcOpt)SvcType), + $(Product$(SvcOpt)Group), + $(Product$(SvcOpt)DependList), "" + $(Product$(SvcOpt)EventFile), "", "", 1 Ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "OEMNSVNP.INF: AddSoftwareComponent ShellCode error "$($ShellCode)" installing "$(SvcOpt) EndWait goto ShellCodeError Endif StartWait Set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR EndWait CloseRegKey $($R1) CloseRegKey $($R2) CloseRegKey $($R3) Debug-Output "OEMNSVNP.INF: Registry error "$(RegistryErrorIndex)" installing "$(SvcOpt) EndWait goto fatalregistry Endif Set SvcVersion = $($R1) Set SvcNetRules = $($R2) Set SvcSvcKey = $($R3) Set SvcParamKey = $($R4) Set SvcLinkKey = $($R5) ifint $(Product$(SvcOpt)ReviewBindings) == 1 Set ReviewBindingsValue = 1 else Set ReviewBindingsValue = 0 Endif Set ProductOpSupport = 133 Set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(Product$(SvcOpt)SoftType)},+ {Hidden,$(NoTitle),$(!REG_VT_DWORD),$(Product$(SvcOpt)Hidden)},+ {Review,$(NoTitle),$(!REG_VT_DWORD),$(ReviewBindingsValue)},+ {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+ {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+ {Title,$(NoTitle),$(!REG_VT_SZ),$(Product$(SvcOpt)DisplayName)},+ {Description,$(NoTitle),$(!REG_VT_SZ),$(Product$(SvcOpt)DisplayName)},+ {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(Product$(SvcOpt)Name)},+ {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)},+ {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}} Shell $(UtilityInf), AddValueList, $(SvcVersion), $(NewValueList) StartWait Ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "OEMNSVNP.INF: ShellCode error: AddValueList for version info for "$(SvcOpt) EndWait goto ShellCodeError Endif ; ; Add the NetRules info ; Set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRule$(SvcOpt)SoftwareType)},+ {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRule$(SvcOpt)SoftwareClass)}, + {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRule$(SvcOpt)SoftwareBindable)}, + {use,$(NoTitle),$(!REG_VT_SZ),$(NetRule$(SvcOpt)SoftwareUse)}, + {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRule$(SvcOpt)SoftwareBindForm)}, + {InfOption,$(NoTitle),$(!REG_VT_SZ),$(SvcOpt)}} Shell $(UtilityInf), AddValueList, $(SvcNetRules), $(NewValueList) StartWait Ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "OEMNSVNP.INF: AddValueList ShellCode error = "$($ShellCode) EndWait Goto ShellCodeError Endif Set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR CloseRegKey $(SvcSvcKey) CloseRegKey $(SvcParamKey) CloseRegKey $(SvcLinkKey) CloseRegKey $(SvcVersion) CloseRegKey $(SvcNetRules) Debug-Output "OEMNSVNP.INF: Registry error adding NetRules to "$(SvcOpt) EndWait goto fatalregistry Endif Else-ifstr(i) $(Product$(SvcOpt)Control) == service Debug-Output "OEMNSVNP.INF: install service: "$(SvcOpt) Shell $(UtilityInf), CreateService, + $(Product$(SvcOpt)Name), + $(Product$(SvcOpt)DisplayName), + $(Product$(SvcOpt)ImagePath), + $(Product$(SvcOpt)SvcType), + $(Product$(SvcOpt)Group), + $(Product$(SvcOpt)DependList), "" + $(Product$(SvcOpt)EventFile), "", "", 1 StartWait Ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "OEMNSVNP.INF: ShellCode error installing "$(SvcOpt) EndWait goto ShellCodeError Endif Set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR CloseRegKey $($R1) CloseRegKey $($R2) CloseRegKey $($R3) Debug-Output "OEMNSVNP.INF: Registry error installing "$(SvcOpt) EndWait goto fatalregistry Endif Set SvcVersion = "" Set SvcNetRules = "" Set SvcSvcKey = $($R1) Set SvcParamKey = $($R2) Set SvcLinkKey = $($R3) Else Debug-Output "OEMNSVNP.INF: install software: "$(SvcOpt) ; Shell $(UtilityInf) InstallSoftwareProduct $(Manufacturer) $(Product$(SvcOpt)Name) $(STF_CONTEXTINFNAME) Shell $(UtilityInf) InstallSoftwareProduct $(Manufacturer) $(Product$(SvcOpt)Name) "oemnsvnp.inf" Ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "OEMNSVNP.INF: ShellCode error installing "$(SvcOpt) goto ShellCodeError Endif Set SvcVersion = $($R1) Set SvcNetRules = $($R2) Set SvcSvcKey = "" Set SvcParamKey = "" Set SvcLinkKey = "" ifint $(Product$(SvcOpt)ReviewBindings) == 1 Set ReviewBindingsValue = 1 else Set ReviewBindingsValue = 0 Endif Set ProductOpSupport = 133 Set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(Product$(SvcOpt)SoftType)},+ {Hidden,$(NoTitle),$(!REG_VT_DWORD),$(Product$(SvcOpt)Hidden)},+ {RefCount,$(NoTitle),$(!REG_VT_DWORD),0},+ {Review,$(NoTitle),$(!REG_VT_DWORD),$(ReviewBindingsValue)},+ {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+ {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+ {Title,$(NoTitle),$(!REG_VT_SZ),$(Product$(SvcOpt)DisplayName)},+ {Description,$(NoTitle),$(!REG_VT_SZ),$(Product$(SvcOpt)DisplayName)},+ {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)},+ {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}} Shell $(UtilityInf), AddValueList, $(SvcVersion), $(NewValueList) StartWait Ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "OEMNSVNP.INF: ShellCode error: AddValueList for version info for "$(SvcOpt) goto ShellCodeError Endif Set NewValueList = {{InfOption,$(NoTitle),$(!REG_VT_SZ),$(SvcOpt)}} Shell $(UtilityInf), AddValueList, $(SvcNetRules), $(NewValueList) Ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "OEMNSVNP.INF: AddValueList ShellCode error = "$($ShellCode) Goto ShellCodeError Endif Endif ; ; Add the NetWare Instrumentation Level. ; Ifstr(i) $(Product$(SvcOpt)Instrumentation) == TRUE SetRegValue $(SvcParamKey) {"Instrumentation Level",$(NoTitle),$(!REG_VT_SZ),"NONE"} Endif ; ; Call the service-specific installation section ; Shell "" FinishInstalling-$(SvcOpt) + $(SvcSvcKey) $(SvcParamKey) $(SvcLinkKey) + $(SvcVersion) $(SvcNetRules) $(TransportSelected) StartWait Ifstr(i) $(SvcVersion) != "" CloseRegKey $(SvcVersion) Endif Ifstr(i) $(SvcNetRules) != "" CloseRegKey $(SvcNetRules) Endif Ifstr(i) $(SvcSvcKey) != "" CloseRegKey $(SvcSvcKey) Endif Ifstr(i) $(SvcParamKey) != "" CloseRegKey $(SvcParamKey) Endif Ifstr(i) $(SvcLinkKey) != "" CloseRegKey $(SvcLinkKey) Endif ; ; Add this service to the list of "undoable" things in case of failure ; Set OEM_ABANDON_SERVICES = >($(OEM_ABANDON_SERVICES), $(Product$(SvcOpt)Name)) Endif skipservice = + EndForListDo Ifstr(i) $(CalledFromUpdate) == "YES" goto ReturnToUpdate endif ; ; Install the print provider ; Shell "" Install-PrintProvider ; ; Install various registry parameters ; Install Install-Parameters ; ; Write out the unattended variables to registry ; shell "" Write-Unattended-Variables ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError else-ifstr(i) $($R0) != STATUS_SUCCESSFUL Debug-Output "OEMNSVTS: User Canceled due to a error processing the Unattended Variables." set CommonStatus = STATUS_USERCANCEL goto setfailed endif goto end ;**************************************************** ; ; Configure the Novell Distributed Print Services ; ;**************************************************** configurendps = + Debug-Output "OEMNSVNP.INF: Configuring ndps" set CommonStatus = STATUS_USERCANCEL goto end ;************************************************************** ; ; Review bindings for the Novell Distributed Print Services ; ;************************************************************** bindndps = + Debug-Output "OEMNSVNP.INF: Binding NDPS" goto end ;************************************************** ; ; Remove the Novell Distributed Print Services ; ;************************************************** removendps = + Debug-Output "OEMNSVNP.INF: Removing NDPS" ; ; Use NWUnRegisterNDPSSharedDLLs() to de-register if necessary DLLs we share ; with Novell iPrint. Do this before deleting the provider key entirely. ; LoadLibrary $(LoadDisk3Text) $(!STF_WINDOWSSYSPATH)"\"$(NwSetupDll) NwLibHandle LibraryProcedure LibResult $(NwLibHandle) NWUnRegisterNDPSSharedDLLs FreeLibrary $(NwLibHandle) ForListDo $(RemoveServiceNameList) Set SvcOpt = $($) Ifstr(i) $(Product$(SvcOpt)Control) == service Debug-Output "OEMNSVNP.INF: remove service: "$(SvcOpt) Shell $(UtilityInf), RemoveService, $(Product$(SvcOpt)Name), YES Ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "OEMNSVNP.INF: ShellCode error removing "$(SvcOpt) EndWait goto ShellCodeError Endif Else Debug-Output "OEMNSVNP.INF: remove component: "$(SvcOpt) Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), $(Product$(SvcOpt)Name) Ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "OEMNSVNP.INF: RemoveSoftwareComponent ShellCode error "$($ShellCode)" installing "$(SvcOpt) EndWait goto ShellCodeError Endif Endif EndForListDo ; ; Remove the print provider ; Shell "" Remove-PrintProvider ; ; Remove the Run key for NDPS ; Set TempKeyName = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" OpenRegKey $(!REG_H_LOCAL) "" $(TempKeyName) $(MAXIMUM_ALLOWED) TempKey ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) DeleteRegValue $(TempKey) "NDPS" CloseRegKey $(TempKey) endif Set TempKeyName = "CLSID" OpenRegKey $(!REG_H_CLASSES) "" $(TempKeyName) $(MAXIMUM_ALLOWED) TempKey ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) DeleteRegKey $(TempKey) "{04c23aa0-3d34-11d2-b788-008029605ac7}" CloseRegKey $(TempKey) endif Set TempKeyName = "Printers\shellex\PropertySheetHandlers" OpenRegKey $(!REG_H_CLASSES) "" $(TempKeyName) $(MAXIMUM_ALLOWED) TempKey ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) DeleteRegKey $(TempKey) "{04c23aa0-3d34-11d2-b788-008029605ac7}" CloseRegKey $(TempKey) endif set TempKeyName = "SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" OpenRegKey $(!REG_H_LOCAL) "" $(TempKeyName) $(MAXIMUM_ALLOWED) TempKey ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) DeleteRegValue $(TempKey) "{04c23aa0-3d34-11d2-b788-008029605ac7}" CloseRegKey $(TempKey) Endif ; ; Remove the \Graphical Login\NWLGE\NDPS key ; Set TempKeyName = "SOFTWARE\Novell\Graphical Login\NWLGE" OpenRegKey $(!REG_H_LOCAL) "" $(TempKeyName) $(MAXIMUM_ALLOWED) TempKey ; open old key base ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) ; if no base, then done DeleteRegKey $(TempKey) "NDPS" ; delete old key from base ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) ; if no value, then done Debug-Output "OEMNPRNW.INF: Deleting SOFTWARE\Novell\Graphical Login\NWLGE\NDPS" endif endif LoadLibrary $(LoadDisk3Text) $(!STF_WINDOWSSYSPATH)"\"$(NwSetupDll) NwLibHandle Debug-Output "OEMNSVNP.INF: Deleting all our NDPS files" LibraryProcedure GUIResult $(NwLibHandle) NWDeleteFile $(!STF_WINDOWSSYSPATH)"\dpawin32.dll" LibraryProcedure GUIResult $(NwLibHandle) NWDeleteFile $(!STF_WINDOWSSYSPATH)"\dplwin32.dll" LibraryProcedure GUIResult $(NwLibHandle) NWDeleteFile $(!STF_WINDOWSSYSPATH)"\dppwin32.dll" LibraryProcedure GUIResult $(NwLibHandle) NWDeleteFile $(!STF_WINDOWSSYSPATH)"\dpswin32.dll" LibraryProcedure GUIResult $(NwLibHandle) NWDeleteFile $(!STF_WINDOWSSYSPATH)"\dplmw32.dll" LibraryProcedure GUIResult $(NwLibHandle) NWDeleteFile $(!STF_WINDOWSSYSPATH)"\dprpcw32.dll" LibraryProcedure GUIResult $(NwLibHandle) NWDeleteFile $(!STF_WINDOWSSYSPATH)"\dpmw32.exe" LibraryProcedure GUIResult $(NwLibHandle) NWDeleteFile $(!STF_WINDOWSSYSPATH)"\ndppnt.dll" LibraryProcedure GUIResult $(NwLibHandle) NWDeleteFile $(!STF_WINDOWSSYSPATH)"\dplgnw32.dll" LibraryProcedure GUIResult $(NwLibHandle) NWDeleteFile $(!STF_WINDOWSSYSPATH)"\dplrname.dll" LibraryProcedure GUIResult $(NwLibHandle) NWDeleteFile $(!STF_WINDOWSSYSPATH)"\nls\oidmsg.idx" LibraryProcedure GUIResult $(NwLibHandle) NWDeleteFile $(!STF_WINDOWSSYSPATH)"\nls\"$(NLSDirName)"\monoid.idx" LibraryProcedure GUIResult $(NwLibHandle) NWDeleteFile $(!STF_WINDOWSSYSPATH)"\nls\"$(NLSDirName)"\oidname.msg" LibraryProcedure GUIResult $(NwLibHandle) NWDeleteFile $(!STF_WINDOWSSYSPATH)"\nls\"$(NLSDirName)"\dplmrw32.dll" FreeLibrary $(NwLibHandle) goto end ;************************************************** ; ; Update the Novell Distributed Print Services ; ;************************************************** updatendps = + Debug-Output "OEMNSVNP.INF: Updating NDPS" set AddCopy = "YES" set DoCopy = "YES" Ifstr(i) $(DoCopy) == "YES" AskSourceAgain2 = + ; ; Get source location ; set OldSTF_SRCDIR_OVERRIDE = $(!STF_SRCDIR_OVERRIDE) set !STF_SRCDIR_OVERRIDE = $(SrcDir) Shell "", 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 end Endif Set SrcDir = $($R1) LibraryProcedure STATUS, $(!LIBHANDLE), AppendBackSlash $(SrcDir) ifstr(i) $(STATUS) != "ERROR" set SrcDir = $(STATUS) Endif LibraryProcedure Status1, $(!LIBHANDLE), CheckFileExistance, $(SrcDir)nls\$(NLSDirName)"\oemnsvnp.inf" ifstr(i) $(Status1) != "YES" goto AskSourceAgain2 endif Endif ; ; Create destination directories ; install "Install-Dirs" ; ; Copy all files to destination ; Install "Install-Files" 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 ForListDo $(UpdateServiceNameList) Set UpdateSvcOpt = $($) ; ; Check to see if the product to be fixed is there ; Set ProductKeyName = $(!NTN_ServiceBase)"\"$(Product$(UpdateSvcOpt)Name) OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) ProductKey ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: "$(UpdateSvcOpt)" is installed, fix it up" ; ; Update the product software information ; Set TempKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(Product$(UpdateSvcOpt)Name)"\CurrentVersion" OpenRegKey $(!REG_H_LOCAL) "" $(TempKeyName) $(MAXIMUM_ALLOWED) TempKey ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) ; ; Set the new major version number ; SetRegValue $(TempKey) {"MajorVersion", $(NoTitle), $(!REG_VT_DWORD), $(MajorVersion)} ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Failed to set new major version info for "$(UpdateSvcOpt) endif ; ; Set the new minor version number ; SetRegValue $(TempKey) {"MinorVersion", $(NoTitle), $(!REG_VT_DWORD), $(MinorVersion)} ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Failed to set new minor version info for "$(UpdateSvcOpt) endif ; ; Set the new description and title ; SetRegValue $(TempKey) {"Description", $(NoTitle), $(!REG_VT_SZ), $(Product$(UpdateSvcOpt)DisplayName)} ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Failed to update Description for "$(UpdateSvcOpt) endif SetRegValue $(TempKey) {"Title", $(NoTitle), $(!REG_VT_SZ), $(Product$(UpdateSvcOpt)DisplayName)} ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Failed to update Title for "$(UpdateSvcOpt) endif ; ; Close the key ; CloseRegKey $(TempKey) else Debug-Output "OEMNSVNP.INF: Failed to open key "$(TempKeyName) endif ; ; Fix the display name ; SetRegValue $(ProductKey) {"DisplayName", $(NoTitle), $(!REG_VT_SZ), $(Product$(UpdateSvcOpt)DisplayName)} ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Failed to update DisplayName for "$(UpdateSvcOpt) endif ; ; Close the first key ; CloseRegKey $(ProductKey) endif EndForListDo ; ; Set up to install any services that were not part of a previous client. ; ForListDo $(ServiceNameList) Set Do$($) = TRUE EndForListDo set CalledFromUpdate = "YES" goto InstallEnabledServices ReturnToUpdate = + ; ; Install the print provider ; Shell "" Install-PrintProvider ; ; Install various registry parameters ; Install Install-Parameters set !STF_SRCDIR_OVERRIDE = $(OldSTF_SRCDIR_OVERRIDE) ; ; Write out the unattended variables to registry ; shell "" Write-Unattended-Variables ifint $($ShellCode) != $(!SHELL_CODE_OK) goto ShellCodeError else-ifstr(i) $($R0) != STATUS_SUCCESSFUL Debug-Output "OEMNSVTS: User Canceled due to a error processing the Unattended Variables." set CommonStatus = STATUS_USERCANCEL goto setfailed endif goto end ;****************************************** ; ; Common exit section ; ;****************************************** abandon = + Debug-Output "OEMNSVNP.INF: abandon" ForListDo $(OEM_ABANDON_OPTIONS) Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), $(ProductSoftwareName), $($) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "OEMNSVNP.INF: RemoveHardwareComponent ShellCode error "$($ShellCode) 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 "OEMNSVNP.INF: RemoveSoftwareComponent ShellCode error "$($ShellCode) goto ShellCodeError endif set RegistryErrorIndex = $($R0) Ifstr(i) $(RegistryErrorIndex) != NO_ERROR goto fatalregistry endif endif 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 nonfatal = + Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(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 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 = + goto term term = + Return $(CommonStatus) $(DriverToLoad) ;----------------------------------------------------------------------- ; ; ; Additional installation and update processing for services ; ; ;----------------------------------------------------------------------- [FinishInstalling-NDPS] Return ;----------------------------------------------------------------------- ; ; SECTION: Install-Files ; ; PURPOSE: Called at install or update to copy ; files to the system ; ; ARGUMENTS: None ; ; RETURNS: None ; ; REFERENCES: None ; ; MODIFIES: None ; ;----------------------------------------------------------------------- [Install-Dirs] Debug-Output "OEMNSVNP.INF: Creating file directories" Exit [Install-Files] Debug-Output "OEMNSVNP.INF: Installing files" set STF_VITAL = "" Ifstr(i) $(AddCopy) == "YES" ; ; Add the files to the copy list ; AddSectionFilesToCopyList Files-Inf-$(NLSDirName) $(SrcDir)nls\$(NLSDirName) $(!STF_WINDOWSSYSPATH) AddSectionFilesToCopyList Files-Res-Sys32-$(NLSDirName) $(SrcDir)nls\$(NLSDirName) $(!STF_WINDOWSSYSPATH)\nls\$(NLSDirName) AddSectionFilesToCopyList Files-System32-NLS $(SrcDir)redir $(!STF_WINDOWSSYSPATH)\nls AddSectionFilesToCopyList Files-System32 $(SrcDir)redir $(!STF_WINDOWSSYSPATH) Debug-Output "OEMNSVNP.INF: Files added to list" ; ; For 3rd party files that we install, only install if they are newer ; set STF_OVERWRITE = "VERIFYSOURCEOLDER" AddSectionFilesToCopyList Files-3party-32bitLibs $(SrcDir)libs32 $(!STF_WINDOWSSYSPATH) Endif Ifstr(i) $(DoCopy) == "YES" ; ; Copy files in the copy list ; set !STF_NCPA_FLUSH_COPYLIST = TRUE set !STF_NETCANCELOVERIDE = "YES" ; this line removes the cancel button CopyFilesInCopyList Debug-Output "OEMNSVNP.INF: Files copied" Endif Exit ;****************************************** ; ; File copy information ; ;****************************************** [Source Media Descriptions] 1 = "NetWare for Windows NT Setup Disk 3", TAGFILE = NWC_3 [Files-Inf-English] 1, oemnsvnp.inf, SIZE=50000, DECOMPRESS [Files-Inf-Chineses] 1, oemnsvnp.inf, SIZE=50000, DECOMPRESS [Files-Inf-Chineset] 1, oemnsvnp.inf, SIZE=50000, DECOMPRESS [Files-Inf-Deutsch] 1, oemnsvnp.inf, SIZE=50000, DECOMPRESS [Files-Inf-Espanol] 1, oemnsvnp.inf, SIZE=50000, DECOMPRESS [Files-Inf-Francais] 1, oemnsvnp.inf, SIZE=50000, DECOMPRESS [Files-Inf-Italiano] 1, oemnsvnp.inf, SIZE=50000, DECOMPRESS [Files-Inf-Korean] 1, oemnsvnp.inf, SIZE=50000, DECOMPRESS [Files-Inf-Nihongo] 1, oemnsvnp.inf, SIZE=50000, DECOMPRESS [Files-Inf-Portugue] 1, oemnsvnp.inf, SIZE=50000, DECOMPRESS [Files-Inf-Russki] 1, oemnsvnp.inf, SIZE=50000, DECOMPRESS [Files-Inf-Polski] 1, oemnsvnp.inf, SIZE=50000, DECOMPRESS [Files-Res-Sys32-English] 1, monoid.idx, SIZE=50000, DECOMPRESS 1, oidname.msg, SIZE=50000, DECOMPRESS 1, dplmrw32.dll, SIZE=50000, DECOMPRESS 1, dppsres.dll, SIZE=50000, DECOMPRESS [Files-Res-Sys32-Chineset] 1, monoid.idx, SIZE=50000, DECOMPRESS 1, oidname.msg, SIZE=50000, DECOMPRESS 1, dplmrw32.dll, SIZE=50000, DECOMPRESS 1, dppsres.dll, SIZE=50000, DECOMPRESS [Files-Res-Sys32-Chineses] 1, monoid.idx, SIZE=50000, DECOMPRESS 1, oidname.msg, SIZE=50000, DECOMPRESS 1, dplmrw32.dll, SIZE=50000, DECOMPRESS 1, dppsres.dll, SIZE=50000, DECOMPRESS [Files-Res-Sys32-Deutsch] 1, monoid.idx, SIZE=50000, DECOMPRESS 1, oidname.msg, SIZE=50000, DECOMPRESS 1, dplmrw32.dll, SIZE=50000, DECOMPRESS 1, dppsres.dll, SIZE=50000, DECOMPRESS [Files-Res-Sys32-Espanol] 1, monoid.idx, SIZE=50000, DECOMPRESS 1, oidname.msg, SIZE=50000, DECOMPRESS 1, dplmrw32.dll, SIZE=50000, DECOMPRESS 1, dppsres.dll, SIZE=50000, DECOMPRESS [Files-Res-Sys32-Francais] 1, monoid.idx, SIZE=50000, DECOMPRESS 1, oidname.msg, SIZE=50000, DECOMPRESS 1, dplmrw32.dll, SIZE=50000, DECOMPRESS 1, dppsres.dll, SIZE=50000, DECOMPRESS [Files-Res-Sys32-Italiano] 1, monoid.idx, SIZE=50000, DECOMPRESS 1, oidname.msg, SIZE=50000, DECOMPRESS 1, dplmrw32.dll, SIZE=50000, DECOMPRESS 1, dppsres.dll, SIZE=50000, DECOMPRESS [Files-Res-Sys32-Korean] 1, monoid.idx, SIZE=50000, DECOMPRESS 1, oidname.msg, SIZE=50000, DECOMPRESS 1, dplmrw32.dll, SIZE=50000, DECOMPRESS 1, dppsres.dll, SIZE=50000, DECOMPRESS [Files-Res-Sys32-Nihongo] 1, monoid.idx, SIZE=50000, DECOMPRESS 1, oidname.msg, SIZE=50000, DECOMPRESS 1, dplmrw32.dll, SIZE=50000, DECOMPRESS 1, dppsres.dll, SIZE=50000, DECOMPRESS [Files-Res-Sys32-Portugue] 1, monoid.idx, SIZE=50000, DECOMPRESS 1, oidname.msg, SIZE=50000, DECOMPRESS 1, dplmrw32.dll, SIZE=50000, DECOMPRESS 1, dppsres.dll, SIZE=50000, DECOMPRESS [Files-Res-Sys32-Russki] 1, monoid.idx, SIZE=50000, DECOMPRESS 1, oidname.msg, SIZE=50000, DECOMPRESS 1, dplmrw32.dll, SIZE=50000, DECOMPRESS 1, dppsres.dll, SIZE=50000, DECOMPRESS [Files-Res-Sys32-Polski] 1, monoid.idx, SIZE=50000, DECOMPRESS 1, oidname.msg, SIZE=50000, DECOMPRESS 1, dplmrw32.dll, SIZE=50000, DECOMPRESS 1, dppsres.dll, SIZE=50000, DECOMPRESS [Files-System32-NLS] 1, oidmsg.idx, SIZE=50000, DECOMPRESS [Files-System32] 1, dpawin32.dll, SIZE=50000, DECOMPRESS 1, dplwin32.dll, SIZE=50000, DECOMPRESS 1, dppwin32.dll, SIZE=50000, DECOMPRESS 1, dpswin32.dll, SIZE=50000, DECOMPRESS 1, dplmw32.dll, SIZE=50000, DECOMPRESS 1, dprpcw32.dll, SIZE=50000, DECOMPRESS 1, dpmw32.exe, SIZE=50000, DECOMPRESS 1, ndppnt.dll, SIZE=50000, DECOMPRESS 1, dplgnw32.dll, SIZE=50000, DECOMPRESS 1, ndpsprop.dll, SIZE=50000, DECOMPRESS 1, dplrname.dll, SIZE=50000, DECOMPRESS 1, nipped.dll, SIZE=50000, DECOMPRESS 1, nippdrvi.dll, SIZE=50000, DECOMPRESS 1, nippdzip.dll, SIZE=50000, DECOMPRESS 1, zlib.dll, SIZE=50000, DECOMPRESS [Files-3party-32bitLibs] 1, cw3215mt.dll, SIZE=50000, DECOMPRESS ;----------------------------------------------------------------------- ; ; SECTION: Install-Parameters ; ; PURPOSE: Called at install or update to add ; various parameters to the registry ; ; ARGUMENTS: None ; ; RETURNS: None ; ; REFERENCES: None ; ; MODIFIES: None ; ;----------------------------------------------------------------------- [Install-Parameters] ; ; Use NWRegisterNDPSSharedDLLs() to register DLLs we share with Novell iPrint if necessary. ; LoadLibrary $(LoadDisk3Text) $(!STF_WINDOWSSYSPATH)"\"$(NwSetupDll) NwLibHandle LibraryProcedure LibResult $(NwLibHandle) NWRegisterNDPSSharedDLLs FreeLibrary $(NwLibHandle) set TempRegKeyName = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" OpenRegKey $(!REG_H_LOCAL) "" $(TempRegKeyName) $(MAXIMUM_ALLOWED) TempKey ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) ; if no new key CreateRegKey $(!REG_H_LOCAL) {$(TempRegKeyName), $(NoTitle), GenericClass} "" $(MAXIMUM_ALLOWED) "" TempKey ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) ; create new key Debug-Output "OEMNPRNW.INF: Failed to create Run for NDPS" goto runerror1 ; if error, then done endif endif Set CommandLine = $(!STF_WINDOWSSYSPATH)"\dpmw32.exe" SetRegValue $(TempKey) {"NDPS", $(NoTitle), $(!REG_VT_SZ), $(CommandLine)} ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNPRNW.INF: Failed to add Run for NDPS" endif CloseRegKey $(TempKey) runerror1 = + ; ; HKEY_LOCAL_MACHINE\Software\Novell\NDPS\CurrentVersion ; set TempKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\NDPS\CurrentVersion" OpenRegKey $(!REG_H_LOCAL) "" $(TempKeyName) $(MAXIMUM_ALLOWED) TempKey ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) ; ; Set internal versions ; set HaveInternalVersion = YES ifint $(!MajorInternalVersion) == 0 ifint $(!MinorInternalVersion) == 0 set HaveInternalVersion = NO endif endif ifstr(i) $(HaveInternalVersion) == NO DeleteRegValue $(TempKey) "MajorInternalVersion" DeleteRegValue $(TempKey) "MinorInternalVersion" else SetRegValue $(TempKey) {"MajorInternalVersion", $(NoTitle), $(!REG_VT_DWORD), $(!MajorInternalVersion)} Ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Unable to update MajorInternalVersion value in "$(TempKeyName) endif SetRegValue $(TempKey) {"MinorInternalVersion", $(NoTitle), $(!REG_VT_DWORD), $(!MinorInternalVersion)} Ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Unable to update MinorInternalVersion value in "$(TempKeyName) endif endif CloseRegKey $(TempKey) endif ; ;set up login extension entries ; set SoftwareNovell = $(!NTN_SoftwareBase)"\"$(Manufacturer) OpenRegKey $(!REG_H_LOCAL) "" $(SoftwareNovell) $(MAXIMUM_ALLOWED) KeySoftwareNovell ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Error opening "$(SoftwareNovell) Else set GraphicalLoginValue = "Graphical Login" OpenRegKey $(KeySoftwareNovell) "" $(GraphicalLoginValue) $(MAXIMUM_ALLOWED) KeyGraphicalLogin ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) CreateRegKey $(KeySoftwareNovell) {$(GraphicalLoginValue), $(NoTitle), GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyGraphicalLogin ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Error creating Software\Novell\Graphical Login" Endif Endif ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) set NWLGEvalue = "NWLGE" OpenRegKey $(KeyGraphicalLogin) "" $(NWLGEvalue) $(MAXIMUM_ALLOWED) KeyNWLGE ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) CreateRegKey $(KeyGraphicalLogin) {$(NWLGEvalue), $(NoTitle), GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyNWLGE ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Error creating Software\Novell\Graphical Login\NWLGE" Endif Endif Ifstr(i) $(KeyNWLGE) != "" set NDPSValue = "NDPS" CreateRegKey $(KeyNWLGE) {$(NDPSValue), $(NoTitle), GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyNDPS ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Error creating Software\Novell\Graphical Login\NWLGE\NDPS" Else SetRegValue $(KeyNDPS) {"LoginExtType", $(NoTitle), $(!REG_VT_DWORD), 32769} SetRegValue $(KeyNDPS) {"LoginExtName", $(NoTitle), $(!REG_VT_SZ), "DPLGNW32.DLL"} SetRegValue $(KeyNDPS) {"LoginExtDesc", $(NoTitle), $(!REG_VT_SZ), "Login Extension NDPS-RPM"} SetRegValue $(KeyNDPS) {"RunContext", $(NoTitle), $(!REG_VT_DWORD), 0} Endif Endif Endif Endif Ifstr(i) $(KeySoftwareNovell) != "" CloseRegKey $(KeySoftwareNovell) Endif Ifstr(i) $(KeyGraphicalLogin) != "" CloseRegKey $(KeyGraphicalLogin) Endif Ifstr(i) $(KeyNWLGE) != "" CloseRegKey $(KeyNWLGE) Endif Ifstr(i) $(KeyNDPS) != "" CloseRegKey $(KeyNDPS) Endif set HKCRCLSID = "CLSID" OpenRegKey $(!REG_H_CLASSES) "" $(HKCRCLSID) $(MAXIMUM_ALLOWED) KeyHKCRCLSID ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Error opening HKCR\CLSID" Endif Ifstr(i) $(KeyHKCRCLSID) != "" CreateRegKey $(KeyHKCRCLSID) {"{04c23aa0-3d34-11d2-b788-008029605ac7}", $(NoTitle), GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyNewCLSID ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) SetRegValue $(KeyNewCLSID) {"",$(NoTitle),$(!REG_VT_SZ),"NDPS Shell Extension"} CreateRegKey $(KeyNewCLSID) {"InProcServer32", $(NoTitle), GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyNewSubCLSID ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) SetRegValue $(KeyNewSubCLSID) {"",$(NoTitle),$(!REG_VT_SZ),"ndpsprop.dll"} SetRegValue $(KeyNewSubCLSID) {"ThreadingModel",$(NoTitle),$(!REG_VT_SZ),"Apartment"} CloseRegKey $(KeyNewSubCLSID) Endif Endif CloseRegKey $(KeyHKCRCLSID) Endif set HKCRPropSheet = "Printers\shellex\PropertySheetHandlers" OpenRegKey $(!REG_H_CLASSES) "" $(HKCRPropSheet) $(MAXIMUM_ALLOWED) KeyHKCRPropSheet ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Error opening Printer\shellex\PropertySheetHandlers" Endif Ifstr(i) $(KeyHKCRPropSheet) != "" CreateRegKey $(KeyHKCRPropSheet) {"{04c23aa0-3d34-11d2-b788-008029605ac7}", $(NoTitle), GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyNewCLSID ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) CloseRegKey $(KeyNewCLSID) Endif CloseRegKey $(KeyHKCRPropSheet) Endif set HKLMApproved = "SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" OpenRegKey $(!REG_H_LOCAL) "" $(HKLMApproved) $(MAXIMUM_ALLOWED) KeyHKLMApproved ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Error opening ...\Shell Extensions\Approved" Endif Ifstr(i) $(KeyHKLMApproved) != "" SetRegValue $(KeyHKLMApproved) {"{04c23aa0-3d34-11d2-b788-008029605ac7}",$(NoTitle),$(!REG_VT_SZ),"NDPS Shell Extension"} CloseRegKey $(KeyHKLMApproved) Endif Exit ;----------------------------------------------------------------------- ; ; SECTION: Install-PrintProvider ; ; PURPOSE: Called at install and update time to install the ; NDPS Print Provider. ; ; ARGUMENTS: None ; ; RETURNS: None ; ; REFERENCES: None ; ; MODIFIES: None ; ;----------------------------------------------------------------------- [Install-PrintProvider] Read-syms GeneralConstants Read-syms FileConstants Set ValueName = "Name" Set OrderName = "Order" Set Status = STATUS_SUCCESSFUL OpenRegKey $(!REG_H_LOCAL) "" $(PrintProvider) $(MAXIMUM_ALLOWED) KeyPrint Ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Can't open "$(PrintProvider)" key" Set Status = STATUS_FAILED Goto Inst_PP_Return Endif CreateRegKey $(KeyPrint) {$(PrintProviderName), $(NoTitle), GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyProvider Ifint $(RegLastError) != !(!REG_ERROR_SUCCESS) OpenRegKey $(KeyPrint) "" $(PrintProviderName) $(MAXIMUM_ALLOWED) KeyProvider Ifint $(RegLastError) != !(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Can't open "$(PrintProviderName)" key" Set Status = STATUS_FAILED Goto Inst_PP_Return endif Endif SetRegValue $(KeyProvider) {$(ValueName), $(NoTitle), $(!REG_VT_SZ), "ndppnt.dll"} Ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Can't update Print Services value" Set Status = STATUS_FAILED Goto Inst_PP_Return Endif CloseRegKey $(KeyProvider) CloseRegKey $(KeyPrint) ; ; Use NWInsertPrintProviderInOrder() to install ourselves in the print provider order. ; LoadLibrary $(LoadDisk3Text) $(!STF_WINDOWSSYSPATH)"\"$(NwSetupDll) NwLibHandle LibraryProcedure LibResult $(NwLibHandle) NWInsertPrintProviderInOrder $(PrintProviderName) FreeLibrary $(NwLibHandle) Inst_PP_Return = + Return $(Status) ;----------------------------------------------------------------------- ; ; SECTION: Remove-PrintProvider ; ; PURPOSE: Called at uninstall time to remove the ; NDPS Print Provider. ; ; ARGUMENTS: None ; ; RETURNS: None ; ; REFERENCES: None ; ; MODIFIES: None ; ;----------------------------------------------------------------------- [Remove-PrintProvider] Read-syms GeneralConstants Read-syms FileConstants Set ValueName = "Name" Set OrderName = "Order" Set Status = STATUS_SUCCESSFUL OpenRegKey $(!REG_H_LOCAL) "" $(PrintProvider) $(MAXIMUM_ALLOWED) KeyPrint Ifint $(RegLastError) != $(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Can't open "$(PrintProvider)" key" Goto UnInst_PP_Return Endif DeleteRegTree $(KeyPrint) $(PrintProviderName) Ifint $(RegLastError) != !(!REG_ERROR_SUCCESS) Debug-Output "OEMNSVNP.INF: Can't delete "$(PrintProviderName)" key" Set Status = STATUS_FAILED Goto UnInst_PP_Return endif CloseRegKey $(KeyPrint) ; ; Use NWRemovePrintProviderFromOrder() to remove ourselves in the print provider order. ; LoadLibrary $(LoadDisk3Text) $(!STF_WINDOWSSYSPATH)"\"$(NwSetupDll) NwLibHandle LibraryProcedure LibResult $(NwLibHandle) NWRemovePrintProviderFromOrder $(PrintProviderName) FreeLibrary $(NwLibHandle) UnInst_PP_Return = + Return $(Status) ;----------------------------------------------------------------------- ; ; SECTION: DoAskSource ; ; PURPOSE: Called at install and update time to ; prompt for the source location ; ; ARGUMENTS: None ; ; RETURNS: None ; ; REFERENCES: None ; ; MODIFIES: None ; ;----------------------------------------------------------------------- [DoAskSource] read-syms GeneralConstants read-syms FileConstants read-syms FileConstants$(!STF_LANGUAGE) read-syms InstallOption$(!STF_LANGUAGE) read-syms DoAskSource$(!STF_LANGUAGE) Set DAS_CWDDIR = $($0) Set DAS_SRCDIR = $($1) Set DAS_BUILTIN = $($2) Set DAS_Result = STATUS_FAILED Ifstr(i) $(!STF_SRCDIR_OVERRIDE) != "" Set DAS_SRCDIR = $(!STF_SRCDIR_OVERRIDE) Set DAS_Result = STATUS_SUCCESSFUL Goto DAS_exit Endif Ifstr(i) $(DAS_BUILTIN) == YES Ifstr(i) $(!NTN_InstallPhase) == primary Ifstr(i) $(!STF_SRCDIR_WINNT) != "" Set DAS_SRCDIR = $(!STF_SRCDIR_WINNT) Endif Set DAS_Result = STATUS_SUCCESSFUL Goto DAS_exit Endif Else set SourcePathName = $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion" OpenRegKey $(!REG_H_LOCAL) "" $(SourcePathName) $(MAXIMUM_ALLOWED) SourcePathKey ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) GetRegValue $(SourcePathKey) "SourcePath" SourcePathList ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) set SourcePath = *($(SourcePathList), 4) ifstr(i) $(DAS_SRCDIR) == $(SourcePath) set NWSourcePathName = $(!NTN_SoftwareBase)"\Novell\NetWareWorkstation\CurrentVersion" OpenRegKey $(!REG_H_LOCAL) "" $(NWSourcePathName) $(MAXIMUM_ALLOWED) NWSourcePathKey ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) GetRegValue $(NWSourcePathKey) "SourcePath" NWSourcePathList ifint $(RegLastError) == $(!REG_ERROR_SUCCESS) set NWSourcePath = *($(NWSourcePathList), 4) ifstr(i) $(NWSourcePath) != "" set DAS_SRCDIR = $(NWSourcePath) endif endif CloseRegKey $(NWSourcePathKey) endif endif endif CloseRegKey $(SourcePathKey) endif Endif Debug-Output "OEMNXPGW.INF: [DoAskSource] STF_CWDDIR = "$(DAS_CWDDIR)" STF_SRCDIR = "$(DAS_SRCDIR) Ifstr(i) $(DAS_SRCDIR) == "" Set DAS_SRCDIR = "A:\" Endif Ifstr(i) $(DAS_SRCDIR) == $(!STF_SRCDIR_USED) Set DAS_SRCDIR = $(!STF_SRCDIR_KEYED) Endif Shell "subroutn.inf" DoAskSourceEx $(DAS_SRCDIR) $(NetWareDlgText) ifint $($ShellCode) != $(!SHELL_CODE_OK) Debug-Output "OEMNXPGW.INF: shelling SUBROUTN.INF [DoAskSource] failed" goto DAS_exit endif Set DAS_Result = $($R0) Set DAS_SRCDIR = $($R1) Set !STF_SRCDIR_USED = $($R1) Set !STF_SRCDIR_KEYED = $($R3) DAS_exit =+ Read-syms ProgressCopy$(!STF_LANGUAGE) Return $(DAS_Result) $(DAS_SRCDIR) ;----------------------------------------------------------------------- ; ; ; SECTION: UnattendedInstallOption: ; ; PURPOSE: This section is shelled to by the Install Option. It looks at the three MS Unattended variables and then ; sets the Novell specific variable for NWACU and the NWUnattended file. ; Our install for both setup.exe /ACU and Unattended install from MS then uses NWACU and the NWUnattended variables. ; ; ARGUMENTS: None ; ; RETURNS: None ; ; REFERENCES: None ; ; MODIFIES: None ; ;----------------------------------------------------------------------- [UnattendedInstallOption] read-syms GeneralConstants read-syms FileConstants ifstr(i) $(!STF_GUI_UNATTENDED) == "NO" ifstr(i) $(!STF_UNATTENDED) == "YES" set !NWACU = "YES" endif else-ifstr(i) $(!STF_GUI_UNATTENDED) == "YES" ifstr(i) $(!NWUnattendedFile) == "" set !NWACU = "YES" set !NWUnattendedFile = $(!STF_UNATTENDED) set !NWUnattendedSection = $(!STF_UNATTENDED_SECTION) else-ifstr(i) $(!STF_UNATTENDED_SECTION) != "" set !NWUnattendedSection = $(!STF_UNATTENDED_SECTION) endif endif Return ;************************************************************************* ;----------Write-Unattended-Variables----------------------------------- ; ; ; SECTION: Write-Unattended-Variables: ; ; PURPOSE: This section writes the unattended variables to the ; registry. ; ; ARGUMENTS: None ; ; RETURNS: None ; ; REFERENCES: Called at end of install section and the update section ; ; MODIFIES: None ; ;************************************************************************* [Write-Unattended-Variables] read-syms GeneralConstants read-syms FileConstants read-syms InstallOption$(!STF_LANGUAGE) ; If the /U parameter is passed from Setupnw.exe then call this section to set the defaults. ; Add the values in the unattended file to the registry. set UnattendReturnStatus = STATUS_SUCCESSFUL ifstr(i) $(!NWUnattendedFile) != "" LoadLibrary $(LoadDisk3Text) $(!STF_WINDOWSSYSPATH)"\"$(NwSetupDll) NwLibHandle SetHelpFile $(!STF_WINDOWSSYSPATH)"\nls\"$(!P:NLSDirName)"\setupnw.hlp" $(!MinimumID) $(!MaximumID) LibraryProcedure LibResult $(NwLibHandle) NWUnattendedInstall $(!NWUnattendedFile) $(!P:Option) FreeLibrary $(NwLibHandle) endif Return $(UnattendReturnStatus) ;----------------------------------------------------------------------- ; LANGUAGES SUPPORTED ; ------------------- ; ; The languages supported by the OEM INF, For every language supported ; we need to have a separate text section for every displayable text ; section. ; ;----------------------------------------------------------------------- [LanguagesSupported] ENG, ENGLISH [OptionsTextENG] NDPS = "Novell Distributed Print Services" [FileConstantsENG] ProCaption = "Windows NT Setup" ProCancel = "Cance&l" 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:" ; ; Producer Info ; FunctionTitle = "Novell Distributed Print Services" ; ; Service Info ; ProductNDPSDisplayName = "Novell Distributed Print Services" ProductNDPSDescription = "Novell Distributed Print Services allows bi-directional real time communication between your workstation and your network printer." ; ; Variables to support thermometer gauge and error dialogs ; ProCaption = "NDPS for Windows NT Setup" ProCancel = "Cancel" ProCancelMsg = "NDPS for Windows NT is not "+ "correctly installed. Are you sure you want to cancel "+ "copying files?" ProCancelCap = "Network Setup Message" ProText1 = "Copying:" ProText2 = "To:" [ProgressCopyENG] !p:ProCaption = "NDPS for Windows NT Setup" !p:ProCancel = "Cancel" !p:ProCancelMsg = "NDPS for Windows NT is not "+ "correctly installed. Are you sure you want to cancel "+ "copying files?" !p:ProCancelCap = "Setup Message" !p:ProText1 = "Copying:" !p:ProText2 = "To:" !p:Error = "Unable to determine proper source disk location; copy cannot be performed." [InstallOptionENG] ErrorMessageTitle = "NDPS Install Error" ShellCodeErrorTitle = "Error: Novell NDPS Install" ShellCodeErrorText = "Shell Code Error" LoadDisk3Text = "Please load the Novell NetWare Client for Windows NT "+ "disk 3 into drive " NetWareClientNotInstalledMessage = "You must install the Novell Client for Windows NT before this product can be installed." [DoAskSourceENG] NetWareDlgText = "Please enter the full path to the Novell "+ "Client for Windows NT distribution files. Then choose Continue."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.