home *** CD-ROM | disk | FTP | other *** search
/ HP Vectra VL400 Image Library & Diagnostics System / ILD_VL400.iso / packages / nt4 / driver / lan / intel / iaa3201 / setup.exe / Package / DMIDisk / oemsetup.inf < prev    next >
Encoding:
INI File  |  1998-09-23  |  22.6 KB  |  662 lines

  1. [Identification]
  2.     OptionType = NetService
  3. [Options]
  4.     DMISNMP
  5. [FileConstants]
  6. UtilityInf      = "UTILITY.INF"
  7. subroutineinf   = "SUBROUTN.INF"
  8. SoftwareType    = "service"
  9. Exit_Code       = 0
  10. NIEXE         = "%SystemRoot%\System32\ni_nic.exe"
  11. SNMPTRAPEXE     = "%SystemRoot%\System32\snmptrap.exe"
  12. Manufacturer    = "Intel"
  13. ProductMajorVersion     = "2"
  14. ProductMinorVersion     = "00"
  15. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  16. ProductOpSupport     = 132 
  17. ProductSoftwareName       = "ni_nic"
  18. ProductDisplayName        = "Intel Client Instrumentation for DMI and SNMP"
  19. DmiInstrName    = "DMI Instrumentation"
  20. NiServiceName             = "ni_nic"
  21. ProductSoftwareTitle      = $(ProductSoftwareName)
  22. ProductSoftwareImagePath  = $(NIEXE)
  23. SystemService   = $(!NTN_ServiceBase)
  24. ServiceKeyName  = $(!NTN_ServiceBase)
  25. TCPIPKeyName    = $(!NTN_ServiceBase)"\TCPIP"
  26. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  27. DmiInstrVersionKey = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(DmiInstrName)"\2.0\NetworkAdapters"
  28. DmiInstrKey     =   $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(DmiInstrName)"\2.0\"
  29. MsSnmpKeyName    =   $(!NTN_ServiceBase)"\SNMP"
  30. WinSlKeyName    =   $(!NTN_ServiceBase)"\win32sl"
  31. NiKeyName    =   $(!NTN_ServiceBase)"\ni_nic"
  32.  
  33. [GeneralConstants]
  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.     Debug-Output "OEMNSVSN.INF: STF_CWDIR is: "$(!STF_CWDIR)
  86.     Debug-Output "OEMNSVSN.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  87.     set-subst LF = "\n"
  88.     read-syms GeneralConstants
  89.     read-syms FileConstants
  90.     read-syms DialogConstants$(!STF_LANGUAGE)
  91.     ifstr(i) $(!NTN_Origination) == "NCPA"
  92.         set Continue = $(OK)
  93.     endif
  94.     read-syms FileConstants$(!STF_LANGUAGE)
  95.     detect date
  96.     set-title  $(FunctionTitle)
  97.     set to   = Begin
  98.     set from = Begin
  99.     set CommonStatus = STATUS_SUCCESSFUL
  100.  
  101.     EndWait
  102. Begin = +
  103.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  104.         set StartLabel = removeadapter
  105.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  106.         set StartLabel = UpgradeSoftware
  107.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  108.         set StartLabel = bindingadapter
  109.     else-Ifstr(i) $(!NTN_InstallMode) == Configure
  110.         set StartLabel = Configureadapter
  111.     else
  112.         set StartLabel = installadapter
  113.     endif
  114.     set from = $(fatal)
  115.     set to = $(fatal)
  116.     goto $(StartLabel)
  117. installadapter = +
  118.  
  119.     StartWait
  120.  
  121. ;*******************************
  122. ;Before Loading setup.dll check for win32sl
  123. ;*******************************
  124.     OpenRegKey $(!REG_H_LOCAL) "" $(WinSlKeyName) $(MAXIMUM_ALLOWED) WinslKey
  125.     Ifstr $(WinslKey) == $(KeyNull)
  126.           goto WinslError
  127.     endif
  128.     CloseRegKey $(WinslKey)
  129.  
  130. ;******************************
  131. ;Load setup dll
  132. ;******************************
  133.  
  134.      set FLibraryErrCtl = 1
  135.      LoadLibrary ""  $(SrcDir)"\setup.dll" MY_HANDLE
  136.      EndWait
  137.  
  138. ;******************************
  139. ;Before doing anything check if there is an Old version of Instrumentation
  140. ;******************************
  141.      set FLibraryErrCtl = 1
  142.      LibraryProcedure Result, $(MY_HANDLE), CheckOldFile "ni_nic.dll" 
  143.      ifstr $(Result) == "TRUE"
  144.         FreeLibrary $(MY_HANDLE)        
  145.         goto NiError
  146.      
  147.      endif
  148.    
  149. ;******************************
  150. ; Check if MS-SNMP is installed.
  151. ;******************************
  152.  
  153.     OpenRegKey $(!REG_H_LOCAL) "" $(MsSnmpKeyName) $(MAXIMUM_ALLOWED) SnmpKey
  154.     Ifstr $(SnmpKey) == $(KeyNull)
  155.           goto SnmpError
  156.     endif
  157.     CloseRegKey $(SnmpKey)
  158.  
  159.  
  160.  
  161.  
  162. ;******************************
  163. ;check for ni_nic
  164. ;******************************
  165. ;    OpenRegKey $(!REG_H_LOCAL) "" $(NiKeyName) $(MAXIMUM_ALLOWED) NiKey
  166. ;    Ifstr $(NiKey) != $(KeyNull)
  167. ;          CloseRegKey $(NiKey)
  168. ;          goto NiError
  169. ;    endif
  170.     
  171.  
  172.  
  173. ;Proceed with the rest
  174.  
  175.    Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  176.    Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  177.        Goto ShellCodeError
  178.    Else-Ifstr(i) $($R0) == STATUS_FAILED
  179.        Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  180.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  181.            goto ShellCodeError
  182.        endif
  183.        set Error = $($R0)
  184.        Goto fatal
  185.    Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  186.        Goto successful
  187.    Endif
  188.    Set SrcDir = $($R1)
  189.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  190.  
  191. ;        Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  192. ;            $(ProductVersion)
  193. ;        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  194. ;            Debug-Output "ShellCode error: cannot get an error string."
  195. ;            goto ShellCodeError
  196. ;        endif
  197.    Ifstr $(KeyProduct) != $(KeyNull)
  198.         CloseRegKey $(KeyProduct)
  199.         goto OverInstError    
  200.    endif
  201.  
  202. ;****************************
  203. ;Stop MS-SNMP Service
  204. ;Add DMI2SNMP Extension to MS_SNMP
  205. ;Make MS-SNMP Dependend on Win32sl
  206. ;****************************
  207.  
  208.     LibraryProcedure Result, $(MY_HANDLE), ControlMyService "SNMP"  "STOP"
  209.  
  210.  
  211.  
  212.     ifstr(i) $(OldVersionExisted) == $(FALSE)
  213.         install "Install-Option"
  214.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  215.            Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  216.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  217.                goto ShellCodeError
  218.            endif
  219.            set Error = $($R0)
  220.            goto fatal
  221.         endif
  222.         set OEM_ABANDON_ON = TRUE
  223.  
  224.         StartWait        
  225.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  226.             $(ProductSoftwareName), $(NiServiceName),+
  227.             $(ProductDisplayName), +
  228.             $(STF_CONTEXTINFNAME), $(ProductSoftwareImagePath), "serviceauto", "",+
  229.             {"win32sl"}, "", $(NIEXE)
  230.         Set SoftwareProductKey = $($R1)
  231.         Set SoftwareNetRuleKey = $($R2)
  232.         Set SoftwareServiceKey = $($R3)
  233.         Set SoftwareParameterKey = $($R4)
  234.         Set SoftLinkageKey      = $($R5)
  235.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  236.            Debug-Output "ShellCode error"
  237.            goto ShellCodeError
  238.         endif
  239.         set RegistryErrorIndex = $($R0)
  240.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  241.            
  242.            Debug-Output "Registry error: add software components"
  243.            CloseRegKey $(SoftwareProductKey)
  244.            CloseRegKey $(SoftwareNetRuleKey)
  245.            CloseRegKey $(SoftwareServiceKey)
  246.            CloseRegKey $(SoftwareParameterKey)
  247.            CloseRegKey $(SoftLinkageKey)
  248.            CloseRegKey $(KeyParameters)
  249. ;goto fatalregistry
  250.            goto NiError
  251.         endif
  252.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  253.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  254.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  255.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  256.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  257.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  258.                            {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)}, +
  259.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  260.         Shell $(UtilityInf), AddValueList, $(SoftwareProductKey), $(NewValueList)
  261.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  262.             Debug-Output "ShellCode error."
  263.             goto ShellCodeError
  264.         endif
  265.         set RegistryErrorIndex = $($R0)
  266.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  267.             
  268.             Debug-Output "Resgitry error: add value list."
  269.             CloseRegKey $(SoftwareProductKey)
  270.             CloseRegKey $(SoftwareNetRuleKey)
  271.             CloseRegKey $(SoftwareServiceKey)
  272.             CloseRegKey $(SoftLinkageKey)
  273.             CloseRegKey $(SoftwareParameterKey)
  274.             goto fatalregistry
  275.         endif
  276.         set NewValueList = {{InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  277.         Shell  $(UtilityInf), AddValueList, $(SoftwareNetRuleKey), $(NewValueList)
  278.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  279.             Debug-Output "ShellCode error."
  280.             goto ShellCodeError
  281.         endif
  282.         set RegistryErrorIndex = $($R0)
  283.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  284.             
  285.             Debug-Output "Resgitry error: add value list."
  286.             CloseRegKey $(SoftwareProductKey)
  287.             CloseRegKey $(SoftwareNetRuleKey)
  288.             CloseRegKey $(SoftwareServiceKey)
  289.             CloseRegKey $(SoftwareParameterKey)
  290.             CloseRegKey $(SoftLinkageKey)
  291.             goto fatalregistry
  292.         endif
  293.  
  294. ;Removed1 Paul
  295.  
  296.         CloseRegKey $(SoftwareProductKey)
  297.         CloseRegKey $(SoftwareNetRuleKey)
  298.         CloseRegKey $(SoftwareServiceKey)
  299.         CloseRegKey $(SoftwareParameterKey)
  300.         CloseRegKey $(SoftLinkageKey)
  301.         
  302. ;Create dependencies in MS-SNMP DependOnService 
  303. ;Add Extension Agent  to MS-SNMP 
  304.     StartWait
  305.     LibraryProcedure Result, $(MY_HANDLE), MakeSnmpDependOnSP 
  306.         LibraryProcedure Result, $(MY_HANDLE), AddExtensionAgentToSnmp 
  307.     set  FLibraryErrCtl  = 0     
  308.  
  309. ;Create Dmi Instrumentation tree
  310. ;InstrumentationPath and MIFPath values should be absolute.
  311. ;Using STF_NTPATH for this.
  312. ;If you use %SystemRoot%, ni_nic.mif will not be loaded with ni_nic.exe version 1.5x or less
  313.         OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Intel" $(MAXIMUM_ALLOWED) IntelKey
  314.         CreateRegKey $(IntelKey) {"DMI Instrumentation",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" DmiKeyTypes
  315.  
  316.         CreateRegKey $(DmiKeyTypes) {"2.0",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" VersionKeyTypes
  317.         CreateRegKey $(VersionKeyTypes) {"NetworkAdapters",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" AdapterKeyTypes
  318.         CreateRegKey $(AdapterKeyTypes) {"0",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" EndKeyTypes
  319.         Shell $(UtilityInf) AddValueList, $(AdapterKeyTypes), +
  320.             {{"InstrumentationPath", $(NoTitle), $(!REG_VT_SZ), $(!STF_NTPATH)"\ni_nic.dll"}, +
  321.          {"EventPollFrequency", $(NoTitle), $(!REG_VT_DWORD), "8"} }
  322.         Shell $(UtilityInf) AddValueList, $(EndKeyTypes), +
  323.             {{"MIFId", $(NoTitle), $(!REG_VT_DWORD), "0x1"}, +
  324.              {"MIFPath", $(NoTitle), $(!REG_VT_SZ), $(!STF_NTPATH)"\ni_nic.mif"}}
  325.         CloseRegKey $(DmiKeyTypes)
  326.         CloseRegKey $(VersionKeyTypes)  
  327.     CloseRegKey $(AdapterKeyTypes)
  328.     CloseRegKey $(EndKeyTypes)
  329.      
  330. ;Create dmi2snmp tree
  331.  
  332.         OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Intel" $(MAXIMUM_ALLOWED) IntelKey
  333.         CreateRegKey $(IntelKey) {"DMI2SNMP",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypes
  334.         CreateRegKey $(KeyTypes) {"Pathname",$(NoTitle),GenericClass} "" $(MAXIMUM_ALLOWED) "" KeyTypesSubkey
  335.     Shell $(UtilityInf) AddValueList, $(KeyTypes), +
  336.             {{"Pathname", $(NoTitle), $(!REG_VT_EXPAND_SZ), "%SystemRoot%\System32\dmi2snmp.dll"}}
  337.         Shell $(UtilityInf) AddValueList, $(KeyTypesSubkey), +
  338.             {{"Mapper", $(NoTitle), $(!REG_VT_SZ), "%SystemRoot%\System32\dmi2snmp.dll"}}
  339.         CloseRegKey $(KeyTypesSubkey)
  340.         CloseRegKey $(KeyTypes)
  341.  
  342.     endif
  343.  
  344. ;****************************************
  345. ;Start SNMP and ni_nic Service
  346. ;****************************************
  347.        LibraryProcedure Result, $(MY_HANDLE), ControlMyService "SNMP"  "START"
  348.        LibraryProcedure Result, $(MY_HANDLE), ControlMyService "ni_nic"  "START"
  349.        FreeLibrary $(MY_HANDLE)
  350.        set FLibraryErrCtl = 0
  351.  
  352.        EndWait
  353.  
  354.  
  355.  
  356. ;    set FLibraryErrCtl = 1
  357. ;    LibraryProcedure Result, $(!TCPCFG_HANDLE), CPlSnmp, $(!STF_HWND), $(!STF_GUI_UNATTENDED), $(!STF_UNATTENDED), $(!STF_UNATTENDED_SECTION)
  358. ;    ifint $(Result) == 0
  359. ;        set CommonStatus = STATUS_REBOOT
  360. ;    else-ifint $(Result) == 1
  361. ;        set CommonStatus = STATUS_REBOOT
  362. ;    else
  363. ;        set RegistryErrorIndex = $(Result)
  364. ;        goto fatalregistry
  365. ;    endif
  366. ;    Shell $(UtilityInf) SetMasterComponent Microsoft Tcpip $(STF_CONTEXTINFNAME) SNMP
  367.     Goto successful
  368. Configureadapter = +
  369.      goto ConfigError
  370.  
  371. bindingadapter =+
  372.     set Error = "Binding: Sorry, not yet implemented."
  373.     goto fatal
  374.  
  375. removeadapter = +
  376.  
  377. ;*********************************
  378. ;Stop Ni Service
  379. ;*********************************
  380.     StartWait
  381.     set FLibraryErrCtl = 1
  382.  
  383.     LoadLibrary "" $(!STF_WINDOWSSYSPATH)"\isnmp.dll" RM_HANDLE   
  384.  
  385. ;If win32sl is not present don't unregister the mif
  386.     OpenRegKey $(!REG_H_LOCAL) "" $(WinSlKeyName) $(MAXIMUM_ALLOWED) WinslKey
  387.   
  388.     Ifstr $(WinslKey) != $(KeyNull)
  389.         LibraryProcedure Result, $(RM_HANDLE), UnregisterMifComponent 
  390.     endif
  391.     LibraryProcedure Result, $(RM_HANDLE), ControlMyService "ni_nic"  "STOP"
  392.     LibraryProcedure Result, $(RM_HANDLE), RemoveSnmpDependency 
  393.     LibraryProcedure Result, $(RM_HANDLE), RemoveExtensionAgentToSnmp
  394.     
  395.     CloseRegKey $(WinslKey)
  396.   
  397.     FreeLibrary $(RM_HANDLE)
  398.     set FLibraryErrCtl = 0
  399.     
  400.   
  401.  
  402.     AddFileToDeleteList $(!STF_WINDOWSSYSPATH)"\ni_nic.dll"
  403.     AddFileToDeleteList $(!STF_WINDOWSSYSPATH)"\ni_nic.exe"
  404.     AddFileToDeleteList $(!STF_WINDOWSSYSPATH)"\ni_nic.mif"
  405.     AddFileToDeleteList $(!STF_WINDOWSSYSPATH)"\dmi2snmp.dll"
  406.     AddFileToDeleteList $(!STF_WINDOWSSYSPATH)"\ni_nic.dat"
  407. ;AddFileToDeleteList $(!STF_WINDOWSSYSPATH)"\isnmp.dll"
  408.     
  409.  
  410.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  411.         $(ProductSoftwareName)
  412.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  413.         Debug-Output "ShellCode error"
  414.         goto ShellCodeError
  415.     endif
  416.     set RegistryErrorIndex = $($R0)
  417.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  418.         goto fatalregistry
  419.     endif
  420.  
  421. ;Remove Dmi2snmp tree
  422.     OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Intel" $(MAXIMUM_ALLOWED) DmiSnmpKey
  423.     DeleteRegTree $(DmiSnmpKey) "DMI2SNMP"
  424.     CloseRegKey $(DmiSnmpKey)
  425.  
  426. ;Remove Dmi Instrumentation tree
  427.     OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Intel" $(MAXIMUM_ALLOWED) DmiKey
  428.     DeleteRegTree $(DmiKey) "DMI Instrumentation"
  429.     CloseRegKey $(DmiKey)
  430.     EndWait
  431.     goto end
  432.  
  433.  
  434. UpgradeSoftware = +
  435.  
  436.     goto end
  437. successful = +
  438.     goto end
  439. warning = +
  440.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  441.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  442.         goto ShellCodeError
  443.     endif
  444.     ifstr(i) $($R1) == "OK"
  445.         goto $(to)
  446.     else-ifstr(i) $($R1) == "CANCEL"
  447.         goto $(from)
  448.     else
  449.         goto "end"
  450.     endif
  451. nonfatal = +
  452.     ifstr(i) $(Error) == ""
  453.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  454.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  455.             goto ShellCodeError
  456.         endif
  457.         set Error = $($R0)
  458.     endif
  459.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(Error)
  460.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  461.         goto ShellCodeError
  462.     endif
  463.     ifstr(i) $($R1) == "OK"
  464.         goto $(from)
  465.     else
  466.         goto "end"
  467.     endif
  468. fatalregistry = +
  469.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  470.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  471.         goto ShellCodeError
  472.     endif
  473.     set Error = $($R0)
  474.     goto fatal
  475. fatal = +
  476.     ifstr(i) $(Error) == ""
  477.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  478.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  479.             goto ShellCodeError
  480.         endif
  481.         set Error = $($R0)
  482.     endif
  483.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  484.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  485.         goto ShellCodeError
  486.     endif
  487.     goto setfailed
  488.  
  489.  
  490. SnmpError = +
  491.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(SnmpErrorMsg)
  492.     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  493.             goto ShellCodeError
  494.     endif
  495.     ifstr(i) $($R1) == "OK"
  496.         goto end
  497.     endif
  498.            goto end
  499.  
  500. WinslError = +
  501.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(WinslErrorMsg)
  502.                   
  503.     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  504.             goto ShellCodeError
  505.     endif
  506.     ifstr(i) $($R1) == "OK"
  507.         goto end
  508.     endif
  509.            goto end
  510. ConfigError =+
  511.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(ConfigErrorMsg)
  512.     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  513.             goto ShellCodeError
  514.     endif
  515.     ifstr(i) $($R1) == "OK"
  516.         goto end
  517.     endif
  518.            goto end
  519.  
  520. NiError = +
  521.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(NiErrorMsg)
  522.                   
  523.     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  524.             goto ShellCodeError
  525.     endif
  526.     ifstr(i) $($R1) == "OK"
  527.            set CommonStatus = STATUS_USERCANCEL
  528.         goto end
  529.     endif
  530.            goto end
  531.  
  532. NiReboot = +
  533.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(NiRebootMsg)
  534.                   
  535.     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  536.             goto ShellCodeError
  537.     endif
  538.     ifstr(i) $($R1) == "OK"
  539.            set CommonStatus = STATUS_USERCANCEL
  540.         goto end
  541.     endif
  542.            goto end
  543.  
  544. OverInstError = +
  545.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(OverInstMsg)
  546.                   
  547.     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  548.             goto ShellCodeError
  549.     endif
  550.     ifstr(i) $($R1) == "OK"
  551.            set CommonStatus = STATUS_USERCANCEL
  552.         goto end
  553.     endif
  554.            goto end
  555.  
  556. ShellCodeError = +
  557.     set DlgType      = "MessageBox"
  558.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  559.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  560.     set STF_MB_TYPE  = 1
  561.     set STF_MB_ICON  = 3
  562.     set STF_MB_DEF   = 1
  563.     ui start "Error Message"
  564.     goto setfailed
  565. setfailed = +
  566.     set CommonStatus = STATUS_FAILED
  567.     Ifint $(RegistryErrorIndex) == TCPIP_NONEXIST_ERROR
  568.         set CommonStatus = STATUS_USERCANCEL
  569.     endif
  570.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  571.         set OEM_ABANDON_ON = FALSE
  572.         goto removeadapter
  573.     endif
  574.     goto end
  575. end = +
  576.     
  577.     goto term
  578. term = +
  579.     Return $(CommonStatus)
  580. [GetFilesSize]
  581.     set FileSizeList = ^(Files-SNMP,3)
  582.     set TotalSize = 0
  583.     ForListDo $(FileSizeList)
  584.         Split-String $($) "=" SplitString
  585.         set Size = *($(SplitString),3)
  586.         set-add TotalSize = $(TotalSize) $(Size)
  587.     EndForListDo
  588.     set-div SizeInK = $(TotalSize) 1024
  589.     return $(SizeInK)
  590. [Install-Option]
  591.     set STF_VITAL = ""
  592.     ifstr(i) $(AddCopy) == "YES"
  593.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)
  594.     endif
  595.     ifstr(i) $(DoCopy) == "YES"
  596.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  597.        CopyFilesInCopyList
  598.     endif
  599.     ifstr(i) $(DoConfig) == "YES"
  600.     endif
  601.     Exit
  602. [Install-Update]
  603.    set STF_VITAL        = ""
  604.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  605.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)
  606.    exit
  607.  
  608.  
  609. [Source Media Descriptions]
  610.     1 = "Intel Client Instrumentation for DMI and SNMP Service Disk "
  611. [Signature]
  612.     FileType = MICROSOFT_FILE
  613. [GetSignature]
  614.     read-syms Signature
  615.     return $(FileType)
  616. [ProductType]
  617. STF_PRODUCT  = Winnt
  618. STF_PLATFORM = I386
  619. [Files-Inf]
  620. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  621. [Files-DMISNMP]
  622. 1, ni_nic.exe, SIZE=999
  623. 1, ni_nic.dll, SIZE=999
  624. 1, ni_nic.mif , SIZE=999
  625. 1, dmi2snmp.dll, SIZE=999
  626. 1, ni_nic.dat, SIZE=999
  627. 1, setup.dll,     SIZE=1000,    RENAME="isnmp.dll"
  628.  
  629. [LanguagesSupported]
  630.     ENG
  631. [OptionsTextENG]
  632.     SNMP     = "Intel Client Instrumentation for DMI and SNMP"
  633. [FileConstantsENG]
  634. ProCaption   = "Windows NT Setup"
  635. ProCancel    = "Cancel"
  636. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  637.                "Are you sure you want to cancel copying files?"
  638. ProCancelCap = "Network Setup Message"
  639. SnmpErrorMsg = "MS-SNMP Service should be installed before proceeding!"$(LF)"See dmiwin.txt for more details"
  640. WinslErrorMsg = "Intel DMI 2.0 Service Provider Not Installed! Install Intel Service Provider before continuing"$(LF)"See dmiwin.txt for more details"
  641. NiErrorMsg    = "Previous Installation of Intel DMI 2.0 Instrumentation detected! "$(LF)"Uninstall the  DMI Instrumentation before proceeding"$(LF)""+
  642.                 "Current package contains the latest Instrumentation"$(LF)"See dmiwin.txt for more details"
  643. ConfigErrorMsg = "Cannot configure software component"
  644. NiRebootMsg  = "Old Instrumentation was not completely removed "$(LF)"Reboot to remove components of Old Instrumentation"$(LF)"Then proceed with the installation"
  645. OverInstMsg  = "Intel Client Instrumentation for DMI and SNMP version "$(ProductVersion)" exists!"$(LF)"Uninstall the existing instrumentation before reinstall"
  646. ProText1     = "Copying:"
  647. ProText2     = "To:"
  648. FunctionTitle   = "DMI-SNMP Setup"
  649. ProductSoftwareDescription      = "Intel Client Instrumentation service that enables Intel Network Interface Cards to be administered remotely with  SNMP and DMI management applications."
  650. ProductSoftwareDisplayName      = "Intel Client Instrumentation for DMI and SNMP"
  651. ProductSoftwareTitle    = "Intel Client Instrumentation for DMI and SNMP"
  652. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  653. ShellCodeErrorText      = "Shell Code Error."
  654. [DialogConstantsENG]
  655. Help        = "&Help"
  656. Exit        = "Cancel"
  657. OK          = "OK"
  658. HelpContext = ""
  659. Continue    = "Continue"
  660. Cancel      = "Cancel"
  661. [FileDependentDlgENG]
  662.