home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
GE
/
GE003C.ZIP
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-07-14
|
3KB
|
87 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 %2?==? GOTO BEGIN
CLS
ECHO Missing DRIVE ID parm
PAUSE
GO DISPLAY NOCLR OPTIONS
:BEGIN
CLS
ECHO Beginning "%1" installation of the Family History System on drive "%2"
ECHO :
ECHO You should have the three FHS distribution diskettes available, labeled
ECHO "B1", "B2", "B3" (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 "%2" 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 "%2" 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 "A" and "%2" drives, but you should wait until instructed by the
ECHO operating system to switch diskettes in your disk drive.
ECHO :
PAUSE
ECHO :
ECHO I am now going to copy a file to the "%2" drive which will take control
ECHO of the installation process.
ECHO :
COPY FDINSTAL.BAT %2:FHSINSTL.BAT
%2:
FHSINSTL %1 %2
:HDINSTAL
%2:
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 %2: drive.
ECHO During this RE-installation of the Family History System on your
ECHO drive %2:, 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 %2: 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 "%2" drive, to be used for starting a Family History session.
ECHO :
CD \
IF EXIST FHS.BAT GOTO COPYPGMS
ECHO>%2:FHS.BAT REM Starting Family History System
ECHO>>%2:FHS.BAT ECHO OFF
ECHO>>%2:FHS.BAT CD \FAMILY
ECHO>>%2:FHS.BAT FAMINIT
ECHO>>%2:FHS.BAT CD \
:COPYPGMS
CD \FAMILY
COPY A:HDINSTAL.BAT %2:FHSINSTL.BAT
FHSINSTL %2