home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC97 Software
/
SOFTWARE_97.iso
/
NCNT4W95.102
/
DISK2
/
UNINSTAL.IN$
/
UNINSTAL.INF
Wrap
INI File
|
1996-10-01
|
8KB
|
227 lines
;****************************************************************************
;* Norton Commander Deinstallation Script *
;* FOR VERSION 4.0 OF SYMANTEC INSTALL FOR WINDOWS *
;****************************************************************************
;
[InstallVersion] ; Tell SETUP that this script is designed for SETUP Ver 4.0
4.0
[process]
DisableHelp()
FullUninstall() ; Set internal flags to indicate a Full Uninstall
Backup( SaveCustom ) ; Backup Custom DLL
switch2 = CallProcEx( CheckOSVer ) ; Check for Windows 95
#if ( switch2 )
WizardPanel( BeginUninstall, siwnc.dll ); Set up the first panel
#else
WizardPanel( BeginUninstallNT, siwnc.dll ); Set up the first panel
#endif
WizardProcessPanel() ; Display first panel
CallProcEx( ZapTheScheduler ) ; Unload the scheduler
SetActiveCopy( NCRemove, uninstal.inf ) ; Used in searching DISKS.INF
UnCopy() ; Delete the files
EnableWin95Shell() ; Groups are processed quicker this way. Uses IShellLink instead of DDE
Groups( ) ; Remove the groups
#ifnot ( switch2 ) ; NT
CallProcEx ( ZapGroups ) ; Gets Rid of Norton Commander group
#endif
CallProcEx( GoneNCD ) ; Delete the NCTREE?.NCD files
;#if ( switch2 ) ; Only call this for Win95
CallProcEx( GoAwayShortCut ) ; Remove the "Norton Commander" shortcut from the desktop
;#endif
Delete( Extra_Files ) ; Remove the screen savers from SYSTEM directory
#if ( switch2 )
WizardPanel( EndOfUninstall, siwnc.dll ); Set up the final panel
#else
WizardPanel( EndOfUninstallNT, siwnc.dll ); Set up the final panel
#endif
WizardProcessPanel() ; Display final panel
#ifnot ( switch2 )
MessageBox ( RebootNT)
#endif
switch3 = CallProcEx( Del_RegStuff ) ; Call the Custom DLL function to remove Registry information
CallProcEx( CheckThoseInUse )
Delete( DeleteCustom ) ; Delete the Custom DLL.
:ScriptEnd
switch2 = CallProcEx( CheckOSVer ) ; Check for Windows 95
#if ( switch2 )
#if ( switch7 )
ExitReboot() ; If so, must reboot to complete installation
#else
Exit() ; Exit the installation program
#endif
#else
Exit()
#endif
End() ; Goodbye
;***************************************************************************
;* Wizard Panel section *
;***************************************************************************
[BeginUninstall]
Caption = "Norton Commander for Windows 95/NT"
Title = "Uninstall Norton Commander"
ResourceId = 2000
DlgProc = WizardNCPanelProc
Bitmap16 = 600
PanelDataProc = _DefaultDataProc@0
PanelFlags = First
[EndOfUninstall]
Caption = "Norton Commander for Windows 95/NT"
Title = "Uninstall Complete"
ResourceId = 2002
DlgProc = WizardNCPanelProc
Bitmap16 = 600
PanelDataProc = _DefaultDataProc@0
PanelFlags = First + Last + Finish
[BeginUninstallNT]
Caption = "Norton Commander for Windows 95/NT"
Title = "Uninstall Norton Commander"
ResourceId = 2000
DlgProc = WizardNCPanelProc
Bitmap16 = 600
PanelDataProc = _DefaultDataProc@0
PanelFlags = First
[EndOfUninstallNT]
Caption = "Norton Commander for Windows 95/NT"
Title = "Uninstall Complete"
ResourceId = 2002
DlgProc = WizardNCPanelProc
Bitmap16 = 600
PanelDataProc = _DefaultDataProc@0
PanelFlags = First + Last + Finish
;***************************************************************************
;* Custom DLL section *
;***************************************************************************
[Del_RegStuff]
dll = siwnc.dll
function = FuncRegDeleteKeyValue
section = KeysSection
[KeysSection]
HKEY_CURRENT_USER, "Software\Symantec\Norton Commander"
HKEY_CURRENT_USER, "AppEvents\Schemes\Apps\NCScheduler"
HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Norton Commander"
HKEY_LOCAL_MACHINE, "SOFTWARE\Symantec\InstalledApps", "Norton Commander"
[SaveCustom]
siwnc.dll, siwnc.dll, SOURCE, TEMPDIR
[DeleteCustom]
siwnc.dll, TEMPDIR
[GoneNCD]
dll = siwnc.dll
function = CutDownTrees
[GoAwayShortCut]
dll = siwnc.dll
function = DeleteTheNCShortCut
[ZapTheScheduler]
dll = siwnc.dll
function = GoOnYeahScheduler
[ZapGroups]
dll = siwnc.dll
function = ZapGroups
[CheckThoseInUse]
dll = siwnc.dll
function = AreFilesInUse
[CheckOSVer]
dll = siwnc.dll
function = IsPlatformWin95
;***************************************************************************
;* Groups *
;***************************************************************************
[groups]
"Norton Commander", nc96.grp, DELETE ; Name of the Norton Commander Group
[Norton Commander] ; This text in [] must match that under [NC96Groups]
"Norton Commander", nc.exe, basefiles,,,,,
"Norton Commander Network Utilities", nc_net.exe, ncnet,,,,,
"Norton Commander Scheduler", nc_sched.exe, ncsched,,,,,
;***************************************************************************
;* Deleting Files *
;***************************************************************************
[NCRemove] ;Size, Required, Files Button, Show Item
CopyMain.BaseFiles, "Norton Commander Files - %ldK", 0, Y, N, Y
CopyMain.nccompare, "Norton Commander Compare Utility - %ldK", 0, N, N, Y
CopyMain.nccopy, "Norton Commander Copy Utility - %ldK", 0, N, N, Y
CopyMain.ncnet, "Norton Commander Network Utilites - %ldK", 0, N, N, Y
CopyMain.ncsched, "Norton Commander Scheduler - %ldK", 0, N, N, Y
CopyMain.ncscreens, "Norton Commander Screen Savers - %ldK", 0, N, N, Y
[FileCopy]
copycaption = "Installing Norton Commander"
errorcaption = "Error Copying Files"
insertcaption = "Insert Diskette"
[Extra_Files] ; Files generated by Help system.
nc.ftg, SOURCE
nc.fts, SOURCE
nc.gid, SOURCE
nc_sched.ftg, SOURCE
nc_sched.fts, SOURCE
nc_sched.gid, SOURCE
ncgloss.fts, SOURCE
ncgloss.ftg, SOURCE
ncgloss.gid, SOURCE
norton~1.scr, SYSTEM ; The screen savers with LFNs
norton~2.scr, SYSTEM
norton~3.scr, SYSTEM
norton~4.scr, SYSTEM
;***************************************************************************
;* Quitting Setup *
;***************************************************************************
[Cancel] ; When the user chooses to exit Setup
caption = "Norton Commander Uninstall"
text = "Are you sure you want to exit?"
;***************************************************************************
;* Messages *
;***************************************************************************
[RebootNT]
caption = "Norton Commander"
" "
"Please reboot this NT system"
"to complete the necessary changes."
" "