home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 February / VPR9602A.ISO / i386 / oemnxpsn.in_ / oemnxpsn.inf
INI File  |  1995-10-25  |  24KB  |  547 lines

  1. [Identification]
  2.     OptionType = NetTcpip
  3. [Options]
  4.     SNMP
  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. SNMPEXE         = "%SystemRoot%\System32\snmp.exe"
  13. Manufacturer    = "Microsoft"
  14. ProductMajorVersion     = "3"
  15. ProductMinorVersion     = "51"
  16. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  17. ProductSoftwareName     = "SNMP"
  18. ProductSoftwareImagePath = $(SNMPEXE)
  19. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  20. SystemService   = $(!NTN_ServiceBase)
  21. LinkageKeyName  = $(!NTN_ServiceBase)"\SNMP\Linkage"
  22. ServiceSNMPKeyName = $(!NTN_ServiceBase)"\SNMP"
  23. ServiceKeyName  = $(!NTN_ServiceBase)
  24. TCPIPKeyName    = $(!NTN_ServiceBase)"\TCPIP"
  25. SNMPProxyName   = "SNMPProxy"
  26. [GeneralConstants]
  27. from      = ""
  28. to        = ""
  29. ExitCodeOk     = 0
  30. ExitCodeCancel = 1
  31. ExitCodeFatal  = 2
  32. KeyNull         = ""
  33. MAXIMUM_ALLOWED   = 33554432
  34. RegistryErrorIndex = NO_ERROR
  35. KeyProduct      = ""
  36. KeyParameters   = ""
  37. TRUE            = 1
  38. FALSE           = 0
  39. NoTitle            = 0
  40. ExitState   = "Active"
  41. OldVersionExisted = $(FALSE)
  42. DriverPath      = $(!STF_NTPATH)\drivers
  43. [date]
  44.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  45. [Identify]
  46.     read-syms Identification
  47.     set Status     = STATUS_SUCCESSFUL
  48.     set Identifier = $(OptionType)
  49.     set Media      = #("Source Media Descriptions", 1, 1)
  50.     Return $(Status) $(Identifier) $(Media)
  51. [ReturnOptions]
  52.     set Status        = STATUS_FAILED
  53.     set OptionList     = {}
  54.     set OptionTextList = {}
  55.     set LanguageList = ^(LanguagesSupported, 1)
  56.     Ifcontains(i) $($0) in $(LanguageList)
  57.         goto returnoptions
  58.     else
  59.         set Status = STATUS_NOLANGUAGE
  60.         goto finish_ReturnOptions
  61.     endif
  62. returnoptions = +
  63.     set OptionList     = ^(Options, 1)
  64.     set OptionTextList = ^(OptionsText$($0), 1)
  65.     set Status         = STATUS_SUCCESSFUL
  66. finish_ReturnOptions = +
  67.     Return $(Status) $(OptionList) $(OptionTextList)
  68. [InstallOption]
  69.     set Option   = $($1)
  70.     set SrcDir   = $($2)
  71.     set AddCopy  = $($3)
  72.     set DoCopy   = $($4)
  73.     set DoConfig = $($5)
  74.     set LanguageList = ^(LanguagesSupported, 1)
  75.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  76.         Return STATUS_NOLANGUAGE
  77.     endif
  78.     Debug-Output "OEMNXPSN.INF: STF_CWDIR is: "$(!STF_CWDIR)
  79.     Debug-Output "OEMNXPSN.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  80.     set-subst LF = "\n"
  81.     read-syms GeneralConstants
  82.     read-syms FileConstants
  83.     read-syms DialogConstants$(!STF_LANGUAGE)
  84.     ifstr(i) $(!NTN_Origination) == "NCPA"
  85.         set Continue = $(OK)
  86.     endif
  87.     read-syms FileConstants$(!STF_LANGUAGE)
  88.     detect date
  89.     set-title  $(FunctionTitle)
  90.     set to   = Begin
  91.     set from = Begin
  92.     set CommonStatus = STATUS_SUCCESSFUL
  93.     LoadLibrary "x" $(!STF_CWDDIR)\tcpcfg.dll !TCPCFG_HANDLE
  94.     EndWait
  95. Begin = +
  96.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  97.         set StartLabel = removeadapter
  98.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  99.         set StartLabel = UpgradeSoftware
  100.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  101.         set StartLabel = bindingadapter
  102.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  103.         set StartLabel = configureadapter
  104.     else
  105.         set StartLabel = installadapter
  106.     endif
  107.     set from = $(fatal)
  108.     set to = $(fatal)
  109.     goto $(StartLabel)
  110. installadapter = +
  111.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  112.     Ifstr $(KeyProduct) != $(KeyNull)
  113.         CloseRegKey $(KeyProduct)
  114.         Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  115.             $(ProductVersion)
  116.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  117.             Debug-Output "ShellCode error: cannot get an error string."
  118.             goto ShellCodeError
  119.         endif
  120.         goto end
  121.     endif
  122.     OpenRegKey $(!REG_H_LOCAL) "" $(TCPIPKeyName) $(MAXIMUM_ALLOWED) TCPIPKey
  123.     Ifstr $(TCPIPKey) == $(KeyNull)
  124.         set RegistryErrorIndex = TCPIP_NONEXIST_ERROR
  125.         goto fatalregistry
  126.     endif
  127.     CloseRegKey $(TCPIPKey)
  128.     StartWait
  129.     ifstr(i) $(OldVersionExisted) == $(FALSE)
  130.         install "Install-Option"
  131.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  132.            Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  133.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  134.                goto ShellCodeError
  135.            endif
  136.            set Error = $($R0)
  137.            goto fatal
  138.         endif
  139.         set OEM_ABANDON_ON = TRUE
  140.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  141.             $(ProductSoftwareName), $(ProductSoftwareName),+
  142.             $(ProductSoftwareDisplayName), +
  143.             $(STF_CONTEXTINFNAME), $(ProductSoftwareImagePath), "serviceauto", "",+
  144.             {"Tcpip", "EventLog"}, "", $(SNMPEXE)
  145.         Set SoftwareProductKey = $($R1)
  146.         Set SoftwareNetRuleKey = $($R2)
  147.         Set SoftwareServiceKey = $($R3)
  148.         Set SoftwareParameterKey = $($R4)
  149.         Set SoftLinkageKey      = $($R5)
  150.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  151.            Debug-Output "ShellCode error"
  152.            goto ShellCodeError
  153.         endif
  154.         set RegistryErrorIndex = $($R0)
  155.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  156.            EndWait
  157.            Debug-Output "Registry error: add software components"
  158.            CloseRegKey $(SoftwareProductKey)
  159.            CloseRegKey $(SoftwareNetRuleKey)
  160.            CloseRegKey $(SoftwareServiceKey)
  161.            CloseRegKey $(SoftwareParameterKey)
  162.            CloseRegKey $(SoftLinkageKey)
  163.            CloseRegKey $(KeyParameters)
  164.            goto fatalregistry
  165.         endif
  166.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  167.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  168.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  169.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  170.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  171.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  172.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  173.         Shell $(UtilityInf), AddValueList, $(SoftwareProductKey), $(NewValueList)
  174.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  175.             Debug-Output "ShellCode error."
  176.             goto ShellCodeError
  177.         endif
  178.         set RegistryErrorIndex = $($R0)
  179.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  180.             EndWait
  181.             Debug-Output "Resgitry error: add value list."
  182.             CloseRegKey $(SoftwareProductKey)
  183.             CloseRegKey $(SoftwareNetRuleKey)
  184.             CloseRegKey $(SoftwareServiceKey)
  185.             CloseRegKey $(SoftLinkageKey)
  186.             CloseRegKey $(SoftwareParameterKey)
  187.             goto fatalregistry
  188.         endif
  189.         set NewValueList = {{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  190.         Shell  $(UtilityInf), AddValueList, $(SoftwareNetRuleKey), $(NewValueList)
  191.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  192.             Debug-Output "ShellCode error."
  193.             goto ShellCodeError
  194.         endif
  195.         set RegistryErrorIndex = $($R0)
  196.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  197.             EndWait
  198.             Debug-Output "Resgitry error: add value list."
  199.             CloseRegKey $(SoftwareProductKey)
  200.             CloseRegKey $(SoftwareNetRuleKey)
  201.             CloseRegKey $(SoftwareServiceKey)
  202.             CloseRegKey $(SoftwareParameterKey)
  203.             CloseRegKey $(SoftLinkageKey)
  204.             goto fatalregistry
  205.         endif
  206.         CreateRegKey $(SoftwareParameterKey) {"EnableAuthenticationTraps",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypesSubkey
  207.         Shell $(UtilityInf) AddValueList, $(KeyTypesSubkey), +
  208.             {{"switch", $(NoTitle), $(!REG_VT_DWORD), "1"}}
  209.         CloseRegKey $(KeyTypesSubkey)
  210.         CreateRegKey $(SoftwareParameterKey) {"TrapConfiguration",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypesSubkey
  211.         CloseRegKey $(KeyTypesSubkey)
  212.         CreateRegKey $(SoftwareParameterKey) {"PermittedManagers",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypesSubkey
  213.         CloseRegKey $(KeyTypesSubkey)
  214.         CreateRegKey $(SoftwareParameterKey) {"ValidCommunities",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypesSubkey
  215.         Shell $(UtilityInf) AddValueList, $(KeyTypesSubkey), +
  216.             {{"1", $(NoTitle), $(!REG_VT_SZ), "public"}}
  217.         CloseRegKey $(KeyTypesSubkey)
  218.         CreateRegKey $(SoftwareParameterKey) {"RFC1156Agent",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypesSubkey
  219.         Shell $(UtilityInf) AddValueList, $(KeyTypesSubkey), +
  220.             {{"sysContact", $(NoTitle), $(!REG_VT_SZ), ""},+
  221.              {"sysLocation", $(NoTitle), $(!REG_VT_SZ), ""},+
  222.              {"sysServices", $(NoTitle), $(!REG_VT_DWORD), 76}}
  223.         CloseRegKey $(KeyTypesSubkey)
  224.         CreateRegKey $(SoftwareParameterKey) {"ExtensionAgents",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypesSubkey
  225.         Shell $(UtilityInf) AddValueList, $(KeyTypesSubkey), +
  226.             {{"1", $(NoTitle), $(!REG_VT_SZ), "SOFTWARE\Microsoft\LANManagerMIB2Agent\CurrentVersion"}, +
  227.              {"2", $(NoTitle), $(!REG_VT_SZ), "SOFTWARE\Microsoft\RFC1156Agent\CurrentVersion"} +
  228.              }
  229.         CloseRegKey $(KeyTypesSubkey)
  230.         CloseRegKey $(SoftwareProductKey)
  231.         CloseRegKey $(SoftwareNetRuleKey)
  232.         CloseRegKey $(SoftwareServiceKey)
  233.         CloseRegKey $(SoftwareParameterKey)
  234.         CloseRegKey $(SoftLinkageKey)
  235.         OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft" $(MAXIMUM_ALLOWED) MicrosoftKey
  236.         CreateRegKey $(MicrosoftKey) {"RFC1156Agent",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypes
  237.         CreateRegKey $(KeyTypes) {"CurrentVersion",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypesSubkey
  238.         Shell $(UtilityInf) AddValueList, $(KeyTypesSubkey), +
  239.             {{"Pathname", $(NoTitle), $(!REG_VT_EXPAND_SZ), "%SystemRoot%\System32\inetmib1.dll"}}
  240.         CloseRegKey $(KeyTypesSubkey)
  241.         CloseRegKey $(KeyTypes)
  242.         CreateRegKey $(MicrosoftKey) {"LANManagerMIB2Agent",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypes
  243.         CreateRegKey $(KeyTypes) {"CurrentVersion",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypesSubkey
  244.         Shell $(UtilityInf) AddValueList, $(KeyTypesSubkey), +
  245.             {{"Pathname", $(NoTitle), $(!REG_VT_EXPAND_SZ), "%SystemRoot%\System32\lmmib2.dll"}}
  246.         CloseRegKey $(KeyTypesSubkey)
  247.         CloseRegKey $(KeyTypes)
  248.         Shell "" InstallMicrosoftAgent "WINS" "WinsMibAgent" "%SystemRoot%\System32\winsmib.dll"
  249.         Shell "" InstallMicrosoftAgent "DHCPServer" "DhcpMibAgent" "%SystemRoot%\System32\dhcpmib.dll"
  250.     endif
  251.     EndWait
  252.     set FLibraryErrCtl = 1
  253.     LibraryProcedure Result, $(!TCPCFG_HANDLE), CPlSnmp, $(!STF_HWND)
  254.     ifint $(Result) == 0
  255.         set CommonStatus = STATUS_REBOOT
  256.     else-ifint $(Result) == 1
  257.         set CommonStatus = STATUS_REBOOT
  258.     else
  259.         set RegistryErrorIndex = $(Result)
  260.         goto fatalregistry
  261.     endif
  262.     Shell $(UtilityInf) SetMasterComponent Microsoft Tcpip $(STF_CONTEXTINFNAME) SNMP
  263.     Goto successful
  264. configureadapter = +
  265.     set FLibraryErrCtl = 1
  266.     LibraryProcedure Result, $(!TCPCFG_HANDLE), CPlSnmp, $(!STF_HWND)
  267.     ifint $(Result) == 0
  268.         set CommonStatus = STATUS_NO_EFFECT
  269.     else-ifint $(Result) == 1
  270.         set CommonStatus = STATUS_NO_EFFECT
  271.     else
  272.         set RegistryErrorIndex = $(Result)
  273.         goto fatalregistry
  274.     endif
  275.     goto successful
  276. bindingadapter =+
  277.     set Error = "Binding: Sorry, not yet implemented."
  278.     goto fatal
  279. removeadapter = +
  280.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  281.         $(ProductSoftwareName)
  282.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  283.         Debug-Output "ShellCode error"
  284.         goto ShellCodeError
  285.     endif
  286.     set RegistryErrorIndex = $($R0)
  287.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  288.         goto fatalregistry
  289.     endif
  290.     OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft" $(MAXIMUM_ALLOWED) MicrosoftKey
  291.     DeleteRegTree $(MicrosoftKey) "RFC1156Agent"
  292.     DeleteRegTree $(MicrosoftKey) "LANManagerMIB2Agent"
  293.     DeleteRegTree $(MicrosoftKey) "LANManagerAlerts2Agent"
  294.     CloseRegKey $(MicrosoftKey)
  295.     goto end
  296. UpgradeSoftware = +
  297.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  298.     Ifstr $(KeyProduct) != $(KeyNull)
  299.         install "Install-Update"
  300.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  301.             goto fatal
  302.         endif
  303.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  304.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  305.         CloseRegKey $(KeyProduct)
  306.     else
  307.         goto fatalregistry
  308.     endif
  309.     goto end
  310. successful = +
  311.     goto end
  312. warning = +
  313.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  314.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  315.         goto ShellCodeError
  316.     endif
  317.     ifstr(i) $($R1) == "OK"
  318.         goto $(to)
  319.     else-ifstr(i) $($R1) == "CANCEL"
  320.         goto $(from)
  321.     else
  322.         goto "end"
  323.     endif
  324. nonfatal = +
  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.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(Error)
  333.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  334.         goto ShellCodeError
  335.     endif
  336.     ifstr(i) $($R1) == "OK"
  337.         goto $(from)
  338.     else
  339.         goto "end"
  340.     endif
  341. fatalregistry = +
  342.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  343.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  344.         goto ShellCodeError
  345.     endif
  346.     set Error = $($R0)
  347.     goto fatal
  348. fatal = +
  349.     ifstr(i) $(Error) == ""
  350.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  351.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  352.             goto ShellCodeError
  353.         endif
  354.         set Error = $($R0)
  355.     endif
  356.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  357.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  358.         goto ShellCodeError
  359.     endif
  360.     goto setfailed
  361. ShellCodeError = +
  362.     set DlgType      = "MessageBox"
  363.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  364.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  365.     set STF_MB_TYPE  = 1
  366.     set STF_MB_ICON  = 3
  367.     set STF_MB_DEF   = 1
  368.     ui start "Error Message"
  369.     goto setfailed
  370. setfailed = +
  371.     set CommonStatus = STATUS_FAILED
  372.     Ifint $(RegistryErrorIndex) == TCPIP_NONEXIST_ERROR
  373.         set CommonStatus = STATUS_USERCANCEL
  374.     endif
  375.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  376.         set OEM_ABANDON_ON = FALSE
  377.         goto removeadapter
  378.     endif
  379.     goto end
  380. end = +
  381.     freeLibrary $(!TCPCFG_HANDLE)
  382.     goto term
  383. term = +
  384.     Return $(CommonStatus)
  385. [GetFilesSize]
  386.     set FileSizeList = ^(Files-SNMP,3)
  387.     set TotalSize = 0
  388.     ForListDo $(FileSizeList)
  389.         Split-String $($) "=" SplitString
  390.         set Size = *($(SplitString),3)
  391.         set-add TotalSize = $(TotalSize) $(Size)
  392.     EndForListDo
  393.     set-div SizeInK = $(TotalSize) 1024
  394.     return $(SizeInK)
  395. [Install-Option]
  396.     set STF_VITAL = ""
  397.     ifstr(i) $(AddCopy) == "YES"
  398.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)
  399.     endif
  400.     ifstr(i) $(DoCopy) == "YES"
  401.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  402.        CopyFilesInCopyList
  403.     endif
  404.     ifstr(i) $(DoConfig) == "YES"
  405.     endif
  406.     Exit
  407. [Install-Update]
  408.    set STF_VITAL        = ""
  409.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  410.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)
  411.    exit
  412. [InstallMicrosoftAgent]
  413.     read-syms GeneralConstants
  414.     read-syms FileConstants
  415.     set AServiceName = $($0)
  416.     set AAgentName   = $($1)
  417.     set APath        = $($2)
  418.     OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Services\SNMP" $(MAXIMUM_ALLOWED) SNMPKey
  419.     ifstr(i) $(SNMPKey) != ""
  420.         CloseRegKey $(SNMPKey)
  421.         OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Services\"$(AServiceName) $(MAXIMUM_ALLOWED) ServiceKey
  422.         ifstr(i) $(ServiceKey) != ""
  423.             CloseRegKey $(ServiceKey)
  424.             OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft" $(MAXIMUM_ALLOWED) MicrosoftKey
  425.             CreateRegKey $(MicrosoftKey) {$(AAgentName),$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypes
  426.             CreateRegKey $(KeyTypes) {"CurrentVersion",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypesSubkey
  427.             Shell $(UtilityInf) AddValueList, $(KeyTypesSubkey), +
  428.                 {{"Pathname", $(NoTitle), $(!REG_VT_EXPAND_SZ), $(APath)}}
  429.             CloseRegKey $(KeyTypesSubkey)
  430.             CloseRegKey $(KeyTypes)
  431.             CloseRegKey $(MicrosoftKey)
  432.             OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Services\SNMP\Parameters" $(MAXIMUM_ALLOWED) SNMPParmKey
  433.             CreateRegKey $(SNMPParmKey) {$(AAgentName),$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypesSubkey
  434.             CloseRegKey $(KeyTypesSubkey)
  435.             CloseRegKey $(SNMPParmKey)
  436.             OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Services\SNMP\Parameters\ExtensionAgents" $(MAXIMUM_ALLOWED) KeyTypesSubkey
  437.             EnumRegValue $(KeyTypesSubkey) AgentsList
  438.             set Pos = 1
  439.             ForListDo $(AgentsList)
  440.                 set-add Pos = $(Pos), 1
  441.             EndForListDo
  442.             Shell $(UtilityInf) AddValueList, $(KeyTypesSubkey), +
  443.                 {{$(Pos), $(NoTitle), $(!REG_VT_SZ), "SOFTWARE\Microsoft\"$(AAgentName)"\CurrentVersion"}}
  444.             CloseRegKey $(KeyTypesSubkey)
  445.         endif
  446.     endif
  447.     return
  448. [RemoveMicrosoftAgent]
  449.     read-syms GeneralConstants
  450.     read-syms FileConstants
  451.     set AAgentName   = $($0)
  452.     OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Services\SNMP" $(MAXIMUM_ALLOWED) SNMPKey
  453.     ifstr(i) $(SNMPKey) != ""
  454.         CloseRegKey $(SNMPKey)
  455.         OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft" $(MAXIMUM_ALLOWED) MicrosoftKey
  456.         DeleteRegTree $(MicrosoftKey) $(AAgentName)
  457.         CloseRegKey $(MicorosoftKey)
  458.         OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Services\SNMP\Parameters" $(MAXIMUM_ALLOWED) SNMPParmKey
  459.         DeleteRegKey $(SNMPParmKey) $(AAgentName)
  460.         OpenRegKey $(SNMPParmKey) "" "ExtensionAgents" $(MAXIMUM_ALLOWED) AgentKey
  461.         EnumRegValue $(AgentKey) AgentsList
  462.         ForListDo $(AgentsList)
  463.             Split-String *($($),4), "\", AgentInfo
  464.             ifContains(i) $(AAgentName) in $(AgentInfo)
  465.                 DeleteRegValue $(AgentKey) *($($),1)
  466.             endif
  467.         EndForListDo
  468.         CloseRegKey $(AgentKey)
  469.         CloseRegKey $(SNMPParmKey)
  470.     endif
  471.     return
  472. [Source Media Descriptions]
  473.      1 = "Windows NT Server CD-ROM または セットアップ ディスク #5" , TAGFILE = disk1.s
  474.      2 = "Windows NT Server CD-ROM または セットアップ ディスク #6" , TAGFILE = disk2.s
  475.      3 = "Windows NT Server CD-ROM または セットアップ ディスク #7" , TAGFILE = disk3.s
  476.      4 = "Windows NT Server CD-ROM または セットアップ ディスク #8" , TAGFILE = disk4.s
  477.      5 = "Windows NT Server CD-ROM または セットアップ ディスク #9" , TAGFILE = disk5.s
  478.      6 = "Windows NT Server CD-ROM または セットアップ ディスク #10" , TAGFILE = disk6.s
  479.      7 = "Windows NT Server CD-ROM または セットアップ ディスク #11", TAGFILE = disk7.s
  480.      8 = "Windows NT Server CD-ROM または セットアップ ディスク #12", TAGFILE = disk8.s
  481.      9 = "Windows NT Server CD-ROM または セットアップ ディスク #13", TAGFILE = disk9.s
  482.     10 = "Windows NT Server CD-ROM または セットアップ ディスク #14", TAGFILE = disk10.s
  483.     11 = "Windows NT Server CD-ROM または セットアップ ディスク #15", TAGFILE = disk11.s
  484.     12 = "Windows NT Server CD-ROM または セットアップ ディスク #16", TAGFILE = disk12.s
  485.     13 = "Windows NT Server CD-ROM または セットアップ ディスク #17", TAGFILE = disk13.s
  486.     14 = "Windows NT Server CD-ROM または セットアップ ディスク #18", TAGFILE = disk14.s
  487.     15 = "Windows NT Server CD-ROM または セットアップ ディスク #19", TAGFILE = disk15.s
  488.     16 = "Windows NT Server CD-ROM または セットアップ ディスク #20", TAGFILE = disk16.s
  489.     17 = "Windows NT Server CD-ROM または セットアップ ディスク #21", TAGFILE = disk17.s
  490.     18 = "Windows NT Server CD-ROM または セットアップ ディスク #22", TAGFILE = disk18.s
  491.     19 = "Windows NT Server CD-ROM または セットアップ ディスク #23", TAGFILE = disk19.s
  492.     20 = "Windows NT Server CD-ROM または セットアップ ディスク #24", TAGFILE = disk20.s
  493.     21 = "Windows NT Server CD-ROM または セットアップ ディスク #25", TAGFILE = disk21.s
  494.     22 = "Windows NT Server CD-ROM または セットアップ ディスク #26", TAGFILE = disk22.s
  495.     23 = "Windows NT Server CD-ROM または セットアップ ディスク #27", TAGFILE = disk23.s
  496.     24 = "Windows NT Server CD-ROM または セットアップ ディスク #28", TAGFILE = disk24.s
  497.     25 = "Windows NT Server CD-ROM または セットアップ ディスク #29", TAGFILE = disk25.s
  498.     26 = "Windows NT Server CD-ROM または セットアップ ディスク #30", TAGFILE = disk26.s
  499.     27 = "Windows NT Server CD-ROM または セットアップ ディスク #31", TAGFILE = disk27.s
  500.     28 = "Windows NT Server CD-ROM または セットアップ ディスク #32", TAGFILE = disk28.s
  501.     29 = "Windows NT Server CD-ROM または セットアップ ディスク #33", TAGFILE = disk29.s
  502.     30 = "Windows NT Server CD-ROM または セットアップ ディスク #34", TAGFILE = disk30.s
  503.     50 = "Windows NT Server CD-ROM または リモートブート ディスク #1", TAGFILE = disk50.s
  504.     51 = "Windows NT Server CD-ROM または リモートブート ディスク #2", TAGFILE = disk51.s
  505. [Signature]
  506.     FileType = MICROSOFT_FILE
  507. [GetSignature]
  508.     read-syms Signature
  509.     return $(FileType)
  510. [ProductType]
  511. STF_PRODUCT  = LanmanNT
  512. STF_PLATFORM = I386
  513. [Files-Inf]
  514. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  515. [Files-SNMP]
  516. 17, MIB.BIN, SIZE=14336
  517. 26, SNMP.EXE, SIZE=38912
  518. 26,LMMIB2.DLL , SIZE=40960
  519. 17,MGMTAPI.DLL , SIZE=28672
  520. 17,SNMPTRAP.EXE , SIZE=5120
  521. [LanguagesSupported]
  522.     ENG
  523. [OptionsTextENG]
  524.     SNMP     = "SNMP サービス"
  525. [FileConstantsENG]
  526. ProCaption   = "Windows NT セットアップ"
  527. ProCancel    = "キャンセル"
  528. ProCancelMsg = "Windows NT ネットワークは正しく組み込まれていません。"+
  529.                "ファイルのコピーを中止しますか?"
  530. ProCancelCap = "ネットワーク セットアップ メッセージ"
  531. ProText1     = "コピー元:"
  532. ProText2     = "コピー先:"
  533. FunctionTitle   = "SNMP セットアップ"
  534. ProductSoftwareDescription      = "SNMP ネット管理サービス"
  535. ProductSoftwareDisplayName      = "SNMP Service"
  536. ProductSoftwareTitle    = "SNMP サービス"
  537. ShellCodeErrorTitle     = "エラー: "$(FunctionTitle)
  538. ShellCodeErrorText      = "シェル コード エラーです。"
  539. [DialogConstantsENG]
  540. Help        = "ヘルプ(&H)"
  541. Exit        = "キャンセル"
  542. OK          = "OK"
  543. HelpContext = ""
  544. Continue    = "続行"
  545. Cancel      = "キャンセル"
  546. [FileDependentDlgENG]
  547.