;**************************************************************************
;* Norton AntiVirus for NetWare 1.0  Install Script                       *
;**************************************************************************

[InstallVersion]
3.1

[process]
;Bitmaps.pix

AllowIntlChars
NavCopy = SetActiveCopy

; Initiate a virus scan of the user's system.  We don't want to install
; to an infected system.
Backup.CopyVirusScanStuff
CallProc.DoVirusScan
Delete.DelVirusScanStuff

; Is the user registered with a previous version?  If we do not find
; registration information, then prompt him for it.
switch15 = IsRegistered
#ifnot switch15
   Registration
#endif

; Set the installation taget to our default ("F:\SYSTEM\NAVNLM").
ResetTarget.DefaultNLMTarget

; Does the user want a full installation or a custom install?  If he selects
; Custom then switch92 will become TRUE.
SelectInstallType
#if switch92
    ; Custom Install was selected
    PrimarySelect
#endif

; Are we installing the NLM?  Are we installing the configuration program?
; Query the target directories based on what components are being installed.
switch40 = IsOptionSelected.NLM
switch41 = IsOptionSelected.NLMConfig

; If they didn't select anything, just exit
switch60 = IsInstallShell

#ifnot switch40
   #ifnot switch41
       #if switch60
           End.ByeNoSel
       #else
           MessageBox.ExitMessage
           exit
       #endif
   #endif
#endif

; Install those components that the user has selected.
#if switch40
    ; He wants the NLM so figure out where to put it, creating the required
    ; directory if necessary.
    switch55 = PathBrowse.BrowseNLM
    #ifnot switch55
        MessageBox.ByeCancelInstall
        Exit
    #endif
    CreateDirectory.CreateDirNLM
#endif

#if switch41
    ; He wants to install the Windows configuration program.
    #if switch40
        ; Since he installed the NLM, suggest that he put the configuration
        ; program in the same directory.
        CallProcEx.SIWDefaultDirInit
        switch55 = PathBrowse.BrowseNLMConfig1
        #ifnot switch55
            MessageBox.ByeCancelInstall
            Exit
        #endif
    #else
        ; He did not install the NLM so ask him where he would like to install
        ; it to.
        switch55 = PathBrowse.BrowseNLMConfig2
        #ifnot switch55
            MessageBox.ByeCancelInstall
            Exit
        #endif
        ResetTarget.SetT1toT2
    #endif
    CreateDirectory.CreateDirNLMConfig
#endif

; Clean up any old files that may cause problems with a newer version of the
; product.
#if switch40
    Delete.DelOldNLMFiles
#endif
; Copy items to where they need to go.
Copy

; Do only those things we would do if we are installing the NLM on to the
; file server.
#if switch40
    ; Modify the Autoexec.Ncf or MsAuto.Ncf file on the server.  We will
    ; try for the MsAuto.Ncf file first since SFT-III should be the first
    ; thing looked for.  SIWMsAutoNcfInit takes the drive letter where the
    ; NLM was installed to and returns a path of "<x>:\system\msauto.ncf"
    ; where <x> is the drive letter.
    switch50 = CallProcEx.SIWMsAutoNcfInit
    #if switch50
        ; Found MSEXEC.NCF file so modify it.
        ModifyTextFile.ModifyMsAutoNcf
    #else
        ; Couldn't find a "<x>:\system\msauto.ncf" file.  Now try for a
        ; "<x>:\system\auteoxec.ncf" file.
        switch51 = CallProcEx.SIWAutoexecNcfInit
        #if switch51
            ; Found AUTOEXEC.NCF file so modify it.
            ModifyTextFile.ModifyAutoexecNcf
        #else
            ; We find either a MSAUTO.NCF file nor an AUTOEXEC.NCF file so
            ; tell the user what to do.
            MessageBox.MessageNoNcfFile
        #endif
    #endif
#endif

; Do only those things we would do if we are installing the configuration
; component.
#if switch41
    ; Set up Groups in Windows Shell Program
    Groups
    ; Update the NDW.INI file for the activity log viewers
    UpdateIni.UpdateNDWIni
#endif

; Delete any remaining garbage that may be laying around.
Delete.DelLeftovers

; Exit the install program based on if we are the shell or not.
switch20 = IsInstallShell
#if switch20
  End.ByeShell
#else
  End.ByeNoReboot
#endif

end

;**************************************************************************
;* Copy                                                                   *
;**************************************************************************
[NAVcopy]
;seltype.component, description,                             size,req,show,button

CopyMain.BaseFiles, "Norton AntiVirus for NetWare",           496, Y, N,   N
CopyMain.NLM,       "Norton AntiVirus for NetWare NLM",       502, N, N,   Y
CopyMain.NLMConfig, "Windows Configuration Program", 2590, N, N,   Y


[NavCopy:Advo]
x-position = 5
y-position = 5
location   = siwcust.dll
count      = 3



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

[groups]
"Norton AntiVirus",             navnlm.grp


[Norton AntiVirus]
"Norton AntiVirus for NetWare",     navnlmw.exe,     NLMConfig, ,TARGET2


;**************************************************************************
;* Dialogs/Message box text                                               *
;**************************************************************************

[ByeShell]
caption = "Norton AntiVirus for NetWare -- Install Complete"
"This concludes the installation of Norton AntiVirus for"
"NetWare.  Please review the READ.ME file for last minute"
"updates to the documentation."
" "
"Select one of the exit options."
" "

[ByeNoReboot]
caption = "Norton AntiVirus for NetWare -- Install Complete"
"This concludes the installation of Norton AntiVirus for"
"NetWare.  Please review the READ.ME file for last minute"
"updates to the documentation."
" "
"Select one of the exit options below."
" "

[ByeCancelInstall]
caption = "Norton AntiVirus for NetWare"
"You have canceled the installation"
"of Norton AntiVirus for NetWare."

[ByeNoSel]
caption = "Norton AntiVirus for NetWare"
"Because no items were selected for"
"installation, this may be an incomplete"
"install of Norton AntiVirus for NetWare."
" "
"Please select one of the options below."

[ExitMessage]
caption = "Norton AntiVirus for NetWare"
"Because no items were selected for"
"installation, this may be an incomplete"
"install of Norton AntiVirus for NetWare."
""
"Press OK to return to your Windows session."

[errors]
noprev  =  "Symantec Install for Windows is already running!"


[FileCopy]
copycaption   =  "Norton AntiVirus for NetWare -- Install"
errorcaption  =  "Error Copying Files"
insertcaption =  "Insert Diskette"
Message    = MessageText

[cancel]
caption = "Norton AntiVirus for NetWare -- Install"
text   = "Are you sure you want to exit?"

[cancelshell]
caption = "Norton AntiVirus for NetWare -- Install"
text = "When you cancel Install, \nWindows will exit to the DOS prompt\nso that we can reset the Windows environment.\nAre you sure you want to exit?"



;**************************************************************************
;* Misc install information                                               *
;**************************************************************************

[pix]
color = %s\nav.bmp

[DelOldNLMFiles]
navnlm.dat,     TARGET
activity.log,   TARGET


;**************************************************************************
;* Virus Scan Instructions                                                *
;**************************************************************************

[CopyVirusScanStuff]
ctl3d.dll,    ctl3d.dll,    SOURCE, SYSTEM  
scaninst.dll, scaninst.dll, SOURCE, WINDOWS
virscan2.dll, virscan2.dll, SOURCE, WINDOWS
virscan.dat,  virscan.dat,  SOURCE, WINDOWS
inscanf.dat,  inscanf.dat,  SOURCE, WINDOWS
inscanb.dat,  inscanb.dat,  SOURCE, WINDOWS
inscanm.dat,  inscanm.dat,  SOURCE, WINDOWS
siwvscan.dll, siwvscan.dll, SOURCE, WINDOWS
symkrnl2.dll, symkrnl2.dll, SOURCE, WINDOWS
symutil2.dll, symutil2.dll, SOURCE, WINDOWS
symgui2.dll,  symgui2.dll,  SOURCE, WINDOWS
siwcust.dll,  siwcust.dll,  SOURCE, WINDOWS

[DoVirusScan]
dll      = siwvscan.dll
function = ScanForViruses

[VirusScan]
dllname       = scaninst.dll
caption       = "Scanning for Viruses"
scanboot      = yes
scanmem       = yes
scanfloppy    = no
scanfixed     = yes
abortiffound  = no
recommendtext = VirusFoundText

[VirusFoundText]
"A virus was found on your system."
"We recommend that you boot off of"
"a CLEAN, WRITE PROTECTED diskette"
"and use Norton AntiVirus to"
"remove the virus before proceeding"
"with the installation."
"Do you want to abort the installation ?"

[DelVirusScanStuff]
scaninst.dll, WINDOWS
virscan2.dll,  WINDOWS
virscan.dat,  WINDOWS
inscanf.dat,  WINDOWS
inscanb.dat,  WINDOWS
inscanm.dat,  WINDOWS
siwvscan.dll, WINDOWS
symkrnl2.dll,  WINDOWS
symutil2.dll,  WINDOWS
symgui2.dll,   WINDOWS

[DelLeftovers]
install.exe,  WINDOWS
instbin.exe,  WINDOWS
lzexpand.dll, WINDOWS
siw3zip.dll,  WINDOWS
siwzip.dll,   WINDOWS
siwdll.dll,   WINDOWS
siwcust.dll,  WINDOWS
install.inf,  WINDOWS
syminstl.hlp, WINDOWS
inscanf.dat,  WINDOWS
inscanb.dat,  WINDOWS
inscanm.dat,  WINDOWS
scaninst.dll, WINDOWS
siwvscan.dll, WINDOWS
install.exe,  TARGET
instbin.exe,  TARGET
lzexpand.dll, TARGET
siw3zip.dll,  TARGET
siwzip.dll,   TARGET
siwdll.dll,   TARGET
siwcust.dll,  TARGET
install.inf,  TARGET
syminstl.hlp, TARGET
inscanf.dat,  TARGET
inscanb.dat,  TARGET
inscanm.dat,  TARGET
scaninst.dll, TARGET
siwvscan.dll, TARGET
install.exe,  TARGET2
instbin.exe,  TARGET2
lzexpand.dll, TARGET2
siw3zip.dll,  TARGET2
siwzip.dll,   TARGET2
siwdll.dll,   TARGET2
siwcust.dll,  TARGET2
install.inf,  TARGET2
syminstl.hlp, TARGET2
inscanf.dat,  TARGET2
inscanb.dat,  TARGET2
inscanm.dat,  TARGET2
scaninst.dll, TARGET2
siwvscan.dll, TARGET2


;**************************************************************************
;* User Registration                                                      *
;**************************************************************************

[Registration]
caption =  "Norton AntiVirus for NetWare -- Registration"
text1   =  "Please register your name and company before continuing:"
text2   =  "&Name:"
text3   =  "&Company:"
Cancel  =  "Cancel"
Help    =  "&Help"
appname =  navnlmw.exe
string  =  "Symantec Install for Windows"
active  =  no


;**************************************************************************
;* AutoExecNcf modifications                                              *
;**************************************************************************

[ModifyAutoExecNcf]
caption    = "Norton AntiVirus for NetWare -- Modify AUTOEXEC.NCF File"
text1      = "The following line(s) need to be added to your autoexec.ncf file:"
FileType   = text
EditError1 = "A problem was encountered preparing the new autoexec.ncf"
EditError2 = " "
EditError3 = "You should:"
EditError4 = "1. Review the lines that need to be added"
EditError5 = "2. Select the 'Save the required changes to new file's option"
EditError6 = "3. Continue and complete the Install Process"
EditError7 = "4. Make the changes to the autoexec.ncf file later"
RemItems   = AutoExecNcfRemItems
DelItems   = AutoExecNcfDelItems
AddItems   = AutoExecNcfAddItems

[AutoExecNcfRemItems]
*nav.nlm*

[AutoExecNcfDelItems]


[AutoExecNcfAddItems]
"load %s\nav.nlm",                             TARGET4, APPEND


;**************************************************************************
;* MsAutoNcf modifications                                                *
;**************************************************************************

[ModifyMsAutoNcf]
caption    = "Norton AntiVirus for NetWare -- Modify MSAUTO.NCF File"
text1      = "The following line(s) need to be added to your msauto.ncf file:"
FileType   = text
EditError1 = "A problem was encountered preparing the new msauto.ncf"
EditError2 = " "
EditError3 = "You should:"
EditError4 = "1. Review the lines that need to be added"
EditError5 = "2. Select the 'Save the required changes to new file's option"
EditError6 = "3. Continue and complete the Install Process"
EditError7 = "4. Make the changes to the msauto.ncf file later"
RemItems   = MsAutoNcfRemItems
DelItems   = MsAutoNcfDelItems
AddItems   = MsAutoNcfAddItems

[MsAutoNcfRemItems]
*nav.nlm*

[MsAutoNcfDelItems]


[MsAutoNcfAddItems]
"load %s\nav.nlm",                             TARGET4, APPEND


;**************************************************************************
;* Modify NDW.INI section                                                 *
;**************************************************************************
[UpdateNDWIni]
IniName         = ndw.ini
SectionName     = Viewer-Filemap
TXT             = SYMDOC.PRS
SectionName     = Viewer-Parsers
SYMDOC.PRS      = "Symantec Document Parser"


;**************************************************************************
;* Set Shell section                                                      *
;**************************************************************************
[SetShell]
AppIniName      = nav.ini
WinIniName      = win.ini
SystemIniName   = system.ini
Message         = MessageBox.SetShellMessage
SysSectionName  = boot
WinSectionName  = windows
shell           = %s\install.exe
load            =
run             =
SetShellIfLoaded=
Backup          = Backup.SetShellSave
Restore         = Backup.SetShellRestore
Active          = Yes
IfActiveList    = LoadedList
SubProcess      =

[SetShellSave]
win.ini,    win.$nn,    WINDOWS
system.ini, system.$nn, WINDOWS

[SetShellRestore]
system.$nn, system.ini, WINDOWS
win.$nn,    win.ini,    WINDOWS

[LoadedList]
ctl3d.dll
symgui1.dll
symgui2.dll
navnlmw.exe

[SetShellMessage]
caption = "Norton AntiVirus for NetWare -- Install"
"Welcome to the Norton AntiVirus for NetWare"
"install program.  Please press OK to allow"
"Install to restart Windows and continue the"
"installation.  Press cancel to exit."

[navcopy:Component]
caption     =   "Norton AntiVirus for NetWare - Component Selection"
text        =   "Indicate which applications you want to install:"

[navcopy:copydialog]
caption = "Copying Files..."
posx = -10
posy = -10

[navcopy:TypeSelect]
count       = 2
caption     = "Norton AntiVirus for NetWare - Installation Type"
text        = "Please select the installation you prefer."
grouptext   = "Install Types"
button1     = "&Automatic Installation"
button2     = "&Custom Installation"
descrip1    = "Installs the entire Norton AntiVirus for NetWare package, including the Windows configuration program."
descrip2    = "Lets you choose which modules to install now.  If you need to add more options later, you can run install again."

[navcopy:Primary]
caption = "Norton AntiVirus for NetWare - Application Selection"
button1 = ""
button2 = "&Files..."
button3 = "F&iles..."
button4 = "Fi&les..."
text = primarytext

[primarytext]
"Please select the items you wish to install."

[navcopy:Component]
caption = "Norton AntiVirus for NetWare - Component Selection"
text = "Please choose the components you wish to install.  Highlighted items are selected."

[AdvoDefault]
posx = 20
posy = 80
text = AdvoText

[AdvoText]
"Be sure to fill out your registration"
"card.  This will allow Symantec to contact"
"you about future product updates."



;**************************************************************************
;* Target Selection Stuff                                                 *
;**************************************************************************
[DefaultNLMTarget]
reset           = TARGET
location        = FIRSTNETDRIVE
DefaultDir      = SYSTEM\NAVNLM

[BrowseNLM]
caption         = "Select Network Directory for NLM"
reset           = TARGET
DefaultDir      = F:\SYSTEM\NAVNLM

[BrowseNLMConfig1]
;NOTE:  DefaultDir intentionally left blank.  Relying on 
;SIWTargetToDefaultDir being called
caption         = "Select Directory for Configuration Program"
reset           = TARGET2

[BrowseNLMConfig2]
caption         = "Select Directory for Configuration Program"
reset           = TARGET2
DefaultDir      = F:\SYSTEM\NAVNLM

[CreateDirNLM]
%s,TARGET

[CreateDirNLMConfig]
%s,TARGET2

[SIWDefaultDirInit]
dll = siwcust.dll
function = SIWDefaultDirInit

[SIWAutoexecNcfInit]
dll = siwcust.dll
function = SIWAutoexecNcfInit

[SIWMsAutoNcfInit]
dll = siwcust.dll
function = SIWMsAutoNcfInit

[SetT1toT2]
Reset = TARGET
Location = %s,  TARGET2

[MessageNoNcfFile]
caption = "Updating AUTOEXEC.NCF / MSAUTO.NCF"
"The install program could not access the"
"AUTOEXEC.NCF or MSAUTO.NCF file.  In order"
"for Norton AntiVirus for NetWare to protect"
"your server, you must manually load NAV.NLM"
"from the server console or modify the"
"appropriate startup file to load NAV.NLM"
"automatically."

[WindowsVersion]
3.10
"The Norton AntiVirus for NetWare Install"
"Program and the Configuration Program"
"requires Microsoft Windows version 3.1"
"or greater."

; 1.44M Installation
;size=1.44M
;total=2

[Disks]
1=A:\, "Norton AntiVirus for NetWare 1.0, Disk 1"
2=A:\, "Norton AntiVirus for NetWare 1.0, Disk 2"

[NAVCOPY.disk1]
VIRSCAN.DAT,		     "NAV NLM Virus Information", 		Link:NLM, TARGET , SIZE:216928
NAVNLMW.HLP,		     "NAV NLM Configuration Program Help", 		Link:NLMCONFIG, TARGET2 , SIZE:203643
SYMGUI2.DLL,		     "Symantec Graphical User Interface DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:262784
INSTBIN.EXE,		     "Symantec Installer", 		Link:BASEFILES, TARGET , SIZE:208144
NAV.NLM,		     "NAV NetWare Loadable Module", 		Link:NLM, TARGET , SIZE:241429
NAVNLMCP.NCP,		     "NAV NLM Configuration Program", 		Link:NLMCONFIG, TARGET2 , SIZE:202608
SYMKRNL2.DLL,		     "Symantec Kernel DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:126464
NAVNLMW.EXE,		     "NAV NLM Configuration Program", 		Link:NLMCONFIG, TARGET2 , SIZE:136496
NWNETAPI.DLL,		     "NetWare Network API DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:106047
SIWDLL.DLL,		     "Symantec Install DLL", 		Link:BASEFILES, TARGET , SIZE:80736
SYMUTIL2.DLL,		     "Symantec Utility DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:79504
SYMTXT2.DSP,		     "Symantec Text Display DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:88464
SYMDOC2.PRS,		     "Symantec Document Parser DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:83728
INSTALL.EXE,		     "Symantec Installer", 		Link:BASEFILES, TARGET , SIZE:35568
VIRSCAN.INF,		     "NAV NLM Virus Information", 		Link:NLM, TARGET , SIZE:107460
NAVNLMU.DLL,		     "NAV NLM Configuration Program", 		Link:NLMCONFIG, TARGET2 , SIZE:68944
INSTALL.INF,		     "Symantec Installation Script", 		Link:BASEFILES, TARGET , SIZE:25917
CTL3D.DLL,		     "3-D Controls DLL", 		Link:BASEFILES, SYSTEM , SIZE:20272
VIRSCAN2.DLL,		     "NAV NLM Virus Scanner DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:31312
INSCANF.DAT,		     "NAV NLM Virus Information", 		Link:BASEFILES, TARGET , SIZE:15237
INSCANM.DAT,		     "NAV NLM Virus Information", 		Link:BASEFILES, TARGET , SIZE:14110
SCANINST.DLL,		     "NAV NLM Virus Scanner DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:21024
SYMINSTL.HLP,		     "Symantec Install for Windows", 		Link:BASEFILES, TARGET , SIZE:12945
LZEXPAND.DLL,		     "Microsoft Decompression Library", 		Link:BASEFILES, TARGET , SIZE:9936
SIWCUST.DLL,		     "Norton Anti-Virus 3.0", 		Link:BASEFILES, TARGET , SIZE:32064
READ.ME,		     "Read Me File", 		Link:BASEFILES, TARGET2 , SIZE:7867
SIWVSCAN.DLL,		     "Norton Anti-Virus 3.0", 		Link:BASEFILES, TARGET , SIZE:8208
NAVDLL31.NLM,		     "NAV NetWare Loadable Module DLL", 		Link:NLM, TARGET , SIZE:10589
INSCANB.DAT,		     "NAV NLM Virus Information", 		Link:BASEFILES, TARGET , SIZE:2170
VIRSPEC.TXT,		     "NAV NLM Virus Information", 		Link:BASEFILES, TARGET2 , SIZE:1468

[NAVCOPY.disk2]
SYMVWR2.DLL,		     "Symantec Viewer DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:63072
SYMNET2.DLL,		     "Symantec Network DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:50144
NPT2.DLL,		     "Symantec Printing DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:34704
SYMALOG2.DLL,		     "Symantec Activity Log DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:30192
VIRLIST2.DLL,		     "NAV NLM Virus List DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:27840
NWIPXSPX.DLL,		     "NetWare IPX/SPX Communications DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:35308
SYMPIPE2.DLL,		     "Symantec DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:25232
SYMNW32.DLL,		     "Symantec Network DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:20944
VIRSCANM.DAT,		     "NAV NLM Macintosh Definitions", 		Link:NLM, TARGET , SIZE:23808
SYMSPX2.DLL,		     "Symantec DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:21616
NWMISC.DLL,		     "NetWare Misc. DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:14784
SYMIPX2.DLL,		     "Symantec DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:16848
CONFIG.DLL,		     "NAV NLM Configuration Program", 		Link:NLMCONFIG, TARGET2 , SIZE:13984
NPIPE.DLL,		     "NAV NLM Configuration Program", 		Link:NLMCONFIG, TARGET2 , SIZE:12048
SYMPAGER.NLM,		     "NAV NLM Pager Communications DLL", 		Link:NLM, TARGET , SIZE:10078
SYMMAIL2.DLL,		     "Symantec Mail DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:10048
NAVDLL40.NLM,		     "NAV NetWare Loadable Module DLL", 		Link:NLM, TARGET , SIZE:10622
NAVDLL3F.NLM,		     "NAV NetWare Loadable Module DLL", 		Link:NLM, TARGET , SIZE:10608
NWSAP.DLL,		     "NetWare SAP DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:6528
SYMTIME2.DLL,		     "Symantec DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:5184
NWCORE.DLL,		     "NetWare Core Function DLL", 		Link:NLMCONFIG, TARGET2 , SIZE:4992
