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 / MsDisk / OemSetup.inf < prev    next >
Encoding:
INI File  |  1999-02-11  |  13.6 KB  |  407 lines

  1. ;*******************************************************************************
  2. ;*                                                                            **
  3. ;*                     I N T E L   P R O P R I E T A R Y                      **
  4. ;*                                                                            **
  5. ;*   COPYRIGHT (c) 1993-1999 BY INTEL CORPORATION. ALL RIGHTS RESERVED.  NO   **
  6. ;*   PART  OF  THIS  PROGRAM OR PUBLICATION MAY BE REPRODUCED, TRANSMITTED,   **
  7. ;*   TRANSCRIBED, STORED IN A RETRIEVAL  SYSTEM,  OR  TRANSLATED  INTO  ANY   **
  8. ;*   LANGUAGE OR COMPUTER LANGUAGE IN ANY FORM OR BY ANY MEANS, ELECTRONIC,   **
  9. ;*   MECHANICAL, MAGNETIC, OPTICAL, CHEMICAL, MANUAL, OR OTHERWISE, WITHOUT   **
  10. ;*   THE PRIOR WRITTEN PERMISSION OF :                                        **
  11. ;*                                                                            **
  12. ;*                             INTEL CORPORATION                              **
  13. ;*                                                                            **
  14. ;*                          2200 MISSON COLLEGE BLVD                          **
  15. ;*                                                                            **
  16. ;*                     SANTA CLARA, CALIFORNIA 95052-8119                     **
  17. ;*                                                                            **
  18. ;*******************************************************************************
  19. ;***********************************************************************
  20. ; Windows NT OEMSETUP.INF for
  21. ;
  22. ;        Intel(R) PRO/100+ PCI Adapter
  23. ;
  24. ; Copyright⌐ 1994-1999 Intel Corporation.  All rights reserved.
  25. ;***********************************************************************
  26. ; $Revision: 47 $
  27. ;
  28. ;***********************************************************************
  29. ; Define constants
  30. ;***********************************************************************
  31. [FileConstants]
  32.     Manufacturer  = "Intel"
  33.     ModemEnabler  = "Cbmodem.sys"
  34.     NDIS3         = "E100b.sys"
  35.     NDIS4         = "E100bnt.sys"
  36.     IAFT          = "iAFT.sys"
  37.     IVLAN         = "iVLAN.sys"
  38.     PROSet        = "PROSetp.cpl"
  39.     PROMon        = "PROMon.exe"
  40.     PROKdd        = "PROKddp.sys"
  41.     PROdd         = "PROdd.sys"
  42.     PROSetHelp    = "PROSetp.hlp"
  43.     PROSetCnt     = "PROSetp.cnt"
  44.     PROSetOld     = "PROSet.cpl"
  45.  
  46.     ProCaption   = "Windows NT Setup"
  47.     ProCancel    = "Cancel"
  48.     ProCancelMsg = "Windows NT Networking is not correctly installed.  " +
  49.             "Are you sure you want to cancel copying files?"
  50.     ProCancelCap = "Network Setup Message"
  51.     ProText1     = "Copying:"
  52.     ProText2     = "To:"
  53.  
  54. ;***********************************************************************
  55. ; Define file source constants.  
  56. ;***********************************************************************
  57. [FileConstants-Src]
  58.     ModemEnablerSrc = "Cbmodem.sys"
  59.     NDIS3Src        = "E100b.sys"
  60.     NDIS4Src        = "E100bnt.sys"
  61.     IAFTSrc         = "iAFT.sys"
  62.     IVLANSrc        = "iVLAN.sys"
  63.     PROSetSrc       = "PROSetp.cpl"
  64.     PROMonSrc       = "PROMon.exe"
  65.     PROKddSrc       = "PROKddp.sys"
  66.     PROddSrc        = "PROdd.sys"
  67.     PROSetHelpSrc   = "PROSetp.hlp"
  68.     PROSetCntSrc    = "PROSetp.cnt"
  69.  
  70. ;***********************************************************************
  71. ; Detect sections
  72. ;***********************************************************************
  73. [DetectConstants]
  74. OSName = {} ? $(PROSet) GetOSVersion
  75.  
  76. ;***********************************************************************
  77. ; Define Option
  78. ;***********************************************************************
  79. [Options]
  80.     E100B
  81.     E100BEXP
  82.     E100BPCI
  83.     E10PPCI
  84.     E100BRWA
  85.  
  86. [OptionsText]
  87.     E100B = "Intel(R) PRO Adapter"
  88.  
  89. [Source Media Descriptions]
  90.     1 = "Intel PRO Adapter CD-ROM or floppy disk", TAGFILE = d100disk
  91.  
  92. ;***********************************************************************
  93. ; Returns information to Setup about the type of driver or drivers that
  94. ; can be installed by this INF file.
  95. ;***********************************************************************
  96. [Identify]
  97.     Return STATUS_SUCCESSFUL NetAdapter ""
  98.  
  99. ;***********************************************************************
  100. ; This section returns information to the Setup program, listing the 
  101. ; names of any drivers that can be installed by this INF file. It also 
  102. ; returns the text strings for each driver (in the requested language) 
  103. ; to be used in the dialog box that asks the user to select the driver
  104. ; to install. 
  105. ;***********************************************************************
  106. [ReturnOptions]
  107.     Set Status         = STATUS_SUCCESSFUL
  108.     Set OptionList     = ^(Options, 1)
  109.     Set OptionTextList = ^(OptionsText, 1)
  110.  
  111.     IfStr(i) $($1) != ""
  112.         IfContains(i) $($1) not-in "PCI"
  113.             Set Status         = STATUS_NOTSUPPORTED
  114.             Set OptionList     = {}
  115.             Set OptionTextList = {}
  116.         EndIf
  117.     EndIf
  118.  
  119.     Return $(Status) $(OptionList) $(OptionTextList)
  120.  
  121. ;***********************************************************************
  122. ; If the [ReturnOptions] section returns successfully, indicating the
  123. ; language is supported, Setup displays a dialog box from which the user
  124. ; can select a driver to install. If the user proceeds with the
  125. ; installation, Setup calls the [InstallOption] section.
  126. ;***********************************************************************
  127. [InstallOption]
  128.     Set Option   = $($1)
  129.     Set SrcDir   = $($2)
  130.     Set AddCopy  = $($3)
  131.     Set DoCopy   = $($4)
  132.     Set DoConfig = $($5)
  133.  
  134.     read-syms FileConstants
  135.     read-syms FileConstants-Src
  136.  
  137.     IfStr(i) $(!NTN_InstallMode) == deinstall
  138.         Set StartLabel = RemoveAdapter
  139.  
  140.     Else-IfStr(i) $(!NTN_InstallMode) == update
  141.         Set StartLabel = UpdateAdapters
  142.  
  143.     Else-IfStr(i) $(!NTN_InstallMode) == bind
  144.         Set StartLabel = BindingReview
  145.  
  146.     Else-IfStr(i) $(!NTN_InstallMode) == configure
  147.         Set StartLabel = ConfigureAdapter
  148.  
  149.     Else-IfStr(i) $(!NTN_InstallMode) == install
  150.         Set StartLabel = InstallAdapters
  151.  
  152.     EndIf
  153.  
  154.     Set from = FatalError
  155.     Set to   = FatalError
  156.  
  157.     Goto $(StartLabel)
  158.  
  159. ;***********************************************************************
  160. ; Called when the user clicks the Add button in the NCPA.
  161. ;***********************************************************************
  162. InstallAdapters = +
  163.  
  164.     Install "Install-PROSet"
  165.  
  166.     LoadLibrary "" $(PROSet) hLib
  167.     LibraryProcedure DllExitStr $(hLib) InstallAdapters +
  168.         $(Option), $(PROMon), $(STF_CONTEXTINFNAME), +
  169.         $(!NetCardParameterName), $(!NetCardParameterValue), +
  170.         $(!STF_GUI_UNATTENDED)
  171.     FreeLibrary $(hLib)
  172.  
  173.     Ifstr(i) $(DllExitStr) == "ERROR"
  174.         return STATUS_USERCANCEL
  175.     EndIf
  176.  
  177.     detect DetectConstants
  178.  
  179.     Install "Install-Option"
  180.     Install "Install-PROSet-More"
  181.  
  182.     return STATUS_SUCCESSFUL
  183.  
  184. ;***********************************************************************
  185. ; Called when the user clicks the Update button in the NCPA.
  186. ;***********************************************************************
  187. UpdateAdapters = +
  188.  
  189.     Install "Install-PROSet"
  190.  
  191.     LoadLibrary "" $(PROSet) hLib
  192.     LibraryProcedure DllExitStr $(hLib) UpdateAdapters +
  193.         $(PROMon), $(!NTN_RegBase)
  194.     FreeLibrary $(hLib)
  195.  
  196.     Ifstr(i) $(DllExitStr) == "ERROR"
  197.         return STATUS_USERCANCEL
  198.     EndIf
  199.  
  200.     Set NewInfName = $(DllExitStr)
  201.  
  202.     detect DetectConstants
  203.  
  204.     Install "Install-Option"
  205.     Install "Install-PROSet-More"
  206.  
  207.     return STATUS_SUCCESSFUL
  208.  
  209. ;***********************************************************************
  210. ; Called when the binding engine runs and the software component has a
  211. ; Review = 1 flag in the CurrentVersion key of the software component
  212. ; key.
  213. ;***********************************************************************
  214. BindingReview = +
  215.  
  216.     LoadLibrary "" $(PROSet) hLib
  217.     LibraryProcedure DllExitStr $(hLib) BindingReview $(Option)
  218.     FreeLibrary $(hLib)
  219.  
  220.     return STATUS_SUCCESSFUL
  221.  
  222. ;***********************************************************************
  223. ; Called when user clicks the Remove button on the NCPA to remove an
  224. ; adapter.  We only need to remove the hardware components; the NCPA
  225. ; will remove the software component when the last hardware component
  226. ; is removed.  This function is also used to remove adapter teams.
  227. ;***********************************************************************
  228. RemoveAdapter = +
  229.  
  230.     LoadLibrary "" $(PROSet) hLib
  231.     LibraryProcedure DllExitStr $(hLib) RemoveAdapter +
  232.         $(Option), $(!NTN_RegBase)
  233.     FreeLibrary $(hLib)
  234.  
  235.     Ifstr(i) $(DllExitStr) == "CLEANUP"
  236.         Install "Install-Cleanup"
  237.         Install "Install-PROMon-Cleanup"
  238.     EndIf
  239.     
  240.     return STATUS_SUCCESSFUL
  241.  
  242. ;***********************************************************************
  243. ; Called when the user selects Properties button on an adapter.
  244. ;***********************************************************************
  245. ConfigureAdapter = +
  246.     
  247.     LoadLibrary "" $(PROSet) hLib
  248.     LibraryProcedure DllExitStr $(hLib) DLLEntry +
  249.         $(!NTN_RegBase), $(Option)
  250.     FreeLibrary $(hLib)
  251.  
  252.     Ifstr(i) $(DllExitStr) == "REBOOT"
  253.         return STATUS_SUCCESSFUL
  254.     EndIf
  255.  
  256.     return STATUS_USERCANCEL
  257.  
  258. ;***********************************************************************
  259. ; Something's busted!
  260. ;***********************************************************************
  261. FatalError = +
  262.  
  263.     return STATUS_FAILED
  264.  
  265.  
  266. ;***********************************************************************
  267. ; Install the PROSet files.
  268. ;***********************************************************************
  269. [Install-PROSet]
  270.     Set STF_VITAL = 1
  271.     Set STF_OVERWRITE     = "VERIFYSOURCEOLDER"
  272.  
  273.     AddSectionFilesToCopyList Files-PROSet-Drivers $(SrcDir) +
  274.         $(!STF_WINDOWSSYSPATH)\drivers
  275.     AddSectionFilesToCopyList Files-PROSet-System $(SrcDir) +
  276.         $(!STF_WINDOWSSYSPATH)
  277.  
  278.     Set !STF_NCPA_FLUSH_COPYLIST = 1
  279.     CopyFilesInCopyList
  280.  
  281.     Exit
  282.  
  283. [Files-PROSet-Drivers]
  284.     1, $(PROKddSrc),     SIZE=50000, RENAME=$(PROKdd)
  285.     1, $(PROddSrc),      SIZE=50000, RENAME=$(PROdd)
  286.  
  287. [Files-PROSet-System]
  288.     1, $(PROSetSrc),     SIZE=50000, RENAME=$(PROSet)
  289.     1, $(PROMonSrc),     SIZE=50000, RENAME=$(PROMon)
  290.     1, $(PROSetHelpSrc), SIZE=50000, RENAME=$(PROSetHelp)
  291.     1, $(PROSetCntSrc),  SIZE=50000, RENAME=$(PROSetCnt)
  292.  
  293. ;***********************************************************************
  294. ; Finish up the install of PROSet
  295. ;***********************************************************************
  296. [Install-PROSet-More]
  297.  
  298.     ; Install PROMon to run each time NT 4 starts
  299.     IfStr(i) $(OSName) == "NT4"
  300.         OpenRegKey $(!REG_H_LOCAL) "" +
  301.             "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" +
  302.             $(!REG_KEY_SET_VALUE) KeyWinRun
  303.         SetRegValue $(KeyWinRun) {$(PROMon), 0, $(!REG_VT_SZ), $(PROMon)}
  304.         CloseRegKey $(KeyWinRun)
  305.     EndIf
  306.  
  307.     ; Remove Old PROSet
  308.     AddFileToDeleteList $(PROSetOld)
  309.  
  310.     Exit
  311.  
  312. ;***********************************************************************
  313. ; Remove PROMon hook
  314. ;***********************************************************************
  315. [Install-PROMon-Cleanup]
  316.  
  317.     OpenRegKey $(!REG_H_LOCAL) "" +
  318.         "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" +
  319.         $(!REG_KEY_SET_VALUE) KeyWinRun
  320.     DeleteRegValue $(KeyWinRun) $(PROMon)
  321.     CloseRegKey $(KeyWinRun)
  322.  
  323.     Exit
  324.  
  325. ;***********************************************************************
  326. ; Install the Option files.
  327. ;***********************************************************************
  328. [Install-Option]
  329.     Set STF_VITAL = 1
  330.     Set STF_OVERWRITE = "VERIFYSOURCEOLDER"
  331.  
  332.     ; Prior to installing the drivers, lets see if the install media has the AFT 
  333.     ; driver and the VLAN driver.  
  334.  
  335.     IfStr(i) $(OSName) == "NT4"
  336.         set FileToCheck = $(SrcDir)$(ModemEnablerSrc)
  337.         LibraryProcedure ModemEnablerFilePresent,$(!LIBHANDLE), CheckFileExistance $(FileToCheck)
  338.         set FileToCheck = $(SrcDir)$(IAFTSrc)
  339.         LibraryProcedure AftFilePresent,$(!LIBHANDLE), CheckFileExistance $(FileToCheck)
  340.         set FileToCheck = $(SrcDir)$(IVLANSrc)
  341.         LibraryProcedure VlanFilePresent,$(!LIBHANDLE), CheckFileExistance $(FileToCheck)
  342.  
  343.         Ifstr(i) $(ModemEnablerFilePresent) == "YES"
  344.             AddSectionFilesToCopyList Files-Option-Drivers-NT4-ModemEnabler $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  345.         Endif
  346.  
  347.         Ifstr(i) $(AftFilePresent) == "YES"
  348.             AddSectionFilesToCopyList Files-Option-Drivers-NT4-Aft $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  349.         Endif
  350.  
  351.         Ifstr(i) $(VlanFilePresent) == "YES"
  352.             AddSectionFilesToCopyList Files-Option-Drivers-NT4-Vlan $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  353.         Endif
  354.     Endif
  355.  
  356.     Set FilesOptionDrivers = "Files-Option-Drivers-"$(OSName)
  357.  
  358.     AddSectionFilesToCopyList $(FilesOptionDrivers) $(SrcDir) +
  359.         $(!STF_WINDOWSSYSPATH)\drivers
  360.     
  361.     IfStr(i) $(NewInfName) != ""
  362.         AddSectionFilesToCopyList Files-Option-Inf $(SrcDir) +
  363.             $(!STF_WINDOWSSYSPATH)
  364.     EndIf
  365.  
  366.     Set !STF_NCPA_FLUSH_COPYLIST = 1
  367.     CopyFilesInCopyList
  368.  
  369.     Exit
  370.  
  371. [Files-Option-Drivers-NT351]
  372.     1, $(NDIS3Src), SIZE=50000, RENAME=$(NDIS3)
  373.  
  374. [Files-Option-Drivers-NT4]
  375.     1, $(NDIS4Src), SIZE=50000, RENAME=$(NDIS4)
  376.  
  377. [Files-Option-Drivers-NT4-ModemEnabler]
  378.     1, $(ModemEnablerSrc), SIZE=50000, RENAME=$(ModemEnabler)
  379.  
  380. [Files-Option-Drivers-NT4-Aft]
  381.     1, $(IAFTSrc),  SIZE=50000, RENAME=$(IAFT)
  382.  
  383. [Files-Option-Drivers-NT4-Vlan]
  384.     1, $(IVLANSrc), SIZE=50000, RENAME=$(IVLAN)
  385.  
  386. [Files-Option-Inf]
  387.     1, OEMSETUP.INF,   SIZE=50000, RENAME=$(NewInfName), +
  388.         OVERWRITE=ALWAYS
  389.  
  390. ;***********************************************************************
  391. ; Clean system of adapter files.
  392. ;***********************************************************************
  393. [Install-Cleanup]
  394.  
  395.     AddFileToDeleteList drivers\$(NDIS3)
  396.     AddFileToDeleteList drivers\$(NDIS4)
  397.     AddFileToDeleteList drivers\$(IAFT)
  398.     AddFileToDeleteList drivers\$(IVLAN)
  399.  
  400.     AddFileToDeleteList $(PROSet)
  401.     AddFileToDeleteList $(PROMon)
  402.     AddFileToDeleteList drivers\$(PROKdd)
  403.     AddFileToDeleteList drivers\$(PROdd)
  404.     AddFileToDeleteList $(PROSetHelp)
  405.     AddFileToDeleteList $(PROSetCnt)
  406.  
  407.     Exit