;**************************************************************************
;* 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
;ebw.ini,    WINDOWS
symkrnl.dll, WINDOWS
symdb.dll,   WINDOWS
symnet.dll,  WINDOWS
symnw3.dll,  WINDOWS
symbv4.dll,  WINDOWS
symlm2.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

[disks]
; HIGH DENSITY
1=A:\, "Norton Administrator for Networks, Program Disk #1"
2=A:\, "Norton Administrator for Networks, Program Disk #2"

;**************************************************************************
;* 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,      "Automator - 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,      "Distibution 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

[nnucopy.disk1]
; Install files
install.exe,  "Symantec Installer",                 link:basefiles
instbin.exe,  "Symantec Installer",                 link:basefiles
siwdll.dll,   "Symantec Install DLL",               link:basefiles
siwcust.dll,  "Symantec Install DLL",               link:basefiles
install.inf,  "Symantec Install Script",            link:basefiles
uninstal.inf, "Symantec Install Script",            link:basefiles

; SYSTEM files
commdlg.dll,  "Windows 3.1 Shareable DLL",          link:basefiles, SYSTEM, VersionCheck
ctl3d.dll,    "3D Control Effects",                 link:basefiles, SYSTEM, VersionCheck
toolhelp.dll, "Windows 3.1 Shareable DLL",          link:basefiles, SYSTEM, VersionCheck
ver.dll,      "Windows 3.1 Shareable DLL",          link:basefiles, SYSTEM, VersionCheck

; Common files for CONSOLE
distlib.dll,  "Norton Distribution Library",        link:console, TARGET
hamutil.dll,  "Norton Admin Utility Library",       link:console, TARGET
symls.dll,    "Licensing Server API",               link:console, TARGET
ndq.dll,      "Norton Distribution Queue API",      link:console, TARGET
nwnetapi.dll, "NetWare DLL",                        link:console, TARGET
symbv4.dll,   "Norton Vines Network DLL",           link:console, TARGET
symdb.dll,    "Database Engine",                    link:console, TARGET
symgui.dll,   "Norton Graphical User Interface",    link:console, TARGET
symkrnl.dll,  "Symnatec Kernel DLL",                link:console, TARGET
symlm2.dll,   "Norton LanManager Network DLL",      link:console, TARGET
symnet.dll,   "Norton Network DLL",                 link:console, TARGET
symnw3.dll,   "Norton NetWare Network DLL",         link:console, TARGET
symutil.dll,  "Norton Misc Utilities",              link:console, TARGET
readme.txt,   "Readme File",                        link:console, TARGET
ctl3d.dll,    "3D Control Effects",                 link:console, TARGET, VersionCheck
nav.nnl,      "NAV Library",                        link:console, TARGET
pca.nnl,      "PCA Library",                        link:console, TARGET

; Common files for AGENT
distlib.dll,  "Norton Distribution Library",        link:agent, TARGET2
hamutil.dll,  "Norton Admin Utility Library",       link:agent, TARGET2
symls.dll,    "Licensing Server API",               link:agent, TARGET2
ndq.dll,      "Norton Distribution Queue API",      link:agent, TARGET2
nwnetapi.dll, "NetWare DLL",                        link:agent, TARGET2
symbv4.dll,   "Norton Vines Network DLL",           link:agent, TARGET2
symdb.dll,    "Database Engine",                    link:agent, TARGET2
symgui.dll,   "Norton Graphical User Interface",    link:agent, TARGET2
symkrnl.dll,  "Symantec Kernel DLL",                link:agent, TARGET2
symlm2.dll,   "Norton LanManager Network DLL",      link:agent, TARGET2
symnet.dll,   "Norton Network DLL",                 link:agent, TARGET2
symnw3.dll,   "Norton NetWare Network DLL",         link:agent, TARGET2
symutil.dll,  "Norton Misc Utilities",              link:agent, TARGET2
tsrload.bat,  "Norton Login Script Batch File",     link:agent, TARGET2
nakey.exe,    "Norton Keyboard Disable Utility",    link:agent, TARGET2
ctl3d.dll,    "3D Control Effects",                 link:agent, TARGET2, VersionCheck
shell.dll,    "Windows Shell DLL",                  link:agent, TARGET2, VersionCheck
commdlg.dll,  "Windows 3.1 Shareable DLL",          link:agent, TARGET2, VersionCheck


; Embedded Basic Files for Console
deskedit.exe, "Automator",                      link:bbconsole, TARGET
deskedit.ebh, "Automator Help File",            link:bbconsole, TARGET
recdll.dll,   "Recording Module for Automator", link:bbconsole, TARGET
stub.exe,     "Automator Stub",                 link:bbconsole, TARGET
symrun.dll,   "Automator Run Module",           link:bbconsole, TARGET
symunasm.dll, "Automator Un-Assembler Module",  link:bbconsole, TARGET
symconst.ebl, "Automator Constants File",       link:bbconsole, TARGET
symconst.ebh, "Automator Constants Help File",  link:bbconsole, TARGET
deskedit.ebh, "Automator Editor Help File",     link:bbconsole, TARGET
nadist.exe,   "DOS Software Distribution Agent",    link:ndisagent, TARGET2

; Embedded Basic Files for Agent
recdll.dll,   "Recording Module for Automator", link:agent, TARGET2
symrun.dll,   "Automator Run Module",           link:agent, TARGET2
symunasm.dll, "Automator Un-Assembler Module",  link:agent, TARGET2
symconst.ebl, "Automator Constants File",       link:agent, TARGET2
symconst.ebh, "Automator Constants Help File",  link:agent, TARGET2
deskedit.ebh, "Automator Editor Help File",     link:agent, TARGET2

amd.exe,      "Automator for DOS Module",      link:agent, TARGET2
amd.exe,      "Automator for DOS Module",      link:bbconsole, TARGET

[nnucopy.disk2]
amw.exe,      "Automator for Windows Module",  link:agent, TARGET2
amw.exe,      "Automator for Windows Module",  link:bbconsole, TARGET

de.exe,       "Automator Dialog Editor",                      link:bbconsole, TARGET
symcom.dll,   "Automator Compiler Module",      link:bbconsole, TARGET
sympub.dll,   "Automator Public Symbols Module",link:bbconsole, TARGET
sympub.dll,   "Automator Public Symbols Module",link:agent, TARGET2
symcom.dll,   "Automator Compiler Module",      link:agent, TARGET2
nconapi.dll,  "Norton Console DLL",                 link:console, TARGET
dbdata.dll,   "Database Caching Engine",            link:console, TARGET
diinv.dll,    "Data Interface Layer for Inventory", link:console, TARGET
nadmin.exe,   "Norton Administrator Console",       link:console, TARGET
nedit.nnl,    "Network Editor Library",             link:console, TARGET
nfd.nnl,      "Software Distribution Library",      link:console, TARGET
ninv.nnl,     "LAN Inventory Network Library",      link:console, TARGET
nlpr.dll,     "Printing Engine",                    link:console, TARGET
nmet.nnl,     "Metering Network Library",           link:console, TARGET
query.dll,    "Query Engine",                       link:console, TARGET
softinv.dll,  "Software Inventory DLL",             link:console, TARGET
symchart.dll, "Charting Engine",                    link:console, TARGET
export.dll,   "Database Conversion DLL",            link:console, TARGET
symvwr.dll,   "Symantec Viewer DLL",                link:console, TARGET
vlistbox.dll, "Virtual Listbox DLL",                link:console, TARGET

; Console viewer files
symdoc.prs,   "Symantec Text Viewer",               link:viewersconsole, TARGET
symtxt.dsp,   "Symantec Text Viewer",               link:viewersconsole, TARGET
symhex.prs,   "Symantec Hex Viewer",                link:viewersconsole, TARGET
symhxd.dsp,   "Symantec Hex Viewer",                link:viewersconsole, TARGET

; Console help files
nadmin.hlp,   "Help File",                          link:helpconsole, TARGET
ninv.hlp,     "Help File",                          link:helpconsole, TARGET
nmet.hlp,     "Help File",                          link:helpconsole, TARGET
nfd.hlp,      "Help File",                          link:helpconsole, TARGET

; Agents
nadistw.exe,  "Windows Software Distribution Agent",link:ndisagent, TARGET2
nainv.exe,    "DOS LAN Inventory Agent",            link:ninvagent, TARGET2
nameter.exe,  "DOS Metering Agent",                 link:nmetagent, TARGET2
nameterw.exe, "Windows Metering Agent",             link:nmetagent, TARGET2
nanode.exe,   "TSR Metering Agent",                 link:nmetagent, TARGET2
nanodew.exe,  "Windows Metering Agent",             link:nmetagent, TARGET2

; Data
nadmin.dst,   "Software Distribution Database File",link:data,  switch10, TARGET3
nadmin.inv,   "Inventory Database File",            link:data,  switch10, TARGET3
;nadmin.lic,  "Software Metering Database File",    link:data,  switch10, TARGET3
applicat.dat, "Application Database File",          link:appdata,  switch10, TARGET3
license.log,  "License Log File",                   link:appdata,  switch10, TARGET3
npack22.exe,  "Compression Engine",                 link:console, TARGET
    

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

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

;[Norton Administrator for Networks]
[Norton Administrator]
"Norton Administrator",                      nadmin.exe,         Console,,TARGET
"Automator",                                 "deskedit.exe /b",  Console,,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
symkrnl.dll, symkrnl.dll, SOURCE, WINDOWS
symdb.dll,   symdb.dll,   SOURCE, WINDOWS
symnet.dll,  symnet.dll,  SOURCE, WINDOWS
symnw3.dll,  symnw3.dll,  SOURCE, WINDOWS
symbv4.dll,  symbv4.dll,  SOURCE, WINDOWS
symlm2.dll,  symlm2.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

;**************************************************************************
;* 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
string  =  "Symantec Install for Windows"
active  =  no
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
symkrnl
symdb
symutil
symgui

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

