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

[InstallVersion]
4.0

[process]
Uninstall
EnableForceWrite()
EnableOverwrite()

Bitmaps(Pix_Navigator)

Backup(CustDLLCopy)            
CallProc(UnattribSetup)
DisableHelp()
CallProc(Memory)
CallProc(RestoreNavVxDKey)

SetActiveCopy(NavigatrCopy, uninstal.inf)
ResetTarget(SourceTarget)
CallProcEx(SetTarget2ToSymantecDir)
CallProcEx(GetShort)          

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

WizardPanel(UninstallConfirm, siwnvgtr.dll)
WizardProcessPanel()

#if(switch52)
   Exit()
#endif

FullUninstall
SelectOption(MigrationWizard)
SelectOption(Wallpaper)
SelectOption(RequiredFiles)

CallProcEx(RemoveFromRun)

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

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

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

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

DisableUtils()
Uncopy()
EnableUtils()

CallProc(DelRegKeyNavigator)
CallProc(DelRegKeyVxD)

CallProcEx(GetShort)          
CallProc(DeleteNavigatorGroup)

CallProcEx(UninstallShared)

CallProc(RemoveFromExplorerPath)

WizardPanel(UninstallRestart, siwnvgtr.dll)
WizardProcessPanel()

delete(Leftovers)
CallProcEx(DeleteDirectories)
CallProcEx(PruneEmptyKeys)
delete(CustDLLDel)
RemoveProgDir()

CallProcEx(FlushRegistry)
ExitRestart()
end()


[SubProc]
Delete(WinInitDel)
Backup(CustDLLCopy)            
CallProc(UnattribSetup)
CallProc(ProcessNavVxDKey)
ResetTarget(SourceTarget)
CallProcEx(SetTarget2ToSymantecDir)
CallProcEx(GetShort)          
CallProcEx(RemoveFromRun)
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
pipedlg.dat,   TARGET4
modem.id,      TARGET4
setup.exe,     SYSTEM
symems32.fts,  TARGET4
symfdlg.fts,   TARGET4
filemgr.fts,   TARGET4
nnintro.fts,   TARGET4
ntaskbar.fts,  TARGET4
symmc.fts,     TARGET4
sfolders.fts,  TARGET4
nnconfig.fts,  TARGET4
fassist.fts,   TARGET4
migrate.fts,   TARGET4
symems32.ftg,  TARGET4
symfdlg.ftg,   TARGET4
filemgr.ftg,   TARGET4
nnintro.ftg,   TARGET4
ntaskbar.ftg,  TARGET4
symmc.ftg,     TARGET4
sfolders.ftg,  TARGET4
nnconfig.ftg,  TARGET4
fassist.ftg,   TARGET4
migrate.ftg,   TARGET4
ctl3d32.dll,   TARGET4
tutorial.lnk,  TARGET4
filearch.gid,  TARGET4
filearch.fts,  TARGET4
filearch.ftg,  TARGET4

[CustDLLDel]
siwnvgtr.dll,  TEMPDIR

[WinInitDel]
wininit.ini,   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

[ProcessNavVxDKey]
dll=siwnvgtr.dll
function=ProcessNavVxDKey

[RestoreNavVxDKey]
dll=siwnvgtr.dll
function=RestoreNavVxDKey

[UnattribSetup]
dll=siwnvgtr.dll
function=UnattribSetup

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

[Pix_Navigator]
color = %s\navigatr.rle

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

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

;***************************************************************************
;* 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
;setup.exe, setup.siw, WINDOWS, WINDOWS

[SetShellRestore]
system.siw, system.ini, WINDOWS, WINDOWS
win.siw, win.ini, WINDOWS, WINDOWS
;setup.siw, setup.exe, WINDOWS, WINDOWS

[LoadedList]
setup.exe

[SetShellMessage]
caption  =  "Norton Navigator for Windows 95 Setup"
"Welcome to the Norton Navigator for"
"Windows 95 Uninstall.  Please select OK"
"to allow Uninstall to restart Windows and"
"continue.  Press Cancel to exit Uninstall."


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

[NavigatorGroups]
"Norton Navigator", navigatr.grp

[Norton Navigator]
"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
CopyMain.Wallpaper,		      "Wallpaper - %ldK",				         0,			N,      		N,	      Y

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

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

[UninstallRestart]
Caption="Norton Navigator for Windows 95 Uninstall"
Title="Uninstall Complete"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
ResourceId=138
Bitmap16=666
PanelFlags=First+Last+Finish

[DeleteDesktopsDialog]
Caption="Norton Navigator for Windows 95 Uninstall"
Title="Delete Desktops?"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
ResourceId=141
Bitmap16=666
PanelFlags=First

[DeleteIndexesDialog]
Caption="Norton Navigator for Windows 95 Uninstall"
Title="Delete Indexes?"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
ResourceId=142
Bitmap16=666
PanelFlags=First
