home *** CD-ROM | disk | FTP | other *** search
/ PC World 1998 June / PCWorld_1998-06_cd.bin / software / sharware / utility / sDisk / sdtrial.exe / INSTALL.INF < prev    next >
INI File  |  1997-01-17  |  16KB  |  689 lines

  1. ;////////////////////////////////////////////////
  2. ;// Norton Speed Disk for NT Trial install script
  3. ;// (c) 1996 Symantec - Peter Norton Product Group
  4. ;// For use with the Symantec Install version 4.2 32-bit
  5. ;////////////////////////////////////////////////
  6.  
  7. ; Switch01 - Install is shell
  8. ; switch02 - QPD Exists
  9. ; switch03 - MM Version of installation
  10. ; switch04 - Launch IE3 install
  11. ;
  12. ; switch06 - LFN Target?
  13. ; switch07 - LFN C Drive?
  14. ; switch08 - LFN Windows Drive?
  15. ; switch09 - Symevnt exists in the system directory
  16. ; switch10 - NDD dos is selected
  17. ; switch11 - Unerase is selected
  18. ; switch12 - Patch win.com
  19. ;
  20. ; switch39 - Auto install
  21. ; switch40 - Target or Windows drive is compressed
  22. ; switch45 - Allows pressing back from the program location screen
  23. ; switch49 - SWITCH_INTLCHAR - Int'l chars in specifed path
  24. ; switch58 - SWITCH_DISKETTE - Diskette install
  25. ; switch60 - SWITCH_SMARTCAN - Enable NPROTECT
  26. ; switch61 - SWITCH_SDD - System Doctor enable
  27. ; switch63 - SWITCH_CUSTOM - custom install
  28. ; switch64 - SWITCH_COMPLETE - full install
  29. ; switch68 - SWITCH_OTHER - User has selected another location than the default
  30. ; switch69 - SWITCH_RESCUE - Create a rescue disk
  31. ; switch71 - SWITCH_DESELECT - User chooses to exit install (disk space)
  32. ; switch72 - SWITCH_CHANGEDRIVE - User wants to change locations (disk space)
  33. ; switch73 - SWITCH_REBOOT - Reboot at the end
  34. ; switch74 - SWITCH_NOREBOOT - Don't reboot at the end
  35. ; switch76 - SWITCH_NOROOM - Set by WinSpace function
  36. ; switch77 - SWITCH_RENAME - Rename old NU files
  37. ; switch78 - SWITCH_PREVIOUSVER - Previous version found
  38. ; switch79 - SWITCH_ADDPATH - Add the path to the autoexec
  39. ; switch80 - SWITCH_FLOPPY - Floppy in drive
  40. ; switch85 - SWITCH_LIVEUPDATE
  41. ; switch87 - SWITCH_SAGEDISABLE - Disable System Agent
  42. ; switch88 - Need zip association for spacewizard
  43.  
  44. [InstallVersion]
  45. 4.0
  46.  
  47. [Process]
  48. EnableForceWrite()
  49. EnableOverwrite()
  50. Enable256Advos()
  51. SetInternalFlag(1)
  52. Bitmaps(Pix)
  53.  
  54. SaveRegistry(SaveRegGroup)
  55. DisableHelp()
  56. Backup(CustDLLCopy)
  57.  
  58. ; Initialize the custom dll
  59.  
  60. CallProc(Memory)
  61.  
  62. ; Check for the proper version of Windows
  63.  
  64. WizardPanel(WrongVersion, siwsd.dll)
  65.  
  66. switch99 = IsWinVerGTE(0400)
  67. #ifnot(switch99)
  68.     WizardProcessPanel()
  69.     Exit()
  70. #endif
  71.  
  72. switch99 = CallProcEx(CheckVersion)
  73. #ifnot(switch99)
  74.     WizardProcessPanel()
  75.     Exit()
  76. #endif
  77.  
  78. switch99 = CallProcEx(IsAdminMode)
  79. #ifnot(switch99)
  80.     MessageBox(MustBeAdmin)
  81.     Exit()
  82. #endif
  83.  
  84. ; Check for diskette version of NU
  85.  
  86. CallProcEx(IsDisketteInstall)
  87.  
  88. SetActiveCopy(SDCopy, install.inf)
  89.  
  90. ; Check for low disk space
  91.  
  92. WizardPanel(NoWinSpace, siwsd.dll)
  93.  
  94. CallProc(CheckWinSpace)
  95. #if(switch76)
  96.     WizardProcessPanel()
  97.     Exit()
  98. #endif
  99.  
  100. ; Process the Welcome wizard panel and the
  101. ; license agreement panel
  102.  
  103. WizardPanel(Welcome, siwsd.dll)
  104. WizardProcessPanel()
  105.  
  106. WizardPanel(License, siwsd.dll)
  107. WizardProcessPanel()
  108.  
  109. SelectOption(basefiles)
  110.  
  111. ; These don't serve any purpose anymore
  112.  
  113. switch06 = CallProcEx(CheckLFNTarget)
  114. switch07 = CallProcEx(CheckLFNCDrive)
  115. switch08 = CallProcEx(CheckLFNWindows)
  116.  
  117. ; Find the shared components directory or
  118. ; set the default if not found
  119.  
  120. CallProcEx(FindSharedComponents)
  121.  
  122. WizardPanel(SpecifyLocation, siwsd.dll)
  123. WizardIncludePanel(NoDiskSpace)
  124. WizardProcessPanel()
  125.  
  126. #if(switch49)
  127.     WizardGotoPanel(SpecifyLocation)
  128. #endif
  129.  
  130. ; Check the required space to see if we can
  131. ; install
  132.  
  133. :checkspace
  134. WizardPanel(NoDiskSpace,siwsd.dll)
  135.  
  136. switch98=CheckDiskSpace(TARGET)
  137.  
  138. #ifnot(switch98)
  139.     WizardProcessPanel()
  140. #endif
  141.  
  142. WizardExcludePanel(NoDiskSpace)
  143.  
  144. ; Verify what we're going to do with the user
  145.  
  146. WizardPanel(CopyFiles,siwsd.dll)
  147. WizardProcessPanel()
  148.  
  149. ; Setup the various directories and get short path names
  150. ; Directories are as follows:
  151. ;
  152. ; TARGET - LFN Program Directory
  153. ; TARGET3 - LFN Symantec Shared Directory
  154. ; TARGET6 - Short Program Directory
  155. ; TARGET8 - Short Symantec Shared Directory
  156. ; TARGET15 - SYSTEM32\Drivers Dir
  157.  
  158. CreateDirectory(CreateTarget)
  159. CreateDirectory(CreateSharedDir)
  160.  
  161. CallProcEx(GetShortTarget)
  162. CallProcEx(GetShortShared)
  163.  
  164. ResetTarget(SetDriversDir)
  165.  
  166. ; Do the file copy now
  167.  
  168. DisableUtils()
  169. Copy()
  170. EnableUtils()
  171.  
  172. ; Get rid of the wizard panels we don't need anymore
  173.  
  174. WizardExcludePanel(CopyFiles)
  175. WizardExcludePanel(NoDiskSpace)
  176. WizardExcludePanel(SpecifyLocation)
  177. WizardExcludePanel(License)
  178. WizardExcludePanel(Welcome)
  179. WizardExcludePanel(NoWinSpace)
  180. WizardExcludePanel(WrongVersion)
  181.  
  182. ; Set the user registration
  183.  
  184. SetRegistration(SetSymUtil32)
  185.  
  186. ; Update the registry and usage counts
  187.  
  188. CallProcEx(UsageCounts)
  189. CallProcEx(ProcessRegEntries)
  190.  
  191. ; Register Speedisk and Nprotect Services
  192.  
  193. Launch(S32TrialReg)
  194. Launch(UnregisterSDService)
  195. Launch(RegisterSDService)
  196. Launch(S32TrialRundll)
  197.  
  198. ; Update the help indexes
  199. ;Launch(UpdateHelpIndex)
  200.  
  201. ; Create the icons
  202.  
  203. EnableWin95Shell()
  204. Groups()
  205.  
  206. ; Set the installed flag in the registry
  207.  
  208. CallProcEx(UpdateInstFlag)
  209.  
  210. WizardPanel(Finished, siwsd.dll)
  211. WizardProcessPanel()
  212.  
  213. Delete(CustDLLDel)
  214. Delete(Leftovers)
  215.  
  216. #if(switch73)
  217.     RebootNT()
  218. #endif
  219. Exit()
  220. End()
  221.  
  222.  
  223. ;********************************************************************
  224. ; Copy sections
  225. ;********************************************************************
  226.  
  227. [SDCopy]
  228. CopyMain.BaseFiles,    "Norton Speed Disk Basefiles - %ldK",           0, Y, N, Y
  229. CopySub.speediskw,     " "
  230.  
  231. CopyMain.DoNotRemove,   "Dummy Entry - Don't remove",                   0, N, N, N
  232. CopySub.xxx,            "Bogus Field"
  233. CopySub.yyy,            "Bogus Field"
  234.  
  235.  
  236. [SDCopy:TypeSelect]
  237. count = 2
  238. caption = "Norton Speed Disk Trial Setup Type"
  239. text = "Please select the type of install you want to perform."
  240. grouptext = "Install Types"
  241. button1 = "&Complete Install"
  242. button2 = "C&ustom Install"
  243. descrip1 = "Installs all of the DOS and Windows Norton Speed Disk Trial.  This will require xx.x MB of disk space."
  244. descrip2 = "Lets you choose which Norton Utilities modules to install.  If you need more options later, you can run install again."
  245.  
  246. [SDCopy:Primary]
  247. caption = "Norton Speed Disk Trial Main Selection"
  248. button1 = "Select..."
  249. button2 = "Select..."
  250. button3 = "Select..."
  251. button4 = "Select..."
  252. button5 = "Select..."
  253. text = App1Text
  254.  
  255. [SDCopy:Component]
  256. caption = "Norton Speed Disk Trial Component Selection"
  257. text    = "Select/Deselect the components you want to install.  Checked items will be installed."
  258.  
  259. [SDCopy:CopyDialog]
  260. caption = "Copying Norton Utilities Files..."
  261. posx = -10
  262. posy = -10
  263.  
  264. [SDCopy:Advo]
  265. posx = 20
  266. posy = 20
  267. location = siwsd.dll
  268. count = 1
  269. BitmapsOnly=1
  270.  
  271. [App1Text]
  272. "Please select the items you want to install.  If a selection"
  273. "has a button to the right, you can select individual files or"
  274. "components."
  275.  
  276. [AdvoDefault]
  277. posx = 20
  278. posy = 30
  279. text = AdvoText
  280.  
  281. [AdvoText]
  282. "Please take a moment to complete the Product Registration Card
  283. "included with your product and return it to Symantec."
  284. ""
  285. "This will ensure that you receive future product announcements"
  286. "and important notices. It will also qualify you for any discounts"
  287. "on future upgrades."
  288. ""
  289. "Thank you for purchasing Norton Speed Disk Trial!"
  290.  
  291. ;********************************************************************
  292. ; Groups
  293. ;********************************************************************
  294.  
  295. [groups]
  296. "Norton Speed Disk Trial", sd.grp, ,COMMON
  297.  
  298. [Norton Speed Disk Trial]
  299. "Speed Disk",              sd32.exe,       speediskw, 0,  TARGET
  300. "Uninstall Speed Disk",    setup.exe,      basefiles, 0,  TARGET, , , "/U"
  301.  
  302.  
  303. ;********************************************************************
  304. ; Dialog text
  305. ;********************************************************************
  306.  
  307. [FileCopy]
  308. copycaption   =  "Installing Norton Utilitites for Windows NT"
  309. errorcaption  =  "Error Copying Files"
  310. insertcaption =  "Insert Diskette"
  311. Message       =   MessageText
  312.  
  313. [ReinsertMsg]
  314. caption  =  "Norton Speed Disk Trial Setup"
  315. "Please reinsert the Norton Speed Disk Trial Setup Disk 1"
  316.  
  317. [Cancel]
  318. caption = "Norton Speed Disk Trial Setup Wizard"
  319. text    = "Are you sure you want to exit?"
  320.  
  321. [CancelShell]
  322. caption = "Norton Speed Disk Trial Setup Wizard"
  323. "You have selected to exit Setup. In order "
  324. "to reset the Windows environment, Setup "
  325. "will need to restart your computer."
  326. "Are you sure you want to exit?"
  327.  
  328. [MustBeAdmin]
  329. caption = "Norton Speed Disk Trial"
  330. "You must have administrator rights on this machine "
  331. "in order to install Norton Utilities.  Setup will "
  332. "now exit."
  333.  
  334. ;********************************************************************
  335. ; File backups
  336. ;********************************************************************
  337.  
  338. [SaveSysIni]
  339. system.ini, system.sd, WINDOWS, WINDOWS
  340.  
  341. [SaveAutoexec]
  342. c:\autoexec.bat, c:\autoexec.sd
  343.  
  344. [SaveSysIniLFN]
  345. system.ini, "System.ini copy prior to Speed Disk install", WINDOWS, WINDOWS
  346.  
  347. [SaveAutoexecLFN]
  348. c:\autoexec.bat, "c:\Autoexec.bat copy prior to Speed Disk install"
  349.  
  350. [CustDLLCopy]
  351. siwsd.dll, siwsd.dll, SOURCE, TEMPDIR
  352. cramapi.dll, cramapi.dll, SOURCE, TEMPDIR
  353.  
  354. [BackupSymantec]
  355. symantec.cnt, symantec.cnt, TARGET2, TARGET3
  356.  
  357. [InfodeskTemp]
  358. infodesk.dll, infodesk.dll, SOURCE, TEMPDIR
  359.  
  360. [SaveRegGroup]
  361. WINDOWS, system.sd, user.sd
  362.  
  363. ;********************************************************************
  364. ; File deletes
  365. ;********************************************************************
  366.  
  367. [DelSymantec]
  368. symantec.cnt,   TARGET2
  369.  
  370. [CustDLLDel]
  371. siwsd.dll,   TEMPDIR
  372. version.dll,   TARGET
  373.  
  374. [Leftovers]
  375. siwsd.dll,   TEMPDIR
  376.  
  377. ;********************************************************************
  378. ; External function calls
  379. ;********************************************************************
  380.  
  381. [CheckVersion]
  382. dll = siwsd.dll
  383. function = WinVersionCheck
  384. Major = 4
  385. Minor = 00
  386. Build = 1
  387.  
  388. [SetEnv]
  389. dll = siwsd.dll
  390. function = SetPath
  391.  
  392. [AlreadyInstalled]
  393. dll = siwsd.dll
  394. function = AlreadyInstalled
  395.  
  396. [DebugStub]
  397. dll = siwsd.dll
  398. function = DebugStub
  399.  
  400. [CheckLFNTarget]
  401. dll = siwsd.dll
  402. function = DriveSupportsLFN
  403. location = TARGET
  404.  
  405. [CheckLFNCDrive]
  406. dll = siwsd.dll
  407. function = DriveSupportsLFN
  408. location = C
  409.  
  410. [CheckLFNWindows]
  411. dll = siwsd.dll
  412. function = DriveSupportsLFN
  413. location = WINDOWS
  414.  
  415. [FindSharedComponents]
  416. dll = siwsd.dll
  417. function = FindSharedComponents
  418.  
  419. [UpdateInstFlag]
  420. dll = siwsd.dll
  421. function = UpdateInstalledFlag
  422.  
  423. [UsageCounts]
  424. dll = siwsd.dll
  425. function = IncrementUsageCounts
  426. section = NUNTSharedComponents
  427.  
  428. [GetShort]
  429. dll = siwsd.dll
  430. function = ConvertToShortName
  431.  
  432. [GetShortTarget]
  433. dll = siwsd.dll
  434. function = ConvertToShortName
  435. source = 0
  436. dest = 6
  437.  
  438. [GetShortShared]
  439. dll = siwsd.dll
  440. function = ConvertToShortName
  441. source = 3
  442. dest = 8
  443.  
  444. [CheckWinSpace]
  445. dll = siwsd.dll
  446. function = WindowsDriveSpace
  447.  
  448. [Memory]
  449. dll = siwsd.dll
  450. function = InitMemory
  451.  
  452. [ExitHookProc]
  453. dll = siwsd.dll
  454. function = ReleaseDLL
  455.  
  456. [FloppyInDrive]
  457. dll = siwsd.dll
  458. function = IsFloppyInDrive
  459.  
  460. [BackupTarget4]
  461. dll = siwsd.dll
  462. function = BackupTarget4
  463.  
  464. [RestoreTarget4]
  465. dll = siwsd.dll
  466. function = RestoreTarget4
  467.  
  468. [IncrementBasefiles]
  469. dll = siwsd.dll
  470. function = IncrementBinaryUsageCounts
  471. section = SystemSharedComponents
  472.  
  473. [ProcessRegEntries]
  474. dll = siwsd.dll
  475. function = ProcessRegEntries
  476. file = nsd1.reg
  477. location = TARGET
  478.  
  479. [CheckOurPath]
  480. dll = siwsd.dll
  481. function = CheckOurPath
  482.  
  483. [IsDisketteInstall]
  484. dll = siwsd.dll
  485. function = IsDisketteInstall
  486.  
  487. [IsAdminMode]
  488. dll = siwsd.dll
  489. function = IsRunningAsAdministrator
  490.  
  491.  
  492. ;********************************************************************
  493. ; Text file mods
  494. ;********************************************************************
  495.  
  496. ;********************************************************************
  497. ; ini file modifications
  498. ;********************************************************************
  499.  
  500. ;********************************************************************
  501. ; Registration entries
  502. ;********************************************************************
  503.  
  504.  ;********************************************************************
  505. ; Misc install sections
  506. ;********************************************************************
  507.  
  508. [RegisterSDService]
  509. "%s\sdsrv.exe -i", TARGET
  510.  
  511. [UnregisterSDService]
  512. "%s\sdsrv.exe -u", TARGET
  513.  
  514. [S32TrialReg]
  515. "regsvr32.exe /s %s\iratrial.dll", TARGET8
  516.  
  517. [S32TrialRundll]
  518. "rundll32.exe %s\IRATRIAL.DLL,SetupTrialWare Symantec,Norton Speed Disk Trial,1,0,30", TARGET8
  519.  
  520. [AutoexecFind]
  521. c:\autoexec.bat
  522.  
  523. [FindSymantec]
  524. symantec.cnt,   TARGET3
  525.  
  526. [Pix]
  527. color = %s\nu.bmp, 1, 1
  528. color = %s\symlogo.rle, -1, 1
  529.  
  530. [VerDll]
  531. ver.dll, system
  532.  
  533. [SetSymUtil32]
  534. s32utilh.dll, TARGET3
  535.  
  536. [NUNTSharedComponents]
  537. Component = s32krnlh.dll
  538. Component = s32guih.dll
  539. Component = s32utilh.dll
  540. Component = iratrial.dll
  541.  
  542. [SharedComponents]
  543.  
  544. [OnRampSharedComponents]
  545.  
  546. [SystemSharedComponents]
  547.  
  548. [NRegEditSharedComponents]
  549.  
  550. [SI32SharedComponents]
  551.  
  552. [TargetExt]
  553. reset = TARGET2
  554. location = "System"
  555. relative = 1
  556. relativeto = TARGET
  557.  
  558. [SetLiveUpdateDir]
  559. reset = TARGET11
  560. location = %s\LiveUpdate, TARGET3
  561.  
  562. [SetDriversDir]
  563. reset = TARGET15
  564. location = %s\Drivers, SYSTEM
  565.  
  566. [CreateExtDir]
  567. %s, TARGET2
  568.  
  569. [CreateTarget]
  570. %s, TARGET
  571.  
  572. [CreateSharedDir]
  573. %s, TARGET3
  574.  
  575. [WindowsVersion]
  576. 4.0
  577. "Norton Speed Disk Trial requires"
  578. "Windows NT version 4.0 or greater in order to install."
  579.  
  580. [Registration]
  581. dll = s32utilh.dll
  582. string = "Symantec Install for Windows"
  583. active = no
  584. serialize = 0
  585.  
  586. ;********************************************************************
  587. ; Wizard panels
  588. ;********************************************************************
  589.  
  590. [WrongVersion]
  591. Caption="Norton Speed Disk Trial Setup Wizard"
  592. Title="Incorrect Version"
  593. DlgProc=_PanelDlgProc@16
  594. ResourceId=102
  595. Bitmap16=600
  596. PanelDataProc=_DefaultDataProc@0
  597. PanelFlags=First+Last
  598.  
  599. [NoWinSpace]
  600. Caption="Norton Speed Disk Trial Setup Wizard"
  601. Title="Low Disk Space"
  602. DlgProc=_PanelDlgProc@16
  603. ResourceId=108
  604. Bitmap16=600
  605. PanelDataProc=_DefaultDataProc@0
  606. PanelFlags=First+Last
  607.  
  608. [Welcome]
  609. Caption="Norton Speed Disk Trial Setup Wizard"
  610. Title="Welcome to Norton Speed Disk"
  611. DlgProc=_WelcomeDlgProc@16
  612. ResourceId=501
  613. Bitmap16=600
  614. PanelDataProc=_WelcomeDataProc@0
  615. PanelFlags=First
  616.  
  617. [SpecifyLocation]
  618. Caption="Norton Speed Disk Trial Setup Wizard"
  619. Title="Program Location"
  620. DlgProc=PanelDlgProc
  621. ResourceId=118
  622. Bitmap16=600
  623. PanelDataProc=_DefaultDataProc@0
  624.  
  625. [NoDiskSpace]
  626. Caption="Norton Speed Disk Trial Setup Wizard"
  627. Title="Low Disk Space"
  628. DlgProc=PanelDlgProc
  629. ResourceId=106
  630. Bitmap16=600
  631. PanelDataProc=_DefaultDataProc@0
  632.  
  633. [CopyFiles]
  634. Caption="Norton Speed Disk Trial Setup Wizard"
  635. Title="Setup Review"
  636. DlgProc=PanelDlgProc
  637. ResourceId=128
  638. Bitmap16=600
  639. PanelDataProc=_DefaultDataProc@0
  640.  
  641. [Finished]
  642. Caption="Norton Speed Disk Trial Setup Wizard"
  643. Title="Setup Complete"
  644. DlgProc=PanelDlgProc
  645. ResourceId=130
  646. Bitmap16=600
  647. PanelDataProc=_DefaultDataProc@0
  648. PanelFlags=First+Last+Finish
  649.  
  650. [FloppyDialogFinish]
  651. Caption="Norton Speed Disk Trial Setup Wizard"
  652. Title="Remove Floppy Diskette"
  653. DlgProc=PanelDlgProc
  654. ResourceId=109
  655. Bitmap16=600
  656. PanelDataProc=_DefaultDataProc@0
  657. PanelFlags=First
  658.  
  659. [License]
  660. Caption="Online License Agreement"
  661. DlgProc=_LicenseDlgProc@16
  662. ResourceId=502
  663. PanelDataProc=_LicenseDataProc@0
  664.  
  665. [TechSupport]
  666. Caption="Norton Speed Disk Trial Setup Wizard"
  667. Title="Symantec Support Solutions"
  668. DlgProc=_TechSupDlgProc@16
  669. ResourceId=507
  670. Bitmap16=207
  671. PanelFlags=First
  672.  
  673. [ReachUs]
  674. Caption="Norton Speed Disk Trial Setup Wizard"
  675. Title="How to Reach Us"
  676. DlgProc=_ReachDlgProc@16
  677. ResourceId=513
  678. Bitmap16=213
  679.  
  680. [CrossMarket]
  681. Caption="Norton Speed Disk Trial Setup Wizard"
  682. Title="Windows NT Solutions"
  683. DlgProc=_CrossSellDlgProc@16
  684. PanelDataProc=_CrossSellDataProc@0
  685. ResourceId=512
  686. Bitmap16=212
  687.  
  688.  
  689.