home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 May / W2KPRK.iso / apps / InternetScanner / data1.cab / Program_Files / Driver / Oemsetup.inf < prev   
INI File  |  1999-11-22  |  14KB  |  423 lines

  1. [Identification]
  2.     OptionType = NetService
  3. [Options]
  4.     PACKET
  5. [FileConstants]
  6. UtilityInf      = "UTILITY.INF"
  7. subroutineinf   = "SUBROUTN.INF"
  8. SoftwareType    = "service"
  9. Exit_Code       = 0
  10. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  11. Manufacturer    = "Internet Security Systems"
  12. ProductMajorVersion     = "3"
  13. ProductMinorVersion     = "4"
  14. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  15. ProductSoftwareName     = "ISS Raw Packet Driver"
  16. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\iss.sys"
  17.  
  18. NetRuleSoftwareType     = "packet lmNetService ndisTransport"
  19. NetRuleSoftwareClass    = {"rasCapableTransport netBiosTransport"}
  20.  
  21. NetRuleSoftwareUse      = $(SoftwareType)" yes yes"
  22. NetRuleSoftwareBindForm = """Packet"" yes yes simple"
  23.  
  24. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  25. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductSoftwareName)"\Parameters"
  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 "OEMNXPNB.INF: STF_CWDDIR is: "$(!STF_CWDDIR)
  79.     Debug-Output "OEMNXPNB.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.     EndWait
  94. Begin = +
  95.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  96.     set StartLabel = removeadapter
  97.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  98.     set StartLabel = UpgradeSoftware
  99.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  100.     set StartLabel = bindingadapter
  101.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  102.     Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  103.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  104.         Debug-Output "OEMNXPNB.INF: ShellCode error: cannot get an error string."
  105.         goto ShellCodeError
  106.     endif
  107.     set Error = $($R0)
  108.     set from = end
  109.     set to = end
  110.     goto nonfatalinfo
  111.     else
  112.     set StartLabel = installadapter
  113.     endif
  114.     set RadioDefault = 2
  115.     set RadioIn = {$(RadioDefault)}
  116.     set from = $(fatal)
  117.     set to = $(fatal)
  118.     goto $(StartLabel)
  119. installadapter = +
  120.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  121.     Ifstr $(KeyProduct) != $(KeyNull)
  122.     CloseRegKey $(KeyProduct)
  123.     Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  124.         $(ProductVersion)
  125.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  126.         Debug-Output "ShellCode error: cannot get an error string."
  127.         goto ShellCodeError
  128.     endif
  129.     goto end
  130.     endif
  131.     CloseRegKey $(KeyProduct)
  132.     goto installproduct
  133. installproduct = +
  134.     StartWait
  135.     ifint $(OldVersionExisted) == $(FALSE)
  136.     Ifstr(i) $(DoCopy) == "YES"
  137.        Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  138.        Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  139.            Goto ShellCodeError
  140.        Else-Ifstr(i) $($R0) == STATUS_FAILED
  141.            Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  142.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  143.            goto ShellCodeError
  144.            endif
  145.            set Error = $($R0)
  146.            Goto fatal
  147.        Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  148.            Goto successful
  149.        Endif
  150.        Set SrcDir = $($R1)
  151.     Endif
  152.     install "Install-Option"
  153.     ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  154.        Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  155.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  156.            goto ShellCodeError
  157.        endif
  158.        set Error = $($R0)
  159.        goto fatal
  160.     endif
  161.     set OEM_ABANDON_ON = TRUE
  162.     Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  163.         $(ProductSoftwareName), +
  164.         $(ProductSoftwareName), +
  165.         $(ProductSoftwareDisplayName), $(STF_CONTEXTINFNAME), +
  166.         $(ProductSoftwareImagePath), "kernel", "TDI", {}, "",+
  167.         $(NetEventDLL)
  168.     set RegistryErrorIndex = $($R0)
  169.     Ifstr(i) $(RegistryErrorIndex) !=  NO_ERROR
  170.         EndWait
  171.         CloseRegKey $($R1)
  172.         CloseRegKey $($R2)
  173.         CloseRegKey $($R3)
  174.         CloseRegKey $($R4)
  175.         CloseRegKey $($R5)
  176.         goto fatalRegistry
  177.     endif
  178.     Set SoftProductKey      = $($R1)
  179.     Set SoftNetRuleKey      = $($R2)
  180.     Set SoftServiceKey      = $($R3)
  181.     set KeyParameters       = $($R4)
  182.     Set SoftLinkageKey      = $($R5)
  183.     set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  184.                {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  185.                {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  186.                {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  187.                {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  188.                {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  189.                {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  190.     Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  191.     set RegistryErrorIndex = $($R0)
  192.     Ifstr $(RegistryErrorIndex) != NO_ERROR
  193.         CloseRegKey $(SoftProductKey)
  194.         CloseRegKey $(SoftNetRuleKey)
  195.         CloseRegKey $(SoftServiceKey)
  196.         CloseRegKey $(SoftLinkageKey)
  197.         CloseRegKey $(KeyParameters)
  198.         goto fatalRegistry
  199.     endif
  200.     set NewValueList = {{type    ,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)}, +
  201.                 {use     ,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  202.                 {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  203.                 {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  204.     Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  205.     set RegistryErrorIndex = $($R0)
  206.     Ifstr $(RegistryErrorIndex) != NO_ERROR
  207.         CloseRegKey $(SoftProductKey)
  208.         CloseRegKey $(SoftNetRuleKey)
  209.         CloseRegKey $(SoftServiceKey)
  210.         CloseRegKey $(SoftLinkageKey)
  211.         CloseRegKey $(KeyParameters)
  212.         goto fatalRegistry
  213.     endif
  214.     Set NewValueList = {{NbProvider,$(NoTitle),$(!REG_VT_SZ),"_nb"}}
  215.     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  216.     Ifstr $(RegistryErrorIndex) != NO_ERROR
  217.         CloseRegKey $(SoftProductKey)
  218.         CloseRegKey $(SoftNetRuleKey)
  219.         CloseRegKey $(SoftServiceKey)
  220.         CloseRegKey $(SoftLinkageKey)
  221.         goto fatalRegistry
  222.     endif
  223.     CloseRegKey $(SoftProductKey)
  224.     CloseRegKey $(SoftNetRuleKey)
  225.     CloseRegKey $(SoftServiceKey)
  226.     CloseRegKey $(SoftLinkageKey)
  227.     endif
  228.     goto writeparameters
  229. writeparameters = +
  230.     CloseRegKey $(KeyParameters)
  231.     EndWait
  232.     goto successful
  233. bindingadapter =+
  234.     set Error = "Binding: Sorry, not yet implemented."
  235.     goto fatal
  236. removeadapter = +
  237.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  238.     $(ProductSoftwareName)
  239.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  240.     Debug-Output "ShellCode error"
  241.     goto ShellCodeError
  242.     endif
  243.     set RegistryErrorIndex = $($R0)
  244.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  245.     goto fatalregistry
  246.     endif
  247.     goto end
  248. UpgradeSoftware = +
  249.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  250.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  251.     Ifstr $(KeyProduct) != $(KeyNull)
  252.         GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  253.         set Version = *($(VersionInfo), 4)
  254.         Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  255.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  256.         Debug-Output "ShellCode error"
  257.         goto ShellCodeError
  258.         endif
  259.         set !UG_Filename = $($R0)
  260.         ifstr(i) $(!UG_Filename) != ""
  261.         install "Install-Update"
  262.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  263.             goto fatal
  264.         endif
  265.         endif
  266.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  267.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  268.         ifint $(Version) != $(ProductVersion)
  269.         endif
  270.         CloseRegKey $(KeyProduct)
  271.     else
  272.         goto fatalregistry
  273.     endif
  274.     endif
  275.     goto end
  276. successful = +
  277.     goto end
  278. warning = +
  279.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  280.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  281.     goto ShellCodeError
  282.     endif
  283.     ifstr(i) $($R1) == "OK"
  284.     goto $(to)
  285.     else-ifstr(i) $($R1) == "CANCEL"
  286.     goto $(from)
  287.     else
  288.     goto "end"
  289.     endif
  290. nonfatalinfo = +
  291.     Set CommonStatus = STATUS_USERCANCEL
  292.     Set Severity = STATUS
  293.     goto nonfatalmsg
  294. nonfatal = +
  295.     Set Severity = NONFATAL
  296.     goto nonfatalmsg
  297. nonfatalmsg = +
  298.     ifstr(i) $(Error) == ""
  299.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  300.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  301.         goto ShellCodeError
  302.     endif
  303.     set Error = $($R0)
  304.     endif
  305.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  306.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  307.     goto ShellCodeError
  308.     endif
  309.     ifstr(i) $($R1) == "OK"
  310.     goto $(from)
  311.     else
  312.     goto "end"
  313.     endif
  314. fatalregistry = +
  315.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  316.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  317.     goto ShellCodeError
  318.     endif
  319.     set Error = $($R0)
  320.     goto fatal
  321. fatal = +
  322.     ifstr(i) $(Error) == ""
  323.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  324.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  325.         goto ShellCodeError
  326.     endif
  327.     set Error = $($R0)
  328.     endif
  329.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  330.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  331.     goto ShellCodeError
  332.     endif
  333.     goto setfailed
  334. ShellCodeError = +
  335.     set DlgType      = "MessageBox"
  336.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  337.     set STF_MB_TEXT  = $(ShellCodeErrorText) 
  338.     set STF_MB_TYPE  = 1
  339.     set STF_MB_ICON  = 3
  340.     set STF_MB_DEF   = 1
  341.     ui start "Error Message"
  342.     goto setfailed
  343. setfailed = +
  344.     set CommonStatus = STATUS_FAILED
  345.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  346.     set OEM_ABANDON_ON = FALSE
  347.     goto removeadapter
  348.     endif
  349.     goto end
  350. end = +
  351.     goto term
  352. term = +
  353.     Return $(CommonStatus)
  354. [Install-Option]
  355.     set STF_VITAL = ""
  356.     ifstr(i) $(AddCopy) == "YES"
  357.     AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  358.     AddSectionFilesToCopyList Files-App $(SrcDir) $(!STF_WINDOWSSYSPATH)
  359.     endif
  360.     ifstr(i) $(DoCopy) == "YES"
  361.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  362.        CopyFilesInCopyList
  363.     endif
  364.     ifstr(i) $(DoConfig) == "YES"
  365.     endif
  366.     Exit
  367. [Install-Update]
  368.    set STF_VITAL        = ""
  369.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  370.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  371.    AddSectionFilesToCopyList Files-App $(SrcDir) $(!STF_WINDOWSSYSPATH)
  372.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  373.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  374.    CopyFilesInCopyList
  375.    exit
  376. [Source Media Descriptions]
  377.     1  = "Windows NT Setup Disk #1"  , TAGFILE = disk1
  378.     2  = "Windows NT Setup CD-ROM Disk"  , TAGFILE = disk2
  379. [ProductType]
  380. STF_PRODUCT  = Winnt
  381. STF_PLATFORM = I386
  382. [Files-Inf]
  383. 2,      oemsetup.inf,    SIZE=1000,     RENAME=$(!UG_Filename)
  384. [Files-PACKET]
  385. 2,iss.SYS , SIZE=999
  386. [Files-App]
  387. 2,iss32.dll , SIZE=999
  388. [LanguagesSupported]
  389.     ENG
  390. [OptionsTextENG]
  391.     NDISPERF     = "ISS Raw Packet Driver"
  392. [FileConstantsENG]
  393. ProCaption   = "Windows NT Setup"
  394. ProCancel    = "Cancel"
  395. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  396.            "Are you sure you want to cancel copying files?"
  397. ProCancelCap = "Network Setup Message"
  398. ProText1     = "Copying:"
  399. ProText2     = "To:"
  400. FunctionTitle   = "Packet Driver"
  401. ProductSoftwareDescription      = "ISS Raw Packet Driver"
  402. ProductSoftwareDisplayName = "ISS Raw Packet Driver"
  403. ProductSoftwareTitle    = "ISS Raw Packet Driver"
  404. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  405. ShellCodeErrorText      = "Shell Code Error."
  406. [DialogConstantsENG]
  407. Help        = "&Help"
  408. Exit        = "Cancel"
  409. OK          = "OK"
  410. HelpContext = ""
  411. Continue    = "Continue"
  412. Cancel      = "Cancel"
  413. [FileDependentDlgENG]
  414. GroupLabel = "Optimization:"
  415. Radio1 = "&Minimize Memory Used"
  416. Radio2 = "&Balance"
  417. Radio3 = "M&aximize Throughput && Connections"
  418. DlgType = "Radio"               
  419. DlgTemplate = "NBF"             
  420. Caption = $(FunctionTitle)
  421. OptionsGreyed = {}
  422. HelpContext = $(!IDH_DB_OEMNXPNB_INS)
  423.