home *** CD-ROM | disk | FTP | other *** search
/ PC97 Software / SOFTWARE_97.iso / NCNT4W95.102 / DISK2 / UNINSTAL.IN$ / UNINSTAL.INF
INI File  |  1996-10-01  |  8KB  |  227 lines

  1. ;****************************************************************************
  2. ;* Norton Commander Deinstallation Script                                   *
  3. ;* FOR VERSION 4.0 OF SYMANTEC INSTALL FOR WINDOWS                          *
  4. ;****************************************************************************
  5. ;
  6.  
  7.  
  8. [InstallVersion] ; Tell SETUP that this script is designed for SETUP Ver 4.0
  9. 4.0
  10.  
  11. [process]
  12. DisableHelp()
  13.  
  14. FullUninstall()                         ; Set internal flags to indicate a Full Uninstall
  15.  
  16. Backup( SaveCustom )                    ; Backup Custom DLL
  17.  
  18. switch2 = CallProcEx( CheckOSVer )      ; Check for Windows 95
  19.  
  20. #if ( switch2 )
  21.  WizardPanel( BeginUninstall, siwnc.dll ); Set up the first panel
  22. #else
  23.  WizardPanel( BeginUninstallNT, siwnc.dll ); Set up the first panel
  24. #endif
  25. WizardProcessPanel()            ; Display first panel
  26.  
  27. CallProcEx( ZapTheScheduler )           ; Unload the scheduler
  28.  
  29. SetActiveCopy( NCRemove, uninstal.inf ) ; Used in searching DISKS.INF
  30.  
  31. UnCopy()                                ; Delete the files
  32.  
  33. EnableWin95Shell()                      ; Groups are processed quicker this way. Uses IShellLink instead of DDE
  34. Groups( )                               ; Remove the groups
  35. #ifnot ( switch2 )            ; NT
  36.   CallProcEx ( ZapGroups )        ; Gets Rid of Norton Commander group
  37. #endif
  38.  
  39. CallProcEx( GoneNCD )                   ; Delete the NCTREE?.NCD files
  40.  
  41. ;#if ( switch2 )                         ; Only call this for Win95
  42.   CallProcEx( GoAwayShortCut )          ; Remove the "Norton Commander" shortcut from the desktop
  43. ;#endif
  44.  
  45. Delete( Extra_Files )                   ; Remove the screen savers from SYSTEM directory
  46.  
  47. #if ( switch2 )
  48.   WizardPanel( EndOfUninstall, siwnc.dll ); Set up the final panel
  49. #else
  50.   WizardPanel( EndOfUninstallNT, siwnc.dll ); Set up the final panel
  51. #endif
  52. WizardProcessPanel()            ; Display final panel
  53.  
  54. #ifnot ( switch2 )
  55.  MessageBox ( RebootNT)
  56. #endif
  57.  
  58. switch3 = CallProcEx( Del_RegStuff )    ; Call the Custom DLL function to remove Registry information
  59.  
  60. CallProcEx( CheckThoseInUse )
  61.  
  62.  
  63. Delete( DeleteCustom )                  ; Delete the Custom DLL.
  64.  
  65.  
  66. :ScriptEnd
  67.  
  68. switch2 = CallProcEx( CheckOSVer )      ; Check for Windows 95
  69.  
  70. #if ( switch2 )
  71.  #if ( switch7 )
  72.    ExitReboot()                          ; If so, must reboot to complete installation
  73.  #else
  74.    Exit()                                ; Exit the installation program
  75.  #endif
  76. #else
  77.  Exit()
  78. #endif
  79.  
  80.  
  81. End()                                   ; Goodbye
  82.  
  83. ;***************************************************************************
  84. ;* Wizard Panel section                                                    *
  85. ;***************************************************************************
  86. [BeginUninstall]
  87. Caption = "Norton Commander for Windows 95/NT"
  88. Title = "Uninstall Norton Commander"
  89. ResourceId = 2000
  90. DlgProc = WizardNCPanelProc
  91. Bitmap16 = 600
  92. PanelDataProc = _DefaultDataProc@0
  93. PanelFlags = First
  94.  
  95. [EndOfUninstall]
  96. Caption = "Norton Commander for Windows 95/NT"
  97. Title = "Uninstall Complete"
  98. ResourceId = 2002
  99. DlgProc = WizardNCPanelProc
  100. Bitmap16 = 600
  101. PanelDataProc = _DefaultDataProc@0
  102. PanelFlags = First + Last + Finish
  103.  
  104. [BeginUninstallNT]
  105. Caption = "Norton Commander for Windows 95/NT"
  106. Title = "Uninstall Norton Commander"
  107. ResourceId = 2000
  108. DlgProc = WizardNCPanelProc
  109. Bitmap16 = 600
  110. PanelDataProc = _DefaultDataProc@0
  111. PanelFlags = First
  112.  
  113. [EndOfUninstallNT]
  114. Caption = "Norton Commander for Windows 95/NT"
  115. Title = "Uninstall Complete"
  116. ResourceId = 2002
  117. DlgProc = WizardNCPanelProc
  118. Bitmap16 = 600
  119. PanelDataProc = _DefaultDataProc@0
  120. PanelFlags = First + Last + Finish
  121. ;***************************************************************************
  122. ;* Custom DLL section                                                      *
  123. ;***************************************************************************
  124. [Del_RegStuff]
  125. dll = siwnc.dll
  126. function = FuncRegDeleteKeyValue
  127. section = KeysSection
  128.  
  129. [KeysSection]
  130. HKEY_CURRENT_USER,  "Software\Symantec\Norton Commander"
  131. HKEY_CURRENT_USER,  "AppEvents\Schemes\Apps\NCScheduler"
  132. HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Norton Commander"
  133. HKEY_LOCAL_MACHINE, "SOFTWARE\Symantec\InstalledApps", "Norton Commander"
  134.  
  135. [SaveCustom]
  136. siwnc.dll, siwnc.dll, SOURCE, TEMPDIR
  137.  
  138. [DeleteCustom]
  139. siwnc.dll, TEMPDIR
  140.  
  141. [GoneNCD]
  142. dll = siwnc.dll
  143. function = CutDownTrees
  144.  
  145. [GoAwayShortCut]
  146. dll = siwnc.dll
  147. function = DeleteTheNCShortCut
  148.  
  149. [ZapTheScheduler]
  150. dll = siwnc.dll
  151. function = GoOnYeahScheduler
  152.  
  153. [ZapGroups]
  154. dll = siwnc.dll
  155. function = ZapGroups
  156.  
  157. [CheckThoseInUse]
  158. dll = siwnc.dll
  159. function = AreFilesInUse
  160.  
  161. [CheckOSVer]
  162. dll = siwnc.dll
  163. function = IsPlatformWin95
  164.  
  165. ;***************************************************************************
  166. ;* Groups                                                                  *
  167. ;***************************************************************************
  168.  
  169. [groups]
  170. "Norton Commander",  nc96.grp, DELETE   ; Name of the Norton Commander Group
  171.  
  172. [Norton Commander]                      ; This text in [] must match that under [NC96Groups]
  173. "Norton Commander",                     nc.exe,         basefiles,,,,,
  174. "Norton Commander Network Utilities",   nc_net.exe,     ncnet,,,,,
  175. "Norton Commander Scheduler",           nc_sched.exe,   ncsched,,,,,
  176.  
  177. ;***************************************************************************
  178. ;* Deleting Files                                                           *
  179. ;***************************************************************************
  180.  
  181. [NCRemove]                                                        ;Size,  Required, Files Button, Show Item
  182. CopyMain.BaseFiles,    "Norton Commander Files - %ldK",            0,     Y,        N,            Y
  183. CopyMain.nccompare,    "Norton Commander Compare Utility - %ldK",  0,     N,        N,            Y
  184. CopyMain.nccopy,       "Norton Commander Copy Utility - %ldK",     0,     N,        N,            Y
  185. CopyMain.ncnet,        "Norton Commander Network Utilites - %ldK", 0,     N,        N,            Y
  186. CopyMain.ncsched,      "Norton Commander Scheduler - %ldK",        0,     N,        N,            Y
  187. CopyMain.ncscreens,    "Norton Commander Screen Savers - %ldK",    0,     N,        N,            Y
  188.  
  189. [FileCopy]
  190. copycaption   =  "Installing Norton Commander"
  191. errorcaption  =  "Error Copying Files"
  192. insertcaption =  "Insert Diskette"
  193.  
  194. [Extra_Files]                          ; Files generated by Help system.
  195. nc.ftg, SOURCE
  196. nc.fts, SOURCE
  197. nc.gid, SOURCE
  198. nc_sched.ftg, SOURCE
  199. nc_sched.fts, SOURCE
  200. nc_sched.gid, SOURCE
  201. ncgloss.fts, SOURCE
  202. ncgloss.ftg, SOURCE
  203. ncgloss.gid, SOURCE
  204. norton~1.scr, SYSTEM                   ; The screen savers with LFNs
  205. norton~2.scr, SYSTEM
  206. norton~3.scr, SYSTEM
  207. norton~4.scr, SYSTEM
  208.  
  209. ;***************************************************************************
  210. ;* Quitting Setup                                                          *
  211. ;***************************************************************************
  212.  
  213. [Cancel]                                ; When the user chooses to exit Setup
  214. caption = "Norton Commander Uninstall"
  215. text    = "Are you sure you want to exit?"
  216.  
  217. ;***************************************************************************
  218. ;* Messages                                                                *
  219. ;***************************************************************************
  220.  
  221. [RebootNT]
  222. caption = "Norton Commander"
  223. " "
  224. "Please reboot this NT system"
  225. "to complete the necessary changes."
  226. " "
  227.