;****************************************************************************
;* Norton File Manager Trial Edition installation Script                                                                                  *
;* FOR VERSION 4.0 OF SYMANTEC INSTALL FOR WINDOWS                          *
;****************************************************************************
[InstallVersion]
4.0

[process]
EnableForceWrite()
EnableOverwrite()

switch53=IsInstallShell()
#ifnot(switch53)
   SaveRegistry(SaveRegGroup)
#endif

switch89=FALSE
SetActiveCopy(NavigatrCopy, install.inf)
Backup(CustDLLCopy)
CallProc(UnattribSetup)
DisableHelp()
CallProc(Memory)

WizardPanel(WizWrongVersion, siwfmtrl.dll)
switch99 = IsWinVerGTE(0395)   
#ifnot(switch99)
       WizardProcessPanel()
       Exit()
#endif

switch53=CallProcEx(bIsNavigatorInstalled)
#if(switch53)
   MessageBox(NavigatorAlreadyInstalled)
   Exit()
#endif
   
WizardPanel(WizWelcome, siwfmtrl.dll)
WizardProcessPanel()

WizardPanel(WizTrialPromo1, siwfmtrl.dll)
WizardProcessPanel()

WizardPanel(WizLicense, siwfmtrl.dll)
WizardProcessPanel()

#ifnot(switch89)
   switch88=CallProcEx(SetTargetToAlreadyInstalled)
   #ifnot(switch88)
;      VersionSearch(VersionSearch)
   #else
      switch88=Exists(ExistsFDLG4)
      #ifnot(switch88)
;         VersionSearch(VersionSearch)
      #endif
   #endif

   GetPrevVerSize()

   switch33 = Exists(ExistsFDLG4)
   #if(switch33)
      switch33=CallProcEx(AlreadyInstalled)
   #else
      CallProcEx(SetDefaultDir)
   #endif

   #if(switch33)
      WizardExcludePanel(WizSpecifyLocation);
      WizardIncludePanel(WizSpecifyLocation_AlreadyExists);

      switch89=TRUE
      WizardGotoPanel(WizSpecifyLocation_AlreadyExists)
   #else
      WizardIncludePanel(WizSpecifyLocation);
      WizardExcludePanel(WizSpecifyLocation_AlreadyExists);

      switch89=TRUE
      WizardGotoPanel(WizSpecifyLocation)
   #endif

#endif

WizardPanel(WizSpecifyLocation_AlreadyExists, siwfmtrl.dll)
WizardIncludePanel(WizNoDiskSpace)
WizardProcessPanel()

WizardPanel(WizSpecifyLocation, siwfmtrl.dll)
WizardIncludePanel(WizNoDiskSpace)
WizardProcessPanel()

SelectOption(RequiredFiles)

:checkspace
switch71 = FALSE
switch72 = FALSE

WizardPanel(WizNoDiskSpace, siwfmtrl.dll)
switch98 = CheckDiskSpace(TARGET)   
#ifnot(switch98)
   WizardProcessPanel()
#else
        WizardExcludePanel(WizNoDiskSpace)
#endif

#if(switch71)
    Exit()
#endif
#if(switch72)
   WizardGotoPanel(WizSpecifyLocation)            
#endif

:CreateShortName
CallProcEx(GetShort)          

CreateDirectory(CreateTargetDirectory)

:RestoreDefaultsDialog
WizardPanel(WizRestoreDefaults, siwfmtrl.dll)

switch33 = FALSE
switch33 = Exists(ExistsFDLG4)

#if(switch33)
   switch33=CallProcEx(AlreadyInstalled)
   #if(switch33)
      WizardProcessPanel()
      switch20=CallProcEx(bRestoreDefaults)
   #else
      switch20=TRUE
      WizardExcludePanel(WizRestoreDefaults)
   #endif
#else
   switch20=TRUE
   WizardExcludePanel(WizRestoreDefaults)
#endif

CallProcEx(GetShort)          
#if(switch20)
   Delete(DelPrevSettings)
   CallProc(DelRegKeyNavigator)
#endif

:CopyFilesDialog
WizardPanel(WizCopyFiles)
WizardProcessPanel()

DisableUtils()
:CheckForDisk1
switch53=Exists(IsDisk1)
#ifnot(switch53)
   MessageBox(InsertDisk1)
   goto(CheckForDisk1)
#endif
Copy()
EnableUtils()
Backup(CopyCtl3d)

CallProcEx(GetShort)          
EnableWin95Shell()
Groups(NavigatorGroups)

CallProcEx(GetShort)          
CallProc(AddRegistryInfo)

CallProcEx(GetShort)          
CallProc(RemoveFromExplorerPath)
CallProc(AddToExplorerPath)


WizardPanel(WizHowToReach, siwfmtrl.dll)
WizardProcessPanel()

WizardPanel(WizRegisterNow, siwfmtrl.dll)
WizardIncludePanel(WizSendRegistration)
WizardIncludePanel(WizOnlineMarketing)
WizardIncludePanel(WizOnlineRegistration)
WizardSetSkip(WizRegisterNow, WizFinished)
WizardSetSkip(WizFinished, WizFinished)
WizardProcessPanel()
WizardPanel(WizOnlineRegistration, siwfmtrl.dll)
WizardSetSkip(WizOnlineRegistration, WizFinished)
WizardSetSkip(WizFinished, WizFinished)
WizardProcessPanel()
WizardPanel(WizOnlineMarketing, siwfmtrl.dll)
WizardSetSkip(WizOnlineMarketing, WizFinished)
WizardSetSkip(WizFinished, WizFinished)
WizardProcessPanel()
WizardPanel(WizSendRegistration, siwfmtrl.dll)
WizardSetSkip(WizSendRegistration, WizFinished)
WizardSetSkip(WizFinished, WizFinished)
WizardProcessPanel()

WizardPanel(WizFinished, siwfmtrl.dll)
WizardExcludePanel(WizSendRegistration)
WizardExcludePanel(WizOnlineMarketing)
WizardExcludePanel(WizOnlineRegistration)
WizardSetSkip(WizFinished, WizFinished)
WizardProcessPanel()

CallProcEx(GetShort)          
delete(Leftovers)
CallProcEx(FlushRegistry)
Delete(CustDLLDel)
delete(DeleteInstall)

;#if(switch73)
;    ExitRestart()
;#else
    Exit()
;#endif

End()


;###########################################################################
;###########################################################################

[subproc]
SaveRegistry(SaveRegGroup)
Delete(WinInitDel)
EnableForceWrite()
EnableOverwrite()
Backup(CustDLLCopy)            ; Copy custom dll to windows dir
CallProc(UnattribSetup)

Return()


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

[VersionSearch]
caption = "Searching for Compatible Product"
text1   = "Searching for a previous installation"
text2   = "of a compatible Symantec product."
appname = "symfdlg4.dll"
apppath = "C:\Program Files\Norton Navigator"

[NavigatrCopy:TypeSelect]
count = 3
caption = "Install Type Selection"
text = "Please select the type of install you wish to perform."
grouptext = "Install Types"
button1 = "&Express Setup"      ;switch91
button2 = "&Minimal Setup"      ;switch92
button3 = "&Custom Setup"       ;switch93
descrip1= "Installs the entire Norton Navigator product using our default settings."
descrip2= "Installs the minimum files needed to run Norton Navigator."
descrip3= "Installs only the components you select."

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

[PriSelText]
"Please select the items you wish to install."
"If a selection has a button to the right, you"
"can press it to select individual files or"
"components."

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

[TargetDrive]
caption = "Select Installation Directory"
defpath = "C:\Program Files\Norton Navigator"
text    = "Please select the directory to which you wish to install this product."
reqspace= "Approximate disk space required:"

[NoSpace]
caption = "Insufficient Disk Space"
text    = idstext
radio1  = "&Change Drive"
radio2  = "&Deselect Components"
descrip1= "Choose this option to select another drive with sufficient disk space."
descrip2= "Choose this option to deselect components"
AllowContinue= 0

[idstext]
"There is insufficent disk space on the"
"current target drive (%c:).  The drive"
"has %u KB of space available, but the"
"installation will require approximately"
"%u KB.  Please choose one of the options"
"below or exit installation and delete"
"files to free more space."

[NavigatrCopy:CopyDialog]
caption = "Copying files..."
posx = -1
posy = -20


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

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

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

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

[bye]
caption = "Installation Complete"
"Norton Navigator has been"
"successfully installed."

[byereboot]
caption = "Installation Complete"
"Norton Navigator has been"
"successfully installed."

[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 = "Install Complete"
"Norton Navigator Installation has completed successfully."

[InsertDisk1]
caption="Error"
"Please insert Disk 1."

[NavigatorAlreadyInstalled]
caption = "Already Installed"
"The full version of Norton Navigator has"
"already been installed on this computer."
"This trial version will not be installed."

;***************************************************************************
;* File Exist verifications
;***************************************************************************

[ExistsFDLG4]
symfdlg4.dll, TARGET

[ExistsAutoexec]
c:\autoexec.bat

[IsDisk1]
siwfmtrl.dl_, SOURCE

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

[WinInitDel]
wininit.ini,   WINDOWS

[CustDLLDel]
siwfmtrl.dll,  TEMPDIR

[Leftovers]
wnfdlg.reg, TARGET4
fassist.reg, TARGET4
symmenu.reg, TARGET4
wnfm.reg, TARGET4
uninstal.reg, TARGET4
navigatr.reg, TARGET4
addtoreg.exe, TARGET4
setup.siw, WINDOWS

[DeleteInstall]
setup.exe,   SYSTEM

[DelPrevSettings]
filemgre.ems, TARGET4
fsvundo.dat, TARGET4

[DelEmptyAutoexec]
C:\AUTOEXEC.BAT

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

[StartupDlg]
dll = siwfmtrl.dll
function = StartupDialog

[CheckLFNTarget]
dll = siwfmtrl.dll
function = DriveSupportsLFN
location = TARGET

[CheckLFNCDrive]
dll = siwfmtrl.dll
function = DriveSupportsLFN
location = C

[CheckLFNWindows]
dll = siwfmtrl.dll
function = DriveSupportsLFN
location = WINDOWS

[CheckPrevVer]
dll = siwfmtrl.dll
function = CheckPrevVerPath

[UpdateInstFlag]
dll = siwfmtrl.dll
function = UpdateInstalledFlag

[GetShort]
dll = siwfmtrl.dll
function = ConvertToShortName

[ConfigureNU]
dll = siwfmtrl.dll
function = NortonStartUpOptions

[UnErase]
dll = siwfmtrl.dll
function = UnEraseInstall

[ReplaceOldFiles]
dll = siwfmtrl.dll
function = ReplaceOldFilesDialog

[CheckWinSpace]
dll = siwfmtrl.dll
function = WindowsDriveSpace

[RenameInfo]
dll = siwfmtrl.dll
function = RenameInfoDialog

[Memory]
dll = siwfmtrl.dll
function = InitMemory

[Rename]
dll = siwfmtrl.dll
function = RenameNUFiles

[ExitHookProc]
dll = siwfmtrl.dll
function = ReleaseDLL

[DoGroups]
dll = siwfmtrl.dll
function = CreateGroupItems

[IsFloppyInDrive]
dll = siwfmtrl.dll
function = IsFloppyInDrive

[AlreadyInstalled]
dll = siwfmtrl.dll
function = AlreadyInstalled

[SetTargetToAlreadyInstalled]
dll = siwfmtrl.dll
function = SetTargetToAlreadyInstalled

[AddToExplorerPath]
dll = siwfmtrl.dll
function = AddToExplorerPath

[RemoveFromExplorerPath]
dll = siwfmtrl.dll
function = RemoveFromExplorerPath

[DelRegKeyNavigator]
dll = siwfmtrl.dll
function = DelRegKeyNavigator

[DelRegKeyVxD]
dll = siwfmtrl.dll
function = DelRegKeyVxD

[SetDefaultDir]
dll = siwfmtrl.dll
function = SetDefaultDir

[CreateTargetDir]
dll = siwfmtrl.dll
function = CreateTargetDir

[HourglassOn]
dll = siwfmtrl.dll
function = HourglassOn

[HourglassOff]
dll = siwfmtrl.dll
function = HourglassOff

[SetTarget2ToSymantecDir]
dll = siwfmtrl.dll
function = SetTarget2ToSymantecDir

[CreateDesktops]
dll = siwfmtrl.dll
function = CreateDesktops

[DefaultConfig]
dll = siwfmtrl.dll
function = DefaultConfig

[AddWelcomeToRun]
dll = siwfmtrl.dll
function = AddWelcomeToRun

[AreTargetsSame]
dll = siwfmtrl.dll
function = AreTargetsSame

[InstallShared]
dll = siwfmtrl.dll
function = InstallShared

[RemoveFromRun]
dll = siwfmtrl.dll
function = RemoveFromRun

[DeleteDesktops]
dll = siwfmtrl.dll
function = DeleteDesktops

[DeleteQuicklaunch]
dll = siwfmtrl.dll
function = DeleteQuicklaunch

[FlushRegistry]
dll = siwfmtrl.dll
function = FlushRegistry

[TestFunction]
dll=siwfmtrl.dll
function=TestFunction

[SuppressStartup]
dll=siwfmtrl.dll
function=SuppressStartup

[RestoreStartup]
dll=siwfmtrl.dll
function=RestoreStartup

[AddRegistryInfo]
dll=siwfmtrl.dll
function=AddRegistryInfo

[StoreOriginalDesktop]
dll=siwfmtrl.dll
function=StoreOriginalDesktop

[AddRunOnce]
dll=siwfmtrl.dll
function=AddRunOnce

[bRestoreDefaults]
dll=siwfmtrl.dll
function=bRestoreDefaults

[OverwriteSymevnt]
dll=siwfmtrl.dll
function=OverwriteSymevnt

[bInstallImporter]
dll=siwfmtrl.dll
function=bInstallImporter

[bInstallWallpaper]
dll=siwfmtrl.dll
function=bInstallWallpaper

[AddConfigApply]
dll=siwfmtrl.dll
function=AddConfigApply

[ProcessNavVxDKey]
dll=siwfmtrl.dll
function=ProcessNavVxDKey

[RestoreNavVxDKey]
dll=siwfmtrl.dll
function=RestoreNavVxDKey

[UnattribSetup]
dll=siwfmtrl.dll
function=UnattribSetup

[bInstallSymEvnt]
dll=siwfmtrl.dll
function=bInstallSymEvnt

[bAutoexecIsZeroLength]
dll=siwfmtrl.dll
function=bAutoexecIsZeroLength

[CreateRunHistory]
dll=siwfmtrl.dll
function=CreateRunHistory

[SuppressSymevnt]
dll=siwfmtrl.dll
function=SuppressSymevnt

[RestoreSymevnt]
dll=siwfmtrl.dll
function=RestoreSymevnt

[CreateTutorialLink]
dll=siwfmtrl.dll
function=CreateTutorialLink

[bIsNavigatorInstalled]
dll=siwfmtrl.dll
function=bIsNavigatorInstalled

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

[Pix_Navigator]
color = %s\bigblu.rle
color = %s\compass.rle, 5, 5
color = %s\symantec.rle, -1, -1

[NavigatrCopy:Advo]
posx = 20
posy = 20
location = siwfmtrl.dll
count = 1
BitmapsOnly=1

[SaveRegGroup]
WINDOWS, system.nn, user.nn

[SymevntInSystemIni]
IniName=system.ini
SectionName=386Enh
device=*symevnt.386*

[DelSymevntFromSystemIni]
IniName=system.ini
SectionName=386Enh
device=*symevnt.386*

[ReadWriteQPD]
siw.qpd, TEMPDIR

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

[CreateTargetDirectory]
%s, TARGET

[CreateSharedDirectory]
%s, TARGET2


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

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

[BackupAutoexec]
c:\autoexec.bat, c:\autoexec.siw

[CopyCtl3d]
ctl3d32.dll, ctl3d32.dll, SYSTEM, TARGET

;***************************************************************************
;* Autoexec Mods                                                           *
;***************************************************************************

[AddEchoOff]
filespec = c:\autoexec.bat
filetype = autoexec
Create=1
CreateText= "@echo off"

[AddToPath]
filespec = c:\autoexec.bat
filetype = autoexec
Create=1
AddPath = TARGET4

[AddSharedToPath]
filespec = c:\autoexec.bat
filetype = autoexec
Create=1
AddPath = TARGET3

;***************************************************************************
;* 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=no
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]
fmtrial.exe
fvhex.dll
s32rap8.dll
symcred.dll
symdes4.dll
symems32.dll
symfdlg4.dll
symfsv4.dll

[SetShellMessage]
caption  =  "Norton File Manager Setup"
"Welcome to the File Manager Trial"
"setup program.  Please select OK"
"to allow Setup to restart Windows and"
"continue the installation. Press"
"Cancel to exit Setup."


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

[NavigatorGroups]
"Norton File Manager Trial", navigatr.grp

[Norton File Manager Trial]
"Release Notes",                 readme.txt,       RequiredFiles,,TARGET4,,,,TARGET4
"Norton File Manager Trial",     fmtrial.exe,      RequiredFiles,,TARGET4,,,,TARGET4

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

[NavigatrCopy]
;SelectionType.ComponentName,   "SelectionDlgText",                                             Size,   Required?,<Files>?,ShowItem?
CopyMain.RequiredFiles,                 "Required Files - %ldK",               0,                       Y,                              N,              Y


;***************************************************************************
;* Wizard Panels                                                           *
;***************************************************************************
[WizWrongVersion]
Caption="Norton File Manager Trial Edition Setup"
Title="Incorrect Version"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
ResourceId=102
Bitmap16=666
PanelFlags=First+Last

[WizNoWinSpace]
Caption="Norton File Manager Trial Edition Setup"
Title="Low Disk Space"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
ResourceId=108
Bitmap16=666
PanelFlags=First+Last

[WizWelcome]
Caption="Norton File Manager Trial Edition Setup"
Title="Welcome to Setup"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
Bitmap16=666
ResourceId=143
PanelFlags=First

[WizLicense]
Caption="Norton File Manager Trial Edition Setup"
DlgProc=_LicenseDlgProc@16
PanelDataProc=_LicenseDataProc@0
ResourceId=502

[WizSpecifyLocation_AlreadyExists]
Caption="Norton File Manager Trial Edition Setup"
Title="Program Location"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
Bitmap16=666
ResourceId=135

[WizSpecifyLocation]
Caption="Norton File Manager Trial Edition Setup"
Title="Program Location"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
Bitmap16=666
ResourceId=118

[WizNoDiskSpace]
Caption="Norton File Manager Trial Edition Setup"
Title="Low Disk Space"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
Bitmap16=666
ResourceId=106
PanelFlags=First

[WizRestoreDefaults]
Caption="Norton File Manager Trial Edition Setup"
Title="Restore Default Settings?"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
Bitmap16=666
ResourceId=134

[WizCopyFiles]
Caption="Norton File Manager Trial Edition Setup"
Title="Setup Review"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
Bitmap16=666
ResourceId=128

[WizFinished]
Caption="Norton File Manager Trial Edition Setup"
Title="Setup Complete"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
Bitmap16=666
ResourceId=130
PanelFlags=Last+Finish

[WizOnlineRegistration]
Caption="Norton File Manager Trial Edition Setup"
DlgProc=_UsaRegDlgProc@16
PanelDataProc=_UsaRegDataProc@0
ResourceId=505
PanelFlags=Skip

[WizOnlineMarketing]
Caption="Norton File Manager Trial Edition Setup"
DlgProc=_MarketingDlgProc@16
PanelDataProc=_MarketingDataProc@0
ResourceId=506
PanelFlags=Skip

[WizSendRegistration]
Caption="Norton File Manager Trial Edition Setup"
Title="Send Us Your Form"
DlgProc=_SendRegDlgProc@16
PanelDataProc=_SendRegDataProc@0
ResourceId=514
Bitmap16=214
PanelFlags=Skip

[WizRegisterNow]
Caption="Norton File Manager Trial Edition Setup"
Title="Register Now"
DlgProc=_RegNowDlgProc@16
PanelDataProc=_RegNowDataProc@0
ResourceId=504
Bitmap16=204
PanelFlags=Skip

[WizCrossSell]
Caption="Norton File Manager Trial Edition Setup"
Title="Windows 95 Solutions"
DlgProc=_CrossSellDlgProc@16
PanelDataProc=_CrossSellDataProc@0
ResourceId=512
Bitmap16=212

[WizHowToReach]
Caption="Norton File Manager Trial Edition Setup"
Title="How to Reach Us"
DlgProc=_ReachDlgProc@16
ResourceId=513
Bitmap16=213
PanelFlags=First

[WizTrialPromo1]
Caption="Norton File Manager Trial Edition Setup"
Title="Product Features"
DlgProc=RaptorDlgProc
PanelDataProc=DefaultDataProc
Bitmap16=666
ResourceId=144
