;**************************************************************************
;* Norton Administrator Installation Script                               *
;* (c)1994 - Symantec, Peter Norton Group                                 *
;*                                                                        *
;* for use with the Symantec Install for Windows version 3.3              *
;**************************************************************************

[process]
										; switch69 is true for install, 
										; false for uninstall
switch69 = TRUE

                                        ; move the DLLs we need to the
										; Windows directory.
switch20 = exists(DllExists)

#ifnot(switch20)
   switch40 = backup(nadmindll)

   #ifnot(switch40)
       MessageBox(CopyCustError)
       Delete(FilesToDelete)

       switch41 = IsInstallShell()

       #if(switch41)
           ExitWindows()
       #else
           exit
       #endif
   #endif
#endif

Bitmaps(pix)
SetActiveCopy(nnucopy,install.inf)

										; load DLLs
CallProc(LoadSymnet)

Registration()

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

										; if there was an old ini file, 
										; blast the data line
switch05 = Exists(NadminFileExists)
#if(switch05)
    DelFromIni(NadminIniFile)
#endif
										; get target directories
										; switch72 is false for normal
										; install, true for remote install
switch72 = FALSE
CallProc(NetTargetDrive)

										; check for files we won't be able
										; to overwrite. if this call fails
										; we exit immediately.
CallProc(CheckForOpenFiles)

										; set network files readwrite 
										; (to overwrite existing files)
CallProc(SetAllFilesToReadWrite)

                                        ; check for existing applicat.dat.
										; switch42 will be set if it
										; exists.
CallProc(CheckApplicatDat)


										; copy files
copy()

                                        ; if old applicat.dat existed, 
										; restore it now. rename the new
										; applicat.dat to newapp.dat
#if(switch42)
	CallProc(RenameApplicatDat)	
#endif

										; Set the user registration
SetRegistration(UserReg)

										; update the product description file
										; with the stuff we just installed.
										; make sure this is done before
										; we launch nail.

CallProc(AddConsoleToProdDesc)

switch11=IsOptionSelected(meter)
#if(switch11)
	CallProc(AddMeterToProdDesc)
#endif

switch11=IsOptionSelected(inv)
#if(switch11)
	CallProc(AddInvToProdDesc)
#endif

switch11=IsOptionSelected(dist)
#if(switch11)
	CallProc(AddDistToProdDesc)
#endif

										; let nail initialize itself
ExecChildProcess(LaunchNail)

										; 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(SetLoginScriptRW)
    ModifyTextFile(LoginScript)
    CallProc(SetLoginScriptRO)

										; restore TARGET2 from UNC
    CallProc(RestoreTarget2)
#endif

										; create DATA subdirectories
CreateDirectory(DataInDir)
CreateDirectory(DataOutDir)
CreateDirectory(DataBinDir)

										; reenable TSR if it's present
switch25 = CallProcEx(CheckTSR)

#if(switch25)
    CallProcEx(EnableTSR)
#endif

										; free DLLs
CallProc(FreeSymnet)

                                        ; build Windows group
groups()

										; register the OLE2 DLLs we copied
Launch(RegisterOle)

										; delete DLLs from Windows directory
delete(FilesToDelete)

switch20 = IsInstallShell()
#if(switch20)
    End(ByeShell)
#else
    End(ByeNoReboot)
#endif

end

; SubProc to be executed before we take over as the shell

[SubProc]
Backup(nadmindll)

switch20 = CallProcEx(CheckTSR)

#if(switch20)
   CallProcEx(DisableTSR)
#endif

Return


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

[InstallVersion]
4.0

[CompressionChars]
LZW = "_"
ZIP = "$"

[FilesToDelete]
siwcust.dll,  WINDOWS
symls.dll,    WINDOWS
nautil.dll,   WINDOWS
symkrnl7.dll, WINDOWS
symdb7.dll,   WINDOWS
symnet7.dll,  WINDOWS
symnw37.dll,  WINDOWS
symbv47.dll,  WINDOWS
symlm27.dll,  WINDOWS
symutil7.dll, WINDOWS
symgui7.dll,  WINDOWS

[NadminIniFile]
IniName                    = %s\nadmin.ini, WINDOWS
SectionName                = Data
DefDataDir                 = "*"

[LaunchNail]
"%s\nadmin.exe /FIRSTTIME", TARGET

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

; %ld will be replaced at runtime by the install program

[nnucopy]
copymain.console,    "Norton Administrator for Networks - %ldK",  0, Y, N, Y
copymain.meter,        "&Metering - %ldK",                        0, N, N, Y
copymain.inv,          "&Inventory - %ldK",                       0, N, N, Y
copymain.dist,         "&Distribution - %ldK",                    0, N, N, Y
copymain.sb,           "Symantec &Basic - %ldK",                  0, N, N, Y


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

[groups]
"Norton Administrator",        nadmin.grp,   DELETE

[Norton Administrator]
"Norton Administrator",                      nadmin.exe,        console,,TARGET
"NEF Manager",                               nefmgr.exe,        console,,TARGET
"NEF Sender-Receiver",                       nefsr.exe,         console,,TARGET
"Symantec BASIC",                            sbedit.exe,        sb,1,TARGET
"Remove Norton Administrator",               install.exe,       console,,TARGET,,,"/u"
"Inventory Agent",                           nainvw.exe,        inv,,TARGET2
"Distribution Agent",                        nadistw.exe,       dist,,TARGET2
"Metering Agent",                            nanodew.exe,       meter,,TARGET2

[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"
text = primarytext

[nnucopy:Advo]
posx = 10
posy = 50
location = siwcust.dll
count = 1
BitmapsOnly = 1

[primarytext]
"Uncheck any modules you do not wish to install."

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

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

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

[CopyCustError]
caption = "Copy Error"
"There was an error copying some temporary files"
"to your Windows directory.  The problem may be"
"due to insufficient disk space.  Please correct"
"the problem and rerun Install."

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

[nadmindll]
siwcust.dll, siwcust.dll, SOURCE, WINDOWS
symkrnl7.dll, symkrnl7.dll, SOURCE, WINDOWS
symdb7.dll,   symdb7.dll,   SOURCE, WINDOWS
symnet7.dll,  symnet7.dll,  SOURCE, WINDOWS
symnw37.dll,  symnw37.dll,  SOURCE, WINDOWS
symbv47.dll,  symbv47.dll,  SOURCE, WINDOWS
symlm27.dll,  symlm27.dll,  SOURCE, WINDOWS
symutil7.dll, symutil7.dll, SOURCE, WINDOWS
symls.dll,    symls.dll,    SOURCE, WINDOWS
nautil.dll,   nautil.dll,   SOURCE, WINDOWS
symgui7.dll,  symgui7.dll,  SOURCE, WINDOWS


[DllExists]
siwcust.dll,  WINDOWS
symkrnl7.dll, WINDOWS
symdb7.dll,   WINDOWS
symnet7.dll,  WINDOWS
symnw37.dll,  WINDOWS
symbv47.dll,  WINDOWS
symlm27.dll,  WINDOWS
symutil7.dll, WINDOWS
symls.dll,    WINDOWS
nautil.dll,   WINDOWS
symgui7.dll,  WINDOWS


[pix]
color = %s\nantext.rle, 1, 1
color = %s\symblue.rle, -1, 1
color = %s\anvil2.bmp, 1, -1

; 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

[LoadSymnet]
dll = siwcust.dll
function = LoadSymnet

[FreeSymnet]
dll = siwcust.dll
function = FreeSymnet

[ExitHookProc]
dll = siwcust.dll
function = ExitHookProc

[NadminFileExists]
nadmin.ini, WINDOWS

[DllsExist]
siwcust.dll,   WINDOWS
symkrnl7.dll,  WINDOWS
symdb7.dll,    WINDOWS
symnet7.dll,   WINDOWS
symnw37.dll,   WINDOWS
symbv47.dll,   WINDOWS
symlm27.dll,   WINDOWS
symutil7.dll,  WINDOWS
symls.dll,     WINDOWS
nautil.dll,    WINDOWS
symgui7.dll,   WINDOWS
;symlsm.dll,   WINDOWS
;symlsl.dll,   WINDOWS

[CheckTSR]
dll = siwcust.dll
function = IsTSRPresent

[DisableTSR]
dll = siwcust.dll
function = DisableDosTSR

[EnableTSR]
dll = siwcust.dll
function = EnableDosTSR

[SetFilesToReadOnly]
dll = siwcust.dll
function = SetFilesToReadOnly

[SetAllFilesToReadWrite]
dll = siwcust.dll
function = SetAllFilesToReadWrite

[UpgradeYesNo]
caption     = "Norton Administrator for Networks"
"All existing databases need to be upgraded"
"to the current version.  After this conversion"
"only the latest version of Norton Administrator"
"for Networks will read the databases."
" "
"Do you wish to continue?"

;**************************************************************************
;* 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

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=SubProc

[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.dll
nadist.exe
nadistw.exe
nainv.exe
nameter.exe
nameterw.exe
nanode.exe
nanodew.exe
symkrnl7.dll
symdb7.dll
symutil7.dll
symgui7.dll
symls.dll
nautil.dll

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

[WindowsVersion]
3.10
"Norton Administrator for Networks requires"
"Microsoft Windows version 3.1 or later."

[DataInDir]
%s\BIN.IN, TARGET3

[DataOutDir]
%s\BIN.OUT, TARGET3

[DataBinDir]
%s\BIN.DAT, TARGET3

[Registration]
caption =  "Norton Administrator for Networks -- Registration"
text1   =  regtext
text2   =  "&Name:"
text3   =  "&Company:"
Cancel  =  "Cancel"
Help    =  "&Help"
appname =  nconapi.dll
string  =  "Symantec Install for Windows"
active  =  no
serialize = 0

[regtext]
"Welcome to the Norton Administrator for Networks Installation."
" "
"Please enter your name and company below."
" "
" "

[UserReg]
nconapi.dll, TARGET

[AddConsoleToProdDesc]
dll = siwcust.dll
function=AddConsoleToProdDesc

[AddMeterToProdDesc]
dll = siwcust.dll
function=AddMeterToProdDesc

[AddInvToProdDesc]
dll = siwcust.dll
function=AddInvToProdDesc

[AddDistToProdDesc]
dll = siwcust.dll
function=AddDistToProdDesc

[RegisterOle]
"%s\regedit.exe /s ole2.reg", WINDOWS

[CheckApplicatDat]
dll=siwcust.dll
function=CheckApplicatDat

[RenameApplicatDat]
dll=siwcust.dll
function=RenameApplicatDat

[CheckForOpenFiles]
dll=siwcust.dll
function=ProbableSuccess

[ProductName]
Directory=NAN20
FullName=Norton Administrator For Networks V2.0

