;****************************************************************************
;* Norton Navigator uninstallation Script												*
;* FOR VERSION 4.0 OF SYMANTEC INSTALL FOR WINDOWS                        	*
;****************************************************************************

; SWITCH_PREVIOUS         50  -- Previous Dialog
; SWITCH_NEXT             51  -- Next Dialog
; SWITCH_CANCEL           52  -- Exit Install
;
; SWITCH_GENERIC_YES       83 -- Selected Yes
; SWITCH_GENERIC_NO        84 -- Selected No
;
; SWITCH_DEL_DT_ALL        87 -- Delete all Desktop files
; SWITCH_DEL_DT            88 -- Delete Desktop shortcuts only
; SWITCH_DEL_DT_NO         89 -- Don't delete Desktops
;
;                          22 -- Don't delete Desktops
;                          23 -- Delete Indexes

;     Target Assignments
;------------------------
; TARGET    - Norton Navigator directory
; TARGET2   - Symantec shared components
; TARGET3   - 8.3 version of Symantec shared components dir
; TARGET4   - 8.3 version of Norton Navigator dir
; TARGET5   - Misc. (redefinable)


[InstallVersion]
4.0

[process]
Uninstall


;//////////////////////////////
;// Background Bitmaps
;//////////////////////////////

Bitmaps(Pix_Navigator)


;//////////////////////////////
;// Initialization            
;//////////////////////////////

Backup(CustDLLCopy)            ; Backup the custom dll in case we need it
DisableHelp()
CallProc(Memory)

SetActiveCopy(NavigatrCopy, uninstal.inf)
ResetTarget(SourceTarget)
CallProcEx(SetTarget2ToSymantecDir)
CallProcEx(GetShort)          ;set TARGET4 to 8.3 version of TARGET

switch53=CallProcEx(AreWeOnOriginalDesktop)
#ifnot(switch53)
   switch53=MessageCancel(NotOnOriginalDesktop)
   #ifnot(switch53)
      Exit()
   #endif
#endif

;////////////////////////////////////////////////////////////
;//  Confirm Uninstall
;////////////////////////////////////////////////////////////
WizardPanel(UninstallConfirm, siwnvgtr.dll)
WizardProcessPanel()

#if(switch52)
   Exit()
#endif

;//////////////////////////////
;// Select all
;//////////////////////////////

FullUninstall
SelectOption(MigrationWizard)
SelectOption(RequiredFiles)

;////////////////////////////////////////////////////////////
;// Remove from Startup
;////////////////////////////////////////////////////////////
CallProcEx(RemoveFromRun)

;////////////////////////////////////////////////////////////
;// Remove Desktop and Quicklaunch
;////////////////////////////////////////////////////////////
WizardPanel(DeleteDesktopsDialog, siwnvgtr.dll)
WizardProcessPanel()
#if(switch52)
   Exit()
#endif

switch22=CallProcEx(bKeepDesktops)
#ifnot(switch22)
   CallProcEx(DeleteDesktops)
#endif
CallProcEx(DeleteQuicklaunch)

;////////////////////////////////////////////////////////////
;// Delete Index files
;////////////////////////////////////////////////////////////
; SWITCH_GENERIC_YES       83 -- Selected Yes
; SWITCH_GENERIC_NO        84 -- Selected No

WizardPanel(DeleteIndexesDialog, siwnvgtr.dll)
WizardProcessPanel()
#if(switch52)
   Exit()
#endif

switch23=CallProcEx(bDelIndexes)
#if(switch23)
   CallProcEx(DeleteIndexes)
#endif

;//////////////////////////////
;// Delete the files
;//////////////////////////////
DisableUtils()
Uncopy()
EnableUtils()

;//////////////////////////////
;// Delete registry entries
;//////////////////////////////
CallProc(DelRegKeyNavigator)
CallProc(DelRegKeyVxD)

;//////////////////////////////
;// Delete program items/groups
;//////////////////////////////
;CallProcEx(GetShort)          ;set TARGET4 to 8.3 version of TARGET
;EnableWin95Shell()
;Groups(NavigatorGroups)
CallProc(DeleteNavigatorGroup)

;//////////////////////////////
;// Decrement usage counts
;//////////////////////////////
CallProcEx(UninstallShared)

;//////////////////////////////
;// Remove from path
;//////////////////////////////
CallProc(RemoveFromExplorerPath)

;////////////////////////////////////
;// Wave bye bye
;////////////////////////////////////
WizardPanel(UninstallRestart, siwnvgtr.dll)
WizardProcessPanel()

;//////////////////////////////
;// Clean Up
;//////////////////////////////
delete(Leftovers)
CallProcEx(RestoreStartup)
CallProcEx(DeleteDirectories)
CallProcEx(RemovePathFromAutoexec)
CallProcEx(PruneEmptyKeys)
delete(CustDLLDel)
RemoveProgDir()

;//////////////////////////////
;// Restart
;//////////////////////////////

CallProcEx(FlushRegistry)
ExitRestart()
end()


;***************************************************************************
;* SubProc Executed When Install Takes Over As Shell
;***************************************************************************

[SubProc]
Backup(CustDLLCopy)            ; Backup the custom dll in case we need it
ResetTarget(SourceTarget)
CallProcEx(SetTarget2ToSymantecDir)
CallProcEx(GetShort)          ;set TARGET4 to 8.3 version of TARGET

CallProcEx(RemoveFromRun)
CallProcEx(SuppressStartup)
Delete(CustDLLDel)
Return()

;***************************************************************************
;* Dialog Info                                                             *
;***************************************************************************

[NavigatrCopy:TypeSelect]
count = 2
caption = "Uninstall Type Selection"
text = "Please select the type of uninstall you wish to perform."
grouptext = "Uninstall Types"
button1 = "&Selective Uninstall"	;switch91
button2 = "&Full Uninstall"			;switch92
descrip1 = "This option allows you to select which Norton Navigator components you would like to remove from your hard drive.
descrip2 = "This option completely removes Norton Navigator from your hard drive."

[NavigatrCopy:Primary]
caption = "Norton Navigator Main Component Selection"
button1 = "Details..."
button2 = "Details..."
button3 = "Details..."
button4 = "Details..."
button5 = "Details..."
text	= PriSelText

[PriSelText]
"Please select the items you wish to uninstall. "
"Press <Details...> to select individual components."
"(Checked items will be uninstalled.)"

[NavigatrCopy:Component]
caption = "Norton Navigator Component Selection"
text	= "Please select the items you wish to uninstall.  (Checked items will be uninstalled.)"

[SourceDrive]
caption = "Please locate the Norton Navigator directory"
defpath = "C:\Program Files\Norton Navigator"

[NavigatrCopy:CopyDialog]
caption = "Copying files..."
posx = 0
posy = 0


;***************************************************************************
;* Message Text                                                            *
;***************************************************************************

[FullWarn]
caption = "Full Uninstall?"
"You are about to perform a full uninstall"
"of Norton Navigator.  This operation will delete all"
"Norton Navigator files from your hard drive.  In order"
"to use Norton Navigator again, you will have to 
"re-install the program.  Are you sure you"
"want to proceed?"

[cancel]
caption = "Exit Uninstall?"
text    = "Are you sure that you want to exit?"

[cancelshell]
caption = "Exit Uninstall?"
"You have chosen to cancel the Uninstall"
"program. In order to reset the Windows"
"environment, Uninstall will also close"
"Windows. Are you sure you want to exit?"

[FileCopy]
copycaption             = "Deleting Files"
errorcaption    = "Error Deleting Files"
insertcaption   = "Insert Diskette"
Message                 = MessageText

[bye]
caption = "Uninstall complete"
"The components you selected have"
"been removed from your hard drive."

[byereboot]
caption = "Uninstall complete"
"The components you selected have"
"been removed from your hard drive."

[byefull]
caption = "Uninstall complete"
"Norton Navigator has been completely"
"removed from your hard drive."

[byerebootful]
caption = "Uninstall complete"
"Norton Navigator has been completely"
"removed from your hard drive."

[WindowsVersion]
3.10
"This product requires"
"Windows 3.1 or greater."

[NotImplemented]
caption = "Feature Not Implemented"
"This feature has not yet been implemented."

[ExitAtFinish]
caption = "Uninstall Complete"
"Norton Navigator Uninstall has completed successfully."

[ConfirmExit]
caption = "Confirm Cancel"
"Uninstall has not been completed."
"Do you really wish to cancel?"

[NotOnOriginalDesktop]
caption = "Warning!"
"The desktop you are currently using is"
"not your original desktop.  If you"
"continue with Uninstall, your current"
"desktop will be your only desktop."
"If this is not what you want, select"
"Cancel and switch to the desired desktop"
"before running Uninstall again."

;***************************************************************************
;* Set Directories                                                         *
;***************************************************************************

[SourceTarget]
reset = TARGET
location = %s, SOURCE


;***************************************************************************
;* Delete Files                                                            *
;***************************************************************************

[Leftovers]
sfolders.ini,  TARGET4
fsvundo.dat,   TARGET4
symems32.gid,  TARGET4
symfdlg.gid,   TARGET4
filemgr.gid,   TARGET4
nnintro.gid,   TARGET4
ntaskbar.gid,  TARGET4
symmc.gid,     TARGET4
sfolders.gid,  TARGET4
navigatr.reg,  TARGET4
nnconfig.gid,  TARGET4
fassist.gid,   TARGET4
migrate.gid,   TARGET4
filemgre.ems,  TARGET4

[CustDLLDel]
siwnvgtr.dll,  WINDOWS

;***************************************************************************
;* External function calls (DLL)                                           *
;***************************************************************************

[GetShort]
dll = siwnvgtr.dll
function = ConvertToShortName

[RemoveFromExplorerPath]
dll = siwnvgtr.dll
function = RemoveFromExplorerPath

[DelRegKeyNavigator]
dll = siwnvgtr.dll
function = DelRegKeyNavigator

[DelRegKeyVxD]
dll = siwnvgtr.dll
function = DelRegKeyVxD

[HourglassOn]
dll = siwnvgtr.dll
function = HourglassOn

[HourglassOff]
dll = siwnvgtr.dll
function = HourglassOff

[SetTarget2ToSymantecDir]
dll = siwnvgtr.dll
function = SetTarget2ToSymantecDir

[RemoveDesktops]
dll = siwnvgtr.dll
function = RemoveDesktops

[RemoveStartup]
dll = siwnvgtr.dll
function = RemoveStartup

[AreTargetsSame]
dll = siwnvgtr.dll
function = AreTargetsSame

[DeleteDirectories]
dll = siwnvgtr.dll
function = DeleteDirectories

[UninstallShared]
dll = siwnvgtr.dll
function = UninstallShared

[RemoveFromRun]
dll = siwnvgtr.dll
function = RemoveFromRun

[PruneEmptykeys]
dll = siwnvgtr.dll
function = PruneEmptyKeys

[DeleteIndexes]
dll = siwnvgtr.dll
function = DeleteIndexes

[DeleteDesktops]
dll = siwnvgtr.dll
function = DeleteDesktops

[DeleteQuicklaunch]
dll = siwnvgtr.dll
function = DeleteQuicklaunch

[RemovePathFromAutoexec]
dll = siwnvgtr.dll
function = RemovePathFromAutoexec

[FlushRegistry]
dll = siwnvgtr.dll
function = FlushRegistry

[AreWeOnOriginalDesktop]
dll=siwnvgtr.dll
function=AreWeOnOriginalDesktop

[SuppressStartup]
dll=siwnvgtr.dll
function=SuppressStartup

[RestoreStartup]
dll=siwnvgtr.dll
function=RestoreStartup

[DeleteNavigatorGroup]
dll=siwnvgtr.dll
function=DeleteNavigatorGroup

[bKeepDesktops]
dll=siwnvgtr.dll
function=bKeepDesktops

[bDelIndexes]
dll=siwnvgtr.dll
function=bDelIndexes

;***************************************************************************
;* Misc install functions                                                  *
;***************************************************************************

[Pix_Navigator]
color = %s\navigatr.rle

;***************************************************************************
;* File backup                                                             *
;***************************************************************************

[CustDLLCopy]
siwnvgtr.dll, siwnvgtr.dll, SOURCE, WINDOWS

;***************************************************************************
;* SetShell section                                                        *
;***************************************************************************

[SetShell]
WinIniName = win.ini
SystemIniName = system.ini
Message = MessageBox.SetShellMessage
SysSectionName = boot
WinSectionName = windows
shell = %s\setup.exe
load =
run =
SetShellIfLoaded=
Backup = Backup.SetShellSave
Restore = Backup.SetShellRestore
Active = yes
IfActiveList=LoadedList
SubProcess=SubProc

[SetShellSave]
win.ini, win.siw, WINDOWS, WINDOWS
system.ini, system.siw, WINDOWS, WINDOWS

[SetShellRestore]
system.siw, system.ini, WINDOWS, WINDOWS
win.siw, win.ini, WINDOWS, WINDOWS

[LoadedList]
symkrnl8.dll
symevnt1.dll
s32krnl8.dll
s32evnt1.dll
symfdlg4.dll
symems32.dll
s32butil.dll
symkrnl8.dll
symevnt1.dll
s32krnl8.dll
s32evnt1.dll
symfdlg4.dll
symems32.dll
s32butil.dll
fassist.dll
symmenu.dll
menucomp.dll
symfsv4.dll
symidx32.dll
s32util8.dll
FILEMGR.EXE
fassist.exe
filearch.exe
nnconfig.exe
nnwelcm.exe
ntaskbar.exe
sfolders.exe
symapasc.exe
symapcmp.exe
symapcom.exe
symapcpd.exe
symapcpy.exe
symapdel.exe
symapenc.exe
symapexp.exe
symapfmt.exe
symaplbl.exe
symaplnk.exe
symapmkd.exe
symapmks.exe
symapmov.exe
symapprt.exe
symapren.exe
symaprun.exe
symapsyn.exe
symapudo.exe
symapuue.exe
symidx32.exe
symsm.exe
setup.exe

[SetShellMessage]
caption  =  "Norton Navigator - Uninstall Program"
"Welcome to the Norton Navigator Uninstall"
"program. Please select OK to allow Uninstall"
"to restart Windows and continue the"
"uninstallation. Press Cancel to exit"
"Uninstall."


;***************************************************************************
;* Groups                                                                  *
;***************************************************************************

[NavigatorGroups]
"Norton Navigator", navigatr.grp

[Norton Navigator]
; KLUDGE - using 8.3 names to avoid problems with setting working dir using DDE
"Welcome to Norton Navigator",   nnwelcm.exe,      RequiredFiles,,TARGET4,,,,TARGET4
"Release Notes",                 readme.txt,       RequiredFiles,,TARGET4,,,,TARGET4
"Norton Navigator Control Center",  nnconfig.exe,  RequiredFiles,,TARGET4,,,,TARGET4
"Norton File Manager",           filemgr.exe,      RequiredFiles,,TARGET4,,,,TARGET4
"Norton FastFind",               filemgr.exe,      RequiredFiles, 80, TARGET4, filemgr.exe, TARGET4, "/SF", TARGET4
"File Archive Wizard",           filearch.exe,     RequiredFiles,,TARGET4,,,,TARGET4
"Norton Undo",                   symapudo.exe,     RequiredFiles,,TARGET4,,,,TARGET4
"Norton Taskbar",                ntaskbar.exe,     RequiredFiles,,TARGET4,,,,TARGET4
"Desktop Importer",              migrate.exe,      MigrationWizard,,TARGET4,,,,TARGET4

;***************************************************************************
;* Copy                                                                    *
;***************************************************************************

[NavigatrCopy]
;SelectionType.ComponentName,   "SelectionDlgText",						Size,   Required?,<Files>?,ShowItem?

CopyMain.RequiredFiles,			"Required Files - %ldK",               0,			Y,				N,      	Y

CopyMain.MigrationWizard,		"Desktop Importer - %ldK",				   0,			N,      		N,	      Y


;***************************************************************************
;* Wizard Panels                                                           *
;***************************************************************************

[UninstallConfirm]
Title="Uninstall Norton Navigator?"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
ResourceId=137
Bitmap16=666
PanelFlags=First

[UninstallRestart]
Title="Uninstall Complete"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
ResourceId=138
Bitmap16=666
PanelFlags=First+Last+Finish

[DeleteDesktopsDialog]
Title="Delete Desktops?"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
ResourceId=141
Bitmap16=666
PanelFlags=First

[DeleteIndexesDialog]
Title="Delete Indexes?"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
ResourceId=142
Bitmap16=666
PanelFlags=First
