home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1999 March / VPR9903B.ISO / DRVLIBJ / NETCARD / NEC98 / 3COM / 3C980TX / OEMSETUP.INF < prev    next >
INI File  |  1998-11-10  |  63KB  |  1,581 lines

  1. ;*************************************************
  2. ;
  3. ;   3Com Fast EtherLink XL Server(3c980) driver SETUP INF File
  4. ;
  5. ;*************************************************
  6. [IntstallOptions]
  7. Install_dRMON       = "NO"
  8. Install_3NIC_Diag   = "YES"
  9. Install_PACE        = "YES"
  10. Install_Shortcuts   = "YES"
  11. [Identification]
  12. OptionType = NetAdapter
  13. [PlatformsSupported]
  14. ISA
  15. EISA
  16. "Jazz-Internal Bus"
  17. PCI
  18. [Options]
  19. 3C980   ; 10/100Mb Fast EtherLink XL 
  20. VLAN
  21. [FileConstants]
  22. UtilityInf                  = "UTILITY.INF"
  23. subroutineinf               = "SUBROUTN.INF"
  24. SoftwareType                = "driver"
  25. Exit_Code                   = 0
  26. NetEventDLL                 = "%SystemRoot%\System32\netevent.dll;%SystemRoot%\System32\drivers\el980n4.sys"
  27. IoLogMsgDLL                 = "%SystemRoot%\System32\IoLogMsg.dll"
  28. TrayIconExe                 = "comsmd.exe"
  29. Manufacturer                = "3Com"
  30. ProductMajorVersion         = "1"
  31. ProductMinorVersion         = "0"
  32. ProductVersion              = $(ProductMajorVersion)"."$(ProductMinorVersion)
  33. ProductSoftwareName         = "El980n4"
  34. ProductSoftwareImagePath    = "%SystemRoot%\System32\drivers\el980n4.sys"
  35. NetRuleSoftwareType         = "El980n4Sys ndisDriver El980n4Driver"
  36. NetRuleSoftwareUse          = $(SoftwareType)
  37. NetRuleSoftwareBindForm     = """El980n4Sys"" yes no container"
  38. NetRuleSoftwareClass        = {"El980n4Driver basic"}
  39. NetRuleSoftwareBindable     = {"El980n4Driver El980n4Adapter non exclusive 100"}
  40. ProductHardwareName         = "El980n4"
  41. NetRuleHardwareBindForm     = " yes yes container"
  42. ProductKeyName              = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  43. ParamKeyName                = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  44. FunctionTitle               = "3Com 3C980x Adapter Card Setup"
  45. ProductSoftwareDescription  = "3Com 3C980x Adapter Driver"
  46. ProductSoftwareTitle        = "3Com 3C980x Adapter Driver"
  47. 3CNUMBER                    = "3C90X"
  48. GROUP_NAME                  = "3Com Fast Etherlink Server XL"
  49. ProductHardware3C980Title   = "3Com Fast EtherLink XL Server Adapter (3C980)"
  50. ProductHardware3C980Description = "3Com Fast EtherLink XL Server PCI 10/100Mb Adapter (3C980)"
  51. NetRuleHardware3C980Type    = "El980n4 El980n4Adapter"
  52. NetRuleHardware3C980Class   = {"El980n4Adapter basic"}
  53. ProductHardware3C900Title   = "3Com EtherLink XL Adapter (3C900)"
  54. ProductHardware3C900Description = "3Com EtherLink XL PCI 10Mb Adapter (3C900)" 
  55. NetRuleHardware3C900Type    = "El90x El90xAdapter"
  56. NetRuleHardware3C900Class   = {"El90xAdapter basic"}
  57. Adapter3C980Type            = 5             ;; PCI board
  58. Adapter3C900Type            = 5             ;; PCI board
  59. 3C980CFIDList               = {38912, 36945}  ;; 0x9050, 0x9051
  60. 3C900CFIDList               = {36864, 36865}  ;; 0x9000, 0x9001
  61. [GeneralConstants]
  62. from      = ""
  63. to    = ""
  64. ExitCodeOk     = 0
  65. ExitCodeCancel = 1                
  66. ExitCodeFatal  = 2
  67. KeyNull     = ""
  68. MAXIMUM_ALLOWED   = 33554432
  69. RegistryErrorIndex = NO_ERROR
  70. KeyProduct  = ""
  71. KeyParameters   = ""
  72. TRUE        = 1
  73. FALSE       = 0
  74. NoTitle        = 0
  75. ExitState   = "Active"
  76. OldVersionExisted = $(FALSE)
  77. DriverPath  = $(!STF_NTPATH)\drivers
  78. NT350VersionConstant = "3.50"
  79. NT351VersionConstant = "(3.51)"
  80. NT310VersionConstant = "3.10"
  81. NT400VersionConstant = "(4.0)"
  82. INF_PROCESSER = "I386"
  83. [BaseVars]
  84. KeyNull            = ""
  85. MAXIMUM_ALLOWED    = 33554432
  86. KeyInfo            = {}
  87. RegistryErrorIndex = NO_ERROR
  88. NoTitle            = 0
  89. CurrentControlSet  = "SYSTEM\CurrentControlSet"
  90. ServicesBaseName   = $(CurrentControlSet)"\Services"
  91. NetworkCardKeyName = $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards"
  92. !RegLastError      = NO_ERROR
  93. [date]
  94. Now = {} ? $(!LIBHANDLE) GetSystemDate
  95. [WriteVlanopEntry]
  96. read-syms BaseVars
  97. set AlreadyExisted = 0 
  98. set VlanAlreadypresent = 0 
  99. set SecondaryPresent = 0
  100. set CardNumPresent = 0 
  101. set BusNum  = $($0)
  102. set SlotNum = $($1) 
  103. set Description = $($2)
  104. set Product = $($3)
  105. set SkipDescriptionCheck = $($4)
  106. set write = $($5)
  107. set CardNo = $($6)
  108. set paceon = 0 
  109. ifstr(i) $(SkipDescriptionCheck) == ""
  110. set SkipDescriptionCheck = "NO"
  111. endif 
  112. OpenRegKey $(!REG_H_LOCAL) "" $(NetworkCardKeyName) $(MAXIMUM_ALLOWED) IE_KeyNetcards
  113. Ifstr $(IE_KeyNetcards) == $(KeyNull)
  114. set RegistryErrorIndex = UNABLE_OPEN_NETWORKCARD_SECTION
  115. goto IE_Return
  116. endif
  117. EnumRegKey $(IE_KeyNetcards) IE_KeyNameList
  118. ForListDo  $(IE_KeyNameList)
  119. set IE_KeyName = *($($),1)
  120. OpenRegKey $(IE_KeyNetcards) "" $(IE_KeyName) $(MAXIMUM_ALLOWED) IE_Card
  121. Ifstr $(IE_Card) == $(KeyNull)
  122. set RegistryErrorIndex = UNABLE_OPEN_NETWORKCARD_SECTION
  123. goto IE_Return
  124. endif       
  125. GetRegValue $(IE_Card),"ProductName", ProductNameInfo
  126. set CardProductName     = *($(ProductNameInfo), 4)
  127. ifstr(i) $(CardProductName) == $(Product)
  128. GetRegValue $(IE_Card), "ServiceName", ServiceNameInfo
  129. set ServiceName = *($(ServiceNameInfo), 4)
  130. OpenRegKey $(!REG_H_LOCAL) "" +
  131. $(ServicesBaseName)"\"$(ServiceName)"\Parameters" +
  132. $(MAXIMUM_ALLOWED) IE_KeyService
  133. Ifstr $(IE_KeyService) == $(KeyNull)
  134. set RegistryErrorIndex = UNABLE_OPEN_NETWORKCARD_SECTION
  135. goto IE_Return
  136. endif
  137. GetRegValue $(IE_KeyService), "BusNumber", BusInfo
  138. GetRegValue $(IE_KeyService), "SlotNumber", SlotInfo
  139. GetRegValue $(IE_KeyService), "ADAPTERNUMBER",AdaptInfo 
  140. set CardBusNum = *($(BusInfo), 4)
  141. set CardSlotNum = *($(SlotInfo), 4)                     
  142. set AdaptNo = *($(AdaptInfo), 4) 
  143. ifint $(AdaptNo) == $(CardNo)
  144. set CardNumPresent = 1
  145. endif 
  146. ifint $(CardBusNum) == $(BusNum)
  147. ifint $(CardSlotNum) == $(SlotNum)
  148. set-add AlreadyExisted = $(AlreadyExisted),1
  149. GetRegValue $(IE_KeyService), "Vlan_op", VlanopInfo
  150. set Vlanop = *($(VlanopInfo),4)
  151. GetRegValue $(IE_KeyService), "ADAPTERNUMBER",NICInfo 
  152. set NICNo = *($(NICInfo), 4) 
  153. GetRegValue $(IE_KeyService), "PRIMARYADAPTERNUMBER",Sec 
  154. set SecP = *($(Sec),4)
  155. ifstr(i) $(SecP) != ""
  156. set SecondaryPresent = 1
  157. endif 
  158. GetRegValue $(IE_KeyService), "PACEIPXRanges",pacepresent
  159. set paceinfo = *($(pacepresent),4)
  160. ifstr(i) $(paceinfo) != ""
  161. set paceon = 1
  162. endif 
  163. GetRegValue $(IE_KeyService), "PACETCPRanges",pacepresent1
  164. set paceinfo1 = *($(pacepresent1),4)
  165. ifstr(i) $(paceinfo1) != ""
  166. set paceon = 1
  167. endif 
  168. GetRegValue $(IE_KeyService), "PACEUDPStreams",pacepresent2
  169. set paceinfo2 = *($(pacepresent2),4)
  170. ifstr(i) $(paceinfo2) != ""
  171. set paceon = 1
  172. endif 
  173. GetRegValue $(IE_KeyService), "VLAN_NAME",VlanName 
  174. set Vlann = *($(VlanName), 4)                     
  175. ifstr(i) $(Vlann) != ""
  176. set VlanAlreadypresent = 1 
  177. endif 
  178. ifint $(write) == 1
  179. ifint $(VlanAlreadypresent) ==  0                      
  180. SetRegValue $(IE_KeyService), {Vlan_op, $(NoTitle),$(!REG_VT_DWORD),1} 
  181. SetRegValue $(IE_KeyService), {VLANID, $(NoTitle),$(!REG_VT_DWORD),255} 
  182. SetRegValue $(IE_KeyService), {VLAN_NAME, $(NoTitle),$(!REG_VT_SZ),""} 
  183. endif     
  184. endif 
  185. endif; Slotnum
  186. endif ; busnum
  187. endif ; product
  188. EndForListDo
  189. IE_Return = +
  190. return $(RegistryErrorIndex) $(AlreadyExisted) $(Vlanop) $(VlanAlreadypresent)    $(SecondaryPresent) $(CardNumPresent) $(NICNo) $(paceon)
  191. [Identify]
  192. read-syms Identification
  193. set !G:DebugOutputControl = 1  ;Debug On/Off 
  194. set Status     = STATUS_SUCCESSFUL
  195. set Identifier = $(OptionType)
  196. set Media      = #("Source Media Descriptions", 1, 1)
  197. Return $(Status) $(Identifier) $(Media)
  198. [ReturnOptions]
  199. set Status        = STATUS_FAILED
  200. set OptionList     = {}
  201. set OptionTextList = {}
  202. set LanguageList = ^(LanguagesSupported, 1)
  203. Ifcontains(i) $($0) in $(LanguageList)
  204. ifstr(i) $($1) == ""
  205. goto returnoptions
  206. endif
  207. set PlatformList = ^(PlatformsSupported, 1)
  208. Ifcontains(i) $($1) in $(PlatformList)
  209. goto returnoptions
  210. else
  211. set Status = STATUS_NOTSUPPORTED
  212. goto finish_ReturnOptions
  213. endif
  214. else
  215. set Status = STATUS_NOLANGUAGE
  216. goto finish_ReturnOptions
  217. endif
  218. returnoptions = +
  219. set OptionList     = ^(Options, 1)
  220. set OptionTextList = ^(OptionsText$($0), 1)
  221. set Status         = STATUS_SUCCESSFUL
  222. finish_ReturnOptions = +
  223. Return $(Status) $(OptionList) $(OptionTextList)
  224. [InstallOption]
  225. set $(!G:DebugOutputControl) = 1     ;; Debug output {1=turned on, 0= turned off}
  226. set CurrLang = $($0)
  227. set Option   = $($1)
  228. set SrcDir   = $($2)
  229. set AddCopy  = $($3)
  230. set DoCopy   = $($4)
  231. set DoConfig = $($5)
  232. set LanguageList = ^(LanguagesSupported, 1)
  233. Ifcontains(i) $($0) NOT-IN $(LanguageList)
  234. Return STATUS_NOLANGUAGE
  235. endif
  236. set-subst LF = "\n"
  237. read-syms IntstallOptions
  238. read-syms GeneralConstants
  239. read-syms FileConstants
  240. read-syms DialogConstants$(!STF_LANGUAGE)
  241. ifstr(i) $(!NTN_Origination) == "NCPA"
  242. set Continue = "OK"
  243. endif
  244. read-syms FileConstants$(!STF_LANGUAGE)
  245. detect date
  246. set-title  $(Function$(Option)Title)
  247. set to   = Begin
  248. set from = Begin
  249. set CommonStatus = STATUS_SUCCESSFUL
  250. EndWait
  251. Begin = +
  252. set CurrentVersionValue = ""
  253. OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows Nt\CurrentVersion" $(!REG_KEY_READ) KeyNt
  254. Ifstr(i) $(KeyNt) != ""
  255. GetRegValue $(KeyNt) "CurrentVersion" CurrentVersionValue
  256. CloseRegKey $(KeyNt)
  257. Endif
  258. ifstr(i) (*($(CurrentVersionValue),4)) == $(NT310VersionConstant)    ;; NT v3.10 not supported!
  259. set Error = "Windows NT v3.10 is not support by this product"
  260. goto fatal
  261. endif
  262. ifstr(i) (*($(CurrentVersionValue),4)) != $(NT351VersionConstant) 
  263. ifstr(i) (*($(CurrentVersionValue),4)) != $(NT400VersionConstant) 
  264. set Error = "Only Windows NT v3.51 or NT v4.0 is supported by this product"
  265. goto fatal
  266. endif
  267. endif 
  268. Ifstr(i) $(!NTN_InstallMode) == deinstall
  269. set StartLabel = removeadapter
  270. else-Ifstr(i) $(!NTN_InstallMode) == Update
  271. set StartLabel = UpgradeSoftware
  272. else-Ifstr(i) $(!NTN_InstallMode) == bind
  273. set StartLabel = bindingadapter
  274. else-Ifstr(i) $(!NTN_InstallMode) == configure
  275. ifstr $(!STF_PLATFORM) == $(INF_PROCESSER)    
  276. RunProgram ExitCode "Windows Directory" "" 980instl.exe 
  277. goto end
  278. else-Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  279. Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  280. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  281. goto ShellCodeError
  282. endif
  283. set Error = $($R0)
  284. set from = end
  285. set to = end
  286. goto nonfatalinfo
  287. else
  288. set StartLabel = configureadapter
  289. endif
  290. else
  291. set StartLabel = installadapter
  292. set OEM_ABANDON_OPTIONS = {}
  293. set OEM_ABANDON_SOFTWARE = FALSE
  294. set OEM_ABANDON_ON = TRUE
  295. endif
  296. set from = $(fatal)
  297. set to = $(fatal)
  298. goto $(StartLabel)
  299. installadapter = +
  300. OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  301. Ifstr $(KeyProduct) != $(KeyNull)
  302. CloseRegKey $(KeyProduct)
  303. ifstr(i) $(Option)  == "VLAN"
  304. goto pcidetect
  305. endif 
  306. ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  307. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  308. goto ShellCodeError
  309. endif
  310. goto end
  311. else
  312. set OldVersionExisted = $(TRUE)
  313. endif
  314. else-ifstr(i) $(Option) == "VLAN"
  315. set Error = $(INSTALL_CARD_FIRST)
  316. set CommonStatus = USER_CANCEL
  317. set from = end
  318. goto nonfatal 
  319. Endif
  320. Goto adapteroptions    
  321. configureadapter = +
  322. set Error = "Cannot configure the software component"
  323. goto fatal
  324. adapteroptions = +
  325. set from = adapteroptions
  326. ifstr(i) $(!NTN_InstallMode) == configure
  327. goto updateparameters
  328. endif
  329. installproduct = +
  330. StartWait 
  331. set AdapterList = $($R1)
  332. ifint $(OldVersionExisted) == $(FALSE)
  333. Ifstr(i) $(DoCopy) == "YES"
  334. Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) NO
  335. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  336. Goto ShellCodeError
  337. Else-Ifstr(i) $($R0) == STATUS_FAILED
  338. Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  339. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  340. goto ShellCodeError
  341. endif
  342. set Error = $($R0)
  343. Goto fatal
  344. Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  345. Goto successful
  346. Endif
  347. Set SrcDir = $($R1)
  348. Endif
  349. install "Install-Option"
  350. ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  351. Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  352. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  353. goto ShellCodeError
  354. endif
  355. set Error = $($R0)
  356. goto fatal
  357. endif
  358. endif
  359. OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_ServiceBase)"\"$(ProductHardwareName) $(!REG_KEY_READ) KeyNt
  360. CloseRegKey $(KeyNt)
  361. Ifstr(i) $(KeyNt) == ""
  362. Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  363. $(ProductSoftwareName), +
  364. $(ProductSoftwareName), +
  365. $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  366. $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  367. $(NetEventDLL)
  368. Set OEM_ABANDON_SOFTWARE = TRUE
  369. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  370. goto ShellCodeError
  371. endif
  372. set RegistryErrorIndex = $($R0)
  373. Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  374. EndWait
  375. CloseRegKey $($R1)
  376. CloseRegKey $($R2)
  377. CloseRegKey $($R3)
  378. CloseRegKey $($R4)
  379. CloseRegKey $($R5)
  380. goto fatalregistry
  381. endif
  382. Set SoftProductKey      = $($R1)
  383. Set SoftNetRuleKey      = $($R2)
  384. Set SoftServiceKey      = $($R3)
  385. Set SoftParameterKey    = $($R4)
  386. Set SoftLinkageKey      = $($R5)
  387. set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  388. {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  389. {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  390. {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  391. {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  392. {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  393. {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  394. Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  395. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  396. goto ShellCodeError
  397. endif
  398. set RegistryErrorIndex = $($R0)
  399. Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  400. EndWait
  401. CloseRegKey $(SoftProductKey)
  402. CloseRegKey $(SoftNetRuleKey)
  403. CloseRegKey $(SoftServiceKey)
  404. CloseRegKey $(SoftParameterKey)
  405. CloseRegKey $(SoftLinkageKey)
  406. goto fatalregistry
  407. endif
  408. set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  409. {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  410. {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  411. {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  412. {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  413. {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  414. Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  415. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  416. goto ShellCodeError
  417. endif
  418. set RegistryErrorIndex = $($R0)
  419. CloseRegKey $(SoftProductKey)
  420. CloseRegKey $(SoftNetRuleKey)
  421. CloseRegKey $(SoftServiceKey)
  422. CloseRegKey $(SoftParameterKey)
  423. CloseRegKey $(SoftLinkageKey)
  424. Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  425. EndWait
  426. goto fatalregistry
  427. endif
  428. endif ;; Does Services\el980N4 exist?
  429. pcidetect = +
  430. Debug-Output "IN PCI Detect"
  431. set TargetVersion = *($(CurrentVersionValue),4)
  432. ifstr $(TargetVersion) == $(NT350VersionConstant)   ;; We need to ask on v3.50
  433. set Version350 = $(TRUE)
  434. else
  435. set Version350 = $(FALSE)
  436. endif
  437. ifint $(Version350) == $(TRUE)
  438. ifstr $(!STF_GUI_UNATTENDED) == "YES"
  439. ifstr(i) $(!AutoNetInterfaceType) != ""
  440. set BusInterfaceType = $(!AutoNetInterfaceType)
  441. else
  442. set BusInterfaceType = 5
  443. endif
  444. ifstr(i) $(!AutoNetBusNumber) != ""
  445. set BusNumber = $(!AutoNetBusNumber)
  446. else
  447. set BusNumber = 0
  448. endif
  449. set NTDetected = $(FALSE)
  450. set AdapterList = $(Option)   ;; 1 Item to install
  451. else        
  452. set BusInterfaceType = 5
  453. set BusNumber = 0
  454. set NTDetected = $(FALSE)
  455. Shell $(UtilityInf),GetBusTypeDialog,$(ProductHardware$(Option)Description) $(BusInterfaceType) $(BusNumber)
  456. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  457. goto ShellCodeError
  458. endif
  459. set BusInterfaceType = $($R1)
  460. set BusNumber = $($R2)
  461. set AdapterList = $(Option)   ;; 1 Item to install
  462. endif    
  463. else
  464. set NTDetected = $(TRUE)
  465. set Vendor = 4279       ;; 0x10b7 is 3Com's Vendor ID!
  466. set CFIDList = $(3C980CFIDList)
  467. set AdapterList = {}
  468. ForListDo $(CFIDList)
  469. set-div CFID = $($) 1
  470. Shell $(UtilityInf), GetPCIInformation, $(Vendor) $(CFID)
  471. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  472. goto ShellCodeError
  473. endif
  474. ForListDo $($R0)
  475. set AdapterList = >($(AdapterList), $($))
  476. EndForListDo
  477. EndForListDo
  478. ifstr(i) $(AdapterList) == {}
  479. set Error = $(CANNOT_FIND_ANY_CARD)
  480. set CommonStatus = USER_CANCEL
  481. set from = end
  482. goto nonfatal
  483. endif
  484. endif   ;;; NT v3.50
  485. Debug-Output "$(AdapterList)"
  486. set AdapterNum = 1
  487. set CardNum = 1
  488. set tempcards = 0
  489. set AdapterSeq = 0
  490. set addt = 0
  491. set DoNotInstall = 0
  492. InstallVlan = +
  493. ForListDo $(AdapterList)
  494. Debug-Output "Counting Adapters"
  495. set DetectedBusNum = *($($),1)
  496. set DetectedSlotNum = *($($),2)
  497. Shell "", WriteVlanopEntry, $(DetectedBusNum), +
  498. $(DetectedSlotNum), $(ProductHardware3C980Description), $(ProductHardwareName), "", 0, 0
  499. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  500. goto ShellCodeError
  501. endif
  502. ifstr $($R0) != "NO_ERROR"
  503. set Error = $($R0)
  504. goto fatal
  505. endif
  506. ifint $($R1) >=  1 
  507. set-add tempcards = $(tempcards) , 1
  508. endif 
  509. EndForListDo    
  510. read-syms BaseVars
  511. LoadLibrary "Setup Disk: #2" .\EtherBox.dll hLib 
  512. ForListDo $(AdapterList)
  513. set SecondaryNIC = 0 
  514. set Paceactive = 0    
  515. Set InstallCard = "YES"
  516. set-add AdapterSeq = $(AdapterSeq) , 1 
  517. ifint $(NTDetected) == $(TRUE)
  518. set DetectedBusNum = *($($),1)
  519. set DetectedSlotNum = *($($),2)
  520. Shell "", WriteVlanopEntry, $(DetectedBusNum), +
  521. $(DetectedSlotNum), $(ProductHardware3C980Description), $(ProductHardwareName), "", 0,$(AdapterNum)
  522. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  523. goto ShellCodeError
  524. endif
  525. ifstr $($R0) != "NO_ERROR"
  526. set Error = $($R0)
  527. goto fatal
  528. endif
  529. set SecondaryNIC = $($R4) 
  530. set CardNumPresent = $($R5) 
  531. set NICNum  = $($R6)
  532. set Paceactive = $($R7)    
  533. ifint $($R1) >=  1 
  534. set InstallCard = "NO"  ;; Don't want to re-install, it's there already
  535. endif    
  536. endif    ; NTdetected
  537. ifstr(i) $(Option) == "3C980"
  538. ifstr(i) $(InstallCard) == "NO"
  539. set addt =  1 
  540. goto nextone
  541. else    
  542. set addt = 0 
  543. ifstr $(!STF_GUI_UNATTENDED) != "YES"
  544. dlgagain1 = +
  545. read-syms EtherBoxDRIVER
  546. ui start "Inputdlg" $(hLib)
  547. ifstr(i) $(DLGEVENT) == "FREEBUTTON1"
  548. ui pop 1
  549. RunProgram HelpResult "" "" winhlp32.exe  $(!STF_WINDOWSSYSPATH)"\"980instl.hlp
  550. goto dlgagain1
  551. endif
  552. else 
  553. set DLGEVENT = "CONTINUE"    
  554. endif    
  555. ifstr(i) $(DLGEVENT) == "CONTINUE"
  556. set DoNotInstall = 1 
  557. ui pop 1    
  558. ifint $(CardNumPresent) == 0 
  559. OpenRegKey $(!REG_H_LOCAL) "" +
  560. $(ServicesBaseName)"\"el980n4"\Parameters" +
  561. $(MAXIMUM_ALLOWED) IE_KeyService
  562. GetRegValue $(IE_KeyService), "TotCards", CardInfos
  563. set CardNumbers = *($(CardInfos),4)                         
  564. Shell "", WriteVlanopEntry, $(DetectedBusNum), +
  565. $(DetectedSlotNum), $(ProductHardware3C980Description), $(ProductHardwareName), "", 0, $(CardNumbers)
  566. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  567. goto ShellCodeError
  568. endif
  569. set IsthisNICpresent = $($R5)
  570. ifstr(i) $(CardNumbers) !=  ""         
  571. ifint $(AdapterNum) == 1
  572. ifint $(IsthisNICpresent) == 1
  573. set-add CardNum = $(CardNumbers) , 1
  574. else
  575. set CardNum = $(CardNumbers) 
  576. endif
  577. endif
  578. endif
  579. else 
  580. OpenRegKey $(!REG_H_LOCAL) "" +
  581. $(ServicesBaseName)"\"el980n4"\Parameters" +
  582. $(MAXIMUM_ALLOWED) IE_KeyService
  583. GetRegValue $(IE_KeyService), "TotCards", CardInfo
  584. set CardNumber = *($(CardInfo),4)                         
  585. Shell "", WriteVlanopEntry, $(DetectedBusNum), +
  586. $(DetectedSlotNum), $(ProductHardware3C980Description), $(ProductHardwareName), "", 0, $(CardNumber)
  587. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  588. goto ShellCodeError
  589. endif
  590. set Isthiscardpresent = $($R5)
  591. ifint $(CardNumber) < $(CardNum)
  592. goto skip
  593. endif    
  594. ifint $(Isthiscardpresent)  ==  1
  595. set-add  CardNum = $(CardNumber) , 1    
  596. else
  597. set CardNum = $(CardNumber)
  598. endif
  599. skip = +            
  600. goto writeregistry
  601. endif
  602. else 
  603. set-sub AdapterNum = $(AdapterNum), 1
  604. set-sub CardNum = $(CardNum), 1
  605. ui pop 1    
  606. goto nextone        
  607. endif     
  608. endif
  609. else-ifstr(i) $(Option) == "VLAN"
  610. ifstr(i) $(InstallCard) == "NO"
  611. set CardNum = $(NICNum) 
  612. ifint $(Paceactive) == 1
  613. Shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) "NONFATAL" +
  614. "VLANs cannot be installed on a NIC with PACE enabled. Please Disable PACE and reboot system ." 
  615. goto nextone    
  616. endif
  617. ifint $(SecondaryNIC) == 1
  618. goto nextone    
  619. endif    
  620. goto writeregistry    
  621. else
  622. goto nextone 
  623. endif
  624. endif ; 3C980  
  625. writeregistry = +        
  626. ifstr $(!STF_GUI_UNATTENDED) != "YES"
  627. dlgagain2 = +
  628. read-syms EtherBoxVLANS
  629. ui start "Inputdlg" $(hLib)
  630. ifstr(i) $(DLGEVENT) == "FREEBUTTON1"
  631. ui pop 1
  632. RunProgram HelpResult "" "" winhlp32.exe  $(!STF_WINDOWSSYSPATH)"\"980instl.hlp
  633. goto  dlgagain2
  634. endif
  635. set Vlanyes = 0
  636. set NumMacs = 1
  637. set VlanIndex = 0
  638. set Vlanon = 0
  639. ifstr(i) $(DLGEVENT) == "CONTINUE"
  640. set Vlanyes = 1
  641. ui pop 1    
  642. ifstr(i) $(Option) == "VLAN"
  643. ifstr(i) $(InstallCard) == "YES"    
  644. set Error = $(INSTALL_CARD_FIRST)
  645. set CommonStatus = USER_CANCEL
  646. set from = end
  647. goto nonfatal
  648. endif    
  649. Shell "", WriteVlanopEntry, $(DetectedBusNum), +
  650. $(DetectedSlotNum), $(ProductHardware3C980Description), $(ProductHardwareName),"",0
  651. ifint $($ShellCode) !=  $(!SHELL_CODE_OK)
  652. goto ShellCodeError
  653. endif
  654. ifstr $($R0) != "NO_ERROR"
  655. set Error = $($R0)
  656. goto fatal
  657. endif                   
  658. set NumMacs = $($R1)    ; Num of Macs Currently installed
  659. set Vlanon = $($R2)    ; if Vlans are turned on 
  660. set Vlanpresent = $($R3)    ; if Vlans are turned on 
  661. set VlanIndex = $(NumMacs) 
  662. endif; VLAN
  663. goto noofvlans
  664. else 
  665. ifstr(i) $(Option) == "VLAN"
  666. ui pop 1 
  667. goto nextone
  668. endif
  669. ui pop 1    
  670. goto writereg
  671. endif
  672. noofvlans = +    
  673. read-syms EtherBoxVLANNO
  674. ui start "Inputdlg" $(hLib)
  675. ifstr(i) $(DLGEVENT) == "FREEBUTTON1"
  676. ui pop 1
  677. RunProgram HelpResult "" "" winhlp32.exe  $(!STF_WINDOWSSYSPATH)"\"980instl.hlp
  678. goto noofvlans
  679. endif
  680. ifstr(i) $(DLGEVENT) == "BACK"
  681. ui pop 1
  682. goto writeregistry 
  683. endif    
  684. set TempNumMacs = *($(EditTextOut),1)
  685. ui pop 1    
  686. ifint $(TempNumMacs)   == 1
  687. ifint $(NumMacs) == 1    
  688. ifint $(Vlanon) == 1    ; Donot Install Vlans as Vlan already exists    
  689. Shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) "NONFATAL" +
  690. ""$(NumMacs)" Vlan already exists."
  691. goto noofvlans        
  692. endif            
  693. ifstr(i) $(Option) == "VLAN"
  694. ifint $(Vlanpresent)  == 1
  695. Shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) "NONFATAL" +
  696. "Vlans may have been installed already and turned off. Please Check Configuration"
  697. goto noofvlans        
  698. endif    
  699. Shell "", WriteVlanopEntry, $(DetectedBusNum), +
  700. $(DetectedSlotNum), $(ProductHardware3c980Description), $(ProductHardwareName),"",1, 0 
  701. ifint $($ShellCode) !=  $(!SHELL_CODE_OK)
  702. goto ShellCodeError
  703. endif
  704. goto nextone    
  705. endif    ;VLAN                 
  706. set Vlanon = $(Vlanyes)
  707. goto writereg 
  708. endif    ; NumMacs
  709. endif    ; tempNumMacs    
  710. ifint $(TempNumMacs) == 0
  711. Shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) "NONFATAL" +
  712. "Minimum Vlan per NIC is atleast 1."
  713. goto noofvlans    
  714. endif
  715. ifint $(TempNumMacs) > 16
  716. Shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) "NONFATAL" +
  717. "Maximum Vlans per NIC is 16."
  718. goto noofvlans
  719. endif
  720. ifint $(TempNumMacs) <=  $(NumMacs)
  721. set DlgTxt = ""$(NumMacs)" Vlans already exist" 
  722. Shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) "NONFATAL" +
  723. $(DlgTxt)    
  724. goto noofvlans
  725. endif
  726. ifstr(i) $(Option) == "VLAN"
  727. ifint $(TempNumMacs) > 1
  728. ifint $(NumMacs) ==  1    
  729. ifint $(Vlanon) == 0
  730. ifint $(Vlanpresent)  == 1
  731. Shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) "NONFATAL" +
  732. "Vlans may have been installed already and turned off. Please Check Configuration"
  733. goto noofvlans        
  734. endif    
  735. Shell "", WriteVlanopEntry, $(DetectedBusNum), +
  736. $(DetectedSlotNum), $(ProductHardware3c980Description), $(ProductHardwareName),"", 1
  737. ifint $($ShellCode) !=  $(!SHELL_CODE_OK)
  738. goto ShellCodeError
  739. endif
  740. endif    
  741. else 
  742. ifint $(Vlanon) == 0    
  743. ifint $(Vlanpresent)  == 1
  744. Shell $(subroutineinf) SetupMessage $(!STF_LANGUAGE) "NONFATAL" +
  745. "Vlans may have been installed already and turned off. Please Check Configuration"
  746. goto noofvlans        
  747. endif    
  748. endif
  749. endif    
  750. endif
  751. endif
  752. set NumMacs = $(TempNumMacs)
  753. writereg = +
  754. StartWait
  755. else 
  756. set VlanIndex = 0
  757. set NumMacs = 1
  758. endif     ; endif GUI unattended
  759. ifint $(VlanIndex) <  $(NumMacs)
  760. Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  761. ifint $($R4) != -1
  762. Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  763. endif
  764. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  765. goto ShellCodeError
  766. endif
  767. set RegistryErrorIndex = $($R0)
  768. Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  769. EndWait
  770. CloseRegKey $($R1)
  771. CloseRegKey $($R2)
  772. CloseRegKey $($R3)
  773. goto fatalregistry
  774. endif
  775. Set HardNetCardKey      = $($R1)
  776. Set HardNetRuleKey      = $($R2)
  777. Set HardParameterKey    = $($R3)
  778. set AdapterNumber = $($R4)
  779. set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  780. {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware3C980Title)},+
  781. {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware3C980Description)},+
  782. {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  783. {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  784. {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  785. Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  786. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  787. goto ShellCodeError
  788. endif
  789. set BusTypeNum = 5   
  790. ifstr(i) $(Option) == "3C980"
  791. set CardType = 0
  792. else
  793. set CardType = 2
  794. endif    
  795. ifint $(NTDetected) == $(TRUE)
  796. set BusNumber = $(DetectedBusNum)
  797. set SlotNum = $(DetectedSlotNum)    
  798. set BusInterfaceType = $(BusTypeNum)
  799. Set NewValueList =  {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(DetectedBusNum)},+
  800. {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(DetectedSlotNum)},+
  801. {Slot,$(NoTitle),$(!REG_VT_DWORD),$(DetectedSlotNum)},+
  802. {WINNT,$(NoTitle),$(!REG_VT_SZ),"Yes"},+
  803. {ADAPTERNUMBER,$(NoTitle),$(!REG_VT_DWORD),$(CardNum)},+
  804. {AlertType,$(NoTitle),$(!REG_VT_DWORD),0},+
  805. {AdapterSeq,$(NoTitle),$(!REG_VT_DWORD),$(AdapterSeq)},+
  806. {Vlan_op,$(NoTitle),$(!REG_VT_DWORD),$(Vlanyes)},+
  807. {SelfCheckLevel,$(NoTitle),$(!REG_VT_SZ),"off"},+
  808. {SamplingWindow,$(NoTitle),$(!REG_VT_DWORD),1024},+
  809. {SamplingRatio,$(NoTitle),$(!REG_VT_DWORD),50},+
  810. {ErrorTolerance,$(NoTitle),$(!REG_VT_SZ),"medium"},+
  811. {Base_Mac_Address,$(NoTitle),$(!REG_VT_SZ),""},+
  812. {Network_Address,$(NoTitle),$(!REG_VT_SZ),""}} 
  813. Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  814. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  815. goto ShellCodeError
  816. endif
  817. ifint $(Vlanyes) == 1
  818. set NewValueList = {+ 
  819. {VLAN_NAME,$(NoTitle),$(!REG_VT_SZ),""},+
  820. {VLANID,$(NoTitle),$(!REG_VT_DWORD),255},+ 
  821. }          
  822. Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  823. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  824. goto ShellCodeError
  825. endif
  826. endif 
  827. else
  828. Set NewValueList =  {+
  829. {BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNumber)},+
  830. }
  831. Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  832. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  833. goto ShellCodeError
  834. endif
  835. endif
  836. Set NewValueList =  {+
  837. {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusInterfaceType)},+
  838. {CardType,$(NoTitle),$(!REG_VT_DWORD),$(CardType)},+
  839. {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  840. }
  841. Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  842. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  843. goto ShellCodeError
  844. endif
  845. set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  846. set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  847. set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardware3C980Type)},+
  848. {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  849. {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardware3C980Class)}, +
  850. {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  851. Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  852. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  853. goto ShellCodeError
  854. endif
  855. CloseRegKey $(HardNetCardKey)
  856. CloseRegKey $(HardNetRuleKey)
  857. CloseRegKey $(HardParameterKey)
  858. set-add VlanIndex = $(VlanIndex), 1
  859. EndWait    
  860. goto writereg
  861. endif; VlanIndex 
  862. nextone = +
  863. ifint $(addt) == 0    
  864. set-add AdapterNum = $(AdapterNum), 1
  865. set-add CardNum = $(CardNum), 1            
  866. endif  
  867. EndForListDo    ; Adapter List
  868. FreeLibrary $(hLib) 
  869. ifint $(Option) == "3C980"
  870. ifint $(DoNotInstall) == 0 
  871. set Install_dRMON       = "NO"
  872. set Install_3NIC_Diag   = "NO"
  873. set Install_PACE        = "NO"
  874. set Install_Shortcuts   = "NO"
  875. goto end    
  876. endif
  877. OpenRegKey $(!REG_H_LOCAL) "" +
  878. $(ServicesBaseName)"\"el980n4"\Parameters" +
  879. $(MAXIMUM_ALLOWED) IE_KeyService
  880. SetRegValue $(IE_KeyService)  {TotCards, $(NoTitle),$(!REG_VT_DWORD),$(CardNum)} 
  881. CloseRegKey $(IE_KeyService)
  882. endif 
  883. ifint $(Option) == "VLAN"
  884. set Install_dRMON       = "NO"
  885. set Install_3NIC_Diag   = "NO"
  886. set Install_PACE        = "NO"
  887. set Install_Shortcuts   = "NO"
  888. RunProgram ExitCode "Windows Directory" "" 3nicdiag.exe "-inf"                      ;*
  889. RunProgram ExitCode "Windows Directory" "" 980instl.exe "-inf"                      ;*
  890. goto successful 
  891. endif  
  892. ifstr $(!STF_PLATFORM) == $(INF_PROCESSER)    
  893. install "Install-Uninstaller"                                                                       ;*
  894. OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\3Com\"$(ProductSoftwareName) $(!REG_KEY_ALL_ACCESS) +       ;*
  895. KeyNt                                                              ;*
  896. set TrayIconList = {3CUNINSTALL,$(NoTitle),$(!REG_VT_SZ),$(3CNUMBER)}                               ;*
  897. SetRegValue $(KeyNt) $(TrayIconList)                                                                ;*
  898. set TrayIconList = {FamilyMember,$(NoTitle),$(!REG_VT_SZ),"3C980"}                               ;*
  899. SetRegValue $(KeyNt) $(TrayIconList)                                                                ;*
  900. set TrayIconList = {PACENAME,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)}                       ;*
  901. SetRegValue $(KeyNt) $(TrayIconList)                                                                ;*
  902. CloseRegKey $(KeyNt)                                                                                ;*
  903. ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)                                   ;*
  904. ifstr $(Install_3NIC_Diag) == "YES"                                                             ;*
  905. OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" +       ;*
  906. $(!REG_KEY_ALL_ACCESS) KeyNt                                   ;*
  907. ifstr $(KeyNt) == ""                                                                        ;*
  908. CreateRegKey $(!REG_H_LOCAL) {"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall", +  ;*
  909. 0, GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" KeyNt    ;*
  910. endif                                                                                       ;*
  911. OpenRegKey $(KeyNt) "" "3ComNicUnInstall" $(!REG_KEY_ALL_ACCESS) KeyNt2                     ;*
  912. ifstr $(KeyNt2) == ""                                                                       ;*
  913. CreateRegKey $(KeyNt) {"3ComNicUnInstall" , 0, GenericClass} "" $(!REG_KEY_ALL_ACCESS) +;*
  914. "" KeyNt2                                                      ;*
  915. endif                                                                                       ;*
  916. set NewValueList = {{DisplayName, $(NoTitle), $(!REG_VT_SZ), "3Com NIC Diagnostics"}, +     ;*
  917. {UninstallString, $(NoTitle), $(!REG_VT_SZ), "UN3C90X.EXE"}}                            ;*
  918. Shell $(UtilityInf), AddValueList, $(KeyNt2), $(NewValueList)                               ;*
  919. ifint $($ShellCode) != $(!SHELL_CODE_OK)                                                    ;*
  920. goto ShellCodeError                                                                     ;*
  921. endif                                                                                       ;*
  922. CloseRegKey $(KeyNt)                                                                        ;*
  923. CloseRegKey $(KeyNt2)                                                                       ;*
  924. endif                                                                                           ;*
  925. endif                                                                                               ;*
  926. ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)                            ;*
  927. install "Install-Tray"                                                                   ;*
  928. OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" +          ;*
  929. $(!REG_KEY_ALL_ACCESS) KeyNt                             ;*
  930. set TrayIconList = {COMSMDEXE,$(NoTitle),$(!REG_VT_SZ),$(TrayIconExe)" -off"}            ;*
  931. SetRegValue $(KeyNt) $(TrayIconList)                                                     ;*
  932. CloseRegKey $(KeyNt)                                                                     ;*
  933. endif                                                                                        ;*
  934. ifstr $(Install_dRMON) == "YES"                                                      ;*
  935. install "Install-dRMON"                                                          ;*
  936. Shell  $(!STF_WINDOWSSYSPATH)\drmonnt.inf, InstallOption, $(CurrLang),+          ;*
  937. $(Option) ,$(SrcDir), YES, YES, YES, NO              ;*
  938. ifint $($ShellCode) != $(!SHELL_CODE_OK)                                         ;*
  939. goto ShellCodeError                                                          ;*
  940. endif                                                                            ;*
  941. endif                                                                                ;*
  942. ifstr $(Install_PACE) == "YES"                                                      ;*
  943. install "Install-PACE"                                                          ;*
  944. set CalledPace = "installpace"                                                  ;*
  945. goto paceentries                                                                ;*
  946. installpace = +                                                                             ;*
  947. endif                                                                               ;*
  948. ifstr $(Install_3NIC_Diag) == "YES"                                                         ;*
  949. install "Install-3nicdiag"                                                              ;*
  950. ifstr(i) $(!STF_GUI_UNATTENDED) != "YES"                                                ;*
  951. RunProgram ExitCode "Windows Directory" "" 3nicdiag.exe "-inf"                      ;*
  952. RunProgram ExitCode "Windows Directory" "" 980instl.exe "-inf"                      ;*
  953. endif                                                                                   ;*
  954. ifstr(i) $(Install_Shortcuts) == "YES"                                            ;*    ;*
  955. RunProgram ExitCode "Windows Directory" "" COMSMD.EXE "-setup"                ;*    ;*
  956. OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" +;*    ;*
  957. $(!REG_KEY_ALL_ACCESS) KeyNt                  ;*    ;*
  958. set TrayIconList = {COMSMDEXE,$(NoTitle),$(!REG_VT_SZ),$(TrayIconExe)" -try"} ;*    ;*
  959. SetRegValue $(KeyNt) $(TrayIconList)                                          ;*    ;*
  960. CloseRegKey $(KeyNt)                                                          ;*    ;*
  961. endif                                                                             ;*    ;*
  962. endif                                                                                       ;*
  963. EndWait
  964. updateparameters =+
  965. set HardParameterKey    = $($R3)
  966. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  967. goto ShellCodeError
  968. endif
  969. CloseRegKey $(KeyParameters)
  970. goto successful
  971. bindingadapter =+
  972. set Error = "Binding: Sorry, not yet implemented."
  973. goto fatal
  974. removeadapter = +
  975. read-syms BaseVars 
  976. ifstr(i) $(Option) == "3C980"
  977. OpenRegKey $(!REG_H_LOCAL) "" +
  978. $(ServicesBaseName)"\"el980n4"\Parameters" +
  979. $(MAXIMUM_ALLOWED) IE_KeyService
  980. GetRegValue $(IE_KeyService), "TotCards", CardInfo
  981. set CardNum = *($(CardInfo),4)                         
  982. set-sub CardNum = $(CardNum) , 1     
  983. SetRegValue $(IE_KeyService)  {TotCards, $(NoTitle),$(!REG_VT_DWORD),$(CardNum)} 
  984. CloseRegKey $(IE_KeyService)
  985. endif     
  986. Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  987. Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  988. $(ProductSoftwareName)
  989. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  990. goto ShellCodeError
  991. endif
  992. set RegistryErrorIndex = $($R0)
  993. Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  994. goto fatalregistry
  995. endif
  996. else
  997. Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  998. $(ProductSoftwareName), $(!NTN_RegBase)
  999. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1000. goto ShellCodeError
  1001. endif
  1002. set RegistryErrorIndex = $($R0)
  1003. Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1004. goto fatalregistry
  1005. endif
  1006. endif
  1007. ifstr(i) $(!STF_PLATFORM) == $(INF_PROCESSER)    
  1008. RunProgram ExitCode "Windows Directory" "" UN3C90X.EXE "-inf"    
  1009. endif
  1010. ifstr $(Install_dRMON) == "YES"                                                      ;*
  1011. Shell  $(!STF_WINDOWSSYSPATH)\drmonnt.inf, InstallOption, $(CurrLang),$(Option) ,$(SrcDir), YES, YES, YES, -inf 
  1012. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1013. goto ShellCodeError
  1014. endif
  1015. endif
  1016. goto end
  1017. UpgradeSoftware = +
  1018. set OVERWRITE_SAVE = $(!STF_OVERWRITE)
  1019. set !STF_OVERWRITE = "VERIFYSOURCEOLDER"
  1020. install "Install-Option"                                                                          ;*
  1021. ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS                                                    ;*
  1022. Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"                                    ;*
  1023. ifint $($ShellCode) != $(!SHELL_CODE_OK)                                                      ;*
  1024. goto ShellCodeError                                                                       ;*
  1025. endif                                                                                         ;*
  1026. set Error = $($R0)                                                                            ;*
  1027. goto fatal                                                                                    ;*
  1028. endif                                                                                             ;*
  1029. OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(!REG_KEY_READ) KeyProduct                       ;*
  1030. Ifstr $(KeyProduct) != ""                                                                         ;*
  1031. Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)                                ;*
  1032. ifint $($ShellCode) != $(!SHELL_CODE_OK)                                                      ;*
  1033. goto ShellCodeError                                                                       ;*
  1034. endif                                                                                         ;*
  1035. set !UG_Filename = $($R0)                                                                     ;*
  1036. install "Install-INF"                                                                         ;*
  1037. ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS                                                ;*
  1038. goto fatal                                                                                ;*
  1039. endif                                                                                         ;*
  1040. SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}      ;*
  1041. SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}      ;*
  1042. CloseRegKey $(KeyProduct)                                                                     ;*
  1043. else                                                                                             ;*
  1044. goto fatalregistry                                                                             ;*
  1045. endif                                                                                            ;*
  1046. ifstr $(!STF_PLATFORM) == $(INF_PROCESSER)    
  1047. install "Install-Uninstaller"                                                                       ;*
  1048. OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\3Com\"$(ProductSoftwareName) $(!REG_KEY_ALL_ACCESS) +       ;*
  1049. KeyNt                                                              ;*
  1050. set TrayIconList = {3CUNINSTALL,$(NoTitle),$(!REG_VT_SZ),$(3CNUMBER)}                               ;*
  1051. SetRegValue $(KeyNt) $(TrayIconList)                                                                ;*
  1052. set TrayIconList = {PACENAME,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)}                       ;*
  1053. SetRegValue $(KeyNt) $(TrayIconList)                                                                ;*
  1054. CloseRegKey $(KeyNt)                                                                                ;*
  1055. ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)                                   ;*
  1056. ifstr $(Install_3NIC_Diag) == "YES"                                                             ;*
  1057. OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" +       ;*
  1058. $(!REG_KEY_ALL_ACCESS) KeyNt                                   ;*
  1059. ifstr $(KeyNt) == ""                                                                        ;*
  1060. CreateRegKey $(!REG_H_LOCAL) {"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall",+   ;*
  1061. 0, GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" KeyNt    ;*
  1062. endif                                                                                       ;*
  1063. OpenRegKey $(KeyNt) "" "3ComNicUnInstall" $(!REG_KEY_ALL_ACCESS) KeyNt2                     ;*
  1064. ifstr $(KeyNt2) == ""                                                                       ;*
  1065. CreateRegKey $(KeyNt) {"3ComNicUnInstall" , 0, GenericClass} "" $(!REG_KEY_ALL_ACCESS) +;*
  1066. "" KeyNt2                                                      ;*
  1067. endif                                                                                       ;*
  1068. set NewValueList = {{DisplayName, $(NoTitle), $(!REG_VT_SZ), "3Com NIC Diagnostics"},+      ;*
  1069. {UninstallString, $(NoTitle), $(!REG_VT_SZ), "UN3C90X.EXE"}}                            ;*
  1070. Shell $(UtilityInf), AddValueList, $(KeyNt2), $(NewValueList)                               ;*
  1071. ifint $($ShellCode) != $(!SHELL_CODE_OK)                                                    ;*
  1072. goto ShellCodeError                                                                     ;*
  1073. endif                                                                                       ;*
  1074. CloseRegKey $(KeyNt)                                                                        ;*
  1075. CloseRegKey $(KeyNt2)                                                                       ;*
  1076. endif                                                                                           ;*
  1077. endif                                                                                               ;*
  1078. ifstr(i) (*($(CurrentVersionValue),4)) == $(NT400VersionConstant)                            ;*
  1079. install "Install-Tray"                                                                   ;*
  1080. OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" +          ;*
  1081. $(!REG_KEY_ALL_ACCESS) KeyNt                             ;*
  1082. set TrayIconList = {COMSMDEXE,$(NoTitle),$(!REG_VT_SZ),$(TrayIconExe)" -off"}            ;*
  1083. SetRegValue $(KeyNt) $(TrayIconList)                                                     ;*
  1084. CloseRegKey $(KeyNt)                                                                     ;*
  1085. endif                                                                                        ;*
  1086. ifstr $(Install_PACE) == "YES"                                                      ;*
  1087. install "Install-PACE"                                                          ;*
  1088. set CalledPace = "updatepace"                                                   ;*
  1089. goto paceentries                                                                ;*
  1090. updatepace = +                                                                              ;*
  1091. endif                                                                               ;*
  1092. ifstr $(Install_dRMON) == "YES"                                                      ;*
  1093. install "Install-dRMON"                                                          ;*
  1094. set InstallMode_Save = $(!NTN_InstallMode)                                       ;*
  1095. set !NTN_InstallMode = install                                                   ;*
  1096. set SRCDIR_OVERRIDE_Save = $(!STF_SRCDIR_OVERRIDE)                               ;*
  1097. set !STF_SRCDIR_OVERRIDE = $(SrcDir)                                             ;*
  1098. Shell  $(!STF_WINDOWSSYSPATH)\drmonnt.inf, InstallOption, $(CurrLang), +         ;*
  1099. $(Option) ,$(SrcDir), YES, YES, YES, NO              ;*
  1100. set !NTN_InstallMode = $(InstallMode_Save)                                       ;*
  1101. set !STF_SRCDIR_OVERRIDE = $(SRCDIR_OVERRIDE_Save)                               ;*
  1102. ifint $($ShellCode) != $(!SHELL_CODE_OK)                                         ;*
  1103. goto ShellCodeError                                                          ;*
  1104. endif                                                                            ;*
  1105. endif                                                                                ;*
  1106. ifstr $(Install_3NIC_Diag) == "YES"                                                         ;*
  1107. install "Install-3nicdiag"                                                              ;*
  1108. ifstr(i) $(!STF_GUI_UNATTENDED) != "YES"                                                ;*
  1109. RunProgram ExitCode "Windows Directory" "" 3nicdiag.exe "-inf"                      ;*
  1110. RunProgram ExitCode "Windows Directory" "" 980instl.exe "-inf"                      ;*
  1111. endif                                                                                   ;*
  1112. ifstr(i) $(Install_Shortcuts) == "YES"                                            ;*    ;*
  1113. RunProgram ExitCode "Windows Directory" "" COMSMD.EXE "-setup"                ;*    ;*
  1114. OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" +;*    ;*
  1115. $(!REG_KEY_ALL_ACCESS) KeyNt                  ;*    ;*
  1116. set TrayIconList = {COMSMDEXE,$(NoTitle),$(!REG_VT_SZ),$(TrayIconExe)" -try"} ;*    ;*
  1117. SetRegValue $(KeyNt) $(TrayIconList)                                          ;*    ;*
  1118. CloseRegKey $(KeyNt)                                                          ;*    ;*
  1119. endif                                                                             ;*    ;*
  1120. endif                                                                                       ;*
  1121. set !STF_OVERWRITE = $(OVERWRITE_SAVE)
  1122. endif
  1123. goto end
  1124. successful = +
  1125. goto end
  1126. abandon = +
  1127. ForListDo $(OEM_ABANDON_OPTIONS)
  1128. Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  1129. $(ProductSoftwareName), $($)
  1130. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1131. goto ShellCodeError
  1132. endif
  1133. set RegistryErrorIndex = $($R0)
  1134. Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1135. goto fatalregistry
  1136. endif
  1137. EndForListDo
  1138. Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  1139. Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  1140. $(ProductSoftwareName), FALSE
  1141. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1142. goto ShellCodeError
  1143. endif
  1144. set RegistryErrorIndex = $($R0)
  1145. Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1146. goto fatalregistry
  1147. endif
  1148. endif
  1149. goto end
  1150. warning = +
  1151. Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  1152. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1153. goto ShellCodeError
  1154. endif
  1155. ifstr(i) $($R1) == "OK"
  1156. goto $(to)
  1157. else-ifstr(i) $($R1) == "CANCEL"
  1158. goto $(from)
  1159. else
  1160. goto "end"
  1161. endif
  1162. nonfatalinfo = +
  1163. Set CommonStatus = STATUS_USERCANCEL
  1164. Set Severity = STATUS
  1165. goto nonfatalmsg
  1166. nonfatal = +
  1167. Set Severity = NONFATAL
  1168. goto nonfatalmsg
  1169. nonfatalmsg = +
  1170. ifstr(i) $(Error) == ""
  1171. Set Severity = NONFATAL
  1172. Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  1173. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1174. goto ShellCodeError
  1175. endif
  1176. set Error = $($R0)
  1177. endif
  1178. Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  1179. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1180. goto ShellCodeError
  1181. endif
  1182. ifstr(i) $($R1) == "OK"
  1183. goto $(from)
  1184. else
  1185. goto "RemoveAdapter"
  1186. endif
  1187. fatalregistry = +
  1188. Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  1189. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1190. goto ShellCodeError
  1191. endif
  1192. set Error = $($R0)
  1193. goto fatal
  1194. fatal = +
  1195. ifstr(i) $(Error) == ""
  1196. Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  1197. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1198. goto ShellCodeError
  1199. endif
  1200. set Error = $($R0)
  1201. endif
  1202. Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  1203. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1204. goto ShellCodeError
  1205. endif
  1206. goto setfailed
  1207. ShellCodeError = +
  1208. ifint $($ShellCode) == $(!SHELL_CODE_NO_SUCH_INF)
  1209. else-ifint $($ShellCode) == $(!SHELL_CODE_NO_SUCH_SECTION)
  1210. else
  1211. endif
  1212. set DlgType      = "MessageBox"
  1213. set STF_MB_TITLE = $(ShellCodeErrorTitle)
  1214. set STF_MB_TEXT  = $(ShellCodeErrorText) 
  1215. set STF_MB_TYPE  = 1
  1216. set STF_MB_ICON  = 3
  1217. set STF_MB_DEF   = 1
  1218. ui start "Error Message"
  1219. goto setfailed
  1220. setfailed = +
  1221. set CommonStatus = STATUS_FAILED
  1222. ifstr(i) $(OEM_ABANDON_ON) == TRUE
  1223. set OEM_ABANDON_ON = FALSE
  1224. goto abandon
  1225. endif
  1226. goto end
  1227. end = +
  1228. goto term
  1229. term = +
  1230. Return $(CommonStatus)
  1231. paceentries = +
  1232. OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE" $(!REG_KEY_WRITE) SOFTPACEKEY
  1233. OpenRegKey $(SOFTPACEKEY) "" "3Com" $(!REG_KEY_WRITE) COMPACEKEY
  1234. ifstr $(COMPACEKEY) == ""
  1235. CreateRegKey $(SOFTPACEKEY) {"3Com", 0, GenericClass} "" $(!REG_KEY_WRITE) "" COMPACEKEY
  1236. endif
  1237. OpenRegKey $(COMPACEKEY) "" "PACECards" $(!REG_KEY_WRITE) CARDPACEKEY
  1238. ifstr $(CARDPACEKEY) == ""
  1239. CreateRegKey $(COMPACEKEY) {"PACECards", 0, GenericClass} "" $(!REG_KEY_WRITE) "" CARDPACEKEY
  1240. endif
  1241. OpenRegKey $(CARDPACEKEY) "" $(ProductSoftwareName) $(!REG_KEY_WRITE) EL90XPACEKEY
  1242. ifstr $(EL90XPACEKEY) == ""
  1243. CreateRegKey $(CARDPACEKEY) {$(ProductSoftwareName), 0, GenericClass} "" $(!REG_KEY_WRITE) "" EL90XPACEKEY
  1244. endif
  1245. SetRegValue $(EL90XPACEKEY) {"Description", 0, $(!REG_VT_SZ), $(GROUP_NAME)}
  1246. OpenRegKey $(CARDPACEKEY) "" "Applications" $(!REG_KEY_WRITE) APPPACEKEY
  1247. ifstr $(APPPACEKEY) == ""
  1248. CreateRegKey $(CARDPACEKEY) {"Applications", 0, GenericClass} "" $(!REG_KEY_WRITE) "" APPPACEKEY
  1249. endif
  1250. OpenRegKey $(APPPACEKEY) "" "Emotion CreativePartner (IPX)" $(!REG_KEY_WRITE) APPSPECPACEKEY
  1251. ifstr $(APPSPECPACEKEY) == ""
  1252. CreateRegKey $(APPPACEKEY) {"Emotion CreativePartner (IPX)", 0, GenericClass} "" $(!REG_KEY_WRITE) "" APPSPECPACEKEY
  1253. endif
  1254. set NewValueList = {{Protocol,$(NoTitle),$(!REG_VT_SZ),"IPX"},+
  1255. {Enabled,$(NoTitle),$(!REG_VT_SZ),"FALSE"}, +
  1256. {RangeStart,$(NoTitle),$(!REG_VT_SZ),"87C7"}, +
  1257. {RangeEnd,$(NoTitle),$(!REG_VT_SZ),"87C8"}}
  1258. Shell  $(UtilityInf), AddValueList, $(APPSPECPACEKEY), $(NewValueList)
  1259. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1260. goto ShellCodeError
  1261. endif
  1262. CloseRegKey $(APPSPECPACEKEY)
  1263. OpenRegKey $(APPPACEKEY) "" "Emotion CreativePartner (TCP/IP)" $(!REG_KEY_WRITE) APPSPECPACEKEY
  1264. ifstr $(APPSPECPACEKEY) == ""
  1265. CreateRegKey $(APPPACEKEY) {"Emotion CreativePartner (TCP/IP)", 0, GenericClass} "" $(!REG_KEY_WRITE) "" APPSPECPACEKEY
  1266. endif
  1267. set NewValueList = {{Protocol,$(NoTitle),$(!REG_VT_SZ),"UDP"},+
  1268. {Enabled,$(NoTitle),$(!REG_VT_SZ),"FALSE"}, +
  1269. {RangeStart,$(NoTitle),$(!REG_VT_SZ),"0453"}, +
  1270. {RangeEnd,$(NoTitle),$(!REG_VT_SZ),"0455"}}
  1271. Shell  $(UtilityInf), AddValueList, $(APPSPECPACEKEY), $(NewValueList)
  1272. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1273. goto ShellCodeError
  1274. endif
  1275. CloseRegKey $(APPSPECPACEKEY)
  1276. OpenRegKey $(APPPACEKEY) "" "InSoft Communique!" $(!REG_KEY_WRITE) APPSPECPACEKEY
  1277. ifstr $(APPSPECPACEKEY) == ""
  1278. CreateRegKey $(APPPACEKEY) {"InSoft Communique!", 0, GenericClass} "" $(!REG_KEY_WRITE) "" APPSPECPACEKEY
  1279. endif
  1280. set NewValueList = {{Protocol,$(NoTitle),$(!REG_VT_SZ),"UDP"},+
  1281. {Enabled,$(NoTitle),$(!REG_VT_SZ),"FALSE"}, +
  1282. {RangeStart,$(NoTitle),$(!REG_VT_SZ),"1025, 1500"}, +
  1283. {RangeEnd,$(NoTitle),$(!REG_VT_SZ),"1050, 1525"}}
  1284. Shell  $(UtilityInf), AddValueList, $(APPSPECPACEKEY), $(NewValueList)
  1285. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1286. goto ShellCodeError
  1287. endif
  1288. CloseRegKey $(APPSPECPACEKEY)
  1289. OpenRegKey $(APPPACEKEY) "" "Picturetel LiveLAN (over IPX)" $(!REG_KEY_WRITE) APPSPECPACEKEY
  1290. ifstr $(APPSPECPACEKEY) == ""
  1291. CreateRegKey $(APPPACEKEY) {"Picturetel LiveLAN (over IPX)", 0, GenericClass} "" $(!REG_KEY_WRITE) "" APPSPECPACEKEY
  1292. endif
  1293. set NewValueList = {{Protocol,$(NoTitle),$(!REG_VT_SZ),"IPX"},+
  1294. {Enabled,$(NoTitle),$(!REG_VT_SZ),"FALSE"}, +
  1295. {RangeStart,$(NoTitle),$(!REG_VT_SZ),"4050"}, +
  1296. {RangeEnd,$(NoTitle),$(!REG_VT_SZ),"4082"}}
  1297. Shell  $(UtilityInf), AddValueList, $(APPSPECPACEKEY), $(NewValueList)
  1298. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1299. goto ShellCodeError
  1300. endif
  1301. CloseRegKey $(APPSPECPACEKEY)
  1302. OpenRegKey $(APPPACEKEY) "" "Picturetel LiveLAN (over TCP/IP)" $(!REG_KEY_WRITE) APPSPECPACEKEY
  1303. ifstr $(APPSPECPACEKEY) == ""
  1304. CreateRegKey $(APPPACEKEY) {"Picturetel LiveLAN (over TCP/IP)", 0, GenericClass} "" $(!REG_KEY_WRITE) "" APPSPECPACEKEY
  1305. endif
  1306. set NewValueList = {{Protocol,$(NoTitle),$(!REG_VT_SZ),"UDP"},+
  1307. {Enabled,$(NoTitle),$(!REG_VT_SZ),"FALSE"}, +
  1308. {RangeStart,$(NoTitle),$(!REG_VT_SZ),"06a4"}, +
  1309. {RangeEnd,$(NoTitle),$(!REG_VT_SZ),"06d6"}}
  1310. Shell  $(UtilityInf), AddValueList, $(APPSPECPACEKEY), $(NewValueList)
  1311. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1312. goto ShellCodeError
  1313. endif
  1314. CloseRegKey $(APPSPECPACEKEY)
  1315. OpenRegKey $(APPPACEKEY) "" "Precept FlashWare" $(!REG_KEY_WRITE) APPSPECPACEKEY
  1316. ifstr $(APPSPECPACEKEY) == ""
  1317. CreateRegKey $(APPPACEKEY) {"Precept FlashWare", 0, GenericClass} "" $(!REG_KEY_WRITE) "" APPSPECPACEKEY
  1318. endif
  1319. set NewValueList = {{Protocol,$(NoTitle),$(!REG_VT_SZ),"UDP"},+
  1320. {Enabled,$(NoTitle),$(!REG_VT_SZ),"FALSE"}, +
  1321. {RangeStart,$(NoTitle),$(!REG_VT_SZ),"8000, C000"}, +
  1322. {RangeEnd,$(NoTitle),$(!REG_VT_SZ),"8000, C000"}}
  1323. Shell  $(UtilityInf), AddValueList, $(APPSPECPACEKEY), $(NewValueList)
  1324. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1325. goto ShellCodeError
  1326. endif
  1327. CloseRegKey $(APPSPECPACEKEY)
  1328. OpenRegKey $(APPPACEKEY) "" "Progressive Networks RealAudio" $(!REG_KEY_WRITE) APPSPECPACEKEY
  1329. ifstr $(APPSPECPACEKEY) == ""
  1330. CreateRegKey $(APPPACEKEY) {"Progressive Networks RealAudio", 0, GenericClass} "" $(!REG_KEY_WRITE) "" APPSPECPACEKEY
  1331. endif
  1332. set NewValueList = {{Protocol,$(NoTitle),$(!REG_VT_SZ),"UDP"},+
  1333. {Enabled,$(NoTitle),$(!REG_VT_SZ),"FALSE"}, +
  1334. {RangeStart,$(NoTitle),$(!REG_VT_SZ),"6970"}, +
  1335. {RangeEnd,$(NoTitle),$(!REG_VT_SZ),"7170"}}
  1336. Shell  $(UtilityInf), AddValueList, $(APPSPECPACEKEY), $(NewValueList)
  1337. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1338. goto ShellCodeError
  1339. endif
  1340. CloseRegKey $(APPSPECPACEKEY)
  1341. OpenRegKey $(APPPACEKEY) "" "Starlight Networks StarCast" $(!REG_KEY_WRITE) APPSPECPACEKEY
  1342. ifstr $(APPSPECPACEKEY) == ""
  1343. CreateRegKey $(APPPACEKEY) {"Starlight Networks StarCast", 0, GenericClass} "" $(!REG_KEY_WRITE) "" APPSPECPACEKEY
  1344. endif
  1345. set NewValueList = {{Protocol,$(NoTitle),$(!REG_VT_SZ),"UDP"},+
  1346. {Enabled,$(NoTitle),$(!REG_VT_SZ),"FALSE"}, +
  1347. {RangeStart,$(NoTitle),$(!REG_VT_SZ),"1911"}, +
  1348. {RangeEnd,$(NoTitle),$(!REG_VT_SZ),"1911"}}
  1349. Shell  $(UtilityInf), AddValueList, $(APPSPECPACEKEY), $(NewValueList)
  1350. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1351. goto ShellCodeError
  1352. endif
  1353. CloseRegKey $(APPSPECPACEKEY)
  1354. OpenRegKey $(APPPACEKEY) "" "VCON Cruiser 100" $(!REG_KEY_WRITE) APPSPECPACEKEY
  1355. ifstr $(APPSPECPACEKEY) == ""
  1356. CreateRegKey $(APPPACEKEY) {"VCON Cruiser 100", 0, GenericClass} "" $(!REG_KEY_WRITE) "" APPSPECPACEKEY
  1357. endif
  1358. set NewValueList = {{Protocol,$(NoTitle),$(!REG_VT_SZ),"UDP"},+
  1359. {Enabled,$(NoTitle),$(!REG_VT_SZ),"FALSE"}, +
  1360. {RangeStart,$(NoTitle),$(!REG_VT_SZ),"1500, 1600"}, +
  1361. {RangeEnd,$(NoTitle),$(!REG_VT_SZ),"1500, 1600"}}
  1362. Shell  $(UtilityInf), AddValueList, $(APPSPECPACEKEY), $(NewValueList)
  1363. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1364. goto ShellCodeError
  1365. endif
  1366. CloseRegKey $(APPSPECPACEKEY)
  1367. OpenRegKey $(APPPACEKEY) "" "VXtreme Web Theater" $(!REG_KEY_WRITE) APPSPECPACEKEY
  1368. ifstr $(APPSPECPACEKEY) == ""
  1369. CreateRegKey $(APPPACEKEY) {"VXtreme Web Theater", 0, GenericClass} "" $(!REG_KEY_WRITE) "" APPSPECPACEKEY
  1370. endif
  1371. set NewValueList = {{Protocol,$(NoTitle),$(!REG_VT_SZ),"UDP"},+
  1372. {Enabled,$(NoTitle),$(!REG_VT_SZ),"FALSE"}, +
  1373. {RangeStart,$(NoTitle),$(!REG_VT_SZ),"7000"}, +
  1374. {RangeEnd,$(NoTitle),$(!REG_VT_SZ),"7020"}}
  1375. Shell  $(UtilityInf), AddValueList, $(APPSPECPACEKEY), $(NewValueList)
  1376. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1377. goto ShellCodeError
  1378. endif
  1379. CloseRegKey $(APPSPECPACEKEY)
  1380. OpenRegKey $(APPPACEKEY) "" "Xing Technology Streamworks" $(!REG_KEY_WRITE) APPSPECPACEKEY
  1381. ifstr $(APPSPECPACEKEY) == ""
  1382. CreateRegKey $(APPPACEKEY) {"Xing Technology Streamworks", 0, GenericClass} "" $(!REG_KEY_WRITE) "" APPSPECPACEKEY
  1383. endif
  1384. set NewValueList = {{Protocol,$(NoTitle),$(!REG_VT_SZ),"UDP"},+
  1385. {Enabled,$(NoTitle),$(!REG_VT_SZ),"FALSE"}, +
  1386. {RangeStart,$(NoTitle),$(!REG_VT_SZ),"1558"}, +
  1387. {RangeEnd,$(NoTitle),$(!REG_VT_SZ),"1558"}}
  1388. Shell  $(UtilityInf), AddValueList, $(APPSPECPACEKEY), $(NewValueList)
  1389. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1390. goto ShellCodeError
  1391. endif
  1392. OpenRegKey $(APPPACEKEY) "" "Vosaic Software Server" $(!REG_KEY_WRITE) APPSPECPACEKEY
  1393. ifstr $(APPSPECPACEKEY) == ""
  1394. CreateRegKey $(APPPACEKEY) {"Vosaic Software Server", 0, GenericClass} "" $(!REG_KEY_WRITE) "" APPSPECPACEKEY
  1395. endif
  1396. set NewValueList = {{Protocol,$(NoTitle),$(!REG_VT_SZ),"TCP"},+
  1397. {Enabled,$(NoTitle),$(!REG_VT_SZ),"FALSE"}, +
  1398. {RangeStart,$(NoTitle),$(!REG_VT_SZ),"04D3"}, +
  1399. {RangeEnd,$(NoTitle),$(!REG_VT_SZ),"04D3"}}
  1400. Shell  $(UtilityInf), AddValueList, $(APPSPECPACEKEY), $(NewValueList)
  1401. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1402. goto ShellCodeError
  1403. endif
  1404. OpenRegKey $(APPPACEKEY) "" "Vosaic Software Client" $(!REG_KEY_WRITE) APPSPECPACEKEY
  1405. ifstr $(APPSPECPACEKEY) == ""
  1406. CreateRegKey $(APPPACEKEY) {"Vosaic Software Client", 0, GenericClass} "" $(!REG_KEY_WRITE) "" APPSPECPACEKEY
  1407. endif
  1408. set NewValueList = {{Protocol,$(NoTitle),$(!REG_VT_SZ),"UDP"},+
  1409. {Enabled,$(NoTitle),$(!REG_VT_SZ),"FALSE"}, +
  1410. {RangeStart,$(NoTitle),$(!REG_VT_SZ),"F169"}, +
  1411. {RangeEnd,$(NoTitle),$(!REG_VT_SZ),"F17D"}}
  1412. Shell  $(UtilityInf), AddValueList, $(APPSPECPACEKEY), $(NewValueList)
  1413. ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1414. goto ShellCodeError
  1415. endif
  1416. CloseRegKey $(APPSPECPACEKEY)
  1417. CloseRegKey $(EL90XPACEKEY)
  1418. CloseRegKey $(APPPACEKEY)
  1419. CloseRegKey $(CARDPACEKEY)
  1420. CloseRegKey $(COMPACEKEY)
  1421. CloseRegKey $(SOFTPACEKEY)
  1422. goto $(CalledPace)
  1423. [Install-Option]
  1424. set STF_VITAL = ""
  1425. ifstr(i) $(AddCopy) == "YES"
  1426. AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1427. AddSectionFilesToCopyList Files-$(Option)dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1428. endif
  1429. set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1430. CopyFilesInCopyList
  1431. Exit
  1432. [Install-Uninstaller]
  1433. set STF_VITAL = ""
  1434. AddSectionFilesToCopyList Files-Uninstaller $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1435. set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1436. CopyFilesInCopyList
  1437. Exit
  1438. [Install-3nicdiag]
  1439. set STF_VITAL = ""
  1440. set STF_OVERWRITE = "VERIFYSOURCEOLDER"
  1441. AddSectionFilesToCopyList Files-3nicdiag $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1442. AddSectionFilesToCopyList Files-HwDll $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1443. set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1444. CopyFilesInCopyList
  1445. Exit
  1446. [Install-PACE]
  1447. set STF_VITAL = ""
  1448. set STF_OVERWRITE = "VERIFYSOURCEOLDER"
  1449. AddSectionFilesToCopyList Files-PACE $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1450. set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1451. CopyFilesInCopyList
  1452. Exit
  1453. [Install-Tray]
  1454. set STF_VITAL = ""
  1455. set STF_OVERWRITE = "VERIFYSOURCEOLDER"
  1456. AddSectionFilesToCopyList Files-Tray $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1457. set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1458. CopyFilesInCopyList
  1459. Exit
  1460. [Install-dRMON]
  1461. set STF_VITAL = ""
  1462. AddSectionFilesToCopyList Files-dRMON $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1463. AddSectionFilesToCopyList Files-dRMONINF $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1464. set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1465. CopyFilesInCopyList
  1466. Exit
  1467. [Install-INF]
  1468. set STF_VITAL    = ""
  1469. AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1470. set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1471. CopyFilesInCopyList
  1472. Exit
  1473. [Source Media Descriptions]
  1474. 1  = "Windows NT Setup Disk #1"  
  1475. 3  = "3Com Etherdisk for Fast EtherLink XL / EtherLink XL Adapters (DISK 2)"
  1476. [ProductType]
  1477. STF_PRODUCT  = Winnt
  1478. [Files-Inf]                        
  1479. 3, oemsetup.inf,SIZE=36000, RENAME=$(!UG_Filename)
  1480. [Files-3nicdiag]
  1481. 3,3nicdiag.exe, SIZE=165504
  1482. 3,3nicdiag.hlp, SIZE=20877
  1483. 3,3varaddr.txt, SIZE=113
  1484. [Files-HwDll]
  1485. 3,hwaccess.dll, SIZE=20198
  1486. 3,pcomdrv.sys, SIZE=5000
  1487. 3,3c90xcfg.dll, SIZE=59458
  1488. 3,980instl.exe, SIZE=65535
  1489. 3,980instl.hlp, SIZE=65535
  1490. 3,Etherbox.dll, SIZE=65535
  1491. [Files-Tray]
  1492. 3,comsmd.exe, SIZE=8957
  1493. [Files-dRMON]
  1494. 3,undrmon.exe, SIZE=8957
  1495. [Files-dRMONINF]
  1496. 3,drmonnt.inf, SIZE=8957
  1497. [Files-PACE]
  1498. 3,pacecfg.cpl, SIZE=107457
  1499. 3,pacecfg.hlp, SIZE=6617
  1500. [Files-Uninstaller]
  1501. 3,UN3C90X.EXE, SIZE=6617
  1502. [Files-3C980]
  1503. 3,EL980n4.SYS , SIZE=25001
  1504. [Files-3C980dll]
  1505. 3,Etherbox.dll , SIZE=25001
  1506.  
  1507. [LanguagesSupported]
  1508. ENG
  1509. [OptionsTextENG]
  1510. 3C980   = "3Com Fast EtherLink XL Server (3C980)"
  1511. VLAN    = "3Com Fast EtherLink XL Server VLAN INSTANCE"
  1512. [FileConstantsENG]
  1513. ProCaption   = "Windows NT NIC Setup"
  1514. ProCancel    = "Cancel"
  1515. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  1516. "Are you sure you want to cancel copying files?"
  1517. ProCancelCap = "Network Setup Message"
  1518. ProText1     = "Copying:"
  1519. ProText2     = "To:"
  1520. ConnectionList  = ^(ConnectionChoices$(Option), 1)
  1521. ConnectionValues = ^(ConnectionChoices$(Option), 2)
  1522. NoList  = ^(NoChoices, 1)
  1523. NoValues = ^(NoChoices, 2)
  1524. ShellCodeErrorTitle = "Error: "$(Function$(Option)Title)
  1525. ShellCodeErrorText  = "Shell Code Error."
  1526. CANNOT_FIND_ANY_CARD    = "Network card is not present in the system"
  1527. INSTALL_CARD_FIRST    = "Run 3Com EtherLink XL Server NIC Installation First"
  1528. [DialogConstantsENG]
  1529. Help        = "&Help"
  1530. Exit        = "Cancel"
  1531. OK      = "OK"
  1532. HelpContext = ""
  1533. Continue    = "Continue"
  1534. Cancel      = "Cancel"
  1535. [InputVlanonDlgENG]
  1536. DlgTemplate = "UPGRADE"
  1537. DlgType = "Info"
  1538. Caption = "3Com EtherLink XL Server NIC Installation"
  1539. DlgText = "Install VLANs on EtherLink XL Server NIC (Bus = "$(DetectedBusNum)") (Slot = "$(DetectedSlotNum)")?"
  1540. Continue = "&Yes"
  1541. Exit = "&No"
  1542. Help = "&Help"
  1543. HelpContext = $(!IDH_DB_OEMNADTE_INS)
  1544. [InputMacDlgENG]
  1545. DlgTemplate = "NETWORK_NUMBER"
  1546. DlgType = "Edit"
  1547. Caption = "Total Number of VLANs for Bus:"$(DetectedBusNum)" Slot:"$(DetectedSlotNum)""
  1548. Edit1Label = "&Total VLANs:"
  1549. HelpContext = $(!IDH_DB_OEMNADTE_INS)
  1550. EditTextLim = { 2 }
  1551. EditTextIn = $(NumMacs)
  1552. EditFocus = "ALL"
  1553. RCCtlFocusOn = 403
  1554. Continue = "&OK"
  1555. [InputDrvDlgENG]
  1556. DlgTemplate = "UPGRADE"
  1557. DlgType = "Info"
  1558. Caption = "3Com EtherLink XL Server NIC Installation"
  1559. DlgText = " Install Driver on EtherLink XL Server NIC (Bus="$(DetectedBusNum)") (Slot = "$(DetectedSlotNum)")?"
  1560. Continue = "&Yes"
  1561. Exit = "&No"
  1562. Help = "&Help"
  1563. HelpContext = $(!IDH_DB_OEMNADTE_INS)
  1564. [EtherBoxDRIVER]
  1565. DlgTemplate = "ETHERBOX_DRIVER"
  1566. DlgType        = "Info"
  1567. BusLabel    = $(DetectedBusNum)
  1568. SlotLabel    = $(DetectedSlotNum)
  1569. [EtherBoxVLANS]
  1570. DlgTemplate = "ETHERBOX_ELANS"
  1571. DlgType        = "Info"
  1572. BusLabel    = $(DetectedBusNum)
  1573. SlotLabel    = $(DetectedSlotNum)
  1574. [EtherBoxVLANNO]
  1575. DlgTemplate = "ETHERBOX_ELANNO"
  1576. DlgType        = "Edit"
  1577. EditTextLim    = { 2 }
  1578. EditTextIn    = $(NumMacs)
  1579. BusLabel    = $(DetectedBusNum)
  1580. SlotLabel    = $(DetectedSlotNum)
  1581.