; pcANYWHERE administrator install script

[InstallVersion]
3.3

[WindowsVersion]
3.10
"pcANYWHERE for Windows requires"
"Windows version 3.1 or greater."

[process]
NetAdminInstall

switch94=FALSE
switch91=Exists(Admin10)           ;switch91=TRUE if old @@@ files exist
#ifnot(switch91)                   ;check for 1.0, 5.0, and 4.5 versions
   switch91=Exists(Admin50)        ;we won't copy new ones if they exist
   #ifnot(switch91)
      switch91=Exists(Admin45)
   #endif
#endif
switch90=Exists(BinFile)           ;switch90=TRUE if ANYWHERE.BIN file exists
switch87=Exists(Noreg)          		;switch87 = TRUE if NoReg file exists

Bitmaps(pix)                       ;display background bitmap
AllowIntlChars()                   ;allow international characters
backup(pcawinst)                   ;copy install dll to Windows directory
                                       ;setup the file information for copying
SetActiveCopy(PCACopy, netadmin.inf)

ResetTarget(TargetNet)             ;set default target to the network
switch01 = IsRegistered()          ;if not already registered, ask for registration
#ifnot(switch01)
     Registration()
#endif
TargetDrive()                      ;get target drive/path
switch86=Exists(Winaw)             ;switch86=TRUE if WINAW.EXE in target already

DisableUtils()
copy()                             ;copy files
EnableUtils()

AddToIni(SetNetwork)               ;set network=1 in pcaw.ini
Backup(NetworkUserInstall)

CallProc(NetworkCustomize)         ;Update anywhere.bin and get admin options
Delete(OldBaseFiles)               ;remove old pcAW/Win files no longer used
Delete(InstallDLLs)                ;remove install files
Delete(InstallINFs)                ;remove install inf files not used

MessageBox(ByeNoReboot)
Exit


;-----------------------------------------------------------------------
; Copy.
;-----------------------------------------------------------------------

[PCACopy]
CopyMain.BaseFiles, "pcANYWHERE",    0, Y, N, Y

[PCACopy:CopyDialog]
caption = "Copying pcANYWHERE Files..."
posx = -50
posy = -50

;----------------------------------------------------------------------------------
;[AdvoDefault]
;posx = 20
;posy = 20
;text = AdvoText

;[AdvoText]
;"Please fill out your registration"
;"form to be sure to get information"
;"about product updates."
;""

[ByeNoReboot]
caption = "pcANYWHERE -- Install Complete"
"This concludes the administrator installation of pcANYWHERE for Windows."
" "
"You are now licensed for one user.  Install your Connect Pack diskettes to increase the license count."
" "
"Each network user should then run INSTALL from the installation directory, not the diskettes."
" "
"Review the README.TXT file for last minute changes and corrections to the documentation."
" "

[Registration]
caption =  "pcANYWHERE Installation"
text1   =  RegistText
text2   =  "&Name:"
text3   =  "&Company:"
Cancel  =  "Cancel"
Help     =  "&Help"
appname =  winaw.exe
prevappname = winaw.exe
string  =  "Symantec Install for Windows"
active  =  no

[RegistText]
"Welcome to pcANYWHERE for Windows!"
""
""
"Please register your name"
"and company below."

[TargetDrive]
caption =  "Install pcANYWHERE Program Files To"
defpath =  C:\WINAW
text   =  "Select the drive/directory where you would like the Program files to be installed."
reqspace= "Approximate disk space required for installation"

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

[FileCopy]
errorcaption  =  "Error Copying Files"
insertcaption =  "Insert Diskette"

[cancel]
caption = "pcANYWHERE"
text     = "Are you sure you want to exit?"

[cancelshell]
caption = "pcANYWHERE"
text     = "Are you sure you want to exit?"

;-----------------------------------------------------------------------

[pcawinst]
awinst.dll, awinst.dll, SOURCE, WINDOWS
symkrnl5.dll, symkrnl5.dll, SOURCE, WINDOWS

[InstallDLLs]
AWINST.DLL, WINDOWS
WIN.$AW, WINDOWS
SYSTEM.$AW, WINDOWS
AWLPFUNC.DLL, WINDOWS

[InstallINFs]
netadmin.inf, target
netunins.inf, target
netuser.inf, target

[pix]
color = %s\winaw.bmp

[NetworkCustomize]
dll  = awinst.dll
function   = AWNetworkCustomize
ConfigFile = anywhere.bin, target

[OldBaseFiles]                ;old pcAW files to be deleted from the target directory
AWMODEM.DAT,    TARGET
AWDB.DLL,       TARGET

[SetNetwork]                        ; for admin installs, set "Network=1" in pcaw.ini
IniName = %s\anywhere.ini, TARGET
SectionName = ProgramInformation
Network=1

;These sections are for checking if older versions of the @@@ files exist
[Admin10]
aw@@@___.cn5, TARGET
[Admin45]
aw@@@___.lc1, TARGET
[Admin50]
aw@@@___.bin, TARGET

[Winaw]
winaw.exe, TARGET

;Check if anywhere.bin already exists
[BinFile]
anywhere.bin, TARGET

[TargetNet]
reset=TARGET
Location=FirstNetDrive

[NetworkUserInstall]
netuser.inf, install.inf, target, target
netunins.inf, uninstal.inf, target, target

[NoReg]
noreg, SOURCE


