;**************************************************************************
;* nadmin 3.5 Install Script                                              *
;**************************************************************************

[process]
; switch69 is true for install, false for uninstall
switch69 = TRUE
backup.nadmindll
Bitmaps.pix
nnucopy = SetActiveCopy

; load Symnet
CallProc.LoadSymnet

switch01 = IsRegistered
#ifnot switch01
  Registration
#endif

; switch91 = Automatic Installation
; switch92 = Custom Installation
SelectInstallType
#if switch92
  PrimarySelect
#endif

; get directories for console/agents/databases
CallProc.NetTargetDrive

; if the database files are to be copied...
switch42 = IsOptionSelected.data
#if switch42
; if overwriting files, ask user
; if no existing files are found, overwrite
CallProc.VerifyAnyOverwrite
#if switch10
CallProc.RemoveTTSFlags
; create a license
CallProc.naLicenseCreator
#endif
; toggle switch10 for copying files
not.switch10

#endif
; if the database files are to be copied...

; copy files
copy

; create batch builder ini file
;UpdateIni.BBIniFile
; copy to /agents directory
;backup.backupBBIniFile

; see if user wants to modify the system login script
; non netware environments will skip this
;
; switch30 = Include Inventory Agent
; switch31 = Include Distribution Agent
; switch32 = Include Metering Agent
;
; switch15 = TRUE or FALSE depending upon OK or CANCEL
CallProc.FindLoginScript

; callproc here to backup and remove flags for login script
; assumes file is in szExtStr1 (in CallProc.NetTargetDrive)
#if switch15

;change TARGET2 to UNC
CallProc.BackupTarget2
CallProc.ChangeToUNC

;CallProc.RemoveOldLoginScriptInfo
CallProc.SetLoginScriptRW
ModifyTextFile.LoginScript
CallProc.SetLoginScriptRO

; restore TARGET2 from UNC
CallProc.RestoreTarget2

#endif

; free Symnet
CallProc.FreeSymnet

; let hammer initialize itself
; (now called in custom dll)
Launch.LaunchHammer
;CallProc.InitHammer

; setup windows groups
groups

;delete cust.dll
delete.FilesToDelete

switch20 = IsInstallShell
#if switch20
  End.ByeShell
#else
  End.ByeNoReboot
#endif

end

;**************************************************************************
;* Disks                                                                  *
;**************************************************************************

[InstallVersion]
3.1

[FilesToDelete]
siwcust.dll, WINDOWS
nadmin.ini,  WINDOWS
symkrnl0.dll, WINDOWS
symdb0.dll,   WINDOWS
symnet0.dll,  WINDOWS
symnw30.dll,  WINDOWS
symbv40.dll,  WINDOWS
symlm20.dll,  WINDOWS
symls.dll,    WINDOWS
nautil.dll,   WINDOWS
symgui0.dll,  WINDOWS

[BBIniFile]
;IniName                   = "%s\ebw.ini", TARGET2
;IniName                   = ebw.ini
;SectionName               = Extensions
;"Norton Basic Constant"   = "%s\symconst.ebl", TARGET2

[backupBBIniFile]
;ebw.ini, ebw.ini, WINDOWS, TARGET2

[LaunchHammer]
"%s\nadmin.exe /VIRGIN", TARGET

;**************************************************************************
;* Copy                                                                   *
;**************************************************************************
[nnucopy]
copymain.basefiles,     "Norton Administrator for Networks - 422K",     422, Y, N, Y

copymain.console,       "&Console Utilities - 3,356K",                  1932, N, Y, Y
copysub.bbconsole,      "ScriptMaker - 1,037K",                           1037
copysub.helpconsole,    "Help Data Files - 16K",                        16
copysub.viewersconsole, "Norton File Viewers - 371K",                   371

copymain.agent,         "&Agents - 2,439K",                             1412, N, Y, Y
copysub.nmetagent,      "Metering Agent - 215K",                        215
copysub.ninvagent,      "Inventory Agent - 386K",                       386
copysub.ndisagent,      "Distribution Agent - 426K",                    426

copymain.data,          "&Database Files - 1,358K ",                    8, N, Y, Y
copysub.appdata,        "Application Database - 1,350K",                1350
copysub.sampledata,     "Sample Data Files - 0K",                       0

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

[groups]
;"Norton Administrator for Networks",        nadmin.grp
"Norton Administrator",        nadmin.grp

;[Norton Administrator for Networks]
[Norton Administrator]
"Norton Administrator",                      nadmin.exe,        Console,,TARGET
"ScriptMaker",                               smedit.exe,        bbConsole,,TARGET
;"Norton Distribution",                      nadistw.exe,       Agent,,TARGET2
;"Norton Metering",                          nanodew.exe,       Agent,,TARGET2
"Remove Norton Administrator",               "install.exe /u",  Console,,TARGET

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

[nnucopy:TypeSelect]
count       = 2
caption     = "Norton Administrator for Networks - Installation Type"
text        = "Please select the installation type you prefer."
grouptext   = "Install Types"
button1     = "&Automatic Installation"
button2     = "&Custom Installation"
descrip1    = "Installs the entire Norton Administrator for Networks package with all Tools and Utilities."
descrip2    = "Lets you choose which modules to install now.  If you need to add more options later, you can re-install."

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

[primarytext]
"Use the 'Files...' button to deselect console, agent, or database files."

[nnucopy:Component]
caption = "Norton Administrator for Networks - Component Selection"
text = "Please choose the components you wish to install.  Highlighted items are selected."
Cancel = "Cancel"

[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."


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

[ByeShell]
caption = "Installation Complete"
"This concludes the installation of"
"Norton Administrator for Networks."
" "
"Please review the README.TXT file for any last"
"minute additions and/or corrections to the documentation."
" "
"Select one of the exit options."
" "

[ByeNoReboot]
caption = "Installation Complete"
"This concludes the installation of "
"Norton Administrator for Networks."
" "
"Please review the README.TXT file for any last"
"minute additions and/or corrections to the documentation."
" "
"Select one of the exit options."
" "

[TargetBrowse]
caption = "Browse Directories"
DefaultDir = C:\

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

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

[MessageText]
""
""
"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 Administrator for Networks!"

[cancel]
caption = "Norton Administrator for Networks"
text    = "Are you sure you want to exit?"

[cancelshell]
caption = "Norton Administrator for Networks"
text    = "When you Cancel Install, Windows will exit to the DOS prompt so that the Windows environment can be reset.\n\nAre you sure you want to exit?"


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

[nadmindll]
siwcust.dll, siwcust.dll, SOURCE, WINDOWS
symkrnl0.dll, symkrnl0.dll, SOURCE, WINDOWS
symdb0.dll,   symdb0.dll,   SOURCE, WINDOWS
symnet0.dll,  symnet0.dll,  SOURCE, WINDOWS
symnw30.dll,  symnw30.dll,  SOURCE, WINDOWS
symbv40.dll,  symbv40.dll,  SOURCE, WINDOWS
symlm20.dll,  symlm20.dll,  SOURCE, WINDOWS
symutil0.dll, symutil0.dll, SOURCE, WINDOWS
symls.dll,    symls.dll,    SOURCE, WINDOWS
nautil.dll,   nautil.dll,   SOURCE, WINDOWS
symgui0.dll,  symgui0.dll,  SOURCE, WINDOWS

[pix]
color = %s\hammer.bmp

; custom dll functions
[NetTargetDrive]
dll = siwcust.dll
function = NetTargetCustomize

[NetWriteInstallData]
dll = siwcust.dll
function = NetWriteInstallData

[VerifyAnyOverwrite]
dll = siwcust.dll
function = VerifyAnyOverwrite

[RemoveTTSFlags]
dll = siwcust.dll
function = RemoveTTSFlags

[SetLoginScriptRW]
dll = siwcust.dll
function = SetLoginScriptRW

[SetLoginScriptRO]
dll = siwcust.dll
function = SetLoginScriptRO

[RemoveOldLoginScriptInfo]
dll = siwcust.dll
function = RemoveOldLoginScriptInfo

[FindLoginScript]
dll = siwcust.dll
function = FindLoginScript

[ChangeToUNC]
dll = siwcust.dll
function = ChangeToUNC

[BackupTarget2]
dll = siwcust.dll
function = BackupTarget2

[RestoreTarget2]
dll = siwcust.dll
function = RestoreTarget2

[naLicenseCreator]
dll = siwcust.dll
function = naLicenseCreator

[InitHammer]
dll = siwcust.dll
function = InitHammer

[StartInitializing]
dll = siwcust.dll
function = StartInitializing

[EndInitializing]
dll = siwcust.dll
function = EndInitializing

[LoadSymnet]
dll = siwcust.dll
function = LoadSymnet

[FreeSymnet]
dll = siwcust.dll
function = FreeSymnet

[ExitHookProc]
dll = siwcust.dll
function = ExitHookProc



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

[Registration]
caption =  "Norton Administrator for Networks -- Registration"
text1   =  "Please register your name and company before continuing:"
text2   =  "&Name:"
text3   =  "&Company:"
Cancel  =  "Cancel"
Help    =  "&Help"
appname =  nconapi.dll
appname2= smedit.exe
string  =  "Symantec Install for Windows"
active  =  yes
serialize = 1
dll       = siwcust.dll
function  = ElValidateoDaLaSerial

;**************************************************************************
;* Login Script modifications                                             *
;**************************************************************************
[LoginScript]
caption    = "Modify Login Script File"
text1      = "The following line(s) need to be added to your Login Script file:"
FileSpec   =
FileType   = text
Rem1       = "Rem"
Rem2       = "Remark"
Rem3       = "*"
Rem4       = ";"
FindRems   = 1

EditError1 = "A problem was encountered preparing the new Login Script (NET$LOG.DAT)."
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 Login Script file later"
RemItems   = LoginRemItems
DelItems   = LoginDelItems
AddItems   = LoginAddItems

[LoginRemItems]

[LoginDelItems]
*NORTON_ADMINISTRATOR*
*nainv.exe*
*nadist.exe*

[LoginAddItems]
"Rem Norton_Administrator_For_Networks"                           , APPEND
"#|s\nainv.exe",             TARGET2                   , switch30  , APPEND
"#|s\nadist.exe",            TARGET2                   , switch31  , APPEND

;**************************************************************************
;* Set Shell section                                                      *
;**************************************************************************

[SetShell]
AppIniName = hammer.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

; for safety, always let install take over as the shell
[LoadedList]
ctl3d
commdlg
ver
toolhelp
nadist
nadistw
nainv
nameter
nameterw
nanode
nanodew
symkrnl0
symdb0
symutil0
symgui0
symls
nautil

[SetShellMessage]
caption = "Norton Administrator for Networks -- Install"
"Welcome to the Norton Administrator for"
"Networks installation program."
"Please press OK to allow Install"
"to restart Windows and continue"
"the installation.  Press Cancel to exit."


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

[Disks]
1=A:\, "Norton Administrator for Networks, Program Disk #1"
2=A:\, "Norton Administrator for Networks, Program Disk #2"

[NNUCOPY.disk1]
APPLICAT.DAT,		     "Application Database File", 		Link:APPDATA, TARGET3 , SWITCH10 
NAINV.EXE,		     "DOS LAN Inventory Agent", 		Link:NINVAGENT, TARGET2 
NADIST.EXE,		     "DOS Software Distribution Agent", 		Link:NDISAGENT, TARGET2 
INSTBIN.EXE,		     "Symantec Installer", 		Link:BASEFILES, TARGET 
SMD.EXE,		     "Automator for DOS Module", 		Link:BBCONSOLE, TARGET2 
SMD.EXE,		     "Automator for DOS Module", 		Link:BBCONSOLE, TARGET 
NCONAPI.DLL,		     "Norton Console DLL", 		Link:CONSOLE, TARGET 
SYMGUI0.DLL,		     "Norton Graphical User Interface", 		Link:AGENT, TARGET 
SYMGUI0.DLL,		     "Norton Graphical User Interface", 		Link:AGENT, TARGET2 
SYMKRNL0.DLL,		     "Symantec Kernel DLL", 		Link:AGENT, TARGET 
SYMKRNL0.DLL,		     "Symantec Kernel DLL", 		Link:AGENT, TARGET2 
COMMDLG.DLL,		     "Windows 3.1 Shareable DLL", 		Link:AGENT, SYSTEM , VersionCheck
COMMDLG.DLL,		     "Windows 3.1 Shareable DLL", 		Link:AGENT, TARGET2 , VersionCheck
SIWDLL.DLL,		     "Symantec Install DLL", 		Link:BASEFILES, TARGET 
SYMDB0.DLL,		     "Database Engine", 		Link:AGENT, TARGET 
SYMDB0.DLL,		     "Database Engine", 		Link:AGENT, TARGET2 
INSTALL.EXE,		     "Symantec Installer", 		Link:BASEFILES, TARGET 
SYMUTIL0.DLL,		     "Norton Misc Utilities", 		Link:AGENT, TARGET 
SYMUTIL0.DLL,		     "Norton Misc Utilities", 		Link:AGENT, TARGET2 
SIWCUST.DLL,		     "Symantec Install DLL", 		Link:BASEFILES, TARGET 
INSTALL.INF,		     "Symantec Install Script", 		Link:BASEFILES, TARGET 
SHELL.DLL,		     "Windows Shell DLL", 		Link:AGENT, TARGET2 , VersionCheck
NAUTIL.DLL,		     "Norton Admin Utility Library", 		Link:CONSOLE, TARGET2 
NAUTIL.DLL,		     "Norton Admin Utility Library", 		Link:CONSOLE, TARGET 
SYMNET0.DLL,		     "Norton Network DLL", 		Link:AGENT, TARGET 
SYMNET0.DLL,		     "Norton Network DLL", 		Link:AGENT, TARGET2 
SIWZIP.DLL,		     "Symantec Install DLL", 		Link:BASEFILES, TARGET 
SIW3ZIP.DLL,		     "Symantec Install DLL", 		Link:BASEFILES, TARGET 
NLPR.DLL,		     "Printing Engine", 		Link:CONSOLE, TARGET 
SYMLS.DLL,		     "Licensing Server API", 		Link:AGENT, TARGET 
SYMLS.DLL,		     "Licensing Server API", 		Link:AGENT, TARGET2 
SYMNW30.DLL,		     "Norton NetWare Network DLL", 		Link:AGENT, TARGET 
SYMNW30.DLL,		     "Norton NetWare Network DLL", 		Link:AGENT, TARGET2 
LZEXPAND.DLL,		     "Windows 3.1 Shareable DLL", 		Link:BASEFILES, SYSTEM , VersionCheck
CTL3D.DLL,		     "3D Control Effects", 		Link:AGENT, SYSTEM , VersionCheck
CTL3D.DLL,		     "3D Control Effects", 		Link:AGENT, TARGET , VersionCheck
CTL3D.DLL,		     "3D Control Effects", 		Link:AGENT, TARGET2 , VersionCheck
VER.DLL,		     "Windows 3.1 Shareable DLL", 		Link:BASEFILES, SYSTEM , VersionCheck
SYMLM20.DLL,		     "Norton LanManager Network DLL", 		Link:AGENT, TARGET 
SYMLM20.DLL,		     "Norton LanManager Network DLL", 		Link:AGENT, TARGET2 
SYMBV40.DLL,		     "Norton Vines Network DLL", 		Link:AGENT, TARGET 
SYMBV40.DLL,		     "Norton Vines Network DLL", 		Link:AGENT, TARGET2 
UNINSTAL.INF,		     "Symantec Install Script", 		Link:BASEFILES, TARGET 
README.TXT,		     "Readme File", 		Link:CONSOLE, TARGET 
TSRLOAD.BAT,		     "Norton Login Script Batch File", 		Link:AGENT, TARGET2 
NAKEY.EXE,		     "Norton Keyboard Disable Utility", 		Link:AGENT, TARGET2 

[NNUCOPY.disk2]
NINV.HLP,		     "Help File", 		Link:HELPCONSOLE, TARGET 
SYMCHRT0.DLL,		     "Charting Engine", 		Link:CONSOLE, TARGET 
NAMETER.EXE,		     "DOS Metering Agent", 		Link:NMETAGENT, TARGET2 
SMEDIT.EXE,		     "Automator", 		Link:BBCONSOLE, TARGET 
DIINV.DLL,		     "Data Interface Layer for Inventory", 		Link:CONSOLE, TARGET 
SYMRUN0.DLL,		     "Automator Run Module", 		Link:BBCONSOLE, TARGET2 
SYMRUN0.DLL,		     "Automator Run Module", 		Link:BBCONSOLE, TARGET 
SYMCOM0.DLL,		     "Automator Compiler Module", 		Link:AGENT, TARGET 
SYMCOM0.DLL,		     "Automator Compiler Module", 		Link:AGENT, TARGET2 
NFD.NNL,		     "Software Distribution Library", 		Link:CONSOLE, TARGET 
NMET.NNL,		     "Metering Network Library", 		Link:CONSOLE, TARGET 
DE.EXE,		     "Automator Dialog Editor", 		Link:BBCONSOLE, TARGET 
NWNETAPI.DLL,		     "NetWare DLL", 		Link:AGENT, TARGET 
NWNETAPI.DLL,		     "NetWare DLL", 		Link:AGENT, TARGET2 
NINV.NNL,		     "LAN Inventory Network Library", 		Link:CONSOLE, TARGET 
SYMDOC.PRS,		     "Symantec Text Viewer", 		Link:VIEWERSCONSOLE, TARGET 
SYMTXT.DSP,		     "Symantec Text Viewer", 		Link:VIEWERSCONSOLE, TARGET 
DESKEDIT.EBH,		     "Automator Editor Help File", 		Link:BBCONSOLE, TARGET2 
DESKEDIT.EBH,		     "Automator Editor Help File", 		Link:BBCONSOLE, TARGET 
DESKEDIT.EBH,		     "Automator Editor Help File", 		Link:BBCONSOLE, TARGET 
SYMVWR.DLL,		     "Symantec Viewer DLL", 		Link:CONSOLE, TARGET 
RECDLL0.DLL,		     "Recording Module for Automator", 		Link:BBCONSOLE, TARGET2 
RECDLL0.DLL,		     "Recording Module for Automator", 		Link:BBCONSOLE, TARGET 
NPACK22.EXE,		     "Compression Engine", 		Link:CONSOLE, TARGET 
SYMPROG.PRS,		     "Symantec Program Viewer", 		Link:VIEWERSCONSOLE, TARGET 
SOFTINV.DLL,		     "Software Inventory DLL", 		Link:CONSOLE, TARGET 
DISTLIB.DLL,		     "Norton Distribution Library", 		Link:AGENT, TARGET 
DISTLIB.DLL,		     "Norton Distribution Library", 		Link:AGENT, TARGET2 
NDQ.DLL,		     "Norton Distribution Queue API", 		Link:AGENT, TARGET 
NDQ.DLL,		     "Norton Distribution Queue API", 		Link:AGENT, TARGET2 
SYMHXD.DSP,		     "Symantec Hex Viewer", 		Link:VIEWERSCONSOLE, TARGET 
SYMUNAS0.DLL,		     "Automator Un-Assembler Module", 		Link:BBCONSOLE, TARGET2 
SYMUNAS0.DLL,		     "Automator Un-Assembler Module", 		Link:BBCONSOLE, TARGET 
VLISTBOX.DLL,		     "Virtual Listbox DLL", 		Link:CONSOLE, TARGET 
NAFILTER.DLL,		     "Query Engine", 		Link:CONSOLE, TARGET 
EXPORT.DLL,		     "Database Conversion DLL", 		Link:CONSOLE, TARGET 
TOOLHELP.DLL,		     "Windows 3.1 Shareable DLL", 		Link:BASEFILES, SYSTEM , VersionCheck
NAMETERW.EXE,		     "Windows Metering Agent", 		Link:NMETAGENT, TARGET2 
NADISTW.EXE,		     "Windows Software Distribution Agent", 		Link:NDISAGENT, TARGET2 
NANODEW.EXE,		     "Windows Metering Agent", 		Link:NMETAGENT, TARGET2 
NADMIN.HLP,		     "Help File", 		Link:HELPCONSOLE, TARGET 
NMET.HLP,		     "Help File", 		Link:HELPCONSOLE, TARGET 
NFD.HLP,		     "Help File", 		Link:HELPCONSOLE, TARGET 
SYMPUB0.DLL,		     "Automator Public Symbols Module", 		Link:AGENT, TARGET 
SYMPUB0.DLL,		     "Automator Public Symbols Module", 		Link:AGENT, TARGET2 
SYMHEX.PRS,		     "Symantec Hex Viewer", 		Link:VIEWERSCONSOLE, TARGET 
DBDATA.DLL,		     "Database Caching Engine", 		Link:CONSOLE, TARGET 
NANODE.EXE,		     "TSR Metering Agent", 		Link:NMETAGENT, TARGET2 
SMW.EXE,		     "Automator for Windows Module", 		Link:BBCONSOLE, TARGET2 
SMW.EXE,		     "Automator for Windows Module", 		Link:BBCONSOLE, TARGET 
STUB.EXE,		     "Automator Stub", 		Link:BBCONSOLE, TARGET 
NADMIN.EXE,		     "Norton Administrator Console", 		Link:CONSOLE, TARGET 
NEDIT.NNL,		     "Network Editor Library", 		Link:CONSOLE, TARGET 
NAV.NNL,		     "NAV Library", 		Link:CONSOLE, TARGET 
PCA.NNL,		     "PCA Library", 		Link:CONSOLE, TARGET 
SYMCNST0.SML,		     "Automator Constants File", 		Link:BBCONSOLE, TARGET2 
SYMCNST0.SML,		     "Automator Constants File", 		Link:BBCONSOLE, TARGET 
NADMIN.INV,		     "Inventory Database File", 		Link:DATA, TARGET3 , SWITCH10 
NADMIN.DST,		     "Software Distribution Database File", 		Link:DATA, TARGET3 , SWITCH10 
LICENSE.LOG,		     "License Log File", 		Link:APPDATA, TARGET3 , SWITCH10 
SYMCFG.INI,		     "Symantec Viewer INI", 		Link:CONSOLE, TARGET 
SYMCNST0.SMH,		     "Automator Constants Help File", 		Link:AGENT, TARGET2 
SYMCONST.EBH,		     "Automator Constants Help File", 		Link:BBCONSOLE, TARGET 
