;////////////////////////////////////////////////
;// Norton System Information for Windows 95 install script
;// (c) 1996 Symantec - Peter Norton Product Group
;// For use with the Symantec Install version 4.2 32-bit
;////////////////////////////////////////////////

; Switch01 - Install is shell
; switch02 - QPD Exists
; switch03 - MM Version of installation
; switch04 - Launch IE3 install
;
; switch06 - LFN Target?
; switch07 - LFN C Drive?
; switch08 - LFN Windows Drive?
; switch09 - Symevnt exists in the system directory
; switch10 - NDD dos is selected
; switch11 - Unerase is selected
; switch12 - Patch win.com
;
; switch39 - Auto install
; switch40 - Target or Windows drive is compressed
; switch45 - Allows pressing back from the program location screen
; switch49 - SWITCH_INTLCHAR - Int'l chars in specifed path
; switch58 - SWITCH_DISKETTE - Diskette install
; switch60 - SWITCH_SMARTCAN - Enable NPROTECT
; switch61 - SWITCH_SDD - System Doctor enable
; switch63 - SWITCH_CUSTOM - custom install
; switch64 - SWITCH_COMPLETE - full install
; switch68 - SWITCH_OTHER - User has selected another location than the default
; switch69 - SWITCH_RESCUE - Create a rescue disk
; switch71 - SWITCH_DESELECT - User chooses to exit install (disk space)
; switch72 - SWITCH_CHANGEDRIVE - User wants to change locations (disk space)
; switch73 - SWITCH_REBOOT - Reboot at the end
; switch74 - SWITCH_NOREBOOT - Don't reboot at the end
; switch76 - SWITCH_NOROOM - Set by WinSpace function
; switch77 - SWITCH_RENAME - Rename old NU files
; switch78 - SWITCH_PREVIOUSVER - Previous version found
; switch79 - SWITCH_ADDPATH - Add the path to the autoexec
; switch80 - SWITCH_FLOPPY - Floppy in drive
; switch87 - SWITCH_SAGEDISABLE - Disable System Agent
; switch88 - Need zip association for spacewizard

[InstallVersion]
4.0

[Process]
EnableForceWrite()
EnableOverwrite()
SetInternalFlag(1)
Bitmaps(Pix)

SaveRegistry(SaveRegGroup)

DisableHelp()
Backup(CustDLLCopy)

; Initialize the custom dll

CallProc(Memory)

; Check for the proper version of Windows

WizardPanel(WrongVersion, siwsi.dll)

switch99 = IsWinVerGTE(0395)
#ifnot(switch99)
    WizardProcessPanel()
    Exit()
#endif

switch99 = CallProcEx(CheckVersion)
#ifnot(switch99)
    WizardProcessPanel()
    Exit()
#endif


; Check to see if this is the MM version of NU

switch03 = FALSE

; Check for diskette version of NU

CallProcEx(IsDisketteInstall)

SetActiveCopy(SICopy, install.inf)

; Check for low disk space

WizardPanel(NoWinSpace, siwsi.dll)

CallProc(CheckWinSpace)
#if(switch76)
    WizardProcessPanel()
    Exit()
#endif


; Process the Welcome wizard panel and the
; license agreement panel

WizardPanel(Welcome, siwsi.dll)
WizardProcessPanel()

WizardPanel(License, siwsi.dll)
WizardProcessPanel()

; Find the shared components directory or
; set the default if not found

CallProcEx(FindSharedComponents)

; Let the user specify the install location

:InstallLocation
WizardPanel(SpecifyLocation, siwsi.dll)
WizardIncludePanel(NoDiskSpace)
WizardProcessPanel()

#if(switch49)
    WizardGotoPanel(SpecifyLocation)
#endif


; Check the required space to see if we can
; install

:checkspace
WizardPanel(NoDiskSpace,siwsi.dll)

switch98=CheckDiskSpace(TARGET)

#ifnot(switch98)
    WizardProcessPanel()
#endif

WizardExcludePanel(NoDiskSpace)

; Verify what we're going to do with the user

WizardPanel(CopyFiles,siwsi.dll)
WizardProcessPanel()

; Setup the various directories and get short path names
; Directories are as follows:
;
; TARGET - LFN Program Directory
; TARGET3 - LFN Symantec Shared Directory
; TARGET6 - Short Program Directory
; TARGET8 - Short Symantec Shared Directory
; TARGET12 - Media Directory (MM Version)

CreateDirectory(CreateTargetDir)
CreateDirectory(CreateSharedDir)

CallProcEx(GetShortTarget)
CallProcEx(GetShortShared)

#if(switch03)
    CallProcEx(GetMediaPath)
#endif

; Do the file copy now

DisableUtils()
Copy()
EnableUtils()

; More symevnt stuff

switch99=Exists(SymevntFind)
#if(switch99)
    Backup(SymevntCopy)
#endif

switch99=Exists(Symevnt16Find)
#if(switch99)
    Backup(Symevnt16Copy)
#endif

switch99=Exists(Symevnt32Find)
#if(switch99)
    Backup(Symevnt32Copy)
#endif

; Get rid of the wizard panels we don't need anymore

WizardExcludePanel(CopyFiles)
WizardExcludePanel(NoDiskSpace)
WizardExcludePanel(SpecifyLocation)
WizardExcludePanel(License)
WizardExcludePanel(Welcome)
WizardExcludePanel(NoWinSpace)
WizardExcludePanel(WrongVersion)

; Set the user registration

SetRegistration(SetSymUtil32)

; Update the registry and usage counts

CallProcEx(UsageCounts)
CallProcEx(IncrementSysfiles)

CallProcEx(ProcessRegEntries)

; Create the icons

EnableWin95Shell()
Groups()

; Set the installed flag in the registry

CallProcEx(UpdateInstFlag)

WizardPanel(TechSupport,siwsi.dll)
WizardProcessPanel()
WizardPanel(ReachUs,siwsi.dll)
WizardProcessPanel()
WizardPanel(CrossMarket,siwsi.dll)
WizardProcessPanel()

:OnlineReg
WizardPanel(RegisterNow, siwsi.dll)
WizardIncludePanel(SendRegistration)
WizardIncludePanel(OnlineMarketing)
WizardIncludePanel(OnlineRegistration)

WizardSetSkip(RegisterNow, Finished)
WizardProcessPanel()

WizardPanel(OnlineRegistration, siwsi.dll)
WizardSetSkip(OnlineRegistration, Finished)
WizardProcessPanel()

WizardPanel(OnlineMarketing, siwsi.dll)
WizardSetSkip(OnlineMarketing, Finished)
WizardProcessPanel()

WizardSetSkip(SendRegistration, Finished)
WizardPanel(SendRegistration, siwsi.dll)
WizardProcessPanel()

WizardExcludePanel(SendRegistration)
WizardExcludePanel(OnlineMarketing)
WizardExcludePanel(OnlineRegistration)

WizardPanel(Finished, siwsi.dll)
WizardProcessPanel()

:CheckForFloppy
#ifnot(switch39)
    WizardPanel(FloppyDialogFinish,siwsi.dll)

    #if(switch73)
       switch80=FALSE
       CallProc(FloppyInDrive)

       #if(switch80)
           WizardProcessPanel()
           WizardGotoPanel(FloppyDialogFinish)
       #endif
    #endif
#endif

Delete(CustDLLDel)
Delete(Leftovers)

#if(switch73)
    ExitReboot()
#endif
Exit()
End()

;********************************************************************
; Subproc to be executed before taking over as the Windows shell
;********************************************************************

[SubProc]
Return()

;********************************************************************
; Copy sections
;********************************************************************

[SICopy]
CopyMain.BaseFiles,    "Norton Sysinfo Base Files - %ldK",           0, Y, N, Y
CopySub.symevnt,       " "
CopySub.nushared,      " "
CopySub.sysshared,     " "
CopySub.winbase,       " "
CopySub.sysinfow,      " "

CopyMain.DoNotRemove,  "Dummy Entry - Don't remove",                   0, N, N, N
CopySub.xxx,           "Bogus Field"
CopySub.yyy,           "Bogus Field"


[SICopy:TypeSelect]
count = 2
caption = "Norton System Information Setup Type"
text = "Please select the type of install you want to perform."
grouptext = "Install Types"
button1 = "&Complete Install"
button2 = "C&ustom Install"
descrip1 = "Installs all of the DOS and Windows Norton Utilities for Windows 95.  This will require xx.x MB of disk space."
descrip2 = "Lets you choose which Norton Utilities modules to install.  If you need more options later, you can run install again."

[SICopy:Primary]
caption = "Norton System Information Main Selection"
button1 = "Select..."
button2 = "Select..."
button3 = "Select..."
button4 = "Select..."
button5 = "Select..."
selsizetext = "Total size of selected components:"
text = App1Text

[SICopy:Component]
caption = "Norton System Information Component Selection"
text    = "Select/Deselect the components you want to install.  Checked items will be installed."

[SICopy:CopyDialog]
caption = "Copying Norton System Information Files..."
posx = -10
posy = -10

[SICopy:Advo]
posx = 20
posy = 20
location = siwsi.dll
count = 1
BitmapsOnly=1

[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 Utilities for Windows 95!"

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

[groups]
"Norton System Information", sysinfo.grp

; itemname,                filename,       link,   icon   file    icon name,  icon  params,  startdir
;                                                  index, loc,                loc,

[Norton System Information]
"System Information",      si32.exe,       sysinfow,  0,  TARGET
"Uninstall Sysinfo",       setup.exe,      basefiles, 0,  TARGET, , , "/U"

;********************************************************************
; Dialog text
;********************************************************************

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

[ReinsertMsg]
caption  =  "Norton System Information Setup"
"Please reinsert the Norton System Information Setup Disk 1"

[Cancel]
caption = "Norton System Information Setup Wizard"
text    = "Are you sure you want to exit?"

[CancelShell]
caption = "Norton System Information Setup Wizard"
"You have selected to exit Setup. In order "
"to reset the Windows environment, Setup "
"will need to restart your computer."
"Are you sure you want to exit?"

;********************************************************************
; File backups
;********************************************************************

[SaveSysIni]
system.ini, system.si, WINDOWS, WINDOWS

[SaveAutoexec]
c:\autoexec.bat, c:\autoexec.si

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

[CustDLLCopy]
siwsi.dll, siwsi.dll, SOURCE, TEMPDIR
siwpipl.exe, siwpipl.exe, SOURCE, TEMPDIR
pipeline.dll, pipeline.dll, SOURCE, TEMPDIR
pipeline.ini, pipeline.ini, SOURCE, TEMPDIR
mailbusi.ctl, mailbusi.ctl, SOURCE, TEMPDIR

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

[BackupSymantec]
symantec.cnt, symantec.cnt, TARGET2, TARGET3

[InfodeskTemp]
infodesk.dll, infodesk.dll, SOURCE, TEMPDIR

[SymevntTemp]
symevnt.386, symevnt.386, SOURCE, TEMPDIR

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

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

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

[PIPELINEFILES]
siwpipl.exe,  siwpipl.exe,  SOURCE, TARGET
mailbusi.ctl, mailbusi.ctl, SOURCE, TARGET
pipeline.ini, pipeline.ini, SOURCE, TARGET
pipeline.dll, pipeline.dll, SOURCE, TARGET

;********************************************************************
; File deletes
;********************************************************************

[CustDLLDel]
siwsi.dll,     WINDOWS
siwsi.dll,     TEMPDIR
siwisl.dll,    WINDOWS
siwisl16.dll,  WINDOWS
version.dll,   TARGET

[Leftovers]
siwsi.dll,     WINDOWS
siwsi.dll,     TEMPDIR
win.siw,       WINDOWS
system.siw,    WINDOWS
setup.exe,     SYSTEM

[SymevntTempDel]
symevnt.386, TEMPDIR

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

[ShowTargets]
dll = siwsi.dll
function = ShowTargets

[CheckVersion]
dll = siwsi.dll
function = WinVersionCheck
Major = 4
Minor = 0
Build = 450

[SymEventExists]
dll = siwsi.dll
function = RegKeyExists
hive = SIWHKEY_LOCAL_MACHINE
subkey = "System\CurrentControlSet\Services\VxD\SYMEVNT"

[RenameSymEventVXD]
dll = siwsi.dll
function = RenameRegValue
hive = SIWHKEY_LOCAL_MACHINE
subkey = "System\CurrentControlSet\Services\VxD\SYMEVNT"
currentvalue = StaticVxD
newvalue = NStaticVxD

[RenameSymEventVXDBack]
dll = siwsi.dll
function = RenameRegValue
hive = SIWHKEY_LOCAL_MACHINE
subkey = "System\CurrentControlSet\Services\VxD\SYMEVNT"
currentvalue = NStaticVxD
newvalue = StaticVxD

[NukeOldSymReg]
dll = siwsi.dll
function = NukeOldSymEventRegEntries

[AlreadyInstalled]
dll = siwsi.dll
function = AlreadyInstalled

[DebugStub]
dll = siwsi.dll
function = DebugStub

[Warning]
dll = siwsi.dll
function = WarningDialog

[Register]
dll = siwsi.dll
function = RegisterDialog

[CompressedDrive]
dll = siwsi.dll
function = CompressedDialog

[FindSymevntDll]
dll = siwsi.dll
function = FindSymevnt

[NukeSymevntDll]
dll = siwsi.dll
function = NukeSymevnt

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

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

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

[FindSharedComponents]
dll = siwsi.dll
function = FindSharedComponents

[UpdateInstFlag]
dll = siwsi.dll
function = UpdateInstalledFlag

[UsageCounts]
dll = siwsi.dll
function = IncrementUsageCounts
section = SharedComponents

[OnRampUsage]
dll = siwsi.dll
function = IncrementBinaryUsageCounts
section = OnRampSharedComponents

[GetShort]
dll = siwsi.dll
function = ConvertToShortName

[GetShortTarget]
dll = siwsi.dll
function = ConvertToShortName
source = 0
dest = 6

[GetShortExt]
dll = siwsi.dll
function = ConvertToShortName
source = 2
dest = 7

[GetShortShared]
dll = siwsi.dll
function = ConvertToShortName
source = 3
dest = 8

[CheckWinSpace]
dll = siwsi.dll
function = WindowsDriveSpace

[Memory]
dll = siwsi.dll
function = InitMemory

[ExitHookProc]
dll = siwsi.dll
function = ReleaseDLL

[FloppyInDrive]
dll = siwsi.dll
function = IsFloppyInDrive

[SymevntAsNew]
dll = siwsi.dll
function = IsFileAsNew
file = SYMEVNT.386

[IsMMVersion]
dll = siwsi.dll
function = NUIsCDInstall

[BackupTarget4]
dll = siwsi.dll
function = BackupTarget4

[RestoreTarget4]
dll = siwsi.dll
function = RestoreTarget4

[GetMediaPath]
dll = siwsi.dll
function = NUGetMediaPath

[IncrementSysfiles]
dll = siwsi.dll
function = IncrementBinaryUsageCounts
section = SystemSharedComponents

[ProcessRegEntries]
dll = siwsi.dll
function = ProcessRegEntries
file = si20.reg
location = TARGET

[IsDisketteInstall]
dll = siwsi.dll
function = IsDisketteInstall

[UpdateSequenceNum]
dll = siwsi.dll
function = OnRampSetSequence
sequence = 19961104


;********************************************************************
; Text file mods
;********************************************************************

;********************************************************************
; ini file modifications
;********************************************************************

;********************************************************************
; Registration entries
;********************************************************************

;********************************************************************
; Misc install sections
;********************************************************************

[UpdateHelpIndex]
"winhelp.exe -g %s\infodesk.hlp", TARGET5

[SymevntFind]
symevnt.386, SYSTEM
symevnt1.dll, SYSTEM

[SymevntFind]
symevnt.386, SYSTEM

[Symevnt16Find]
symevnt1.dll, SYSTEM

[Symevnt32Find]
s32evnt1.dll, SYSTEM

[FindSymantec]
symantec.cnt,   TARGET3

[SymevntSource1]
symevnt.38_, SOURCE

[SymevntSource2]
symevnt.386, SOURCE

[SETUPFILES]
Setup.exe, WINDOWS
Setup.exe, SYSTEM

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

[SetSymUtil32]
s32utile.dll, TARGET3

[SharedComponents]
Component = s32fate.dll
Component = s32guie.dll
Component = s32krnle.dll
Component = s32maile.dll
Component = s32mthke.dll
Component = s32npte.dll
Component = s32stat.dll
Component = s32utile.dll
Component = symgloss.hlp
Component = symkrnle.dll
Component = symkrnle.vxd
Component = tkke16e.dll
Component = tkke32e.dll
Component = s32evnt1.dll
Component = symevnt.386
Component = symevnt1.dll

[OnRampSharedComponents]
Component = s32live1.dll, TARGET11
Component = s32luhf1.dll, TARGET11
Component = s32luhm1.dll, TARGET11
Component = s32luis1.dll, TARGET11
Component = s32luuz1.dll, TARGET11

[SystemSharedComponents]

[SystunerSharedComponents]

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

[SetLiveUpdateDir]
reset = TARGET11
location = %s\LiveUpdate, TARGET3

[CreateLiveUpdateDir]
%s, TARGET11

[CreateExtDir]
%s, TARGET2

[CreateSharedDir]
%s, TARGET3

[CreateTargetDir]
%s, TARGET

[WindowsVersion]
3.95
"Norton System Information requires"
"Windows 95 in order to install."

[Registration]
dll = s32utile.dll
string = "Symantec Install for Windows"
active = no
serialize = 0

;********************************************************************
; Wizard panels
;********************************************************************

[WrongVersion]
Caption="Norton System Information Setup Wizard"
Title="Incorrect Version"
DlgProc=_PanelDlgProc@16
ResourceId=102
Bitmap16=600
PanelDataProc=_DefaultDataProc@0
PanelFlags=First+Last

[NoWinSpace]
Caption="Norton System Information Setup Wizard"
Title="Low Disk Space"
DlgProc=_PanelDlgProc@16
ResourceId=108
Bitmap16=600
PanelDataProc=_DefaultDataProc@0
PanelFlags=First+Last

[Welcome]
Caption="Norton System Information Setup Wizard"
Title="Norton System Information"
DlgProc=_WelcomeDlgProc@16
ResourceId=501
Bitmap16=600
PanelDataProc=_WelcomeDataProc@0
PanelFlags=First

[SpecifyLocation]
Caption="Norton System Information Setup Wizard"
Title="Program Location"
DlgProc=PanelDlgProc
ResourceId=118
Bitmap16=600
PanelDataProc=_DefaultDataProc@0

[NoDiskSpace]
Caption="Norton System Information Setup Wizard"
Title="Low Disk Space"
DlgProc=PanelDlgProc
ResourceId=106
Bitmap16=600
PanelDataProc=_DefaultDataProc@0

[CopyFiles]
Caption="Norton System Information Setup Wizard"
Title="Setup Review"
DlgProc=PanelDlgProc
ResourceId=128
Bitmap16=600
PanelDataProc=_DefaultDataProc@0

[Finished]
Caption="Norton System Information Setup Wizard"
Title="Setup Complete"
DlgProc=PanelDlgProc
ResourceId=130
Bitmap16=600
PanelDataProc=_DefaultDataProc@0
PanelFlags=First+Last+Finish

[FloppyDialogFinish]
Caption="Norton System Information Setup Wizard"
Title="Remove Floppy Diskette"
DlgProc=PanelDlgProc
ResourceId=109
Bitmap16=600
PanelDataProc=_DefaultDataProc@0
PanelFlags=First

[License]
Caption="Online License Agreement"
DlgProc=_LicenseDlgProc@16
ResourceId=502
PanelDataProc=_LicenseDataProc@0

[TechSupport]
Caption="Norton System Information Setup Wizard"
Title="Symantec Support Solutions"
DlgProc=_TechSupDlgProc@16
ResourceId=507
Bitmap16=624
PanelFlags=First

[ReachUs]
Caption="Norton System Information Setup Wizard"
Title="How to Reach Us"
DlgProc=_ReachDlgProc@16
ResourceId=513
Bitmap16=622

[CrossMarket]
Caption="Norton System Information Setup Wizard"
Title="Windows 95 Solutions"
DlgProc=_CrossSellDlgProc@16
PanelDataProc=_CrossSellDataProc@0
ResourceId=512
Bitmap16=621

; Begin pipeline stuff

[RegisterNow]
caption = "Norton System Information Setup Wizard"
Title="Register Now"
DlgProc=_RegNowDlgProc@16
PanelDataProc=_RegNowDataProc@0
ResourceId=504
Bitmap16=623
PanelFlags=Skip

[OnlineRegistration]
caption = "Norton System Information Setup Wizard"
DlgProc=_UsaRegDlgProc@16
PanelDataProc=_UsaRegDataProc@0
ResourceId=505
PanelFlags=Skip

[OnlineMarketing]
caption = "Norton System Information Setup Wizard"
DlgProc=_MarketingDlgProc@16
PanelDataProc=_MarketingDataProc@0
ResourceId=506
PanelFlags=Skip

[SendRegistration]
caption = "Norton System Information Setup Wizard"
DlgProc=_SendRegDlgProc@16
PanelDataProc=_SendRegDataProc@0
ResourceId=514
Bitmap16=623
Flags=Skip

