Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

732 lines
20 KiB

  1. ;***********************************************************************
  2. ;
  3. ; OEMNXPDL.INF
  4. ;
  5. ; DLC workstation SETUP INF file.
  6. ;
  7. ; History:
  8. ; davidhov 00-Feb-1992 Created
  9. ; terryk 27-Feb-1992 Reorganize section location
  10. ; added comment
  11. ; terryk 03-Mar-1992 Changed to DLC setup
  12. ; terryk 02-Apr-1992 Code review changed
  13. ; davidhov 03-Apr-1992 Enhanced to use new INF section
  14. ; structure from SunilP, et al.
  15. ;
  16. ;***********************************************************************
  17. ;-----------------------------------------------------------------------
  18. ; OPTION TYPE
  19. ; -----------
  20. ; This identifies the Option type we are dealing with. The different
  21. ; possible types are:
  22. ;
  23. ; COMPUTER, DISPLAY, MOUSE, KEYBOARD, LAYOUT, SCSI, PRINTER, ...
  24. ;
  25. ; Types specific to networking:
  26. ;
  27. ; NetAdapter, a netcard / adapter combination or just a netcard
  28. ; NetDriver, just a netcard driver
  29. ; NetTransport, a complete NDIS-compliant TDI transport stack
  30. ; NetService, an NT networking service
  31. ; NetWork, a complete network ensemble.
  32. ; NetProvider a complete network which supports NT MPR protocol
  33. ;-----------------------------------------------------------------------
  34. [Identification]
  35. OptionType = NetTransport
  36. ;-----------------------------------------------------------------------
  37. ; OPTION LIST
  38. ; -----------
  39. ; This section lists the OEM Option key names. These keys are locale
  40. ; independent and used to represent the option in a locale independent
  41. ; manner.
  42. ;
  43. ;-----------------------------------------------------------------------
  44. [Options]
  45. DLC
  46. ;***********************************************************************
  47. ; CONSTANTS FOR USING DIALOGS
  48. ;***********************************************************************
  49. [FileConstants]
  50. ;
  51. ; File names, etc.
  52. ;
  53. UtilityInf = "UTILITY.INF"
  54. subroutineinf = "SUBROUTN.INF"
  55. SoftwareType = "transport"
  56. Exit_Code = 0
  57. ;ShellCode = 0
  58. ;
  59. ; EventLog Message File
  60. ;
  61. NetEventDLL = "%SystemRoot%\System32\netevent.dll"
  62. IoLogMsgDLL = "%SystemRoot%\System32\IoLogMsg.dll"
  63. ;
  64. ; Product Info
  65. ;
  66. Manufacturer = "Microsoft"
  67. ProductMajorVersion = "4"
  68. ProductMinorVersion = "0"
  69. ProductVersion = $(ProductMajorVersion)"."$(ProductMinorVersion)
  70. ;
  71. ; Software
  72. ;
  73. ProductSoftwareName = "DLC"
  74. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\dlc.sys"
  75. NetRuleSoftwareType = "dlc dlcDriver dlcDriver"
  76. NetRuleSoftwareUse = $(SoftwareType)" yes yes"
  77. NetRuleSoftwareBindForm = """Dlc"" yes yes container"
  78. NetRuleSoftwareClass = {"dlcDriver basic"}
  79. NetRuleSoftwareBindable = {"dlcDriver ndisDriver non non 100"}
  80. ProductOpSupport = 132 ; 0x0084 ; Display,Removable, No Properties,Not Updatable
  81. ;
  82. ; Registry Key
  83. ;
  84. ProductKeyName = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  85. ParamKeyName = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  86. [GeneralConstants]
  87. ;
  88. ; Program flow control variables.
  89. ;
  90. from = ""
  91. to = ""
  92. ;
  93. ; Return codes; Exit_Code is set to one of these
  94. ;
  95. ExitCodeOk = 0
  96. ExitCodeCancel = 1
  97. ExitCodeFatal = 2
  98. KeyNull = ""
  99. MAXIMUM_ALLOWED = 33554432
  100. RegistryErrorIndex = NO_ERROR
  101. KeyProduct = ""
  102. KeyParameters = ""
  103. TRUE = 1
  104. FALSE = 0
  105. NoTitle = 0
  106. ExitState = "Active"
  107. OldVersionExisted = $(FALSE)
  108. DriverPath = $(!STF_NTPATH)\drivers
  109. [date]
  110. ; Now is a list which contains { Sec from 1-1-1970, Year, Month, Day, Hour,
  111. ; Minute, Second }
  112. Now = {} ? $(!LIBHANDLE) GetSystemDate
  113. ;---------------------------------------------------------------------------
  114. ; 1. Identify
  115. ;
  116. ; DESCRIPTION: To verify that this INF deals with the same type of options
  117. ; as we are choosing currently.
  118. ;
  119. ; INPUT: None
  120. ;
  121. ; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL
  122. ; $($R1): Option Type (COMPUTER ...)
  123. ; $($R2): Diskette description
  124. ;---------------------------------------------------------------------------
  125. [Identify]
  126. ;
  127. ;
  128. read-syms Identification
  129. set Status = STATUS_SUCCESSFUL
  130. set Identifier = $(OptionType)
  131. set Media = #("Source Media Descriptions", 1, 1)
  132. Return $(Status) $(Identifier) $(Media)
  133. ;------------------------------------------------------------------------
  134. ; 2. ReturnOptions:
  135. ;
  136. ; DESCRIPTION: To return the option list supported by this INF and the
  137. ; localised text list representing the options.
  138. ;
  139. ;
  140. ; INPUT: $($0): Language used. ( ENG | FRN | ... )
  141. ;
  142. ; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
  143. ; STATUS_NOLANGUAGE
  144. ; STATUS_FAILED
  145. ;
  146. ; $($R1): Option List
  147. ; $($R2): Option Text List
  148. ;------------------------------------------------------------------------
  149. [ReturnOptions]
  150. ;
  151. ;
  152. set Status = STATUS_FAILED
  153. set OptionList = {}
  154. set OptionTextList = {}
  155. ;
  156. ; Check if the language requested is supported
  157. ;
  158. set LanguageList = ^(LanguagesSupported, 1)
  159. Ifcontains(i) $($0) in $(LanguageList)
  160. goto returnoptions
  161. else
  162. set Status = STATUS_NOLANGUAGE
  163. goto finish_ReturnOptions
  164. endif
  165. ;
  166. ; form a list of all the options and another of the text representing
  167. ;
  168. returnoptions = +
  169. set OptionList = ^(Options, 1)
  170. set OptionTextList = ^(OptionsText$($0), 1)
  171. set Status = STATUS_SUCCESSFUL
  172. finish_ReturnOptions = +
  173. Return $(Status) $(OptionList) $(OptionTextList)
  174. ;----------InstallOption-------------------------------------------------
  175. ;
  176. ; InstallOption:
  177. ;
  178. ; This section is shelled to by main installation processing
  179. ; or by NCPASHEL.INF during reconfig, removal, update, etc.
  180. ;
  181. ;
  182. ; FUNCTION: To copy files representing Options
  183. ; To configure the installed option
  184. ; To update the registry for the installed option
  185. ;
  186. ; INPUT: $($0): Language to use
  187. ; $($1): OptionID to install
  188. ; $($2): SourceDirectory
  189. ; $($3): AddCopy (YES | NO)
  190. ; $($4): DoCopy (YES | NO)
  191. ; $($5): DoConfig (YES | NO)
  192. ;
  193. ; OUTPUT: $($R0): STATUS: STATUS_SUCCESSFUL |
  194. ; STATUS_NOLANGUAGE |
  195. ; STATUS_USERCANCEL |
  196. ; STATUS_FAILED
  197. ;
  198. ;------------------------------------------------------------------------
  199. [InstallOption]
  200. ;
  201. ; extract parameters
  202. ;
  203. set Option = $($1)
  204. set SrcDir = $($2)
  205. set AddCopy = $($3)
  206. set DoCopy = $($4)
  207. set DoConfig = $($5)
  208. ;
  209. ; Check if the language requested is supported
  210. ;
  211. set LanguageList = ^(LanguagesSupported, 1)
  212. Ifcontains(i) $($0) NOT-IN $(LanguageList)
  213. Return STATUS_NOLANGUAGE
  214. endif
  215. Debug-Output "OEMNXPDL.INF: STF_CWDIR is: "$(!STF_CWDIR)
  216. Debug-Output "OEMNXPDL.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  217. ; define all the constants
  218. set-subst LF = "\n"
  219. read-syms GeneralConstants
  220. read-syms FileConstants
  221. read-syms DialogConstants$(!STF_LANGUAGE)
  222. ifstr(i) $(!NTN_Origination) == "NCPA"
  223. set Continue = $(OK)
  224. endif
  225. read-syms FileConstants$(!STF_LANGUAGE)
  226. detect date
  227. set-title $(FunctionTitle)
  228. set to = Begin
  229. set from = Begin
  230. ;
  231. ; Assume all is well.
  232. ;
  233. set CommonStatus = STATUS_SUCCESSFUL
  234. EndWait
  235. ;
  236. ; Set up the operation-mode-based variables and gaily welcome
  237. ; the user. If the "install mode" variable is improperly set,
  238. ; assume this is a new installation.
  239. ;
  240. Begin = +
  241. Ifstr(i) $(!NTN_InstallMode) == deinstall
  242. set StartLabel = removeadapter
  243. else-Ifstr(i) $(!NTN_InstallMode) == Update
  244. set StartLabel = UpgradeSoftware
  245. else-Ifstr(i) $(!NTN_InstallMode) == bind
  246. set StartLabel = bindingadapter
  247. else-Ifstr(i) $(!NTN_InstallMode) == configure
  248. Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  249. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  250. Debug-Output "OEMNXPDL.INF: ShellCode error: cannot get an error string."
  251. goto ShellCodeError
  252. endif
  253. set Error = $($R0)
  254. set from = end
  255. set to = end
  256. goto nonfatalinfo
  257. else
  258. set StartLabel = installadapter
  259. endif
  260. set from = $(fatal)
  261. set to = $(fatal)
  262. goto $(StartLabel)
  263. ;-----------------------------------------------
  264. ; Installation Section
  265. ;-----------------------------------------------
  266. installadapter = +
  267. ;
  268. ; First, check whether the same version of the software exists
  269. ;
  270. OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  271. Ifstr $(KeyProduct) != $(KeyNull)
  272. ;
  273. ; Same version already existed in the local machine
  274. ; Popup the dialog and ask the user whether he wants to continue
  275. ;
  276. CloseRegKey $(KeyProduct)
  277. Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  278. $(ProductVersion)
  279. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  280. Debug-Output "ShellCode error: cannot get an error string."
  281. goto ShellCodeError
  282. endif
  283. goto end
  284. endif
  285. CloseRegKey $(KeyProduct)
  286. goto nextstep
  287. ;
  288. ; If installing, go create the necessary keys;
  289. ; if configuring, they're already open.
  290. ;
  291. nextstep = +
  292. StartWait
  293. ;
  294. ; Create the HARDWARE\Netcard region and its corresponding service
  295. ;
  296. ifstr(i) $(!NTN_InstallMode) == "install"
  297. Ifstr(i) $(DoCopy) == "YES"
  298. Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  299. Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  300. Goto ShellCodeError
  301. Else-Ifstr(i) $($R0) == STATUS_FAILED
  302. Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  303. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  304. goto ShellCodeError
  305. endif
  306. set Error = $($R0)
  307. Goto fatal
  308. Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  309. Goto successful
  310. Endif
  311. Set SrcDir = $($R1)
  312. Endif
  313. install "Install-Option"
  314. ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  315. Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  316. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  317. goto ShellCodeError
  318. endif
  319. set Error = $($R0)
  320. goto fatal
  321. endif
  322. endif
  323. ifint $(OldVersionExisted) == $(FALSE)
  324. set OEM_ABANDON_ON = TRUE
  325. Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  326. $(ProductSoftwareName), +
  327. $(ProductSoftwareName), +
  328. $(ProductSoftwareDisplayName), $(STF_CONTEXTINFNAME), +
  329. $(ProductSoftwareImagePath), "kernelauto", "", {}, "",+
  330. $(IoLogMsgDLL)
  331. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  332. Debug-Output "ShellCode error"
  333. goto ShellCodeError
  334. endif
  335. set RegistryErrorIndex = $($R0)
  336. Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  337. EndWait
  338. Debug-Output "Registry error: add software components"
  339. CloseRegKey $($R1)
  340. CloseRegKey $($R2)
  341. CloseRegKey $($R3)
  342. CloseRegKey $($R4)
  343. CloseRegKey $($R5)
  344. goto fatalregistry
  345. endif
  346. ;
  347. ; At this point:
  348. ; $R1 contains the product version key handle;
  349. ; $R2 contains the NetRules subkey handle;
  350. ; $R3 contains the new Services key handle; and
  351. ; $R4 contains the Parameters key
  352. ; $R5 contains the Linkage Key
  353. ;
  354. Set SoftProductKey = $($R1)
  355. Set SoftNetRuleKey = $($R2)
  356. Set SoftServiceKey = $($R3)
  357. Set SoftParameterKey = $($R4)
  358. Set SoftLinkageKey = $($R5)
  359. set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  360. {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  361. {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  362. {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  363. {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  364. {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)},+
  365. {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  366. {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  367. Shell $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  368. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  369. Debug-Output "ShellCode error."
  370. goto ShellCodeError
  371. endif
  372. set RegistryErrorIndex = $($R0)
  373. Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  374. EndWait
  375. Debug-Output "Registry error: add software components"
  376. CloseRegKey $(SoftProductKey)
  377. CloseRegKey $(SoftNetRuleKey)
  378. CloseRegKey $(SoftServiceKey)
  379. CloseRegKey $(SoftParameterKey)
  380. CloseRegKey $(SoftLinkageKey)
  381. goto fatalregistry
  382. endif
  383. set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  384. {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  385. {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  386. {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  387. {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  388. {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  389. Shell $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  390. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  391. Debug-Output "ShellCode error."
  392. goto ShellCodeError
  393. endif
  394. set RegistryErrorIndex = $($R0)
  395. CloseRegKey $(SoftProductKey)
  396. CloseRegKey $(SoftNetRuleKey)
  397. CloseRegKey $(SoftServiceKey)
  398. CloseRegKey $(SoftParameterKey)
  399. CloseRegKey $(SoftLinkageKey)
  400. Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  401. EndWait
  402. Debug-Output "Resgitry error: add value list."
  403. goto fatalregistry
  404. endif
  405. endif
  406. LibraryProcedure Result, $(!NCPA_HANDLE), CPlAddMonitor
  407. goto writeparameters
  408. ;
  409. ; REQUIRED: $(KeyParameters) contains service Parameters key handle
  410. ;
  411. writeparameters = +
  412. ;
  413. ; Add the rest of the parameters to the Services area
  414. ; in this case add nothing
  415. ;
  416. CloseRegKey $(KeyParameters)
  417. EndWait
  418. goto successful
  419. ;-----------------------------------------------
  420. ; Binding section
  421. ;-----------------------------------------------
  422. bindingadapter =+
  423. set Error = "Binding: Sorry, not yet implemented."
  424. goto fatal
  425. ;-----------------------------------------------
  426. ; Removeadapter section
  427. ;-----------------------------------------------
  428. removeadapter = +
  429. ;
  430. ; Remove DLC service
  431. ;
  432. Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  433. $(ProductSoftwareName)
  434. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  435. Debug-Output "ShellCode error"
  436. goto ShellCodeError
  437. endif
  438. set RegistryErrorIndex = $($R0)
  439. Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  440. goto fatalregistry
  441. endif
  442. LibraryProcedure Result, $(!NCPA_HANDLE), CPlDeleteMonitor
  443. goto end
  444. ;-----------------------------------------------
  445. ; Upgrade Software section
  446. ;-----------------------------------------------
  447. UpgradeSoftware = +
  448. ; Upgrade software component
  449. ;
  450. OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  451. Ifstr $(KeyProduct) != $(KeyNull)
  452. install "Install-Update"
  453. ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  454. goto fatal
  455. endif
  456. ; Upgrade the version number
  457. ;
  458. SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  459. SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  460. ;
  461. ; upgrade description
  462. ;
  463. SetRegValue $(KeyProduct) {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)}
  464. SetRegValue $(KeyProduct) {OperationsSupport,$(NoTitle),$(!REG_VT_DWORD),$(ProductOpSupport)}
  465. ;
  466. ; do nothing for update
  467. ;
  468. CloseRegKey $(KeyProduct)
  469. else
  470. ;
  471. ; Cannot Open software key, goto ERROR
  472. ;
  473. goto fatalregistry
  474. endif
  475. goto end
  476. ;
  477. ; End of Upgrade Software
  478. ;
  479. ;
  480. ; Escape hatches
  481. ;
  482. successful = +
  483. goto end
  484. ;
  485. ; warning display
  486. ;
  487. warning = +
  488. Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  489. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  490. goto ShellCodeError
  491. endif
  492. ifstr(i) $($R1) == "OK"
  493. goto $(to)
  494. else-ifstr(i) $($R1) == "CANCEL"
  495. goto $(from)
  496. else
  497. ; Debug-Msg "Error Error Bad DLGEVENT"
  498. goto "end"
  499. endif
  500. ;
  501. ; non fatal error display
  502. ;
  503. nonfatalinfo = +
  504. Set CommonStatus = STATUS_USERCANCEL
  505. Set Severity = STATUS
  506. goto nonfatalmsg
  507. nonfatal = +
  508. Set Severity = NONFATAL
  509. goto nonfatalmsg
  510. nonfatalmsg = +
  511. ifstr(i) $(Error) == ""
  512. Set Severity = NONFATAL
  513. Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  514. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  515. goto ShellCodeError
  516. endif
  517. set Error = $($R0)
  518. endif
  519. Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  520. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  521. goto ShellCodeError
  522. endif
  523. ifstr(i) $($R1) == "OK"
  524. goto $(from)
  525. else
  526. goto "end"
  527. endif
  528. ;
  529. ; Registry is broken
  530. ;
  531. fatalregistry = +
  532. Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  533. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  534. goto ShellCodeError
  535. endif
  536. set Error = $($R0)
  537. goto fatal
  538. ;
  539. ; fatal error display
  540. ;
  541. fatal = +
  542. ifstr(i) $(Error) == ""
  543. Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  544. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  545. goto ShellCodeError
  546. endif
  547. set Error = $($R0)
  548. endif
  549. Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  550. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  551. goto ShellCodeError
  552. endif
  553. goto setfailed
  554. ;
  555. ; Shelling error
  556. ;
  557. ShellCodeError = +
  558. set DlgType = "MessageBox"
  559. set STF_MB_TITLE = $(ShellCodeErrorTitle)
  560. set STF_MB_TEXT = $(ShellCodeErrorText)
  561. set STF_MB_TYPE = 1
  562. set STF_MB_ICON = 3
  563. set STF_MB_DEF = 1
  564. ui start "Error Message"
  565. goto setfailed
  566. setfailed = +
  567. set CommonStatus = STATUS_FAILED
  568. ;
  569. ; If OEM_ABANDON_ON, we need to clean up the registry
  570. ;
  571. ifstr(i) $(OEM_ABANDON_ON) == TRUE
  572. set OEM_ABANDON_ON = FALSE
  573. goto removeadapter
  574. endif
  575. goto end
  576. end = +
  577. goto term
  578. term = +
  579. Return $(CommonStatus)
  580. ;***************************************************************
  581. ; INSTALL SECTIONS
  582. ;***************************************************************
  583. [Install-Option]
  584. set STF_VITAL = ""
  585. ifstr(i) $(AddCopy) == "YES"
  586. ;
  587. ; Add the files to the copy list
  588. ;
  589. ; BUGBUG: eliminate the "nt2" in the next line when Sunil fixes
  590. ; the other INF files
  591. ;
  592. AddSectionFilesToCopyList Files-$(Option)API $(SrcDir) $(!STF_WINDOWSSYSPATH)
  593. AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  594. endif
  595. ifstr(i) $(DoCopy) == "YES"
  596. ;
  597. ; Copy files in the copy list
  598. ;
  599. set !STF_NCPA_FLUSH_COPYLIST = TRUE
  600. CopyFilesInCopyList
  601. else
  602. Debug-Output "OEMNSVCU.INF: Copy Single File "$(SrcDir)\hpmon.dll" to "$(!STF_WINDOWSSYSPATH)\hpmon.dll
  603. LibraryProcedure STATUS,$(!NCPA_HANDLE), CopySingleFile $(!STF_HWND) $(SrcDir)\hpmon.dll $(!STF_WINDOWSSYSPATH)\hpmon.dll
  604. endif
  605. ifstr(i) $(DoConfig) == "YES"
  606. ;
  607. ; Add product to registry
  608. ;
  609. ;
  610. ; Finish up
  611. endif
  612. Exit
  613. [Install-Update]
  614. set STF_VITAL = ""
  615. set STF_OVERWRITE = "VERIFYSOURCEOLDER"
  616. ;set STF_VERSION = "YES"
  617. AddSectionFilesToCopyList Files-$(Option)API $(SrcDir) $(!STF_WINDOWSSYSPATH)
  618. AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  619. exit
  620.