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

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