home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 February
/
VPR9602A.ISO
/
i386
/
oemnsvnw.in_
/
oemnsvnw.inf
Wrap
INI File
|
1995-10-25
|
56KB
|
1,209 lines
[Identification]
OptionType = NetService
[Options]
NWWKSTA
[FileConstants]
UtilityInf = "UTILITY.INF"
subroutineinf = "SUBROUTN.INF"
SoftwareType = "service"
Exit_Code = 0
NetwareEventDLL = "%SystemRoot%\System32\nwevent.dll"
Manufacturer = "Microsoft"
ProductMajorVersion = "3"
ProductMinorVersion = "51"
ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
ProductNWWKSTAName = "NWCWorkstation"
ProductNWWKSTAImagePath = "%SystemRoot%\System32\services.exe"
NetRuleNWWKSTAType = "nwWsta nwcWorkstation"
NetRuleNWWKSTAClass = {"nwcWorkstation basic"}
NetRuleNWWKSTABindable = {"nwcWorkstation nwlinkipxTransport non non 100"}
NetRuleNWWKSTAUse = $(SoftwareType)" no no"
NetRuleNWWKSTABindForm = """NwcWorkstation"" yes yes container"
ProductNWRDRName = "NwRdr"
ProductNWRDRImagePath = "\SystemRoot\System32\drivers\nwrdr.sys"
ProductProviderImagePath = "%SystemRoot%\System32\nwprovau.dll"
ProviderName = $(ProductNWWKSTAName)
ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(Product$(Option)Name)"\CurrentVersion"
ParamKeyName = $(!NTN_ServiceBase)"\"$(Product$(Option)Name)"\Parameters"
LSAKeyName = "System\CurrentControlSet\Control\LSA"
ProductMUPName = "Mup"
ProductMUPImagePath = "\SystemRoot\System32\drivers\mup.sys"
ProductMUPDisplayName = "Mup display name"
[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
[DetectDiskSpace]
VolumeList = {} ? $(!LIBHANDLE) GetHardDriveLetters
VolumeFreeList = {} ? $(!LIBHANDLE) GetHardDriveFreeSpace
VolumeFSList = {} ? $(!LIBHANDLE) GetHardDriveFileSystems
[DetectSystemMemory]
SystemMemory = "" ? $(!LIBHANDLE) GetMemorySize
[Identify]
read-syms Identification
set Status = STATUS_SUCCESSFUL
set Identifier = $(OptionType)
set Media = #("Source Media Descriptions", 1, 1)
Return $(Status) $(Identifier) $(Media)
[ReturnOptions]
set Status = STATUS_FAILED
set OptionList = {}
set OptionTextList = {}
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
goto returnoptions
else
set Status = STATUS_NOLANGUAGE
goto finish_ReturnOptions
endif
returnoptions = +
set OptionList = ^(Options, 1)
ifstr(i) $(!STF_PRODUCT) == "WINNT"
set OptionTextList = ^(OptionsWINNTText$($0), 1)
else
set OptionTextList = ^(OptionsLANMANNTText$($0), 1)
endif
set Status = STATUS_SUCCESSFUL
finish_ReturnOptions = +
Return $(Status) $(OptionList) $(OptionTextList)
[InstallOption]
set Option = $($1)
set SrcDir = $($2)
set AddCopy = $($3)
set DoCopy = $($4)
set DoConfig = $($5)
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) NOT-IN $(LanguageList)
Return STATUS_NOLANGUAGE
endif
Debug-Output "OEMNSVNW.INF: STF_CWDDIR is: "$(!STF_CWDDIR)
Debug-Output "OEMNSVNW.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
set-subst LF = "\n"
set-subst CR = "\r"
ifstr(i) $(!STF_PRODUCT) == "WINNT"
read-syms Workstation$($0)
else
read-syms Gateway$($0)
endif
ifstr(i) $(!STF_PRODUCT) == "WINNT"
read-syms OptionsWINNTText$($0)
else
read-syms OptionsLANMANNTText$($0)
endif
read-syms GeneralConstants
read-syms FileConstants
read-syms DialogConstants$(!STF_LANGUAGE)
ifstr(i) $(!NTN_Origination) == "NCPA"
set Continue = $(OK)
endif
read-syms FileConstants$(!STF_LANGUAGE)
detect date
detect DetectSystemMemory
detect DetectDiskSpace
set-title $(FunctionTitle)
set to = Begin
set from = Begin
set CommonStatus = STATUS_SUCCESSFUL
EndWait
Begin = +
Ifstr(i) $(!NTN_InstallMode) == deinstall
set OEM_ABANDON_OPTIONS = { $(ProductNWWKSTAName), +
$(ProductNWRDRName)}
set StartLabel = removeadapter
else-Ifstr(i) $(!NTN_InstallMode) == Update
set StartLabel = UpgradeSoftware
else-Ifstr(i) $(!NTN_InstallMode) == bind
set StartLabel = bindingadapter
else-Ifstr(i) $(!NTN_InstallMode) == configure
Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNSVNW.INF: ShellCode error: cannot get an error string."
goto ShellCodeError
endif
set Error = $($R0)
set from = end
set to = end
goto nonfatalinfo
else
set StartLabel = installadapter
set OEM_ABANDON_OPTIONS = {}
endif
set DoWKSTA = FALSE
set DoRDR = FALSE
set DoNWLINK = FALSE
set DoMUP = FALSE
Ifstr(i) $(Option) == NWWKSTA
set DoWKSTA = TRUE
set DoRDR = TRUE
set DoNWLINK = TRUE
set DoMUP = TRUE
Else-ifstr(i) $(Option) == RDR
Set DoRDR = TRUE
Else
Debug-Output "OEMNSVWK.INF: Unrecognized option"
Endif
set from = $(fatal)
set to = $(fatal)
goto $(StartLabel)
installadapter = +
GetDriveInPath NtDrive $(!STF_WINDOWSSYSPATH)
Shell "" GetFilesSize
set RequiredSize = $($R0)
ForListDo $(VolumeList)
set CurrentVolume = *($(VolumeList), $(#))
set CurrentVolumeFree = *($(VolumeFreeList), $(#))
Ifstr(i) $(CurrentVolume) == $(NtDrive)
set-mul CurrentVolumeFree = $(CurrentVolumeFree) 1024
Ifint $(CurrentVolumeFree) < $(RequiredSize)
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(NotEnoughSpace)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
goto end
else
goto AfterCheckSpace
endif
EndIf
EndForListDo
AfterCheckSpace = +
Ifstr(i) $(DoCopy) == "YES"
Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Goto ShellCodeError
Else-Ifstr(i) $($R0) == STATUS_FAILED
Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
Goto fatal
Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
Goto successful
Endif
Set SrcDir = $($R1)
Endif
set NwlnkName = "NWLINKIPX"
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\NWLINKIPX" $(MAXIMUM_ALLOWED) BS_KeyServices
Ifstr $(BS_KeyServices) == $(KeyNull)
set NwlnkName = "NWLNKIPX"
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\NWLNKIPX" $(MAXIMUM_ALLOWED) BS_KeyServices
Ifstr $(BS_KeyServices) == $(KeyNull)
Shell "oemnxpip.inf" ReturnOptions $(!STF_LANGUAGE)
ifstr(i) $($R0) == STATUS_SUCCESSFUL
set OldStfSrcDir = $(!STF_SRCDIR_OVERRIDE)
set !STF_SRCDIR_OVERRIDE = ""
set NwlnkName = *($($R1),1)
Shell "oemnxpip.inf" InstallOption $(!STF_LANGUAGE), *($($R1),1),+
$(SrcDir), $(AddCopy), "NO", $(DoConfig)
set !STF_SRCDIR_OVERRIDE = $(OldStfSrcDir)
else
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(InstallNWLINKFirst)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
goto end
endif
else
CloseRegKey $(BS_KeyServices)
endif
else
CloseRegKey $(BS_KeyServices)
endif
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
CloseRegKey $(KeyProduct)
Shell $(UtilityInf), VerExistedDlg, $(Product$(Option)Title),+
$(ProductVersion)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNSVNW.INF: ShellCode error: cannot get an error string."
goto ShellCodeError
endif
goto end
endif
CloseRegKey $(KeyProduct)
ifstr(i) $(DoMUP) == TRUE
Debug-Output "OEMNSVNW.INF: check MUP registry"
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\Mup" $(MAXIMUM_ALLOWED) MupKey
Ifstr $(MupKey) == $(KeyNull)
Shell $(UtilityInf), CreateService, $(ProductMUPName), +
$(ProductMUPDisplayName), $(ProductMUPImagePath), +
"system", "Network", {}, "",+
$(IoLogMsgDLL)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNSVWK.INF: ShellCode error"
goto ShellCodeError
endif
Set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != SERVICE_ALREADY_EXISTS
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "OEMNSVWK.INF: Registry error adding MUP: "$(RegistryErrorIndex)
goto fatalregistry
Endif
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(ProductMUPName))
Endif
endif
CloseRegKey $(MupKey)
endif
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\NetwareWorkstation" $(MAXIMUM_ALLOWED) BS_KeyServices
Ifstr $(BS_KeyServices) == $(KeyNull)
Shell $(UtilityInf), CreateService, +
"NetwareWorkstation", +
$(ProductNWWKSTADisplayName), +
$(ProductNWWKSTAImagePath), "autoserviceshare", "NetworkProvider", {}, "",+
$(NetwareEventDLL)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNSVNW.INF: ShellCode error"
goto ShellCodeError
endif
debug-output $($R0)
set RegistryErrorIndex = $($R0)
ifstr(i) $(RegistryErrorIndex) != NO_ERROR
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(RemoveAndReboot)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
goto end
else
Shell $(UtilityInf) RemoveService "NetwareWorkstation" "YES"
endif
else
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(RemoveAndReboot)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
CloseRegKey $(BS_KeyServices)
goto end
endif
goto nextstep
nextstep = +
StartWait
Ifstr(i) $(!NTN_InstallMode) == install
Ifint $(OldVersionExisted) == $(FALSE)
goto installproduct
endif
endif
goto writeparameters
installproduct = +
CloseRegKey $(ParamKeyName)
ifstr(i) $(!NTN_InstallMode) == "install"
install "Install-nwcfgdll"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
endif
endif
set OEM_ABANDON_ON = TRUE
LoadLibrary "nw" $(!STF_CWDDIR)\nwcfg.dll !NWCFG_HANDLE
Set FLibraryErrCtl = 1
ifstr(i) $(!NTN_InstallMode) == "install"
install "Install-Option"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
endif
endif
LibraryProcedure Result $(!NWCFG_HANDLE), SetFileSysChangeValue
LibraryProcedure Result $(!NWCFG_HANDLE), AddNetwarePrinterProvidor
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Control\Print\Providers\"$(ProductPrintProviderName) $(MAXIMUM_ALLOWED) PrintProviderKey
ifstr(i) $(PrintProviderKey) != $(KeyNull)
SetRegValue $(PrintProviderKey) {"DisplayName",$(NoTitle),$(!REG_VT_SZ),$(ProductPrintProviderName)}
CloseRegKey $(PrintProviderKey)
endif
Set FLibraryErrCtl = 0
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Control\Print\Providers" $(MAXIMUM_ALLOWED) PrintProviderKey
Ifstr $(PrintProviderKey) != $(KeyNull)
GetRegValue $(PrintProviderKey),"Order",OrderInfo
set OrderList = *($(OrderInfo),4)
set NewOrderList = {$(ProductPrintProviderName)}
ForListDo $(OrderList)
ifstr(i) $($) != $(ProductPrintProviderName)
set NewOrderList = >($(NewOrderList),$($))
endif
EndForListDo
SetRegValue $(PrintProviderKey) {"Order",$(NoTitle),$(!REG_VT_MULTI_SZ),$(NewOrderList)}
CloseRegKey $(PrintProviderKey)
endif
OpenRegKey $(!REG_H_LOCAL) "" $(LSAKeyName) $(MAXIMUM_ALLOWED) LSAKey
Ifstr $(LSAKey) != $(KeyNull)
GetRegValue $(LSAKey),"Authentication Packages", PackagesInfo
set Packages = *($(PackagesInfo), 4)
ifcontains(i) "nwprovau" in $(Packages)
debug-output "Authentication Packages already exist."
else
ifstr(i) $(Packages) == ""
set Packages = {"nwprovau"}
else
set Packages = >($(Packages),"nwprovau")
endif
SetRegValue $(LSAKey) {"Authentication Packages",$(NoTitle),$(!REG_VT_MULTI_SZ),$(Packages)}
endif
CloseRegKey $(LSAKey)
endif
ifstr(i) $(DoWKSTA) == TRUE
Debug-Output "OEMNSVNW.INF: Install Workstation in registry."
Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(ProductNWWKSTAName))
Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
$(ProductNWWKSTAName), +
$(ProductNWWKSTAName), +
$(ProductNWWKSTADisplayName), $(STF_CONTEXTINFNAME), +
$(ProductNWWKSTAImagePath), "autoserviceshare", "NetworkProvider", {}, "",+
$(NetwareEventDLL)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNSVNW.INF: ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "OEMNSVNW.INF: Registry error: add software components"
CloseRegKey $($R1)
CloseRegKey $($R2)
CloseRegKey $($R3)
CloseRegKey $($R4)
CloseRegKey $($R5)
goto fatalregistry
endif
Set SoftProductKey = $($R1)
Set SoftNetRuleKey = $($R2)
Set SoftServiceKey = $($R3)
Set SoftParameterKey = $($R4)
Set SoftLinkageKey = $($R5)
set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
{MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
{MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
{Title,$(NoTitle),$(!REG_VT_SZ),$(ProductNWWKSTATitle)},+
{Description,$(NoTitle),$(!REG_VT_SZ),$(ProductNWWKSTADescription)},+
{ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductNWWKSTAName)},+
{InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
Shell $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNSVNW.INF: ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "OEMNSVNW.INF: registry error: add value list."
CloseRegKey $(SoftProductKey)
CloseRegKey $(SoftNetRuleKey)
CloseRegKey $(SoftServiceKey)
CloseRegKey $(SoftLinkageKey)
CloseRegKey $(SoftParameterKey)
goto fatalregistry
endif
set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleNWWKSTAType)},+
{class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleNWWKSTAClass)}, +
{use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleNWWKSTAUse)}, +
{bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleNWWKSTABindForm)}, +
{bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleNWWKSTABindable)}, +
{InfOption,$(NoTitle),$(!REG_VT_SZ),NWWKSTA}}
Shell $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNSVNW.INF: ShellCode error."
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
CloseRegKey $(SoftProductKey)
CloseRegKey $(SoftNetRuleKey)
CloseRegKey $(SoftServiceKey)
Shell "" AddParameterKey $(SoftParameterKey)
CloseRegKey $(SoftParameterKey)
CloseRegKey $(SoftLinkageKey)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "OEMNSVNW.INF: Registry error: add value list."
goto fatalregistry
endif
Set FLibraryErrCtl = 1
set FoundAutoExec = TRUE
set AutoExecName = "autoexec.nt"
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(AutoExecName)
ifstr(i) $(STATUS) == NO
set AutoExecName = "autoexec.tmp"
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(AutoExecName)
ifstr(i) $(STATUS) == NO
set FoundAutoExec = FALSE
endif
endif
ifstr(i) $(FoundAutoExec) == TRUE
LibraryProcedure Result $(!NWCFG_HANDLE), RemoveSzFromFile, $(!STF_WINDOWSSYSPATH)"\"$(AutoExecName), "REM Install network redirector"$(LF)
LibraryProcedure Result $(!NWCFG_HANDLE), RemoveSzFromFile, $(!STF_WINDOWSSYSPATH)"\"$(AutoExecName), "lh %SystemRoot%\system32\nw16"$(LF)
LibraryProcedure Result $(!NWCFG_HANDLE), RemoveSzFromFile, $(!STF_WINDOWSSYSPATH)"\"$(AutoExecName), "lh %SystemRoot%\system32\vwipxspx"$(LF)
LibraryProcedure Result $(!NWCFG_HANDLE), AppendSzToFile, $(!STF_WINDOWSSYSPATH)"\"$(AutoExecName), "REM Install network redirector"$(CR)$(LF)
LibraryProcedure Result $(!NWCFG_HANDLE), AppendSzToFile, $(!STF_WINDOWSSYSPATH)"\"$(AutoExecName), "lh %SystemRoot%\system32\nw16"$(CR)$(LF)
LibraryProcedure Result $(!NWCFG_HANDLE), AppendSzToFile, $(!STF_WINDOWSSYSPATH)"\"$(AutoExecName), "lh %SystemRoot%\system32\vwipxspx"$(CR)$(LF)
endif
Set FLibraryErrCtl = 0
endif
ifstr(i) $(DoNWLINK) == TRUE
Shell "utility.inf", IncrementRefCount, "Software\Microsoft\"$(NwlnkName)"\CurrentVersion"
endif
ifstr(i) $(DoRDR) == TRUE
Debug-Output "OEMNSVNW.INF: Install Rdr registry"
Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(ProductNWRDRName))
Shell $(UtilityInf), CreateService, $(ProductNWRDRName), +
$(ProductNWRDRDisplayName), $(ProductNWRDRImagePath), +
"system", "Network", {}, "", +
$(NetwareEventDLL)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNSVNW.INF: ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
set NWRdrServiceKey = $($R1)
CloseRegKey $($R3)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "OEMNSVNW.INF: Registry error: add software components"
goto fatalregistry
endif
set NWRdrParametersKey = $($R2)
SetRegValue $(NWRdrParametersKey) {"Japan",$(NoTitle),$(!REG_VT_DWORD),1}
CloseRegKey $($R2)
CreateRegKey $(NWRdrServiceKey) {"Performance",$(NoTitle),GenericClass} "" +
$(MAXIMUM_ALLOWED) "" KeyPerformance
set NewValueList = {{Library,$(NoTitle),$(!REG_VT_SZ),"Perfnw.dll"},+
{Open,$(NoTitle),$(!REG_VT_SZ),"OpenNetWarePerformanceData"},+
{Collect,$(NoTitle),$(!REG_VT_SZ),"CollectNetWarePerformanceData"},+
{Close,$(NoTitle),$(!REG_VT_SZ),"CloseNetWarePerformanceData"}}
Shell $(UtilityInf), AddValueList, $(KeyPerformance), $(NewValueList)
set RegistryErrorIndex = $($R0)
CloseRegKey $(KeyPerformance)
CloseRegKey $(NWRdrServiceKey)
LibraryProcedure Result $(!NWCFG_HANDLE), GetKernelVersion
ifint *($(Result),3) < 529
Set FLibraryErrCtl = 1
LibraryProcedure STATUS $(!NWCFG_HANDLE), lodctr $(!STF_WINDOWSSYSPATH)\nwperf.ini
Set FLibraryErrCtl = 0
endif
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "OEMNSVNW.INF: Registry error: add performance information"
goto fatalregistry
endif
Debug-Output "OEMNSVNW.INF: Add NetworkProvider"
Shell $(UtilityInf), AddNetworkProvider, $(ProviderName), +
$(ProductProviderImagePath), $(ProductProviderDisplayName), "nwrdr"
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "OEMNSVNW.INF: Registry error: add software components"
goto fatalregistry
endif
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Control\NetworkProvider\Order" $(MAXIMUM_ALLOWED) NetProviderKey
Ifstr $(NetProviderKey) != $(KeyNull)
GetRegValue $(NetProviderKey),"ProviderOrder",OrderInfo
set OrderList = *($(OrderInfo),4)
Split-String $(OrderList), ",", ProviderList
set NewOrderList = $(ProductNWWKSTAName)
ForListDo $(ProviderList)
ifstr(i) $($) != ","
ifstr(i) $($) != $(ProductNWWKSTAName)
set NewOrderList = $(NewOrderList)","$($)
endif
endif
EndForListDo
SetRegValue $(NetProviderKey) {"ProviderOrder",$(NoTitle),$(!REG_VT_SZ),$(NewOrderList)}
CloseRegKey $(NetProviderKey)
endif
Shell "" AddShortName
Shell $(UtilityInf) AddServerRpcProtocol "ncadg_ipx" "rpcdgs6.dll"
Shell $(UtilityInf) AddServerRpcProtocol "ncacn_spx" "rpclts6.dll"
Ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNXPTC.INF: ShellCode error adding RPC procotol"
goto ShellCodeError
Endif
Set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
Debug-Output "OEMNXPTC.INF: ERROR adding RPC protocol data"
EndWait
goto fatalregistry
Endif
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProviderName)"\networkprovider" $(MAXIMUM_ALLOWED) ProviderKey
ifstr(i) $(ProviderKey) != ""
set NewValueList = {{Class,$(NoTitle),$(!REG_VT_DWORD),11},+
{NWCompatibleAuthentication,$(NoTitle),$(!REG_VT_DWORD),1}}
Shell $(UtilityInf) AddValueList $(ProviderKey) $(NewValueList)
endif
CloseRegKey $(ProviderKey)
LibraryProcedure Status1, $(!LIBHANDLE), CheckFileExistance, $(!STF_WINDOWSSYSPATH)"\novell.cpl"
ifstr(i) $(Status1) == "YES"
LibraryProcedure Status2, $(!LIBHANDLE), RenFile, $(!STF_WINDOWSSYSPATH)"\novell.cpl", $(!STF_WINDOWSSYSPATH)"\novell.bak"
endif
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Control\WOW" $(MAXIMUM_ALLOWED) WowKey
ifstr(i) $(WowKey) != ""
GetRegValue $(WowKey),"KnownDLLS", KnownDLLsInfo
Split-String *($(KnownDLLsInfo),4), " ", KnownDLLsList
Ifcontains(i) "netware.drv" not-in $(KnownDLLsList)
ifstr(i) *($(KnownDLLsInfo),4) == ""
set KnownDLLs = "netware.drv"
else
set KnownDLLs = *($(KnownDLLsInfo),4)" netware.drv"
endif
SetRegValue $(WowKey) {"KnownDLLS",$(NoTitle),$(!REG_VT_SZ),$(KnownDLLs)}
endif
CloseRegKey $(WowKey)
endif
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Services\LanmanServer\Parameters" $(MAXIMUM_ALLOWED) ServerParmKey
ifstr(i) $(ServerParmKey) != ""
SetRegValue $(ServerParmKey) {"EnableSharedNetDrives",$(NoTitle),$(!REG_VT_DWORD),1}
CloseRegKey $(ServerParmKey)
endif
endif
writeparameters = +
FreeLibrary $(!NWCFG_HANDLE)
EndWait
goto successful
ConfigureBrowser = +
goto successful
bindingadapter =+
set Error = "Binding: Sorry, not yet implemented."
goto fatal
removeadapter = +
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Control\WOW" $(MAXIMUM_ALLOWED) WowKey
ifstr(i) $(WowKey) != ""
GetRegValue $(WowKey),"KnownDLLS", KnownDLLsInfo
Split-String *($(KnownDLLsInfo),4), " ", KnownDLLsList
set KnownDLLs = ""
Ifcontains(i) "netware.drv" in $(KnownDLLsList)
ForListDo $(KnownDLLsList)
ifstr(i) $($) != " "
ifstr(i) $($) != "netware.drv"
ifstr(i) $(KnownDLLs) == ""
set KnownDLLs = $($)
else
set KnownDLLs = $(KnownDLLs)" "$($)
endif
endif
endif
EndForListDo
else
set KnownDLLs = *($(KnownDLLsInfo),4)
endif
SetRegValue $(WowKey) {"KnownDLLS",$(NoTitle),$(!REG_VT_SZ),$(KnownDLLs)}
CloseRegKey $(WowKey)
endif
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Services\LanmanServer\Parameters" $(MAXIMUM_ALLOWED) ServerParmKey
ifstr(i) $(ServerParmKey) != ""
SetRegValue $(ServerParmKey) {"EnableSharedNetDrives",$(NoTitle),$(!REG_VT_DWORD),0}
CloseRegKey $(ServerParmKey)
endif
LoadLibrary "nw" $(!STF_CWDDIR)\nwcfg.dll !NWCFG_HANDLE
Set FLibraryErrCtl = 1
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Control\Print\Providers" $(MAXIMUM_ALLOWED) PrintProviderKey
ifstr(i) $(PrintProviderKey) != ""
GetRegValue $(PrintProviderKey) "Order" OrderInfo
ifcontains(i) $(OldPrintProviderName) in *($(OrderInfo),4)
LibraryProcedure Result $(!NWCFG_HANDLE), DeleteNetwarePrinterProvidor $(OldPrintProviderName)
endif
ifcontains(i) $(OldPrintProviderName2) in *($(OrderInfo),4)
LibraryProcedure Result $(!NWCFG_HANDLE), DeleteNetwarePrinterProvidor $(OldPrintProviderName2)
endif
endif
OpenRegKey $(!REG_H_LOCAL) "" "Software\Microsoft\NwSapAgent" $(MAXIMUM_ALLOWED) SapAgentKey
ifstr(i) $(SapAgentKey) == ""
Shell $(UtilityInf) RemoveServerRpcProtocol "ncadg_ipx"
Shell $(UtilityInf) RemoveServerRpcProtocol "ncacn_spx"
else
CloseRegKey $(SapAgentKey)
endif
LibraryProcedure Result $(!NWCFG_HANDLE), DeleteNetwarePrinterProvidor
LibraryProcedure Result $(!NWCFG_HANDLE), DeleteGatewayPassword
Set FLibraryErrCtl = 0
LibraryProcedure Result $(!NWCFG_HANDLE), GetKernelVersion
ifint *($(Result),3) < 529
Set FLibraryErrCtl = 1
LibraryProcedure STATUS $(!NWCFG_HANDLE), unlodctr nwrdr
Set FLibraryErrCtl = 0
endif
OpenRegKey $(!REG_H_LOCAL) "" $(LSAKeyName) $(MAXIMUM_ALLOWED) LSAKey
Ifstr $(LSAKey) != $(KeyNull)
GetRegValue $(LSAKey),"Authentication Packages", PackagesInfo
set Packages = *($(PackagesInfo), 4)
ifcontains(i) "nwprovau" not-in $(Packages)
debug-output "Authentication Packages does not exist.."
else
set NewPackages = {}
ForListDo $(Packages)
ifstr(i) $($) != "nwprovau"
ifstr(i) $(NewPackages) == {}
set NewPackages = {$($)}
else
set NewPackages = >($(NewPackages),$($))
endif
endif
EndForListDo
SetRegValue $(LSAKey) {"Authentication Packages",$(NoTitle),$(!REG_VT_MULTI_SZ),$(NewPackages)}
endif
CloseRegKey $(LSAKey)
endif
ifcontains(i) $(ProductNWWKSTAName) in $(OEM_ABANDON_OPTIONS)
Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
$(ProductNWWKSTAName)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNSVNW.INF: ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
endif
ForListDo {$(ProductNWRDRName)}
ifcontains(i) $($) in $(OEM_ABANDON_OPTIONS)
Shell $(UtilityInf), RemoveService, $($), "YES"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNSVNW.INF: ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
endif
EndForListDo
set NwlnkName = "NWLINKIPX"
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\NWLINKIPX" $(MAXIMUM_ALLOWED) BS_KeyServices
Ifstr $(BS_KeyServices) == $(KeyNull)
set NwlnkName = "NWLNKIPX"
endif
Shell "UTILITY.INF", DecrementRefCount, "Software\Microsoft\"$(NwlnkName)"\CurrentVersion"
Set FLibraryErrCtl = 1
set FoundAutoExec = TRUE
set AutoExecName = "autoexec.nt"
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(AutoExecName)
ifstr(i) $(STATUS) == NO
set AutoExecName = "autoexec.tmp"
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(AutoExecName)
ifstr(i) $(STATUS) == NO
set FoundAutoExec = FALSE
endif
endif
ifstr(i) $(FoundAutoExec) == TRUE
LibraryProcedure Result $(!NWCFG_HANDLE), RemoveSzFromFile, $(!STF_WINDOWSSYSPATH)"\"$(AutoExecName), "REM Install network redirector"$(LF)
LibraryProcedure Result $(!NWCFG_HANDLE), RemoveSzFromFile, $(!STF_WINDOWSSYSPATH)"\"$(AutoExecName), "lh %SystemRoot%\system32\nw16"$(LF)
LibraryProcedure Result $(!NWCFG_HANDLE), RemoveSzFromFile, $(!STF_WINDOWSSYSPATH)"\"$(AutoExecName), "lh %SystemRoot%\system32\vwipxspx"$(LF)
endif
Set FLibraryErrCtl = 0
Shell $(UtilityInf) RemoveNetworkProvider $(ProviderName)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "OEMNSVNW.INF: ShellCode error"
goto ShellCodeError
endif
set RegistryErrorIndex = $($R0)
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
goto fatalregistry
endif
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Control\NetworkProvider\ShortName" $(MAXIMUM_ALLOWED) ShortNameKey
ifstr $(ShortNameKey) != $(KeyNull)
DeleteRegValue $(ShortNameKey) "NW"
else
debug-output "something wrong..."
endif
Set FLibraryErrCtl = 1
LibraryProcedure Result $(!NWCFG_HANDLE), CleanupRegistryForNWCS
Set FLibraryErrCtl = 0
FreeLibrary $(!NWCFG_HANDLE)
Install "RestoreFiles"
Set FLibraryErrCtl = 1
LibraryProcedure Status1, $(!LIBHANDLE), DelFile, $(!STF_WINDOWSSYSPATH)"\nwc.cpl"
LibraryProcedure Status1, $(!LIBHANDLE), DelFile, $(!STF_WINDOWSSYSPATH)"\nwapi32.dll"
Set FLibraryErrCtl = 0
Shell "" RemoveBackupFiles
goto end
UpgradeSoftware = +
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(SrcDir)"\nwc.2a"
ifstr(i) $(STATUS) == YES
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(UpgradeBetaOnTopOfDaytona)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
goto end
endif
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(SrcDir)"\nwc.2b"
ifstr(i) $(STATUS) == YES
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(UpgradeBetaOnTopOfDaytona)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
goto end
endif
Install "Install-Update"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
goto fatal
endif
install "Install-nwcfgdll"
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
goto fatal
endif
LoadLibrary "nw" $(!STF_CWDDIR)\nwcfg.dll !NWCFG_HANDLE
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
Ifstr $(KeyProduct) != $(KeyNull)
ifstr(i) $(!STF_NTUPGRADE) != "YES"
ifstr(i) $(STF_CONTEXTINFNAME) != "oemnsvnw.inf"
OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName)"\NetRules" $(MAXIMUM_ALLOWED) KeyNetRules
Ifstr $(KeyNetRules) != $(KeyNull)
GetRegValue $(KeyNetRules),"InfName", InfNameInfo
set !UG_Filename = *($(InfNameInfo), 4)
CloseRegKey $(KeyNetRules)
else
Split-String $(!NTN_Infname), "\", FilenameList
QueryListSize ListSize $(FilenameList)
set !UG_Filename = *($(FilenameList), $(ListSize))
endif
install "Install-Update-Inf"
endif
endif
ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
goto fatal
endif
SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
CloseRegKey $(KeyProduct)
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\Nwrdr\Performance" $(MAXIMUM_ALLOWED) KeyPerformance
Ifstr $(KeyPerformance) != $(KeyNull)
CloseRegKey $(KeyPerformance)
Set FLibraryErrCtl = 1
ifstr(i) $(!STF_PRODUCT) == "WINNT"
LibraryProcedure Result $(!NWCFG_HANDLE), DeleteGatewayPassword
endif
Set FLibraryErrCtl = 0
LibraryProcedure Result $(!NWCFG_HANDLE), GetKernelVersion
ifint *($(Result),3) < 529
Set FLibraryErrCtl = 1
LibraryProcedure STATUS $(!NWCFG_HANDLE), unlodctr nwrdr
LibraryProcedure STATUS $(!NWCFG_HANDLE), lodctr $(!STF_WINDOWSSYSPATH)\nwperf.ini
Set FLibraryErrCtl = 0
endif
else
Set FLibraryErrCtl = 1
LibraryProcedure Result $(!NWCFG_HANDLE), RemoveSzFromFile, $(!STF_WINDOWSSYSPATH)"\autoexec.nt", "REM Install network redirector"$(LF)
LibraryProcedure Result $(!NWCFG_HANDLE), RemoveSzFromFile, $(!STF_WINDOWSSYSPATH)"\autoexec.nt", "lh %SystemRoot%\system32\nw16"$(LF)
LibraryProcedure Result $(!NWCFG_HANDLE), RemoveSzFromFile, $(!STF_WINDOWSSYSPATH)"\autoexec.nt", "lh %SystemRoot%\system32\vwipxspx"$(LF)
LibraryProcedure Result $(!NWCFG_HANDLE), AppendSzToFile, $(!STF_WINDOWSSYSPATH)"\autoexec.nt", "REM Install network redirector"$(CR)$(LF)
LibraryProcedure Result $(!NWCFG_HANDLE), AppendSzToFile, $(!STF_WINDOWSSYSPATH)"\autoexec.nt", "lh %SystemRoot%\system32\nw16"$(CR)$(LF)
LibraryProcedure Result $(!NWCFG_HANDLE), AppendSzToFile, $(!STF_WINDOWSSYSPATH)"\autoexec.nt", "lh %SystemRoot%\system32\vwipxspx"$(CR)$(LF)
Set FLibraryErrCtl = 0
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\nwrdr" $(MAXIMUM_ALLOWED) KeyNwrdr
CreateRegKey $(KeyNwrdr) {"Performance",$(NoTitle),GenericClass} "" +
$(MAXIMUM_ALLOWED) "" KeyPerformance
set NewValueList = {{Library,$(NoTitle),$(!REG_VT_SZ),"Perfnw.dll"},+
{Open,$(NoTitle),$(!REG_VT_SZ),"OpenNetWarePerformanceData"},+
{Collect,$(NoTitle),$(!REG_VT_SZ),"CollectNetWarePerformanceData"},+
{Close,$(NoTitle),$(!REG_VT_SZ),"CloseNetWarePerformanceData"}}
Shell $(UtilityInf), AddValueList, $(KeyPerformance), $(NewValueList)
set RegistryErrorIndex = $($R0)
CloseRegKey $(KeyPerformance)
CloseRegKey $(KeyNwrdr)
LibraryProcedure Result $(!NWCFG_HANDLE), GetKernelVersion
ifint *($(Result),3) < 529
Set FLibraryErrCtl = 1
LibraryProcedure STATUS $(!NWCFG_HANDLE), lodctr $(!STF_WINDOWSSYSPATH)\nwperf.ini
Set FLibraryErrCtl = 0
endif
Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
EndWait
Debug-Output "OEMNSVNW.INF: Registry error: add performance information"
goto fatalregistry
endif
endif
endif
LibraryProcedure Result $(!NWCFG_HANDLE), SetFileSysChangeValue
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Services\NWCWorkstation\networkprovider" $(MAXIMUM_ALLOWED) ProviderKey
ifstr(i) $(ProviderKey) != ""
SetRegValue $(ProviderKey) {Devicename,$(NoTitle),$(!REG_VT_SZ),"\Device\nwrdr"}
SetRegValue $(ProviderKey) {Name,$(NoTitle),$(!REG_VT_SZ),$(ProductProviderDisplayName)}
CloseRegKey $(ProviderKey)
endif
LibraryProcedure Status1, $(!LIBHANDLE), CheckFileExistance, $(!STF_WINDOWSSYSPATH)"\novell.cpl"
ifstr(i) $(Status1) == "YES"
LibraryProcedure Status2, $(!LIBHANDLE), RenFile, $(!STF_WINDOWSSYSPATH)"\novell.cpl", $(!STF_WINDOWSSYSPATH)"\novell.bak"
endif
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Control\WOW" $(MAXIMUM_ALLOWED) WowKey
ifstr(i) $(WowKey) != ""
GetRegValue $(WowKey),"KnownDLLS", KnownDLLsInfo
Split-String *($(KnownDLLsInfo),4), " ", KnownDLLsList
Ifcontains(i) "netware.drv" not-in $(KnownDLLsList)
ifstr(i) *($(KnownDLLsInfo),4) == ""
set KnownDLLs = "netware.drv"
else
set KnownDLLs = *($(KnownDLLsInfo),4)" netware.drv"
endif
SetRegValue $(WowKey) {"KnownDLLS",$(NoTitle),$(!REG_VT_SZ),$(KnownDLLs)}
endif
CloseRegKey $(WowKey)
endif
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Services\LanmanServer\Parameters" $(MAXIMUM_ALLOWED) ServerParmKey
ifstr(i) $(ServerParmKey) != ""
SetRegValue $(ServerParmKey) {"EnableSharedNetDrives",$(NoTitle),$(!REG_VT_DWORD),1}
CloseRegKey $(ServerParmKey)
endif
OpenRegKey $(!REG_H_LOCAL) "" "Software\Microsoft\NWCWorkstation\CurrentVersion" $(MAXIMUM_ALLOWED) CurrentVersionKey
ifstr(i) $(CurrentVersionKey) != ""
SetRegValue $(CurrentVersionKey) {"Description",$(NoTitle),$(!REG_VT_SZ),$(NWWKSTA)}
SetRegValue $(CurrentVersionKey) {"Title",$(NoTitle),$(!REG_VT_SZ),$(NWWKSTA)}
CloseRegKey $(CurrentVersionKey)
endif
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Services\NWCWorkstation" $(MAXIMUM_ALLOWED) nwcKey
ifstr(i) $(nwcKey) != ""
SetRegValue $(nwcKey) {"DisplayName",$(NoTitle),$(!REG_VT_SZ),$(NWType)}
SetRegValue $(nwcKey) {"ImagePath",$(NoTitle),$(!REG_VT_EXPAND_SZ),$(ProductNWWKSTAImagePath)}
CloseRegKey $(nwcKey)
endif
Set FLibraryErrCtl = 1
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Control\Print\Providers" $(MAXIMUM_ALLOWED) PrintProviderKey
ifstr(i) $(PrintProviderKey) != ""
GetRegValue $(PrintProviderKey) "Order" OrderInfo
ifcontains(i) $(OldPrintProviderName) in *($(OrderInfo),4)
set oldname = $(OldPrintProviderName)
goto changePrintProvider
endif
ifcontains(i) $(OldPrintProviderName2) in *($(OrderInfo),4)
set oldname = $(OldPrintProviderName2)
goto changePrintProvider
endif
goto nochangePrintProvider
changePrintProvider = +
DeleteRegKey $(PrintProviderKey) $(oldname)
OpenRegKey $(PrintProviderKey) "" $(ProductPrintProviderName) $(MAXIMUM_ALLOWED) ProductProviderKey
ifstr $(ProductProviderKey) == $(KeyNull)
CreateRegKey $(PrintProviderKey) {$(ProductPrintProviderName),$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" ProductProviderKey
endif
ifstr $(ProductProviderKey) != $(KeyNull)
SetRegValue $(ProductProviderKey) {"Name",$(NoTitle),$(!REG_VT_SZ),"nwprovau.dll"}
SetRegValue $(ProductProviderKey) {"DisplayName",$(NoTitle),$(!REG_VT_SZ),$(ProductPrintProviderName)}
endif
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Control\Print\Providers" $(MAXIMUM_ALLOWED) PrintProviderKey
Ifstr $(PrintProviderKey) != $(KeyNull)
GetRegValue $(PrintProviderKey),"Order",OrderInfo
set OrderList = *($(OrderInfo),4)
set NewOrderList = {$(ProductPrintProviderName)}
ForListDo $(OrderList)
ifstr(i) $($) != $(oldname)
ifstr(i) $($) != $(ProductPrintProviderName)
set NewOrderList = >($(NewOrderList),$($))
endif
endif
EndForListDo
SetRegValue $(PrintProviderKey) {"Order",$(NoTitle),$(!REG_VT_MULTI_SZ),$(NewOrderList)}
CloseRegKey $(PrintProviderKey)
endif
nochangePrintProvider = +
endif
Set FLibraryErrCtl = 0
OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProviderName)"\networkprovider" $(MAXIMUM_ALLOWED) ProviderKey
ifstr(i) $(ProviderKey) != ""
set NewValueList = {{Class,$(NoTitle),$(!REG_VT_DWORD),11},+
{NWCompatibleAuthentication,$(NoTitle),$(!REG_VT_DWORD),1}}
Shell $(UtilityInf) AddValueList $(ProviderKey) $(NewValueList)
CloseRegKey $(ProviderKey)
endif
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Control\Print\Providers\"$(ProductPrintProviderName) $(MAXIMUM_ALLOWED) PrintProviderKey
ifstr(i) $(PrintProviderKey) != $(KeyNull)
SetRegValue $(PrintProviderKey) {"DisplayName",$(NoTitle),$(!REG_VT_SZ),$(ProductPrintProviderName)}
CloseRegKey $(PrintProviderKey)
endif
Shell "" AddShortName
Shell $(UtilityInf) AddServerRpcProtocol "ncadg_ipx" "rpcdgs6.dll"
Shell $(UtilityInf) AddServerRpcProtocol "ncacn_spx" "rpclts6.dll"
FreeLibrary $(!NWCFG_HANDLE)
goto end
successful = +
goto end
warning = +
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
ifstr(i) $($R1) == "OK"
goto $(to)
else-ifstr(i) $($R1) == "CANCEL"
goto $(from)
else
goto end
endif
nonfatalinfo = +
Set CommonStatus = STATUS_USERCANCEL
Set Severity = STATUS
goto nonfatalmsg
nonfatal = +
Set Severity = NONFATAL
goto nonfatalmsg
nonfatalmsg = +
ifstr(i) $(Error) == ""
Set Severity = NONFATAL
Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
endif
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
ifstr(i) $($R1) == "OK"
goto $(from)
else
goto "end"
endif
fatalregistry = +
Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
goto fatal
fatal = +
ifstr(i) $(Error) == ""
Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
set Error = $($R0)
endif
Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
goto ShellCodeError
endif
goto setfailed
ShellCodeError = +
set DlgType = "MessageBox"
set STF_MB_TITLE = "Error: "$(FunctionTitle)
set STF_MB_TEXT = $(ShellCodeErrorText)
set STF_MB_TYPE = 1
set STF_MB_ICON = 3
set STF_MB_DEF = 1
ui start "Error Message"
goto setfailed
setfailed = +
set CommonStatus = STATUS_FAILED
ifstr(i) $(OEM_ABANDON_ON) == TRUE
set OEM_ABANDON_ON = FALSE
goto removeadapter
endif
goto end
end = +
goto term
term = +
Return $(CommonStatus)
[RestoreFiles]
AddSectionFilesToCopyList Restore-Oldexe $(!STF_WINDOWSSYSPATH) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Restore-Oldsys $(!STF_WINDOWSSYSPATH)\drivers $(!STF_WINDOWSSYSPATH)\drivers
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
Exit
[Install-nwcfgdll]
set STF_VITAL = ""
ifstr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-nwcfgdll $(SrcDir) $(!STF_WINDOWSSYSPATH)
endif
ifstr(i) $(DoCopy) == "YES"
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
endif
Exit
[Install-Option]
set STF_VITAL = ""
ifstr(i) $(AddCopy) == "YES"
AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Drivers $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
endif
ifstr(i) $(DoCopy) == "YES"
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
endif
ifstr(i) $(DoConfig) == "YES"
endif
Exit
[Install-Update]
set STF_VITAL = ""
AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-nwcfgdll $(SrcDir) $(!STF_WINDOWSSYSPATH)
AddSectionFilesToCopyList Files-Drivers $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
Exit
[AddShortName]
read-syms GeneralConstants
read-syms FileConstants
read-syms FileConstants$(!STF_LANGUAGE)
OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Control\NetworkProvider" $(MAXIMUM_ALLOWED) NetProviderKey
ifstr $(NetProviderKey) != $(KeyNull)
OpenRegKey $(NetProviderKey) "" "ShortName" $(MAXIMUM_ALLOWED) ShortNameKey
ifstr $(ShortNameKey) == $(KeyNull)
CreateRegKey $(NetProviderKey) {"ShortName",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" ShortNameKey
endif
ifstr $(ShortNameKey) != $(KeyNull)
SetRegValue $(ShortNameKey) {"NW",$(NoTitle),$(!REG_VT_SZ),$(ProductProviderDisplayName)}
endif
else
debug-output "something wrong..."
endif
return
[AddParameterKey]
read-syms GeneralConstants
set SoftParameterKey = $($0)
CreateRegKey $(SoftParameterKey) {"Logon",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" LogonKey
CreateRegKey $(SoftParameterKey) {"Option",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" OptionKey
SetRegValue $(SoftParameterKey) {"ShellVersion",$(NoTitle),$(!REG_VT_MULTI_SZ),{"MSDOS","V5.00","IBM_PC","DOSV"}}
Set FLibraryErrCtl = 1
LibraryProcedure Result $(!NWCFG_HANDLE), SetEverybodyPermission, $(OptionKey), 2
Set FLibraryErrCtl = 0
CloseRegKey $(LogonKey)
CloseRegKey $(OptionKey)
Return
[GetFilesSize]
set FileSizeList = >(^(Files-Drivers,3),^(Files-NWWKSTA,3))
set TotalSize = 0
ForListDo $(FileSizeList)
ForListDo $($)
Debug-Output $($)
Split-String $($) "=" SplitString
set Size = *($(SplitString),3)
set-add TotalSize = $(TotalSize) $(Size)
EndForListDo
EndForListDo
set-div SizeInK = $(TotalSize) 1024
return $(SizeInK)
[Install-Update-Inf]
AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
set !STF_NCPA_FLUSH_COPYLIST = TRUE
CopyFilesInCopyList
exit
[RemoveBackupFiles]
return
[Restore-Oldexe]
[Restore-Oldsys]
[Source Media Descriptions]
1 = "Windows NT Server CD-ROM または セットアップ ディスク #5" , TAGFILE = disk1.s
2 = "Windows NT Server CD-ROM または セットアップ ディスク #6" , TAGFILE = disk2.s
3 = "Windows NT Server CD-ROM または セットアップ ディスク #7" , TAGFILE = disk3.s
4 = "Windows NT Server CD-ROM または セットアップ ディスク #8" , TAGFILE = disk4.s
5 = "Windows NT Server CD-ROM または セットアップ ディスク #9" , TAGFILE = disk5.s
6 = "Windows NT Server CD-ROM または セットアップ ディスク #10" , TAGFILE = disk6.s
7 = "Windows NT Server CD-ROM または セットアップ ディスク #11", TAGFILE = disk7.s
8 = "Windows NT Server CD-ROM または セットアップ ディスク #12", TAGFILE = disk8.s
9 = "Windows NT Server CD-ROM または セットアップ ディスク #13", TAGFILE = disk9.s
10 = "Windows NT Server CD-ROM または セットアップ ディスク #14", TAGFILE = disk10.s
11 = "Windows NT Server CD-ROM または セットアップ ディスク #15", TAGFILE = disk11.s
12 = "Windows NT Server CD-ROM または セットアップ ディスク #16", TAGFILE = disk12.s
13 = "Windows NT Server CD-ROM または セットアップ ディスク #17", TAGFILE = disk13.s
14 = "Windows NT Server CD-ROM または セットアップ ディスク #18", TAGFILE = disk14.s
15 = "Windows NT Server CD-ROM または セットアップ ディスク #19", TAGFILE = disk15.s
16 = "Windows NT Server CD-ROM または セットアップ ディスク #20", TAGFILE = disk16.s
17 = "Windows NT Server CD-ROM または セットアップ ディスク #21", TAGFILE = disk17.s
18 = "Windows NT Server CD-ROM または セットアップ ディスク #22", TAGFILE = disk18.s
19 = "Windows NT Server CD-ROM または セットアップ ディスク #23", TAGFILE = disk19.s
20 = "Windows NT Server CD-ROM または セットアップ ディスク #24", TAGFILE = disk20.s
21 = "Windows NT Server CD-ROM または セットアップ ディスク #25", TAGFILE = disk21.s
22 = "Windows NT Server CD-ROM または セットアップ ディスク #26", TAGFILE = disk22.s
23 = "Windows NT Server CD-ROM または セットアップ ディスク #27", TAGFILE = disk23.s
24 = "Windows NT Server CD-ROM または セットアップ ディスク #28", TAGFILE = disk24.s
25 = "Windows NT Server CD-ROM または セットアップ ディスク #29", TAGFILE = disk25.s
26 = "Windows NT Server CD-ROM または セットアップ ディスク #30", TAGFILE = disk26.s
27 = "Windows NT Server CD-ROM または セットアップ ディスク #31", TAGFILE = disk27.s
28 = "Windows NT Server CD-ROM または セットアップ ディスク #32", TAGFILE = disk28.s
29 = "Windows NT Server CD-ROM または セットアップ ディスク #33", TAGFILE = disk29.s
30 = "Windows NT Server CD-ROM または セットアップ ディスク #34", TAGFILE = disk30.s
50 = "Windows NT Server CD-ROM または リモートブート ディスク #1", TAGFILE = disk50.s
51 = "Windows NT Server CD-ROM または リモートブート ディスク #2", TAGFILE = disk51.s
[Signature]
FileType = MICROSOFT_FILE
[GetSignature]
read-syms Signature
return $(FileType)
[ProductType]
STF_PRODUCT = LanmanNT
STF_PLATFORM = I386
[Files-Inf]
2, oemsetup.inf, SIZE=1000, RENAME=$(!UG_Filename)
[Files-Drivers]
23,NWRDR.SYS , SIZE=108544
[Files-nwcfgdll]
28,NWAPI32.DLL , SIZE=14336
27,NWCFG.DLL , SIZE=17408
[Files-NWWKSTA]
16,NETWARE.DRV , SIZE=3072
28,NW16.EXE , SIZE=4096
27,NWAPI16.DLL , SIZE=18432
26,NWC.CPL , SIZE=38912
28,NWEVENT.DLL , SIZE=9216
25,NWWKS.DLL , SIZE=66560
28,PERFNW.DLL , SIZE=6144
27,VWIPXSPX.DLL , SIZE=22528
28,VWIPXSPX.EXE , SIZE=2048
28,NWDOCGW.CNT , SIZE=1024, RENAME=nwdoc.cnt
24,NWDOCGW.HLP , SIZE=76800, RENAME=nwdoc.hlp
[LanguagesSupported]
ENG
[WorkstationENG]
NWType = "Client Service for NetWare"
[GatewayENG]
NWType = "Gateway Service for NetWare"
[OptionsWINNTTextENG]
NWWKSTA = "NetWare クライアント サービス"
[OptionsLANMANNTTextENG]
NWWKSTA = "NetWare ゲートウェイ サービス"
[FileConstantsENG]
NotEnoughSpace = "ディスク容量が不足しています。"$(NWType)" を組み込む前に不要なファイルを削除してください。"
UpgradeBetaOnTopOfDaytona = $(NWType)" の β バージョンを Windows NT 3.51 の "$(NWType)" に更新できません。"
InstallNWLINKFirst = $(NWType)" を組み込む前に NWLINK IPX/SPX 互換トランスポートを組み込んでください。"
InstallNTWKSTAFirst = $(NWType)" を組み込む前に Windows NT ワークステーション サービスを組み込んでください。"
RemoveAndReboot = "最新バージョンの "$(NWType)" を組み込む前に、既存の "$(NWType)" を削除し、マシンを再起動してください。"
UpgradeFirst = $(NWType)" を組み込む前に Windows NT パッチを組み込んでください。"
ProCaption = "Windows NT セットアップ"
ProCancel = "キャンセル"
ProCancelMsg = "Windows NT ネットワークは正しく組み込まれていません。"+
"ファイルのコピーを中止しますか?"
ProCancelCap = "ネットワーク セットアップ メッセージ"
ProText1 = "コピー元:"
ProText2 = "コピー先:"
FunctionTitle = $(NWType)" セットアップ"
ProductNWWKSTADescription = $(NWWKSTA)
ProductNWRDRDescription = "NetWare リダイレクタ互換サービス"
ProviderRDRName = "NetWare 互換リダイレクタ"
ProductNWWKSTATitle = $(NWWKSTA)
ProductNWWKSTADisplayName = $(NWType)
ProductNWRDRDisplayName = "NetWare リダイレクタ"
ProductNWRDRTitle = "NetWare リダイレクタ"
ProductProviderName = "NetWare Network"
ProductProviderDisplayName = "NetWare or Compatible Network"
ProductPrintProviderName = "NetWare or Compatible Network"
OldPrintProviderName = "Netware(R) Network"
OldPrintProviderName2 = "NetWare Network"
[DialogConstantsENG]
Help = "ヘルプ(&H)"
Exit = "キャンセル"
OK = "OK"
HelpContext = ""
Continue = "続行"
Cancel = "キャンセル"
ShellCodeErrorText = "シェル コード エラーです。"
[FileDependentDlgENG]