;***************************************************************************
;* Norton AntiVirus for Windows 95 (Luigi) Setup Script                    *
;* FOR VERSION 4.0+ OF SYMANTEC SETUP FOR WINDOWS                          *
;***************************************************************************
;
;    Target Usage
;----------------------------
; TARGET        LFN directory for NAV (Def: \Program Files\Norton AntiVirus)
; TARGET2       LFN NAV system directory (Def: {TARGET}\System)
; TARGET3       LFN Shared Componented directory (Def: \SOFTWARE\Symantec)
; TARGET3       (later in script) TARGET3 = SFN of TARGET
; TARGET4       SFN version of TARGET2
; TARGET5       SFN version of original TARGET3
;
;    Switch Assignments
;----------------------------
; SWITCH_WIN95            30      // TRUE if running on at least Win95
; SWITCH_WINNT35          31      // TRUE if running on at least WinNT 3.5
; // These settings control the setup wizard flow
; SWITCH_PREVIOUS         50      // TRUE = script should backup a screen
; SWITCH_NEXT             51      // TRUE = script should move to next screen
;                                 // NOTE: If both NEXT/PREV are FALSE, stay on same screen.
; SWITCH_CANCEL           52      // TRUE= script should exit
;
; SWITCH_FILEVIRUS        55      // TRUE = Files infected
;                                 // (memory and boot don't come back!)
;
; SWITCH_CUSTOM           63      // TRUE = custom install
;                                 // FALSE= full install
;
; // Choices made from "Specify Location to Install" dialog
; SWITCH_LOC_DEFAULT      67      // TRUE = Use default directory
;                                 // FALSE= Use "other" directory
; SWITCH_PREVIOUSVER      68      // TRUE = Found previous version
; SWITCH_FLOPPY_IN_DRIVE  69      // TRUE = There's a floppy in the drive
;
; // Choices made from the "Out of disk space" dialog
; SWITCH_NOSPACE_WINDRIVE 70      // TRUE = No space on the Windows drive
; SWITCH_NOSPACE_DESELECT 71      // TRUE = Go to custom install
; SWITCH_NOSPACE_NEWDRIVE 72      // TRUE = Select another target drive
;
; SWITCH_REBOOT           73      // TRUE = user wants to reboot now
;                                 // FALSE= user wants to reboot later
;
; // These settings control which set of options should be installed
; SWITCH_OPTS_LOW         75      // TRUE= Install minimal protection
; SWITCH_OPTS_NORMAL      76      // TRUE= Install normal protection
; SWITCH_OPTS_MAX         77      // TRUE= Install maximum protection
; SWITCH_OPTS_CURRENT     78      // TRUE= Retain current settings
;
; // These settings control what's installed automatically
; SWITCH_DO_RUNAUTOPROTECT 80     // TRUE= Load autoprotect at startup
; SWITCH_DO_RUNSCHEDULE    81     // TRUE= Load scheduler at startup
; SWITCH_DO_RUNNAVBOOT     82     // TRUE= Load NAVBOOT at startup
; SWITCH_DO_MAKERESCUE     83     // TRUE= Make a rescue disk
;
; SWITCH_NAVBOOT_INSTALLED     84 // TRUE= NAVBOOT installed add to AUTOEXEC
; SWITCH_AUTOPROTECT_INSTALLED 85 // TRUE= NAVAP is selected
; SWITCH_SCHEDULER_INSTALLED   86 // TRUE= SCHEDULER is selected
; SWITCH_RESCUE_INSTALLED      87 // TRUE= RESCUE is selected

[InstallVersion]
4.1

[Process]
Bitmaps(Pix)                           ; Background bitmaps
DisableHelp()                          ; Don't display help buttons
Backup(CustDLLCopy)                    ; Copy custom DLL to Windows dir
MakeFilesReadWrite(RWCustDLLCopy)

;//////////////////////////////////////
;// I N I T I A L I Z E   M E M O R Y
;//////////////////////////////////////
CallProc(InitMemory)

;////////////////////////////////
;//  V E R S I O N   C H E C K
;////////////////////////////////
WizardPanel(WrongVersion, siwnav32.dll)

switch31 = FALSE
switch30 = IsWinVerGTE(0395)            ; Check if running under Win 95
#ifnot(switch30)
    ;switch31 = IsWinVerGTE(035)        ; Check if running under WinN5 3.5
    ;#ifnot(switch31)
        WizardProcessPanel()            ; Not 3.5 or at least Win95 so exit
    ;#endif
#endif

                                        ; Initialize settings flags once.
switch78 = TRUE
                                        ; Settings based on Windows version
#if(switch30)
   switch80 = TRUE
   switch81 = TRUE
   switch82 = TRUE
   switch83 = TRUE
   SetActiveCopy(NAVCopy, install.inf)
   EnableWin95Shell()
#else
   switch80 = FALSE
   switch81 = TRUE
   switch82 = FALSE
   switch83 = FALSE
   SetActiveCopy(NAVCopyWinNT, install.inf)
#endif

;/////////////////////////////////////////////////////////////////////
;//  C H E C K   F O R   S P A C E   O N   W I N D O W S   D R I V E
;/////////////////////////////////////////////////////////////////////
WizardPanel(NoWinSpace, siwnav32.dll)
CallProc(CheckWinSpace)
#if(switch70)
    WizardProcessPanel()
#endif

;/////////////////////////////////////////////////
;//  S E T   D E F A U L T   D I R E C T O R I E S
;/////////////////////////////////////////////////
:TargetDirs
switch68 = FALSE                        ; MOREWORK: Not set in DLL yet
switch02 = FALSE
switch03 = FALSE
switch04 = FALSE

#if(switch30)
                                            ; Only check if Win95 (8.3 for NT)
    switch02 = CallProcEx(CheckLFNTarget)   ; Target drive support LFN's?
    switch03 = CallProcEx(CheckLFNCDrive)   ; Boot drive support LFN's?
    switch04 = CallProcEx(CheckLFNWindows)  ; Windows drive support LFN's?
#endif

#ifnot(switch02)
    ResetTarget(TargetSFN)          ; Set 8.3 application program target
    ResetTarget(TargetExt)          ; Set 8.3 application extensions folder
#else
    #ifnot(switch68)                ; If LFN support but no prev version
        ResetTarget(TargetLFN)      ; Set default LFN target
    #endif
    ResetTarget(TargetExtLFN)       ; Set LFN application extensions folder
#endif

switch99 = CallProcEx(FindSharedComponents) ; Get shared comp dir from reg
#ifnot(switch99)
    #ifnot(switch03)                ; If shared comp folder not registered and
        GetSymantecDir()            ; no LFN support, use short Symantec dir.
        ResetTarget(TargetShared)
        ResetTarget(TargetSharedShort)
    #endif
#endif

;////////////////////////////////
;//  W E L C O M E  D I A L O G
;////////////////////////////////
:WelcomeDialog
WizardPanel(Welcome, siwnav32.dll)
WizardProcessPanel()
WizardExcludePanel(Welcome)

;////////////////////////////////
;//  S C A N N I N G  D I A L O G
;////////////////////////////////
:DuringScanDialog
WizardPanel(DuringScan, siwnav32.dll)
WizardProcessPanel()
WizardExcludePanel(DuringScan)

;/////////////////////////////////////
;//  A F T E R  S C A N  D I A L O G
;/////////////////////////////////////
:AfterScanDialog
WizardPanel(AfterScan, siwnav32.dll)
WizardProcessPanel()
WizardExcludePanel(AfterScan)

;//////////////////////////////////////////
;// R E G I S T R A T I O N   D I A L O G
;//////////////////////////////////////////
:RegisterDialog
WizardPanel(Register, siwnav32.dll)
WizardProcessPanel()

;//////////////////////////////////////////////////////////
;// S E A R C H   F O R  P R E V I O U S  V E R S I O N S
;//////////////////////////////////////////////////////////
:VersionSearch
WizardPanel(SearchInfo, siwnav32.dll)
WizardProcessPanel()
WizardExcludePanel(SearchInfo)

;/////////////////////////////////////////////////////////////////////
;// D E F A U L T   O R   O T H E R  I N S T A L L  L O C A T I O N
;/////////////////////////////////////////////////////////////////////
:InstallLocation
WizardPanel(SpecifyLocation, siwnav32.dll)
WizardIncludePanel(NoDiskSpace)
WizardIncludePanel(KeepSettingsDlg)
WizardProcessPanel()

GetPrevVerSize()                    ; Calculate the prev ver size if available

;///////////////////////////////////////////////////////
;// C O M P L E T E  O R   C U S T O M   I N S T A L L
;///////////////////////////////////////////////////////
:InstallTypeDialog
WizardPanel(InstallType, siwnav32.dll)
WizardIncludePanel(SelectComponents)
WizardIncludePanel(NoDiskSpace)
WizardIncludePanel(StartupDlg)
WizardIncludePanel(RescueDlg)
WizardProcessPanel()

#ifnot(switch63)                        ; Full install type.
    #if(switch30)
        SetActiveCopy(NAVCopy, install.inf)
    #else
        SetActiveCopy(NAVCopyWinNT, install.inf)
    #endif
#endif

;/////////////////////////////////////
;// S E L E C T  C O M P O N E N T S
;/////////////////////////////////////
:compselect
WizardPanel(SelectComponents, siwnav32.dll)
WizardIncludePanel(NoDiskSpace)
WizardIncludePanel(StartupDlg)
WizardIncludePanel(RescueDlg)
#if(switch63)
    PrimarySelect()                     ; Prompt for components to install
#else
#endif
    WizardExcludePanel(SelectComponents)

;//////////////////////////////////////////////////
;// C O M P R E S S E D   D R I V E   D I A L O G
;//////////////////////////////////////////////////
:CompressedDialog
WizardPanel(CompressedDrive, siwnav32.dll)

switch40 = FALSE

#ifnot(switch31)
    switch40 = IsDriveCompressed(ALL)   ; Don't check compressed for NT
#endif

#if(switch40)
    WizardProcessPanel()
#endif
WizardExcludePanel(CompressedDrive)

;////////////////////////////////////////////
;// C H E C K   F O R   D R I V E S P A C E
;////////////////////////////////////////////
:checkspace
Wizardpanel(NoDiskSpace, siwnav32.dll)
switch71 = FALSE
switch72 = FALSE

switch98 = CheckDiskSpace(TARGET)       ; Selected components fit on target?
#ifnot(switch98)
    WizardProcessPanel()                ; Display error if not
#else
    WizardExcludePanel(NoDiskSpace)
#endif

#if(switch71)
    WizardGotoPanel(SelectComponents)
#endif
#if(switch72)
    WizardGotoPanel(SpecifyLocation)    ; Select another drive to install to
#endif

;/////////////////////////////////////
;// KEEP CURRENT SETTINGS (optional)
;/////////////////////////////////////
:KeepSettingsDialog
WizardPanel(KeepSettingsDlg, siwnav.dll)
switch99 = Exists(NavoptsFind)
#if(switch99)
    WizardProcessPanel()
#else
    WizardExcludePanel(KeepSettingsDlg)
#endif

;//////////////////////////////////
;// S T A R T U P   O P T I O N S
;//////////////////////////////////
:StartupDialog
WizardPanel(StartupDlg, siwnav32.dll)

switch84 = IsOptionSelected(navboot)
switch85 = IsOptionSelected(navapw)
switch86 = IsOptionSelected(scheduler)
switch87 = IsOptionSelected(rescue)
                                        ; Only change options if component
                                        ; has since been deselected.
#ifnot(switch85)
    switch80 = FALSE
#endif
#ifnot(switch86)
    switch81 = FALSE
#endif
#ifnot(switch84)
    switch82 = FALSE
#endif

#ifnot(switch85)
    #ifnot(switch86)
        #ifnot(switch84)
            WizardExcludePanel(StartupDlg)
            WizardGotoPanel(RescueDlg)
	#endif
    #endif
#endif

WizardProcessPanel()

;////////////////////////////////
;//  R E S C U E  D I A L O G
;////////////////////////////////
:RescueDialog
WizardPanel(RescueDlg, siwnav32.dll)

switch99 = IsOptionSelected(rescue)

#if(switch99)                           ; Create a rescue disk
;    switch83 = TRUE                     ; Suggest a rescue by default...
    WizardProcessPanel()
#else
    switch83 = FALSE                    ; Can't make a disk if not copying
    WizardExcludePanel(RescueDlg)
#endif

;////////////////////////////////////////
;// C O P Y   F I L E S   D I A L O G
;////////////////////////////////////////
:CopyFilesDialog
WizardPanel(CopyFiles, siwnav.dll)
WizardProcessPanel()

;////////////////////////////////////////
;// C R E A T E   D I R E C T O R I E S
;////////////////////////////////////////
CreateDirectory(CreateExtDir)
CreateDirectory(CreateSharedDir)

;////////////////////////////////////////
;// SELECT/DESELECT BEFORE COPY
;////////////////////////////////////////

#if(switch78)                           ; Keep previous options
    switch99 = Exists(NavoptsFind)
    #if(switch99)
        DeselectOption(options)
    #endif
    switch99 = Exists(NewoptsFind)
    #if(switch99)
        DeselectOption(newoptions)
    #endif
#endif

switch99 = Exists(ContentsFind)         ; Infodesk help and contents
#if(switch99)
    DeselectOption(contents)
#endif

;////////////////////////////////////////
;//        C O P Y   F I L E S
;////////////////////////////////////////

DisableUtils()
Copy()
MakeFilesReadWrite(RWInstalledFiles)
EnableUtils()
                               ; Update Symevnt files if in system dir
switch99 = Exists(SymevntFind)
#if(switch99)
    Backup(SymevntCopy)
#endif
switch99 = Exists(Symevnt16Find)
#if(switch99)
    Backup(Symevnt16Copy)
#endif
switch99 = Exists(Symevnt32Find)
#if(switch99)
    Backup(Symevnt32Copy)
#endif

;//////////////////////////////////////////////////////////
;// S T O R E   U S E R  R E G I S T R A T I O N  I N F O
;//////////////////////////////////////////////////////////
RegisterNAV30()
SetRegistration(SetNAVRegister)

;/////////////////////////////////////////
;// U P D A T E   U S A G E  C O U N T S
;/////////////////////////////////////////
CallProcEx(UsageCounts)

;////////////////////////////////////////////////////////////////
;// C R E A T E   S H O R T   N A M E S   F O R   T A R G E T S
;////////////////////////////////////////////////////////////////
ResetTarget(TargetSharedShort)
CallProcEx(GetShort)
ResetTarget(TargetSharedSave)           ; Save SFN of shared path in TARGET5
ResetTarget(TargetShort)
CallProcEx(GetShort)                    ; Set SFN of target path in TARGET4

MergeRegFile(NavReg)                    ; NAV95.REG needs LFN of shared in TARGET3
					; And SFN of target path in TARGET4

ResetTarget(TargetSave)                 ; Save SFN of target path in TARGET3
ResetTarget(TargetExtShort)
CallProcEx(GetShort)                    ; Set SFN of app ext path in TARGET4

;///////////////////////////////////////////////////////////////
;// U P D A T E  A U T O / C O N F I G / I N I  A S  N E E D E D
;///////////////////////////////////////////////////////////////

switch99=Exists(ConfigFind)
#if(switch99)
    switch05=VerifyStartup(CheckAVConfig)
    #if(switch05)
        #if(switch03)                           ; Boot drive support LFN?
            Backup(SaveConfigLFN)
        #else
            Backup(SaveConfigSFN)
        #endif

        ModifyTextFile(ModifyConfig)
    #endif
#endif

switch99=Exists(AutoexecFind)
#if(switch99)
    switch06=VerifyStartup(CheckAVAuto)
    #ifnot(switch06)
        ; Also save backup if we need to add navboot
        switch06=IsOptionSelected(navboot)
    #endif
    #if(switch06)
        #if(switch03)                           ; Boot drive support LFN?
            Backup(SaveAutoexecLFN)
        #else
            Backup(SaveAutoexecSFN)
        #endif
    #endif
#endif

switch84 = IsOptionSelected(navboot)

#if(switch84)
    ModifyTextFile(ModifyAutoexecAddNAV)
#else
    #if(switch99)
        ModifyTextFile(ModifyAutoexec)
    #endif
#endif

CallProcEx(SetStartupScan)              ; Based on switch 82

:checksysini

:checkschedini                          ; Write the scheduler INI file
#if(switch81)                           ; Scheduler is being installed
    UpdateIni(AddNewSched)
#endif

;/////////////////////////////////////////////
;// A D D   N A V   R E G I S T R Y   I N F O
;/////////////////////////////////////////////
switch99 = IsOptionSelected(navw32)
#if(switch99)
    MergeRegFile(NavwReg)
#endif

switch99 = IsOptionSelected(navapw)
#if(switch99)
    MergeRegFile(NavapwReg)
#endif
CallProcEx(SetLoadNavap)                ; Based on switch80

switch99 = IsOptionSelected(Scheduler)
#if(switch99)
    MergeRegFile(SchedReg)
#endif

switch99 = IsOptionSelected(rescue)
#if(switch99)
    MergeRegFile(RescuewReg)
#endif

#ifnot(switch81)
    DeselectOption(SchedStart)      ; Inhibit creation of Scheduler in
#endif                             ;   Startup group if not selected

;//////////////////////////////////////////////
;// C R E A T E   P R O G R A M   G R O U P S
;//////////////////////////////////////////////

Groups() ; this is the call to the SIW code, save for NT use??

;CallProc( DoGroups ) ; This is the call to our custom shell link groups.

;//////////////////////////////////
;//      R U N   R E S C U E
;//////////////////////////////////
:RunRescue
WizardPanel(RescueFloppyDialog, siwnav32.dll)
#if(switch83)
    CallProc(FloppyInDrive)
    #if (switch69)
        WizardProcessPanel()
        WizardGotoPanel(RescueFloppyDialog)
    #endif
    Backup(RescueCopy)
    ;ExecChildProcess(RescueRun)
    CallProc(ExecRescue)
#endif

;//////////////////////////////
;//      C L E A N   U P
;//////////////////////////////
CallProcEx(UpdateInstFlag)
UpdateReg32(RegUpdate)

;////////////////////////////////////
;// P R E P A R E   F O R   E X I T
;////////////////////////////////////
WizardPanel(Finished, siwnav32.dll)
switch73 = FALSE
WizardProcessPanel()

;/////////////////////////////////////////////////////////////////////
;// C H E C K   F O R   F L O P P Y   B E F O R E   R E B O O T I N G
;/////////////////////////////////////////////////////////////////////
:CheckForFloppy
WizardPanel(RebootFloppyDialog, siwnav32.dll)
#if(switch73)
    CallProc(FloppyInDrive)
    #if (switch69)
        WizardProcessPanel()
        WizardGotoPanel(RebootFloppyDialog)
    #endif
#endif

;//////////////////////////////////////////
;// D E L E T E  L E F T O V E R  D L L S
;//////////////////////////////////////////
:CleanupAndExit

CallProcEx(ExitHookProc)
Delete(CustDLLDel)
Delete(RescueDelete)
Delete(Leftovers)
#if(switch73)
    ExitRestart()
#else
    Exit()
#endif

End()

;###########################################################################
;##########End of process section. Begin sections referenced above##########
;###########################################################################

;***************************************************************************
;* SubProc Executed When Install Takes Over As Shell                       *
;***************************************************************************
[SubProc]
Backup(CustDLLCopy)            ; Copy custom dll to windows dir
MakeFilesReadWrite(RWCustDLLCopy)
MakeFilesReadWrite(RWSetup)
DelFromIni(DelVxds)            ; Remove Symevnt from SYSTEM.INI
CallProcEx(DeleteNavapVxdReg)
Delete(CustDLLDel)
Return()

;***************************************************************************
;* 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]
symnav7.dll
s32nav7.dll
symnav8.dll
s32nav8.dll
symevnt1.dll
s32evnt1.dll
s32stat.dll

[SetShellMessage]
caption  =  "Norton AntiVirus for Windows 95 - Setup Program"
"A previous version of Norton AntiVirus or another"
"Symantec utility is currently running. Select OK to"
"allow setup to restart Windows and continue the"
"installation. Press Cancel to exit setup."

;***************************************************************************
;* External function calls                                                 *
;***************************************************************************

[FindSymevntDll]
dll = siwnav32.dll
function = FindSymevnt

[NukeSymevntDll]
dll = siwnav32.dll
function = NukeSymevnt

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

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

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

[FindSharedComponents]
dll = siwnav32.dll
function = FindSharedComponents

[CheckPrevVer]
dll = siwnav32.dll
function = CheckPrevVerPath

[UpdateInstFlag]
dll = siwnav32.dll
function = UpdateInstalledFlag

[UsageCounts]
dll = siwnav32.dll
function = UpdateUsageCounts

[GetShort]
dll = siwnav32.dll
function = ConvertToShortName

[SetLoadNavap]
dll = siwnav32.dll
function = SetLoadNavapOptions

[SetStartupScan]
dll = siwnav32.dll
function = SetStartupScanOptions

[CheckWinSpace]
dll = siwnav32.dll
function = WindowsDriveSpace

[InitMemory]
dll = siwnav32.dll
function = InitMemory

; MOREWORK:
[DoGroups]
dll = siwnav32.dll
function = CreateGroupItems

[FloppyInDrive]
dll = siwnav32.dll
function = IsFloppyInDrive

[ExitHookProc]
dll = siwnav32.dll
function = ReleaseMemory
delete = CustDLLDel

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

; MOREWORK: Still needed?
[NAVCopy:TypeSelect]
count = 2
caption = "Norton AntiVirus for Windows 95 Install Type"
text = "Please select the type of install you want to perform."
grouptext = "Install Types"
button1 = "&Full Install"
button2 = "C&ustom Install"
descrip1 = "Installs and configures complete AntiVirus protection for your computer.  This will require xx.x MB of disk space."
descrip2 = "Lets you choose which Norton AntiVirus modules to install.  If you need more options later, you can run setup again."

; MOREWORK: Still needed?
[NAVCopy:Primary]
caption = "Norton AntiVirus for Windows 95 Main Selection"
button1 = "Select..."
button2 = "Select..."
button3 = "Select..."
button4 = "Select..."
button5 = "Select..."
text = App1Text
DisableButtons = 0

[NAVCopy:Component]
caption = "Norton AntiVirus for Windows 95 Component Selection"
text    = "Select/Deselect the components you want to install.  Checked items will be installed."

[NAVCopy:CopyDialog]
caption = "Copying Norton AntiVirus Files..."
posx = -10
posy = -10

; MOREWORK: Still needed?
[NAVCopyWinNT:TypeSelect]
count = 2
caption = "Norton AntiVirus for Windows 95 Install Type"
text = "Please select the type of install you want to perform."
grouptext = "Install Types"
button1 = "&Full Install"
button2 = "C&ustom Install"
descrip1 = "Installs and configures complete AntiVirus protection for your computer.  This will require xx.x MB of disk space."
descrip2 = "Lets you choose which Norton AntiVirus modules to install.  If you need more options later, you can run setup again."

; MOREWORK: Still needed?
[NAVCopyWinNT:Primary]
caption = "Norton AntiVirus for Windows 95 Main Selection"
button1 = "Select..."
button2 = "Select..."
button3 = "Select..."
button4 = "Select..."
button5 = "Select..."
text = App1Text
DisableButtons = 0

[NAVCopyWinNT:Component]
caption = "Norton AntiVirus for Windows 95 Component Selection"
text    = "Select/Deselect the components you want to install.  Checked items will be installed."

[NAVCopyWinNT:CopyDialog]
caption = "Copying Norton AntiVirus Files..."
posx = -10
posy = -10

[App1Text]
"Please select the items you want to install.  If a selection"
"has a button to the right, you can select individual files or"
"components."

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

[AdvoText]
""
"Please take a moment to complete the Product Registration Card
"included with your product and return it to Symantec."
""
"This will ensure that you receive future product announcements"
"and important notices. It will also qualify you for any discounts"
"on future upgrades."
""
"Thank you for purchasing Norton AntiVirus for Windows 95!"

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

; MOREWORK: Still needed?
[VersionSearch]
caption =  "Searching for Previous Version"
text1   =  "Searching for a previously installed"
text2   =  "version of Norton AntiVirus for Windows 95."
appname =  "navw32.exe"
apppath =  "C:\Program Files\Norton AntiVirus"

; MOREWORK: Still needed?
[SymantecDir]
caption = "Searching for Shared Directory"
text1 = "Searching for Symantec shared"
text2 = "program folder."
appname = "symcfg.bin"
apppath = C:\SYMANTEC

; MOREWORK: Still needed?
[TargetDriveLFN]
caption =  "Install Norton AntiVirus Files"
defpath =  "C:\Program Files\Norton AntiVirus"
text    =  "Please select the location where you want to install Norton AntiVirus."
reqspace=  "Approximate additional disk space required"

; MOREWORK: Still needed?
[TargetDriveSFN]
caption =  "Install Norton AntiVirus Files"
defpath =  "C:\NAV95"
text    =  "Please select the location where you want to install Norton AntiVirus."
reqspace=  "Approximate additional disk space required"

[FileCopy]
copycaption   =  "Installing Norton AntiVirus for Windows 95"
errorcaption  =  "Error Copying Files"
insertcaption =  "Insert Diskette"
Message       =   MessageText

[Cancel]
caption = "Norton AntiVirus - Exit Setup"
text    = "Are you sure you want to exit?"

[CancelShell]
caption = "Norton AntiVirus - Exit Setup"
"You have selected to cancel Setup."
"In order to reset the Windows"
"environment, Setup will also close"
"Windows.  Are you sure you want to exit?"

[Errors]
noprev  =  "Symantec Setup for Windows is already running!"

;***************************************************************************
;* Target Folder Settings                                                  *
;***************************************************************************

[TargetLFN]
reset = TARGET
location = "C:\Program Files\Norton AntiVirus"

[TargetSFN]
reset = TARGET
location = "C:\NAV95"

[TargetShort]
reset = TARGET4
location = %s, TARGET

[TargetSave]
reset = TARGET3
location = %s, TARGET4

[TargetExt]
reset = TARGET2
location = "System"
relative = 1
relativeto = TARGET

[TargetExtLFN]
reset = TARGET2
location = "System"
relative = 1
relativeto = TARGET

[TargetExtShort]
reset = TARGET4
location = %s, TARGET2

[TargetShared]
reset = TARGET3
location = %s, TARGET5

[TargetSharedShort]
reset = TARGET4
location = %s, TARGET3

[TargetSharedSave]
reset = TARGET5
location = %s, TARGET4

[CreateExtDir]
%s, TARGET2

[CreateSharedDir]
%s, TARGET3

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

[RWInstalledFiles]
*.*, TARGET
*.*, TARGET2
*.*, TARGET3
ctl3d32.dll, SYSTEM

[RWSetup]
setup.exe, SYSTEM

[ContentsFind]
infodesk.cnt, TARGET3

[NavoptsFind]
navopts.dat, TARGET

[NewoptsFind]
navstart.dat, TARGET

[SaveConfigSFN]
c:\config.sys, c:\config.nav

[SaveConfigLFN]
c:\config.sys, "c:\Copy of Config.Sys (before NAV).BAK"

[SaveAutoexecSFN]
c:\autoexec.bat, c:\autoexec.nav

[SaveAutoexecLFN]
c:\autoexec.bat, "c:\Copy of Autoexec.Bat (before NAV).BAK"

[SaveSysIniSFN]
system.ini, system.nav, WINDOWS, WINDOWS

[SaveSysIniLFN]
system.ini, "Copy of System.Ini (before NAV).BAK", WINDOWS, WINDOWS

[CustDLLCopy]
shell95w.exe, shell95w.exe, SOURCE, WINDOWS
siwnav32.dll, siwnav32.dll, SOURCE, WINDOWS
s32scani.dll, s32scani.dll, SOURCE, WINDOWS
s32nav8.dll,  s32nav8.dll,  SOURCE, WINDOWS
navkrnl8.vxd, navkrnl8.vxd, SOURCE, WINDOWS
virscan.dat,  virscan.dat,  SOURCE, WINDOWS
virscan.inf,  virscan.inf,  SOURCE, WINDOWS
inscanm.dat,  inscanm.dat,  SOURCE, WINDOWS
inscanb.dat,  inscanb.dat,  SOURCE, WINDOWS
inscanf.dat,  inscanf.dat,  SOURCE, WINDOWS

[RWCustDLLCopy]
shell95w.exe, WINDOWS
siwnav32.dll, WINDOWS
s32scani.dll, WINDOWS
s32nav8.dll,  WINDOWS
navkrnl8.vxd, WINDOWS
virscan.dat,  WINDOWS
virscan.inf,  WINDOWS
inscanm.dat,  WINDOWS
inscanb.dat,  WINDOWS
inscanf.dat,  WINDOWS

[SymevntFind]
symevnt.386, SYSTEM

[SymevntCopy]
symevnt.386, symevnt.386, TARGET3, SYSTEM

[Symevnt16Find]
symevnt1.dll, SYSTEM

[Symevnt16Copy]
symevnt1.dll, symevnt1.dll, TARGET3, SYSTEM

[Symevnt32Find]
s32evnt1.dll, SYSTEM

[Symevnt32Copy]
s32evnt1.dll, s32evnt1.dll, TARGET3, SYSTEM

[ExecRescue]
dll = siwnav32.dll
function = ExecRescue

[RescueRun]
"%s\nresq32.exe /REGMSG", TARGET3

[RescueCopy]
s32stat.dll, s32stat.dll, TARGET5, TARGET

[RescueDelete]
s32stat.dll, TARGET

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

[CustDLLDel]
shell95w.exe, WINDOWS
siwnav32.dll, WINDOWS
s32scani.dll, WINDOWS
s32nav8.dll,  WINDOWS
navkrnl8.vxd, WINDOWS
virscan.dat,  WINDOWS
virscan.inf,  WINDOWS
inscanm.dat,  WINDOWS
inscanb.dat,  WINDOWS
inscanf.dat,  WINDOWS

[DelVxds]
IniName = system.ini
SectionName = 386enh
device=*symevnt.386*

[DeleteNavapVxdReg]
dll = siwnav32.dll
function = NavDeleteRegKey
hive = SIWHKEY_LOCAL_MACHINE
subkey = "System\CurrentControlSet\Services\VxD\NAVAP"

[Leftovers]
win.siw,      WINDOWS
system.siw,   WINDOWS
version.dll,  TARGET

;***************************************************************************
;* Config/Autoexec/Ini Mods                                                           *
;***************************************************************************

[ConfigFind]
c:\config.sys

[AutoexecFind]
c:\autoexec.bat

[CheckAVConfig]
file = c:\config.sys
finditems = FindNavStartup

[CheckAVAuto]
file = c:\autoexec.bat
finditems = FindNavStartup

[FindNavStartup]
*nav*

[ModifyConfig]
caption    = "Norton AntiVirus - Modify Config.sys File"
text1      = "The following modifications need to be made to your config.sys file.  To edit the file, click the Edit button."
FileSpec   = c:\config.sys
filetype   = config
Create     = 0
CreateText =
rem1       = "rem"
FindRems   = 0
EditCaption= "Edit Config.sys"
EditText   = "Make the desired changes to the file and click Done when finished.  To cancel this and all previous edits, click Cancel Edit."
RemItems   = StartupRemItems

[ModifyAutoexec]
caption    = "Norton AntiVirus - Modify Autoexec.bat File"
text1      = "The following modifications need to be made to your autoexec.bat file.  To edit the file, click the Edit button."
FileSpec   = c:\autoexec.bat
filetype   = autoexec
Create     = 0
CreateText =
rem1       = "rem"
rem2       = "path"
rem3       = "set"
FindRems   = 0
EditCaption= "Edit Autoexec.bat"
EditText   = "Make the desired changes to the file and click Done when finished.  To cancel this and all previous edits, click Cancel Edit."
RemItems   = StartupRemItems
DelItems   = StartupDelItems

[ModifyAutoexecAddNAV]
caption    = "Norton AntiVirus - Modify Autoexec.bat File"
text1      = "The following modifications need to be made to your autoexec.bat file.  To edit the file, click the Edit button."
FileSpec   = c:\autoexec.bat
filetype   = autoexec
Create     = 1
CreateText =
rem1       = "rem"
rem2       = "path"
rem3       = "set"
FindRems   = 0
EditCaption= "Edit Autoexec.bat"
EditText   = "Make the desired changes to the file and click Done when finished.  To cancel this and all previous edits, click Cancel Edit."
RemItems   = StartupRemItems
DelItems   = StartupDelItems
AddItems   = StartupAddItems

[AddNewSched]
IniName = schedule.ini
SectionName = NamedEvents
NamedEvent1 = 1

SectionName = NamedEvent1
Name="Scan for Viruses"
Prompt="&What to Scan:"
CommandLine=NAVW32.EXE
StartupDir=%s, TARGET4
RunStyle=1

[StartupRemItems]
*navtsr*
*\navtsr*
*nav*
*\nav*
*nav_*
*\nav_*
*nav&*
*\nav&*

[StartupDelItems]
*navboot*
*\navboot*

[StartupAddItems]
"@%s\Navboot.exe /Startup", TARGET3, switch84

;***************************************************************************
;* Reg Database mods                                                       *
;***************************************************************************

[NavReg]
file = %s\nav95.reg, TARGET2

[NavwReg]
file = %s\navw32.reg, TARGET2

[NavapwReg]
file = %s\navapw32.reg, TARGET2

[SchedReg]
file = %s\NSched32.reg, TARGET2

[RescuewReg]
file = %s\NResq32.reg, TARGET2

[RegUpdate]
key = "HKEY_LOCAL_MACHINE"
subkey = "SOFTWARE\Symantec\Norton AntiVirus\Install\95\Components"

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

[Pix]
color = %s\symlogo.rle, -1, 1

[VerDll]
ver.dll, SYSTEM

[SetNAVRegister]
s32nav8.dll, TARGET

[Registration]
dll = s32nav8.dll
string = "Symantec Setup for Windows"
active = no
serialize = 0

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

[groups]
"Norton AntiVirus", nav.grp, DELETE
"Startup",          startup.grp

[Norton AntiVirus]
"Norton AntiVirus",             navw32.exe,     navw32,    0, TARGET3, navw32.exe,   TARGET3, " "
"Norton Program Scheduler",     nsched32.exe,   scheduler, 0, TARGET3, nsched32.exe, TARGET3, " "
"Rescue Disk",                  nresq32.exe,    rescue,    0, TARGET3, nresq32.exe,  TARGET3, " "

[Startup]
"Norton Program Scheduler",     nsched32.exe,   schedstart, 0, TARGET3,  nsched32.exe, TARGET3, " /min", 1

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

[NAVCopy]
;seltype.component, description,                        size,req,files,show
CopyMain.BaseFiles, "Norton AntiVirus Base Files - %ldK",  0,  Y, N, Y
CopySub.schedstart, " "
CopySub.shared,     " "
CopySub.options,    " "
CopySub.newoptions, " "
CopySub.virdefs,    " "
CopySub.contents,   " "

CopyMain.NAVWIN,    "Windows Protection          - %ldK",  0,  N, Y, Y
CopySub.navw32,     "Windows Scanner Application - %ldK"
CopySub.navapw,     "Automatic Protection VxD    - %ldK"

CopyMain.NAVDOS,    "DOS/Startup Protection      - %ldK",  0,  N, Y, Y
CopySub.navboot,    "NAVBOOT                     - %ldK"
CopySub.navtsr,     "NAVTSR                      - %ldK"

CopyMain.TOOLS,     "Tools                       - %ldK",  0,  N, Y, Y
CopySub.install,    "Install/Uninstall NAV       - %ldK"
CopySub.rescue,     "Create a rescue disk        - %ldK"
CopySub.scheduler,  "Schedule scans              - %ldK"


[NAVCopyWinNT]
;seltype.component, description,                        size,req,files,show
CopyMain.BaseFiles, "Norton AntiVirus Base Files - %ldK",  0,  Y, N, Y
CopySub.schedstart, " "
CopySub.shared,     " "
CopySub.options,    " "
CopySub.newoptions, " "
CopySub.virdefs,    " "
CopySub.contents,   " "

CopyMain.NAVWIN,    "Windows Protection          - %ldK",  0,  N, Y, Y
CopySub.navw32,     "Windows Scanner Application - %ldK"

CopyMain.TOOLS,     "Tools                       - %ldK",  0,  N, Y, Y
CopySub.install,    "Install/Uninstall NAV       - %ldK"
CopySub.scheduler,  "Schedule scans              - %ldK"

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

[WrongVersion]
Title="Incorrect Version"
DlgProc=WizardPanelProc
ResourceId=102
Bitmap16=202
PanelDataProc=_DefaultDataProc@0
PanelFlags=First+Last

[NoWinSpace]
Title="Low Disk Space"
DlgProc=WizardPanelProc
ResourceId=108
Bitmap16=202
PanelDataProc=_DefaultDataProc@0
PanelFlags=First+Last

[Welcome]
Title="Welcome to Norton AntiVirus Setup"
DlgProc=WizardPanelProc
ResourceId=110
Bitmap16=202
PanelDataProc=_DefaultDataProc@0
PanelFlags=First

[DuringScan]
Title="Scanning your system for viruses"
DlgProc=WizardPanelProc
ResourceId=111
Bitmap16=202
PanelDataProc=_DefaultDataProc@0
PanelFlags=First+Last

[AfterScan]
Title="Your system is virus free"
DlgProc=WizardPanelProc
ResourceId=112
Bitmap16=202
PanelDataProc=_DefaultDataProc@0
PanelFlags=First

[Register]
Title="User Information"
DlgProc=WizardPanelProc
ResourceId=113
Bitmap16=202
PanelDataProc=_DefaultDataProc@0
PanelFlags=First

[InstallType]
Title="Setup Type"
DlgProc=WizardPanelProc
ResourceId=114
Bitmap16=202
PanelDataProc=_DefaultDataProc@0

[SearchInfo]
Title="Exploring Drives"
DlgProc=WizardPanelProc
ResourceId=116
Bitmap16=202
PanelDataProc=_DefaultDataProc@0
PanelFlags=First+Last

[SpecifyLocation]
Title="Program Location"
DlgProc=WizardPanelProc
ResourceId=118
Bitmap16=202
PanelDataProc=_DefaultDataProc@0

[CompressedDrive]
Title="Compressed Drive Information"
DlgProc=WizardPanelProc
ResourceId=104
Bitmap16=202
PanelDataProc=_DefaultDataProc@0

[NoDiskSpace]
Title="Not Enough Disk Space"
DlgProc=WizardPanelProc
ResourceId=106
Bitmap16=202
PanelDataProc=_DefaultDataProc@0

[KeepSettingsDlg]
Title="Keep Current Settings"
DlgProc=WizardPanelProc
ResourceId=121
Bitmap16=202
PanelDataProc=_DefaultDataProc@0

[StartupDlg]
Title="Initial Settings"
DlgProc=WizardPanelProc
ResourceId=122
Bitmap16=202
PanelDataProc=_DefaultDataProc@0

[RescueDlg]
Title="Create Virus Recovery Disk"
DlgProc=WizardPanelProc
ResourceId=124
Bitmap16=202
PanelDataProc=_DefaultDataProc@0

[CopyFiles]
Title="Setup Review"
DlgProc=WizardPanelProc
ResourceId=128
Bitmap16=202
PanelDataProc=_DefaultDataProc@0

[Finished]
Title="Setup Complete"
DlgProc=WizardPanelProc
ResourceId=130
Bitmap16=202
PanelDataProc=_DefaultDataProc@0
PanelFlags=First+Last+Finish

[RescueFloppyDialog]
Title="Remove Floppy Diskette"
DlgProc=WizardPanelProc
ResourceId=129
Bitmap16=202
PanelDataProc=_DefaultDataProc@0
PanelFlags=First

[RebootFloppyDialog]
Title="Remove Floppy Diskette"
DlgProc=WizardPanelProc
ResourceId=129
Bitmap16=202
PanelDataProc=_DefaultDataProc@0
PanelFlags=First+Last+Finish

