home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
f
/
fhs01.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-05-24
|
3KB
|
93 lines
ECHO OFF
IF %1?==? GO VIEW INSTALL
IF %1==HD GOTO CHKPARM2
IF %1==1D GOTO CHKPARM2
IF %1==2D GOTO CHKPARM2
CLS
ECHO Option "%1" not recognised.
PAUSE
GO DISPLAY NOCLR OPTIONS
:CHKPARM2
IF NOT %3?==? GOTO BEGIN
CLS
ECHO Missing DRIVE ID parms. Enter: GO INSTALL %1 x y
ECHO where x=drive ID in which distribution diskettes are placed
ECHO and y=drive ID on which programs are to be installed.
ECHO :
ECHO (NOTE: do not place a ":" after the character identifying the drive)
ECHO :
GOTO ENDIT
:BEGIN
CLS
ECHO Beginning "%1" installation of the Family History System onto drive "%3:"
ECHO :
ECHO You should have the two FHS distribution diskettes available, labeled
ECHO "B1" and "B2" (If you are unsure about this, press CTRL+C to end this
ECHO procedure and then enter: GO VIEW INSTALL)
IF %1==HD GOTO HDCHECK
ECHO :
IF %1==2D GOTO 2DMSG
ECHO You should also have a formatted diskette, labeled STARTUP, to receive
ECHO the FHS program files.
GOTO :HDCHECK
:2DMSG
ECHO You should also have 2 formatted diskettes, labeled STARTUP and REPORT
ECHO to receive the FHS program files.
:HDCHECK
ECHO :
PAUSE
ECHO :
IF %1==HD GOTO HDINSTAL
ECHO If your system has 2 disk drives you should place the STARTUP diskette
ECHO in the "%3:" drive at this time.
ECHO :
ECHO If your system has a single diskette drive, wait until prompted to place
ECHO the STARTUP diskette in this drive (which will then be designated the
ECHO "%3:" drive).
ECHO During this installation procedure you will be faced with a lot of "disk
ECHO shuffling". I will try to keep you informed as to which diskettes should
ECHO be in the "%2:" and "%3:" drives, but you should wait until instructed by
ECHO the operating system to switch diskettes in your disk drive.
ECHO :
PAUSE
ECHO :
ECHO I am now going to copy a file to the "%3" drive which will take control
ECHO of the installation process.
ECHO :
COPY %2:\FDINSTAL.BAT %3:\FHSINSTL.BAT
%3:
CD \
FHSINSTL %1 %2 %3
:HDINSTAL
%3:
CD \
MD FAMILY > NUL:
CD \FAMILY
IF NOT EXIST FAMILY.DAT GOTO NEWINSTL
ECHO If you received a message "Unable to create directory", you may ignore it.
ECHO The \FAMILY sub-directory was already on the "%3:" drive.
ECHO During this RE-installation of the Family History System on your
ECHO drive "%3:", the updated program files will be copied into the existing
ECHO sub-directory on that drive.
ECHO :
PAUSE
ECHO :
GOTO COPYPGMS
:NEWINSTL
ECHO A new sub-directory (\FAMILY) has been created on your "%3:" drive.
ECHO This directory will contain all Family History System files except a
ECHO single batch file (FHS.BAT) which will be created in the main directory
ECHO of the "%3:" drive, to be used for starting a Family History session.
ECHO :
CD \
IF EXIST FHS.BAT GOTO COPYPGMS
ECHO>%3:FHS.BAT REM Starting Family History System
ECHO>>%3:FHS.BAT ECHO OFF
ECHO>>%3:FHS.BAT CD \FAMILY
ECHO>>%3:FHS.BAT FAMINIT
ECHO>>%3:FHS.BAT CD \
:COPYPGMS
CD \FAMILY
COPY %2:\HDINSTAL.BAT %3:FHSINSTL.BAT>NUL:
FHSINSTL HD %2 %3
:ENDIT