home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 November / Pcwk1197.iso / Wtestowe / SYMANTEC / IFFTRIAL / UNINSTAL.INF < prev    next >
INI File  |  1996-09-03  |  13KB  |  499 lines

  1. ;****************************************************************************
  2. ;* Internet FastFind uninstallation Script                                  *
  3. ;****************************************************************************
  4.  
  5. ; Script Switch Numbers
  6.  
  7. ;  SWITCH_IS_NT40                             01
  8. ;  SWITCH_IS_WIN95                            02
  9.  
  10. ;  SWITCH_FULL_UNINSTALL                      10
  11.  
  12. ;  SWITCH_SHOW_WAIT_DIALOG                    15
  13.  
  14. ;  SWITCH_SELECTED_NIC                        20
  15. ;  SWITCH_SELECTED_WEBFIND                    21
  16. ;  SWITCH_SELECTED_NOTIFY                     22
  17. ;  SWITCH_SELECTED_FTP                        23
  18. ;  SWITCH_SELECTED_ZIP                        24
  19. ;  SWITCH_SELECTED_WEBLAUNCH                  25
  20. ;  SWITCH_SELECTED_PATCHCONNECT               26
  21. ;  SWITCH_SELECTED_NETFILEFIND                27
  22.  
  23. ;  SWITCH_PREVIOUS                            50
  24. ;  SWITCH_NEXT                                51
  25. ;  SWITCH_CANCEL                              52
  26.  
  27. ;  SWITCH_EXIT_CONTINUE                       96
  28. ;  SWITCH_EXIT_RESTART                        97
  29. ;  SWITCH_EXIT_REBOOT                         98
  30.  
  31.  
  32. [InstallVersion]
  33. 4.0
  34.  
  35. [process]
  36. Uninstall()
  37. EnableForceWrite()
  38. EnableOverwrite()
  39. EnableWin95Shell()
  40. Enable256Advos()
  41. SetActiveCopy(MainCopy, uninstal.inf)
  42. Backup(CustDLLCopy)
  43. Backup(SettingsDLLCopy)
  44. ;Bitmaps(Bitmaps)
  45. CallProc(InitCustomDLL)
  46.  
  47. #if(switch01)
  48.    switch53=CallProcEx(bIsAdmin)
  49.    #ifnot(switch53)
  50.       CallProc(MB_NeedAdminToUninstall)
  51.       goto(Exit)
  52.    #endif
  53. #endif
  54.  
  55. CallProc(KillRunningTasks)
  56. ;ResetTarget(SourceTarget)
  57. CallProc(SetTargetToSource)
  58.  
  59. switch10=TRUE
  60. WizardPanel(WizUninstallWelcome, siwifftr.dll)
  61. WizardProcessPanel()
  62.  
  63. ; NOTE - the following are for FULL uninstall
  64. #if(switch10)
  65.    SelectOption(RequiredFiles)
  66.    SelectOption(NIC)
  67.    SelectOption(WebFind)
  68.    SelectOption(Notify)
  69.    SelectOption(FTP)
  70.    SelectOption(Zip)
  71.    SelectOption(WebLaunch)
  72.    SelectOption(NetFileFind)
  73.    FullUninstall()
  74. #else
  75.    MessageBox(MB_CustomUninstallNotSupported)
  76.    SelectOption(RequiredFiles)
  77.    SelectOption(NIC)
  78.    SelectOption(WebFind)
  79.    SelectOption(Notify)
  80.    SelectOption(FTP)
  81.    SelectOption(Zip)
  82.    SelectOption(WebLaunch)
  83.    SelectOption(NetFileFind)
  84.    switch10=TRUE
  85.    FullUninstall()
  86. #endif
  87.  
  88. CallProc(RemoveRpaChk)
  89.  
  90. Uncopy()
  91.  
  92. CallProc(HourglassOn)
  93.  
  94. ;switch15=TRUE
  95.  
  96. switch53=IsOptionSelected(NIC)
  97. #if(switch53)
  98.    CallProc(RemoveSettingsNIC)
  99.    Delete(LeftoversNIC)
  100. #endif
  101.  
  102. switch53=IsOptionSelected(WebFind)
  103. #if(switch53)
  104.    CallProc(RemoveSettingsWebFind)
  105.    Delete(LeftoversWebFind)
  106. #endif
  107.  
  108. switch53=IsOptionSelected(Notify)
  109. #if(switch53)
  110.    CallProc(RemoveSettingsNotify)
  111.    Delete(LeftoversNotify)
  112. #endif
  113.  
  114. switch53=IsOptionSelected(FTP)
  115. #if(switch53)
  116.    CallProc(RemoveSettingsFTP)
  117. #endif
  118.  
  119. switch53=IsOptionSelected(Zip)
  120. #if(switch53)
  121.    CallProc(RemoveSettingsZip)
  122. #endif
  123.  
  124. switch53=IsOptionSelected(WebLaunch)
  125. #if(switch53)
  126.    CallProc(RemoveSettingsWebLaunch)
  127.    Delete(LeftoversWebLaunch)
  128. #endif
  129.  
  130. switch53=IsOptionSelected(NetFileFind)
  131. #if(switch53)
  132.    CallProc(RemoveSettingsNetFileFind)
  133.    Delete(LeftoversNetFileFind)
  134. #endif
  135.  
  136. switch53=IsOptionSelected(PatchConnect)
  137. #if(switch53)
  138.    CallProc(RemoveSettingsPatchConnect)
  139.    Delete(LeftoversPatchConnect)
  140. #endif
  141.  
  142. #if(switch10)
  143.    CallProc(UnregisterProductInfo)
  144.    Delete(LeftoversFull)
  145. #endif
  146.  
  147. CallProc(HourglassOff)
  148.  
  149. CallProc(DeleteProgramGroup)
  150.  
  151.  
  152. #if(switch02)
  153.    switch96=FALSE
  154.    switch97=TRUE
  155.    switch98=FALSE
  156. #else
  157.    switch96=FALSE
  158.    switch97=FALSE
  159.    switch98=TRUE
  160. #endif
  161.  
  162. WizardPanel(WizUninstallFinish, siwifftr.dll)
  163. WizardProcessPanel()
  164.  
  165. CallProc(DeleteDirectories)
  166.  
  167. :Exit
  168. CallProc(RefreshDesktop)
  169. #if(switch97)
  170.    switch53=CallProcEx(bRestartWindows)
  171.    #if(switch53)
  172.       ExitRestart()
  173.    #else
  174.       Exit()
  175.    #endif
  176. #endif
  177.  
  178. #if(switch98)
  179.    switch53=CallProcEx(bRebootSystem)
  180.    #if(switch53)
  181.       RebootNT()
  182.    #else
  183.       Exit()
  184.    #endif
  185. #endif
  186.  
  187. Exit()
  188.  
  189. ;***************************************************************************
  190. ;* SubProc Executed When Install Takes Over As Shell
  191. ;***************************************************************************
  192.  
  193. [SubProc]
  194. Backup(CustDLLCopy)
  195. Backup(SettingsDLLCopy)
  196. ResetTarget(SourceTarget)
  197. Return()
  198.  
  199. ;***************************************************************************
  200. ;* Dialog Info                                                             *
  201. ;***************************************************************************
  202.  
  203. ;***************************************************************************
  204. ;* Message Text                                                            *
  205. ;***************************************************************************
  206.  
  207. [cancel]
  208. caption = "Exit Uninstall?"
  209. text    = "Are you sure that you want to exit?"
  210.  
  211. [cancelshell]
  212. caption = "Exit Uninstall?"
  213. "You have chosen to cancel the Uninstall"
  214. "program. In order to reset the Windows"
  215. "environment, Uninstall will also close"
  216. "Windows. Are you sure you want to exit?"
  217.  
  218. [NotImplemented]
  219. caption = "Feature Not Implemented"
  220. "This feature has not yet been implemented."
  221.  
  222. [MB_CustomUninstallNotSupported]
  223. caption="Internet FastFind Uninstall"
  224. "Custom uninstall is not yet supported. A full uninstall will be performed."
  225.  
  226. ;***************************************************************************
  227. ;* Set Directories                                                         *
  228. ;***************************************************************************
  229.  
  230. [SourceTarget]
  231. reset = TARGET1
  232. location = %s, SOURCE
  233.  
  234.  
  235. ;***************************************************************************
  236. ;* Delete Files                                                            *
  237. ;***************************************************************************
  238.  
  239. [LeftoversFull]
  240. pipedlg.dat,   TARGET1
  241. modem.id,      TARGET1
  242. $flecomp.tmp,  TARGET1
  243. wintdist.exe,  TARGET1
  244. zip.gid,       TARGET1
  245. zip.fts,       TARGET1
  246. zip.ftg,       TARGET1
  247. ftp.gid,       TARGET1
  248. ftp.fts,       TARGET1
  249. ftp.ftg,       TARGET1
  250. system.iff,    WINDOWS
  251. user.iff,      WINDOWS
  252.  
  253. [LeftoversNIC]
  254. iff.gid, TARGET1
  255. iff.fts, TARGET1
  256. iff.ftg, TARGET1
  257.  
  258. [LeftoversWebFind]
  259. webfind.gid, TARGET1
  260. webfind.fts, TARGET1
  261. webfind.ftg, TARGET1
  262. NWFATVST.DLL, TARGET1
  263. NWFCHMTR.DLL, TARGET1
  264. NWFCHWHS.DLL, TARGET1
  265. NWFEXCIT.DLL, TARGET1
  266. NWFFRLKC.DLL, TARGET1
  267. NWFGRCRL.DLL, TARGET1
  268. NWFHOTBT.DLL, TARGET1
  269. NWFINFSK.DLL, TARGET1
  270. NWFJPTTN.DLL, TARGET1
  271. NWFJPYHO.DLL, TARGET1
  272. NWFLYCOS.DLL, TARGET1
  273. NWFMGLLN.DLL, TARGET1
  274. NWFWBCRL.DLL, TARGET1
  275. NWFYAHOO.DLL, TARGET1
  276.  
  277. [LeftoversNotify]
  278. notify.gid, TARGET1
  279. notify.fts, TARGET1
  280. notify.ftg, TARGET1
  281.  
  282. [LeftoversPatchConnect]
  283. pconnect.gid, TARGET1
  284. pconnect.fts, TARGET1
  285. pconnect.ftg, TARGET1
  286.  
  287. [LeftoversNetFileFind]
  288. netff.gid, TARGET1
  289. netff.fts, TARGET1
  290. netff.ftg, TARGET1
  291.  
  292. [LeftoversWebLaunch]
  293. wlaunch.gid, TARGET1
  294. wlaunch.fts, TARGET1
  295. wlaunch.ftg, TARGET1
  296.  
  297. [CustDLLDel]
  298. siwifftr.dll,  TEMPDIR
  299.  
  300. ;***************************************************************************
  301. ;* External function calls (DLL)                                           *
  302. ;***************************************************************************
  303.  
  304. [InitCustomDLL]
  305. dll = siwifftr.dll
  306. function = InitCustomDLL
  307.  
  308. [TestFunction]
  309. dll = siwifftr.dll
  310. function = TestFunction
  311.  
  312. [UnregisterProductInfo]
  313. dll=siwifftr.dll
  314. function=UnregisterProductInfo
  315.  
  316. [KillRunningTasks]
  317. dll=siwifftr.dll
  318. function=KillRunningTasks
  319.  
  320. [DeleteDirectories]
  321. dll=siwifftr.dll
  322. function=DeleteDirectories
  323.  
  324. [HourglassOn]
  325. dll=siwifftr.dll
  326. function=HourglassOn
  327.  
  328. [HourglassOff]
  329. dll=siwifftr.dll
  330. function=HourglassOff
  331.  
  332. [RemoveSettingsNIC]
  333. dll=siwifftr.dll
  334. function=RemoveSettingsNIC
  335.  
  336. [RemoveSettingsWebFind]
  337. dll=siwifftr.dll
  338. function=RemoveSettingsWebFind
  339.  
  340. [RemoveSettingsNotify]
  341. dll=siwifftr.dll
  342. function=RemoveSettingsNotify
  343.  
  344. [RemoveSettingsFTP]
  345. dll=siwifftr.dll
  346. function=RemoveSettingsFTP
  347.  
  348. [RemoveSettingsZip]
  349. dll=siwifftr.dll
  350. function=RemoveSettingsZip
  351.  
  352. [RemoveSettingsWebLaunch]
  353. dll=siwifftr.dll
  354. function=RemoveSettingsWebLaunch
  355.  
  356. [RemoveSettingsNetFileFind]
  357. dll=siwifftr.dll
  358. function=RemoveSettingsNetFileFind
  359.  
  360. [RemoveSettingsPatchConnect]
  361. dll=siwifftr.dll
  362. function=RemoveSettingsPatchConnect
  363.  
  364. [SetTargetToSource]
  365. dll=siwifftr.dll
  366. function=SetTargetToSource
  367.  
  368. [bRestartWindows]
  369. dll=siwifftr.dll
  370. function=bRestartWindows
  371.  
  372. [bRebootSystem]
  373. dll=siwifftr.dll
  374. function=bRebootSystem
  375.  
  376. [bIsAdmin]
  377. dll=siwifftr.dll
  378. function=bIsAdmin
  379.  
  380. [MB_NeedAdminToUninstall]
  381. dll=siwifftr.dll
  382. function=MB_NeedAdminToUninstall
  383.  
  384. [DeleteProgramGroup]
  385. dll=siwifftr.dll
  386. function=DeleteProgramGroup
  387.  
  388. [RemoveRpaChk]
  389. dll=siwifftr.dll
  390. function=RemoveRpaChk
  391.  
  392. ;***************************************************************************
  393. ;* Misc install functions                                                  *
  394. ;***************************************************************************
  395.  
  396. [Bitmaps]
  397. color = %s\symantec.rle, -1, -1
  398.  
  399. ;***************************************************************************
  400. ;* File backup                                                             *
  401. ;***************************************************************************
  402.  
  403. [CustDLLCopy]
  404. siwifftr.dll, siwifftr.dll, SOURCE, TEMPDIR
  405.  
  406. [SettingsDLLCopy]
  407. settings.dll, settings.dll, SOURCE, TEMPDIR
  408.  
  409. ;***************************************************************************
  410. ;* SetShell section                                                        *
  411. ;***************************************************************************
  412.  
  413. [SetShell]
  414. WinIniName = win.ini
  415. SystemIniName = system.ini
  416. Message = MessageBox.SetShellMessage
  417. SysSectionName = boot
  418. WinSectionName = windows
  419. shell = %s\setup.exe
  420. load =
  421. run =
  422. SetShellIfLoaded=
  423. Backup = Backup.SetShellSave
  424. Restore = Backup.SetShellRestore
  425. Active=no
  426. IfActiveList=LoadedList
  427. SubProcess=SubProc
  428.  
  429. [SetShellSave]
  430. win.ini, win.siw, WINDOWS, WINDOWS
  431. system.ini, system.siw, WINDOWS, WINDOWS
  432.  
  433. [SetShellRestore]
  434. system.siw, system.ini, WINDOWS, WINDOWS
  435. win.siw, win.ini, WINDOWS, WINDOWS
  436.  
  437. [_LoadedList]
  438.  
  439. [SetShellMessage]
  440. caption  =  "Internet FastFind Uninstall"
  441. "Welcome to Internet FastFind Uninstall.  Please select OK to allow Uninstall to restart Windows and continue.  Press Cancel to exit Uninstall."
  442.  
  443.  
  444. ;***************************************************************************
  445. ;* Groups                                                                  *
  446. ;***************************************************************************
  447.  
  448. [MainGroup]
  449. "Internet FastFind", nn.grp
  450.  
  451. [Internet FastFind]
  452. "WebFind",                          webfind.exe,   WebFind,,TARGET1,,,,TARGET1
  453. "Internet FastFind",                iff.exe,       NIC,,TARGET1,,,,TARGET1
  454. "Notify",                           notify.exe,    Notify,,TARGET1,,,,TARGET1
  455. "PatchConnect",                     pconnect.exe,  PatchConnect,,TARGET1,,,,TARGET1
  456. "NetFileFind",                      netff.exe,     NetFileFind,,TARGET1,,,,TARGET1
  457. "Internet FastFind Release Notes",  readme.txt,    RequiredFiles,,TARGET1,,,,TARGET1
  458.  
  459. ;***************************************************************************
  460. ;* Copy                                                                    *
  461. ;***************************************************************************
  462.  
  463. [MainCopy]
  464. ;SelectionType.ComponentName,    "SelectionDlgText",               Size,    Required?,<Files>?,ShowItem?
  465.  
  466. CopyMain.RequiredFiles,          "Required Files - %ldK",            0,       Y,          N,          Y
  467. CopyMain.NIC,                    "Internet FastFind - %ldK",         0,       N,          N,          Y
  468. CopyMain.WebFind,                "WebFind - %ldK",                   0,       N,          N,          Y
  469. CopyMain.Notify,                 "Notify - %ldK",                    0,       N,          N,          Y
  470. CopyMain.FTP,                    "EasyFTP - %ldK",                   0,       N,          N,          Y
  471. CopyMain.Zip,                    "EasyZIP - %ldK",                   0,       N,          N,          Y
  472. CopyMain.WebLaunch,              "WebLaunch - % ldK",                0,       N,          N,          Y
  473. CopyMain.PatchConnect,           "PatchConnect - % ldK",             0,       N,          N,          Y
  474. CopyMain.NetFileFind,            "NetFileFind - % ldK",              0,       N,          N,          Y
  475.  
  476.  
  477. ;***************************************************************************
  478. ;* Wizard Panels                                                           *
  479. ;***************************************************************************
  480.  
  481. [WizUninstallWelcome]
  482. Caption="Internet FastFind Uninstall"
  483. Title="Welcome to Uninstall"
  484. DlgProc=SIW_ProductDlgProc
  485. ResourceId=1005
  486. Bitmap16=900
  487. PanelDataProc=DefaultDataProc
  488. PanelFlags=first
  489.  
  490. [WizUninstallFinish]
  491. Caption="Internet FastFind Uninstall"
  492. Title="Uninstall Complete"
  493. DlgProc=SIW_ProductDlgProc
  494. ResourceId=1004
  495. ;Bitmap16=906
  496. Bitmap16=900
  497. PanelDataProc=DefaultDataProc
  498. PanelFlags=first+last+finish
  499.