home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 9 / 09.iso / d / d423_liu / 8.ddi / OEMNXPST.IN_ / OEMNXPST.IN
Encoding:
INI File  |  1993-07-24  |  16.7 KB  |  440 lines

  1. [Identification]
  2.     OptionType = NetTransport
  3. [Options]
  4.     STREAMS
  5. [FileConstants]
  6. Manufacturer    = "Microsoft"
  7. ProductMajorVersion     = "3"
  8. ProductMinorVersion     = "1"
  9. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  10. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  11. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  12. ProductSTREAMSName      = "Streams"
  13. ProductSTREAMSImagePath = "\SystemRoot\System32\drivers\streams.sys"
  14. ProductSTREAMSSvcType   = "kernel"
  15. NetRuleSTREAMSType      = "streams streamsEnvironment streamsEnvironment"
  16. NetRuleSTREAMSUse       = $(SoftwareType)" yes yes"
  17. NetRuleSTREAMSBindForm  = """Streams"" yes yes streams"
  18. NetRuleSTREAMSClassList = {"streamsEnvironment basic",+
  19.                            "streamsStack basic"}
  20. NetRuleSTREAMSBindList  = {"streamsEnvironment ndisDriver non non 100",+
  21.                            "streamsStack streamsEnvironment exclusive non 100"}
  22. STREAMS_PATH    = "SYSTEM\currentcontrolset\services\streams"
  23. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(Product$(Option)Name)"\CurrentVersion"
  24. LinkageKeyName  = $(!NTN_ServiceBase)"\Tcpip\Linkage"
  25. ServiceTCPIPKeyName = $(!NTN_ServiceBase)"\Tcpip"
  26. ServiceKeyName  = $(!NTN_ServiceBase)
  27. DosDevices      = "SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices"
  28. [GeneralConstants]
  29. UtilityInf       = "UTILITY.INF"
  30. subroutineinf    = "SUBROUTN.INF"
  31. SoftwareType     = "transport"
  32. Exit_Code        = 0
  33. BillboardVisible = 0
  34. from      = ""
  35. to        = ""
  36. ExitCodeOk     = 0
  37. ExitCodeCancel = 1
  38. ExitCodeFatal  = 2
  39. KeyNull         = ""
  40. MAXIMUM_ALLOWED   = 33554432
  41. RegistryErrorIndex = NO_ERROR
  42. KeyProduct      = ""
  43. KeyParameters   = ""
  44. TRUE            = 1
  45. FALSE           = 0
  46. NoTitle         = 0
  47. ExitState   = "Active"
  48. OldVersionExisted = $(FALSE)
  49. DriverPath      = $(!STF_NTPATH)\drivers
  50. [date]
  51.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  52. [Identify]
  53.     read-syms Identification
  54.     set Status     = STATUS_SUCCESSFUL
  55.     set Identifier = $(OptionType)
  56.     set Media      = #("Source Media Descriptions", 1, 1)
  57.     Return $(Status) $(Identifier) $(Media)
  58. [ReturnOptions]
  59.     set Status        = STATUS_FAILED
  60.     set OptionList     = {}
  61.     set OptionTextList = {}
  62.     set LanguageList = ^(LanguagesSupported, 1)
  63.     Ifcontains(i) $($0) in $(LanguageList)
  64.         goto returnoptions
  65.     else
  66.         set Status = STATUS_NOLANGUAGE
  67.         goto finish_ReturnOptions
  68.     endif
  69. returnoptions = +
  70.     set OptionList     = ^(Options, 1)
  71.     set OptionTextList = ^(OptionsText$($0), 1)
  72.     set Status         = STATUS_SUCCESSFUL
  73. finish_ReturnOptions = +
  74.     Return $(Status) $(OptionList) $(OptionTextList)
  75. [InstallOption]
  76.     set Option   = $($1)
  77.     set SrcDir   = $($2)
  78.     set AddCopy  = $($3)
  79.     set DoCopy   = $($4)
  80.     set DoConfig = $($5)
  81.     set LanguageList = ^(LanguagesSupported, 1)
  82.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  83.         Return STATUS_NOLANGUAGE
  84.     endif
  85.     set-subst LF = "\n"
  86.     read-syms GeneralConstants
  87.     read-syms FileConstants
  88.     read-syms DialogConstants$(!STF_LANGUAGE)
  89.     ifstr(i) $(!NTN_Origination) == "NCPA"
  90.         set Continue = $(OK)
  91.     endif
  92.     read-syms FileConstants$(!STF_LANGUAGE)
  93.     detect date
  94.     set-title  $(FunctionTitle)
  95.     set to   = Begin
  96.     set from = Begin
  97.     set CommonStatus = STATUS_SUCCESSFUL
  98.     EndWait
  99. Begin = +
  100.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  101.         set StartLabel = removeadapter
  102.         set OEM_ABANDON_SOFTWARE = {+
  103.             $(ProductSTREAMSName)}
  104.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  105.         set StartLabel = UpgradeSoftware
  106.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  107.         Debug-Output "STREAMS.INF: Cannot configure the driver software."
  108.         Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  109.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  110.             Debug-Output "STREAMS.INF: ShellCode error: cannot get an error string."
  111.             goto ShellCodeError
  112.         endif
  113.         set Error = $($R0)
  114.         set from = end
  115.         set to = end
  116.         goto nonfatalinfo
  117.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  118.         set StartLabel = bindingadapter
  119.     else
  120.         set StartLabel = installadapter
  121.         set OEM_ABANDON_SOFTWARE = {}
  122.         set OEM_ABANDON_OPTIONS = {}
  123.     endif
  124.     set from = $(fatal)
  125.     set to = $(fatal)
  126.     goto $(StartLabel)
  127. installadapter = +
  128.     OpenRegKey $(!REG_H_LOCAL) "" $(STREAMS_PATH) $(MAXIMUM_ALLOWED) KeyProduct
  129.     Ifstr $(KeyProduct) != $(KeyNull)
  130.         CloseRegKey $(KeyProduct)
  131.         set Error = $(StreamsAlreadyInstalled)
  132.         set from = end
  133.         set to = end
  134.         goto nonfatalinfo
  135.     endif
  136.     set OEM_ABANDON_ON  = TRUE
  137.     read-syms Billboard1$(!STF_LANGUAGE)
  138.     Shell "subroutn.inf" PushBillboard NETSTATUSDLG $(Status)
  139.     Set BillboardVisible = 1
  140.     Set DoStreams   = FALSE
  141.     Ifstr(i) $(Option) == STREAMS
  142.         Set DoStreams = TRUE
  143.     Else
  144.         Debug-Output "STREAMS.INF: Unrecognized option"
  145.     Endif
  146.     StartWait
  147.     Ifstr(i) $(DoStreams) == TRUE
  148.         Set ThisOption = STREAMS
  149.         Set OEM_ABANDON_SOFTWARE = >($(OEM_ABANDON_SOFTWARE), $(Product$(ThisOption)Name))
  150.         Debug-Output "OEMNXPST.INF: installing STREAMS..."
  151.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer),+
  152.             $(Product$(ThisOption)Name),+
  153.             $(Product$(ThisOption)Name),+
  154.             $(Product$(ThisOption)DisplayName), $(STF_CONTEXTINFNAME),+
  155.             $(Product$(ThisOption)ImagePath),+
  156.             $(Product$(ThisOption)SvcType), "", {}, "",+
  157.             $(NetEventDLL)
  158.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  159.             Debug-Output "OEMNXPST.INF: ShellCode error"
  160.             goto ShellCodeError
  161.         endif
  162.         set RegistryErrorIndex = $($R0)
  163.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  164.             EndWait
  165.             Debug-Output "OEMNXPST.INF: Registry error: add software components"
  166.             CloseRegKey $($R1)
  167.             CloseRegKey $($R2)
  168.             CloseRegKey $($R3)
  169.             CloseRegKey $($R4)
  170.             CloseRegKey $($R5)
  171.             goto fatalregistry
  172.         endif
  173.         Set STREAMSProductKey   = $($R1)
  174.         Set STREAMSNetRuleKey   = $($R2)
  175.         Set STREAMSServiceKey   = $($R3)
  176.         Set STREAMSParameterKey = $($R4)
  177.         Set STREAMSLinkageKey   = $($R5)
  178.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  179.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(Product$(ThisOption)Title)},+
  180.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(Product$(ThisOption)Description)},+
  181.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(Product$(ThisOption)Name)},+
  182.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  183.         Shell  $(UtilityInf), AddValueList, $(STREAMSProductKey), $(NewValueList)
  184.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  185.             Debug-Output "OEMNXPST.INF: ShellCode error."
  186.             goto ShellCodeError
  187.         endif
  188.         set RegistryErrorIndex = $($R0)
  189.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  190.             EndWait
  191.             Debug-Output "OEMNXPST.INF: Registry error: add value list."
  192.             CloseRegKey $(STREAMSProductKey)
  193.             CloseRegKey $(STREAMSNetRuleKey)
  194.             CloseRegKey $(STREAMSServiceKey)
  195.             CloseRegKey $(STREAMSParameterKey)
  196.             CloseRegKey $(STREAMSLinkageKey)
  197.             goto fatalregistry
  198.         endif
  199.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRule$(ThisOption)Type)},+
  200.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRule$(ThisOption)Use)},+
  201.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRule$(ThisOption)BindForm)},+
  202.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRule$(ThisOption)ClassList)},+
  203.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRule$(ThisOption)BindList)},+
  204.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(ThisOption)}}
  205.         Shell  $(UtilityInf), AddValueList, $(STREAMSNetRuleKey), $(NewValueList)
  206.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  207.             Debug-Output "OEMNXPST.INF: ShellCode error."
  208.             goto ShellCodeError
  209.         endif
  210.         set RegistryErrorIndex = $($R0)
  211.         CloseRegKey $(STREAMSProductKey)
  212.         CloseRegKey $(STREAMSNetRuleKey)
  213.         CloseRegKey $(STREAMSServiceKey)
  214.         CloseRegKey $(STREAMSParameterKey)
  215.         CloseRegKey $(STREAMSLinkageKey)
  216.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  217.             EndWait
  218.             Debug-Output "OEMNXPST.INF: Registry error: add value list."
  219.             goto fatalregistry
  220.         endif
  221.     Endif
  222.     EndWait
  223.     Ifint $(BillboardVisible) != 0
  224.         Shell "subroutn.inf" PopBillboard
  225.         Set BillboardVisible = 0
  226.     Endif
  227.     goto successful
  228. configureadapter = +
  229.     goto end
  230. bindingadapter =+
  231.     goto configureadapter
  232. removeadapter = +
  233.     ForListDo  $(OEM_ABANDON_SOFTWARE)
  234.         debug-output "Remove component: "$($)
  235.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), $($)
  236.         ifstr(i) $($R0) == REF_COUNT_NOT_ZERO
  237.             set Error = $(RefCountNotZeroMsg)
  238.             set CommonStatus = STATUS_NO_EFFECT
  239.             set from = end
  240.             set to = end
  241.             goto nonfatal
  242.         endif
  243.     EndForListDo
  244.     goto end
  245. UpgradeSoftware = +
  246.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  247.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  248.         Ifstr $(KeyProduct) != $(KeyNull)
  249.             GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  250.             set Version = *($(VersionInfo), 4)
  251.             Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  252.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  253.                 Debug-Output "ShellCode error"
  254.                 goto ShellCodeError
  255.             endif
  256.             set !UG_Filename = $($R0)
  257.             ifstr(i) $(!UG_Filename) != ""
  258.                 install "Install-Update"
  259.                 ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  260.                     goto fatal
  261.                 endif
  262.             endif
  263.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  264.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  265.             ifint $(Version) != $(ProductVersion)
  266.             endif
  267.             CloseRegKey $(KeyProduct)
  268.         else
  269.             goto fatalregistry
  270.         endif
  271.     endif
  272.     goto end
  273. successful = +
  274.     goto end
  275. infomsg =+
  276.    read-syms InfoDlg
  277.    ui start "Warning"
  278.    set CommonStatus = STATUS_USERCANCEL
  279.    goto end
  280. warning = +
  281.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  282.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  283.         goto ShellCodeError
  284.     endif
  285.     ifstr(i) $($R1) == "OK"
  286.         goto $(to)
  287.     else-ifstr(i) $($R1) == "CANCEL"
  288.         goto $(from)
  289.     else
  290.         goto "end"
  291.     endif
  292. nonfatalinfo = +
  293.     Set CommonStatus = STATUS_USERCANCEL
  294.     Set Severity = STATUS
  295.     goto nonfatalmsg
  296. nonfatal = +
  297.     Set Severity = NONFATAL
  298.     goto nonfatalmsg
  299. nonfatalmsg = +
  300.     ifstr(i) $(Error) == ""
  301.         Set Severity = NONFATAL
  302.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  303.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  304.             goto ShellCodeError
  305.         endif
  306.         set Error = $($R0)
  307.     endif
  308.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  309.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  310.         goto ShellCodeError
  311.     endif
  312.     ifstr(i) $($R1) == "OK"
  313.         goto $(from)
  314.     else
  315.         goto "end"
  316.     endif
  317. fatalregistry = +
  318.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  319.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  320.         goto ShellCodeError
  321.     endif
  322.     set Error = $($R0)
  323.     goto fatal
  324. fatal = +
  325.     ifstr(i) $(Error) == ""
  326.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  327.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  328.             goto ShellCodeError
  329.         endif
  330.         set Error = $($R0)
  331.     endif
  332.     Ifint $(BillboardVisible) != 0
  333.         Shell "subroutn.inf" PopBillboard
  334.         Set BillboardVisible = 0
  335.     Endif
  336.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  337.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  338.         goto ShellCodeError
  339.     endif
  340.    goto setfailed
  341. ShellCodeError = +
  342.     set DlgType      = "MessageBox"
  343.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  344.     set STF_MB_TEXT  = $(ShellCodeErrorText) 
  345.     set STF_MB_TYPE  = 1
  346.     set STF_MB_ICON  = 3
  347.     set STF_MB_DEF   = 1
  348.     ui start "Error Message"
  349.     goto setfailed
  350. setfailed = +
  351.     set CommonStatus = STATUS_FAILED
  352.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  353.         set OEM_ABANDON_ON = FALSE
  354.         goto removeadapter
  355.     endif
  356.     goto end
  357. end = +
  358.     goto term
  359. term = +
  360.     Return $(CommonStatus)
  361. [Install-Option]
  362.     Exit
  363. [Install-Update]
  364.    set STF_VITAL        = ""
  365.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  366.    AddSectionFilesToCopyList Files-STREAMS $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  367.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  368.    Debug-Output "OEMNXPST.INF: *** CopyFilesInCopyList [2]"
  369.    CopyFilesInCopyList
  370.    Exit
  371. [Source Media Descriptions]
  372.     1    = "Windows NT Advanced Server Setup Disk #1"   , TAGFILE = disk1
  373.     2    = "Windows NT Advanced Server Setup Disk #2"   , TAGFILE = disk2
  374.     3    = "Windows NT Advanced Server Setup Disk #3"   , TAGFILE = disk3
  375.     4    = "Windows NT Advanced Server Setup Disk #4"   , TAGFILE = disk4
  376.     5    = "Windows NT Advanced Server Setup Disk #5"   , TAGFILE = disk5
  377.     6    = "Windows NT Advanced Server Setup Disk #6"   , TAGFILE = disk6
  378.     7    = "Windows NT Advanced Server Setup Disk #7"   , TAGFILE = disk7
  379.     8    = "Windows NT Advanced Server Setup Disk #8"   , TAGFILE = disk8
  380.     9    = "Windows NT Advanced Server Setup Disk #9"   , TAGFILE = disk9
  381.     10    = "Windows NT Advanced Server Setup Disk #10"  , TAGFILE = disk10
  382.     11    = "Windows NT Advanced Server Setup Disk #11"  , TAGFILE = disk11
  383.     12    = "Windows NT Advanced Server Setup Disk #12"  , TAGFILE = disk12
  384.     13    = "Windows NT Advanced Server Setup Disk #13"  , TAGFILE = disk13
  385.     14    = "Windows NT Advanced Server Setup Disk #14"  , TAGFILE = disk14
  386.     15    = "Windows NT Advanced Server Setup Disk #15"  , TAGFILE = disk15
  387.     16    = "Windows NT Advanced Server Setup Disk #16"  , TAGFILE = disk16
  388.     17    = "Windows NT Advanced Server Setup Disk #17"  , TAGFILE = disk17
  389.     18    = "Windows NT Advanced Server Setup Disk #18"  , TAGFILE = disk18
  390.     19    = "Windows NT Advanced Server Setup Disk #19"  , TAGFILE = disk19
  391.     20    = "Windows NT Advanced Server Setup Disk #20"  , TAGFILE = disk20
  392.     21    = "Windows NT Advanced Server Setup Disk #21"  , TAGFILE = disk21
  393.     22    = "Windows NT Advanced Server Setup Disk #22"  , TAGFILE = disk22
  394.     23    = "Windows NT Advanced Server Setup Disk #23"  , TAGFILE = disk23
  395.     24    = "Windows NT Advanced Server Setup Disk #24"  , TAGFILE = disk24
  396.     25    = "Windows NT Advanced Server Setup Disk #25"  , TAGFILE = disk25
  397.     26    = "Windows NT Advanced Server Setup Disk #26"  , TAGFILE = disk26
  398.     27    = "Windows NT Advanced Server Setup Disk #27"  , TAGFILE = disk27
  399.     28    = "Windows NT Advanced Server Setup Disk #28"  , TAGFILE = disk28
  400.     29    = "Windows NT Advanced Server Setup Disk #29"  , TAGFILE = disk29
  401. [ProductType]
  402. STF_PRODUCT  = LanmanNT
  403. STF_PLATFORM = I386
  404. [Files-Inf]
  405. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  406. [Files-STREAMS]
  407. 18,STREAMS.SYS , SIZE=149504 , NODELETESOURCE
  408. [LanguagesSupported]
  409.     ENG
  410. [OptionsTextENG]
  411.     STREAMS = "Streams Environment"
  412. [FileConstantsENG]
  413. ProCaption   = "Windows NT Setup"
  414. ProCancel    = "Cancel"
  415. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  416.                "Are you sure you want to cancel copying files?"
  417. ProCancelCap = "Network Setup Message"
  418. ProText1     = "Copying:"
  419. ProText2     = "To:"
  420. ProductSTREAMSDescription       = "Streams System Driver"
  421. ProductSTREAMSDisplayName       = "Streams Environment"
  422. ProductSTREAMSTitle     = "Streams Environment"
  423. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  424. ShellCodeErrorText      = "Shell Code Error."
  425. StreamsAlreadyInstalled  = "Streams Environment is already installed in the system."
  426. RefCountNotZeroMsg = "The Streams Environment is currently in use by other network protocols. Please removed all streams-based protocols first."
  427. [DialogConstantsENG]
  428. Help        = "&Help"
  429. Exit        = "Cancel"
  430. OK          = "OK"
  431. HelpContext = ""
  432. Continue    = "Continue"
  433. Cancel      = "Cancel"
  434. [FileDependentDlgENG]
  435. [Billboard1ENG]
  436. Status = "Installing STREAMS and related services..."
  437.  
  438.  
  439.  
  440.