home *** CD-ROM | disk | FTP | other *** search
/ PC World 1998 June / PCWorld_1998-06_cd.bin / software / sharware / utility / sDisk / sdtrial.exe / UNINSTAL.IN$ / UNINSTAL.INF
INI File  |  1997-01-17  |  14KB  |  584 lines

  1. ;******************************************************
  2. ; Norton Speed Disk Trial for NT uninstall script
  3. ; (c) 1996 Symantec - Peter Norton Product Group
  4. ; For use with the Symantec Install version 4.2 32-bit
  5. ;******************************************************
  6.  
  7. ; switch03 - MM Version of installation
  8. ; switch04 - Re-enable NPROTECT
  9. ; switch05 - RegTrk directory has files
  10. ; switch92 - SWITCH_REALFULLUNINSTALL
  11. ; switch40 - SWITCH_FULLUNINSTALL
  12. ; switch99 - Used for various things
  13.  
  14. [InstallVersion]
  15. 4.0
  16.  
  17. [Process]
  18. EnableForceWrite()
  19. EnableOverwrite()
  20. Uninstall()
  21.  
  22. Bitmaps(pix)
  23. DisableHelp()
  24. Backup(CustDLLCopy)
  25.  
  26. SetActiveCopy(SICopy,uninstal.inf)
  27.  
  28. ; Initialize the custom dll
  29.  
  30. CallProc(Memory)
  31.  
  32. ; Begin with the welcome wizard panel
  33.  
  34. WizardPanel(Welcome,siwsd.dll)
  35.  
  36. FullUninstall()
  37. SelectOption(BaseFiles)
  38.  
  39. ; Get the proper paths for our basic targets
  40.  
  41. ResetTarget(TargetSource)
  42. ResetTarget(DriversDir)
  43. CallProcEx(FindSharedComponents)
  44. CallProcEx(GetShortTarget)
  45. CallProcEx(GetShortShared)
  46.  
  47. WizardProcessPanel()
  48.  
  49. WizardPanel(RemoveFiles,siwsd.dll)
  50. WizardProcessPanel()
  51.  
  52. Launch(UnregisterSDService)
  53.  
  54. DisableUtils()
  55. Uncopy()
  56. EnableUtils()
  57.  
  58. CallProcEx(RegStatusCreate)
  59. CallProcEx(RegStatus66)
  60.  
  61. CallProcEx(DelRegSdwKeys)
  62. CallProcEx(DelRegSdwValues)
  63. CallProc(LINK_SPEEDISK)
  64. CallProc(LINK_UNSPEEDISK)
  65.  
  66. CallProcEx(RegStatus100)
  67. CallProcEx(RegStatus100)
  68. CallProcEx(EndStatusBox)
  69.  
  70. CallProcEx(CleanUpStatus)
  71. CallProcEx(RegStatus66)
  72.  
  73. Delete(Leftovers)
  74. CallProcEx(FullUnInstall)
  75.  
  76. CallProcEx(DelRegUninstallKey)
  77. CallProcEx(DelRegSDKeys)
  78. CallProcEx(DelRegSDValues)
  79.  
  80. switch99 = Exists(SymglossHLP)
  81. #ifnot(switch99)
  82.     CallProcEx(DelRegSymgloss)
  83. #endif
  84.  
  85. switch99=CallProcEx(CheckRegInstalledApps)
  86. #if(switch99)
  87.     CallProcEx(DelRegInstalledApps)
  88. #endif
  89.  
  90. switch99=CallProcEx(CheckRegHKLMSymantec)
  91. #if(switch99)
  92.     CallProcEx(DelRegHKLMSymantec)
  93. #endif
  94.  
  95. switch99=CallProcEx(CheckRegHKCUSymantec)
  96. #if(switch99)
  97.     CallProcEx(DelRegHKCUSymantec)
  98. #endif
  99.  
  100. CallProcEx(RegStatus100)
  101. CallProcEx(RegStatus100)
  102. CallProcEx(EndStatusBox)
  103.  
  104. WizardPanel(Finished,siwsd.dll)
  105. WizardProcessPanel()
  106.  
  107. CallProcEx(ExitHookProc)
  108.  
  109. RebootNT()
  110. End()
  111.  
  112. [SubProc]
  113.  
  114.  
  115. ;********************************************************************
  116. ; Copy sections
  117. ;********************************************************************
  118.  
  119. [SDCopy]
  120. CopyMain.BaseFiles,    "Norton Speed Disk Basefiles - %ldK",           0, Y, N, Y
  121. CopySub.speediskw,     " "
  122.  
  123. CopyMain.DoNotRemove,   "Dummy Entry - Don't remove",                   0, N, N, N
  124. CopySub.xxx,            "Bogus Field"
  125. CopySub.yyy,            "Bogus Field"
  126.  
  127.  
  128. [SDCopy:TypeSelect]
  129. count = 2
  130. caption = "Norton Speed Disk Trial Uninstall Type"
  131. text = "Please Select the type of uninstall you want to perform."
  132. grouptext = "Uninstall Types"
  133. button1 = "&Selective Uninstall"
  134. button2 = "&Full Uninstall"
  135. descrip1 = "This option allows you to select the Norton Speed Disk Trial components you would like to remove from your hard drive."
  136. descrip2 = "This option completely removes Norton Speed Disk Trial from your hard drive."
  137.  
  138. [SDCopy:Primary]
  139. caption = "Norton Speed Disk Trial Main Selection"
  140. button1 = "Select..."
  141. button2 = "Select..."
  142. button3 = "Select..."
  143. button4 = "Select..."
  144. button5 = "Select..."
  145. text = App1Text
  146. selsizetext = "Total of selected components:"
  147. DisableButtons = 0
  148.  
  149. [SDCopy:Component]
  150. caption = "Norton Speed Disk Trial - Component Selection"
  151. text    = "Select/Deselect the components you want to remove.  Checked items will be uninstalled."
  152.  
  153. [SDCopy:CopyDialog]
  154. caption = "Copying Norton Speed Disk Trial Files..."
  155. posx = -10
  156. posy = -10
  157.  
  158. [App1Text]
  159. "Please select the items you wish to remove.  If a selection"
  160. "has a button to the right, you can select individual files or"
  161. "components."
  162.  
  163. ;********************************************************************
  164. ; Groups
  165. ;********************************************************************
  166.  
  167. [groups]
  168. "Norton Speed Disk Trial", sd.grp, , COMMON
  169.  
  170. [Norton Speed Disk Trial]
  171. "Speed Disk",              sd32.exe,       speediskw, 0,  TARGET
  172. "Uninstall Speed Disk",    setup.exe,      basefiles, 0,  TARGET, , , "/U"
  173.  
  174.  
  175. ;********************************************************************
  176. ; Dialog text
  177. ;********************************************************************
  178.  
  179. [Errors]
  180. NoPrev  =  "Symantec Install for Windows is already running!"
  181.  
  182. [FileCopy]
  183. copycaption   =  "Installing Norton Speed Disk Trial"
  184. errorcaption  =  "Error Copying Files"
  185. insertcaption =  "Insert Diskette"
  186. Message       =   MessageText
  187.  
  188. [Cancel]
  189. caption = "Norton Speed Disk Trial - Exit Uninstall"
  190. text    = "Are you sure you want to exit?"
  191.  
  192. [CancelShell]
  193. caption = "Norton Speed Disk Trial - Exit Uninstall"
  194. "You have selected to cancel Uninstall."
  195. "In order to reset the Windows"
  196. "environment, Uninstall will also restart"
  197. " your computer.  Are you sure you want to exit?"
  198.  
  199. ;********************************************************************
  200. ; File backups
  201. ;********************************************************************
  202.  
  203. [CustDLLCopy]
  204. siwsd.dll, siwsd.dll, SOURCE, TEMPDIR
  205.  
  206. ;********************************************************************
  207. ; File deletes
  208. ;********************************************************************
  209.  
  210. [Leftovers]
  211. ctl3d32.dll,   WINDOWS
  212.  
  213. ;********************************************************************
  214. ; External function calls
  215. ;********************************************************************
  216.  
  217. [LINK_SPEEDISK]
  218. dll = siwsd.dll
  219. function =RemoveLinkFile
  220. LINK = "Speed Disk.LNK"
  221.  
  222. [LINK_UNSPEEDISK]
  223. dll = siwsd.dll
  224. function = RemoveLinkFile
  225. LINK = "Uninstall Speed Disk.LNK"
  226.  
  227. [ShowTargets]
  228. dll = siwsd.dll
  229. function = ShowTargets
  230.  
  231. [Memory]
  232. dll = siwsd.dll
  233. function = InitMemory
  234.  
  235. [ExitHookProc]
  236. dll = siwsd.dll
  237. function = ReleaseDLL
  238.  
  239. [DeleteDir]
  240. dll = siwsd.dll
  241. function = DeleteDirectory
  242.  
  243. [DeleteTargetDir]
  244. dll = siwsd.dll
  245. function = DeleteDirectory
  246. location = TARGET
  247.  
  248. [DeleteSysDir]
  249. dll = siwsd.dll
  250. function = DeleteDirectory
  251. location = TARGET2
  252.  
  253. [DeleteLinks]
  254. dll = siwsd.dll
  255. function = RemoveLinks
  256.  
  257. [FindSharedComponents]
  258. dll = siwsd.dll
  259. function = FindSharedComponents
  260.  
  261. [UsageCounts]
  262. dll = siwsd.dll
  263. function = UpdateUsageCounts
  264.  
  265. [GetShort]
  266. dll = siwsd.dll
  267. function = ConvertToShortName
  268.  
  269. [GetShortTarget]
  270. dll = siwsd.dll
  271. function = ConvertToShortName
  272. source = 0
  273. dest = 6
  274.  
  275. [GetShortExt]
  276. dll = siwsd.dll
  277. function = ConvertToShortName
  278. source = 2
  279. dest = 7
  280.  
  281. [GetShortShared]
  282. dll = siwsd.dll
  283. function = ConvertToShortName
  284. source = 3
  285. dest = 8
  286.  
  287. [FullUnInstall]
  288. dll = siwsd.dll
  289. function = FullUnInstall
  290.  
  291. [BackupTarget4]
  292. dll = siwsd.dll
  293. function = BackupTarget4
  294.  
  295. [RestoreTarget4]
  296. dll = siwsd.dll
  297. function = RestoreTarget4
  298.  
  299. [DelRegSymGloss]
  300. dll = siwsd.dll
  301. function = DeleteRegistryValue
  302. hive = SIWHKEY_LOCAL_MACHINE
  303. subkey = "SOFTWARE\Microsoft\Windows\Help"
  304. value = "Symgloss.HLP"
  305.  
  306. [CheckRegValue1]
  307. dll = siwsd.dll
  308. function = QueryRegistryValue
  309. hive = SIWHKEY_LOCAL_MACHINE
  310. subkey = "SOFTWARE\Symantec\Norton Speed Disk Trial\Install\1.0\Components"
  311. value = "unerasew"
  312.  
  313. [DelRegSdwKeys]
  314. dll = siwsd.dll
  315. function = DeleteRegistryKeys
  316. hive = SIWHKEY_LOCAL_MACHINE
  317. subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\SD32.EXE"
  318. subkey = "SOFTWARE\Symantec\Norton Speed Disk Trial\Norton Speed Disk"
  319. subkey = "SOFTWARE\Symantec\Speed Disk Unmovable Files"
  320. hive = SIWHKEY_CURRENT_USER
  321. subkey = "SOFTWARE\Symantec\Norton Speed Disk Trial\Norton Speed Disk"
  322.  
  323. [DelRegSdwValues]
  324. dll = siwsd.dll
  325. function = DeleteRegistryValues
  326. hive = SIWHKEY_LOCAL_MACHINE
  327. subkey = "SOFTWARE\Microsoft\Windows\Help"
  328. value = "SD32.HLP"
  329. subkey = "SOFTWARE\Symantec\Norton Speed Disk Trial\Install\1.0\Components"
  330. value = "speediskw"
  331.  
  332. [DelRegUninstallKey]
  333. dll = siwsd.dll
  334. function = DeleteRegistryKey
  335. hive = SIWHKEY_LOCAL_MACHINE
  336. subkey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Norton Speed Disk Trial"
  337.  
  338. [DelRegSDKeys]
  339. dll = siwsd.dll
  340. function = DeleteRegistryKeys
  341. hive = SIWHKEY_LOCAL_MACHINE
  342. subkey = "SOFTWARE\Symantec\Norton Speed Disk Trial"
  343. hive = SIWHKEY_CURRENT_USER
  344. subkey = "SOFTWARE\Symantec\Norton Speed Disk Trial"
  345.  
  346. [DelRegHKLMSymantec]
  347. dll = siwsd.dll
  348. function = DeleteRegistryKey
  349. hive = SIWHKEY_LOCAL_MACHINE
  350. subkey = "SOFTWARE\Symantec"
  351.  
  352. [DelRegHKCUSymantec]
  353. dll = siwsd.dll
  354. function = DeleteRegistryKey
  355. hive = SIWHKEY_CURRENT_USER
  356. subkey = "SOFTWARE\Symantec"
  357.  
  358. [DelRegSDValues]
  359. dll = siwsd.dll
  360. function = DeleteRegistryValues
  361. hive = SIWHKEY_LOCAL_MACHINE
  362. subkey = "SOFTWARE\Symantec\InstalledApps"
  363. value = "SD1.0"
  364.  
  365. [DelRegInstalledApps]
  366. dll = siwsd.dll
  367. function = DeleteRegistryKey
  368. hive = SIWHKEY_LOCAL_MACHINE
  369. subkey = "SOFTWARE\Symantec\InstalledApps"
  370.  
  371. [CheckRegComponents]
  372. dll = siwsd.dll
  373. function = IsKeyEmpty
  374. hive = SIWHKEY_LOCAL_MACHINE
  375. subkey = "SOFTWARE\Symantec\Norton Speed Disk Trial\Install\1.0\Components"
  376.  
  377. [CheckRegHKLMSymantec]
  378. dll = siwsd.dll
  379. function = IsKeyEmpty
  380. hive = SIWHKEY_LOCAL_MACHINE
  381. subkey = "SOFTWARE\Symantec"
  382.  
  383. [CheckRegHKCUSymantec]
  384. dll = siwsd.dll
  385. function = IsKeyEmpty
  386. hive = SIWHKEY_CURRENT_USER
  387. subkey = "SOFTWARE\Symantec"
  388.  
  389. [CheckRegInstalledApps]
  390. dll = siwsd.dll
  391. function = IsKeyEmpty
  392. hive = SIWHKEY_LOCAL_MACHINE
  393. subkey = "SOFTWARE\Symantec\InstalledApps"
  394.  
  395. [DecrementSysfiles]
  396. dll = siwsd.dll
  397. function = DecrementBinaryUsageCounts
  398. section = SystemSharedComponents
  399.  
  400. [RegStatusCreate]
  401. dll = siwsd.dll
  402. function = CreateStatusBox
  403. caption = "Norton Speed Disk Trial Setup"
  404. text = "Removing Registry Entries..."
  405.  
  406. [CleanUpStatus]
  407. dll = siwsd.dll
  408. function = CreateStatusBox
  409. caption = "Norton Speed Disk Trial Setup"
  410. text = "Removing Leftover System Files..."
  411.  
  412. [RegStatus33]
  413. dll = siwsd.dll
  414. function = SetStatusBoxFillPos
  415. position = 33
  416.  
  417. [RegStatus66]
  418. dll = siwsd.dll
  419. function = SetStatusBoxFillPos
  420. position = 66
  421.  
  422. [RegStatus100]
  423. dll = siwsd.dll
  424. function = SetStatusBoxFillPos
  425. position = 100
  426.  
  427. [EndStatusBox]
  428. dll = siwsd.dll
  429. function = EndStatusBox
  430.  
  431.  
  432.  
  433. ;********************************************************************
  434. ; Text file mods
  435. ;********************************************************************
  436.  
  437. [FixSymantec]
  438. FileSpec   = %s\symantec.cnt, TARGET3
  439. filetype   = text
  440. Create     = 0
  441. CreateText =
  442. rem1       = "rem"
  443. FindRems   = 0
  444. DelItems   = SymantecDelItems
  445.  
  446. [SymantecDelItems]
  447. *NUDESK.CNT*
  448.  
  449. ;********************************************************************
  450. ; ini file modifications
  451. ;********************************************************************
  452.  
  453. ;********************************************************************
  454. ; Registration entries
  455. ;********************************************************************
  456.  
  457. ;********************************************************************
  458. ; Misc install sections
  459. ;********************************************************************
  460.  
  461. [UpdateHelpIndex]
  462. "winhelp.exe -g %s\infodesk.hlp", Target3
  463.  
  464. [SharedComponents]
  465. Component = s32krnlh.dll
  466. Component = s32guih.dll
  467. Component = s32utilh.dll
  468. Component = iratrial.dll
  469.  
  470. [SI32SharedComponents]
  471.  
  472. [SystunerSharedComponents]
  473.  
  474. [TargetSource]
  475. reset = TARGET
  476. location = %s, SOURCE
  477.  
  478. [DriversDir]
  479. reset = TARGET15
  480. location = %s\Drivers, SYSTEM
  481.  
  482. [FindInfoDesk]
  483. infodesk.cnt, Target3
  484.  
  485. [InfoDeskHLP]
  486. InfoDesk.HLP, TARGET3
  487.  
  488. [SymGlossHLP]
  489. SymGloss.HLP, TARGET3
  490.  
  491. [UnregisterSDService]
  492. "%s\sdsrv.exe -u", TARGET
  493.  
  494. [Pix]
  495. color = %s\nu.bmp, 10, -10
  496. color = %s\symlogo.rle, -1, 1
  497.  
  498. [WindowsVersion]
  499. 4.00
  500. "Norton Speed Disk Trial requires"
  501. "Microsoft Windows NT version 4.0 or later."
  502.  
  503. [HTMLExists]
  504. HTML.OCX, SYSTEM
  505.  
  506.  
  507. ;********************************************************************
  508. ; Wizard panels
  509. ;********************************************************************
  510.  
  511. [Welcome]
  512. Caption="Norton Speed Disk Trial Setup"
  513. Title="Norton Speed Disk Trial Uninstall"
  514. DlgProc=UnInstallDlgProc
  515. ResourceId=134
  516. Bitmap16=600
  517. PanelDataProc=_DefaultDataProc@0
  518. PanelFlags=First
  519.  
  520. [UninstallType]
  521. Caption="Norton Speed Disk Trial Setup"
  522. Title="Uninstall Type"
  523. DlgProc=UnInstallDlgProc
  524. ResourceId=142
  525. Bitmap16=600
  526. PanelDataProc=_DefaultDataProc@0
  527.  
  528. [Warning]
  529. Caption = "Norton Speed Disk Trial Setup"
  530. Title="Verify Full Uninstall"
  531. DlgProc=UnInstallDlgProc
  532. ResourceId=139
  533. Bitmap16=600
  534. PanelDataProc=_DefaultDataProc@0
  535.  
  536. [NortonProtection]
  537. Caption = "Norton Speed Disk Trial Setup"
  538. Title="Removing Norton Protection Folder"
  539. DlgProc=UnInstallDlgProc
  540. ResourceId=143
  541. Bitmap16=600
  542. PanelDataProc=_DefaultDataProc@0
  543.  
  544. [RegTracker]
  545. Caption = "Norton Speed Disk Trial Setup"
  546. Title="Removing Registry Tracker"
  547. DlgProc=UnInstallDlgProc
  548. ResourceId=146
  549. Bitmap16=600
  550. PanelDataProc=_DefaultDataProc@0
  551.  
  552. [RemoveFiles]
  553. Caption = "Norton Speed Disk Trial Setup"
  554. Title="Removing Program Files"
  555. DlgProc=UnInstallDlgProc
  556. ResourceId=135
  557. Bitmap16=600
  558. PanelDataProc=_DefaultDataProc@0
  559.  
  560. [Finished]
  561. Caption = "Norton Speed Disk Trial Setup"
  562. Title="Uninstall Complete"
  563. DlgProc=UnInstallDlgProc
  564. ResourceId=138
  565. Bitmap16=600
  566. PanelDataProc=_DefaultDataProc@0
  567. PanelFlags=First+Last+Finished
  568.  
  569. [Bogus2]
  570. Caption = "Norton Speed Disk Trial Setup"
  571. Title="Bogus2"
  572. DlgProc=UnInstallDlgProc
  573. ResourceId=138
  574. Bitmap16=600
  575. PanelDataProc=_DefaultDataProc@0
  576.  
  577. ;********************************************************************
  578. ; SetShell section
  579. ;********************************************************************
  580.  
  581.  
  582.  
  583.  
  584.